/*
Theme Name:  Tu i Teraz
Theme URI:   https://tuiteraz.radom.pl
Author:      Tu i Teraz Centrum Terapii i Rozwoju
Description: Custom theme for Centrum Terapii i Rozwoju Tu i Teraz — psychology center in Radom. Services, blog, WooCommerce shop.
Version:     1.0.6
Text Domain: tuiteraz
Tags:        custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, woocommerce
Requires PHP: 8.0
*/

/* ─── Design System Variables ─────────────────────────────────────────────── */

:root {
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-logo:    'Gill Sans MT', 'Century Gothic', sans-serif;

  /* Brand colors — shared with Psychopraktyki */
  --color-primary:      #2F5D50;
  --color-primary-dark: #1A3D33;
  --color-accent:       #C8A97E;
  --color-accent-dark:  #A8896A;
  --color-footer:       #183630;
  --color-cta-alt:      #EA66DF;

  /* Text */
  --color-text-h:      #1A2D27;
  --color-text-body:   #444444;
  --color-text-muted:  #6B6B6B;
  --color-text-subtle: #999999;

  /* Backgrounds */
  --color-bg:      #FFFFFF;
  --color-bg-alt:  #F5F2ED;
  --color-bg-mint: #E8F4F0;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 80px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 24px;

  /* Layout */
  --max-width:     1200px;
  --nav-height:    72px;
  --section-pad-v: 80px;
}

/* ─── Base Reset ──────────────────────────────────────────────────────────── */

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-h);
}

h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(26px, 3.5vw, 32px); line-height: 1.25; }

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-h);
  line-height: 1.4;
}

h3 { font-size: clamp(15px, 2vw, 17px); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover { color: var(--color-primary-dark); }

/* ─── Layout Utilities ────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.section {
  padding-block: var(--section-pad-v);
}

.section--alt { background: var(--color-bg-alt); }
.section--mint { background: var(--color-bg-mint); }
.section--dark {
  background: var(--color-footer);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { opacity: .85; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-text-h);
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-text-h);
}

/* ─── Navigation ──────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-bg);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* ── Logo ──────────────────────────────────────────────────────────────── */

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary); /* SVG uses currentColor — inherits this */
  flex-shrink: 0;
  transition: opacity .2s ease;
}

.site-logo:hover,
.site-logo:focus-visible { opacity: .75; }

/* Inline SVG wrapper spans */
.site-logo__full,
.site-logo__compact {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo__full svg {
  height: 52px; /* 78px viewBox ÷ 1.5 */
  width: auto;
}

.site-logo__compact {
  display: none; /* hidden on desktop */
}

.site-logo__compact svg {
  height: 38px; /* 44px viewBox ÷ ~1.16 */
  width: auto;
}

/* Subtitle hide on medium screens — before switching to compact logo */
@media (max-width: 900px) {
  .logo-sub { display: none; }
  .site-logo__full svg {
    height: 42px; /* clip viewBox bottom — subtitle area gone */
    overflow: hidden;
  }
}

/* Switch to compact logo on mobile */
@media (max-width: 600px) {
  .site-logo__full    { display: none; }
  .site-logo__compact { display: flex; }
}

/* WP custom logo fallback */
.site-logo__img {
  display: block;
  height: 52px;
  width: auto;
}

/* Text fallback (no SVG) */
.site-logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  line-height: 1;
}

.site-logo__tagline {
  font-family: var(--font-body);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-body);
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link:hover,
.site-nav__item.current-menu-item > .site-nav__link {
  color: var(--color-primary);
}

/* Dropdown */
.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: var(--space-sm) 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.site-nav__item:hover .site-nav__dropdown,
.site-nav__item:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.site-nav__dropdown a {
  display: block;
  padding: 10px var(--space-md);
  font-size: .875rem;
  color: var(--color-text-body);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.site-nav__dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-h);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Hamburger → X. nav.js already keeps aria-expanded in sync with the open
   state, so it doubles as the CSS hook — the icon previously looked
   identical open/closed, only the (visually invisible) aria-label changed
   (ux-designer audit, 2026-08-06). */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    overflow-y: auto;
    gap: 0;
  }

  .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .site-nav__link {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-bg-alt);
    width: 100%;
  }

  .site-nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: var(--space-md);
  }

  .site-nav .btn {
    margin-top: var(--space-lg);
    width: 100%;
    justify-content: center;
  }
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

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

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: .9rem;
  text-align: center;
  padding: var(--space-lg);
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__image {
    aspect-ratio: 3/2;
    order: -1;
  }
}

/* ─── Services Grid ───────────────────────────────────────────────────────── */

.services-grid {
  /* Flexbox, not CSS Grid: grid tracks reserve their column even when a
     variable item count leaves them empty (auto-fill), or a lone item just
     sits at its own width with the leftover row space unclaimed (auto-fit
     without an fr unit) — either way a wall of dead space next to the card.
     Flex-wrap sizes to content and never strands single/few items. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1 1 240px;
  max-width: 280px;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(47, 93, 80, .12);
  border-color: var(--color-primary);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
}

.service-card__desc {
  font-size: .85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── Specialist Cards ────────────────────────────────────────────────────── */

.team-slider {
  position: relative;
}

.team-slider-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 4px; /* room for focus outline on cards */
}

.team-slider-viewport::-webkit-scrollbar {
  display: none;
}

.team-grid {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
}

/* Used on single-usluga.php, where the list isn't inside a scroll
   viewport — centers a short row (2-4 specialists) instead of sitting
   flush left, and wraps instead of overflowing on narrow screens. */
.team-grid--wrap {
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-inline: auto;
}

.specialist-card {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none;
}

.team-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px; /* matches .specialist-card__photo diameter */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 8px;
}

@media (max-width: 640px) {
  /* Fixed 200px card meant two could partially fit side by side on a
     phone — the second one clipped and effectively untappable. One
     full-width card per swipe/arrow-click instead. */
  .specialist-card {
    flex-basis: calc(100vw - 48px);
    width: calc(100vw - 48px);
  }
}

.team-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: rgba(255,255,255,.9);
  color: var(--color-primary);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
  pointer-events: auto;
}

.team-nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.team-nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.specialist-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  background: var(--color-bg-alt);
  border: 3px solid var(--color-bg-alt);
}

.specialist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist-card__name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
  margin-bottom: 4px;
}

.specialist-card__title {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.specialist-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid rgba(47,93,80,.15);
  white-space: nowrap;
}

/* ─── Badge ───────────────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.badge--light {
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
}

/* ─── Section Header ──────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header .badge { margin-bottom: var(--space-md); }
.section-header h2 { margin-block: var(--space-md); }

/* eyebrow alias — maps old class to badge style */
.section-header__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ─── Trust Signals ───────────────────────────────────────────────────────── */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.trust-item__number {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.trust-item__label {
  font-size: .875rem;
  color: var(--color-text-muted);
}

/* ─── Reviews ──────────────────────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
}

.review-card__stars {
  color: var(--color-accent-dark);
  font-size: 15px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-body);
  flex: 1;
  margin: 0;
}

.review-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0;
}

/* ─── How It Works ────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  counter-reset: steps;
}

.step {
  position: relative;
  padding-left: 56px;
  counter-increment: steps;
}

.step::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-h);
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Cennik (pricing table) ──────────────────────────────────────────────── */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  background: var(--color-bg-alt);
  color: var(--color-text-h);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 12px var(--space-md);
}

.pricing-table td {
  padding: 12px var(--space-md);
  border-bottom: 1px solid var(--color-bg-alt);
  font-size: .9rem;
}

.pricing-table tr:last-child td { border-bottom: none; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(47, 93, 80, 0.12);
}

.faq-item:first-child {
  border-top: 1px solid rgba(47, 93, 80, 0.12);
}

.faq-item details {
  width: 100%;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-h);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-trigger::-webkit-details-marker { display: none; }
.faq-trigger::marker { display: none; }

.faq-trigger::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

details[open] .faq-trigger::after {
  transform: rotate(180deg);
  background-color: var(--color-accent);
}

details[open] .faq-trigger {
  color: var(--color-primary);
}

.faq-panel {
  padding-bottom: var(--space-lg);
  padding-right: calc(20px + var(--space-md));
}

.faq-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-panel strong {
  color: var(--color-text-body);
  font-weight: 600;
}

/* Legacy alias — single-usluga.php uses .faq-item__body */
.faq-item__body {
  padding-bottom: var(--space-lg);
  padding-right: calc(20px + var(--space-md));
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ─── Contact ─────────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: .95rem;
  color: var(--color-text-h);
  font-weight: 500;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-top: var(--space-lg);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */

.form-field {
  margin-bottom: var(--space-md);
}

.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-h);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px var(--space-md);
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text-body);
  background: var(--color-bg);
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, .15);
}

.form-field textarea { min-height: 120px; resize: vertical; }

/* Inline validation — same pattern/colors as psychopraktyki-theme (shared
   design system): red border + message below the field instead of relying
   only on native browser validation tooltips (contact-form.js). */
.form-field input.is-error,
.form-field select.is-error,
.form-field textarea.is-error {
  border-color: #C5221F;
  box-shadow: 0 0 0 3px rgba(197, 34, 31, .12);
}

.field-error-msg {
  display: block;
  font-size: 12px;
  color: #C5221F;
  margin-top: 4px;
  line-height: 1.4;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-footer);
  color: rgba(255,255,255,.75);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col__heading {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
  letter-spacing: .03em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer-nav a {
  display: inline-block;
  /* Text line box alone was ~15px tall (font-size .85rem, no padding) —
     far under the 44px minimum tap target and WCAG 2.2's 24px hard floor
     (ux-designer audit, 2026-08-06). Padding replaces the old inter-item
     gap so the extra space becomes part of the clickable area instead of
     dead space between links. */
  padding-block: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  transition: color .2s;
}

.footer-nav a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: .8rem;
  color: rgba(255,255,255,.70);
}

.footer-bottom a {
  color: var(--color-cta-alt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

/* Links inside form labels (RODO consent) need a non-color differentiator
   and sufficient contrast against the surrounding muted label text — axe
   flagged both as failing (ux-designer audit, 2026-08-06). */
label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background-color: rgba(255,255,255,.06);
}

/* ─── Single Usluga — Jak wygląda ────────────────────────────────────────── */

.usluga-jak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .usluga-jak-grid {
    /* 3×2 for the common 6-card case reads calmer than an uneven 4+2 wrap */
    grid-template-columns: repeat(3, 1fr);
  }
}

.usluga-jak-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
  transition: box-shadow .2s ease, transform .2s ease;
}

.usluga-jak-card:hover {
  box-shadow: 0 6px 24px rgba(47,93,80,.09);
  transform: translateY(-2px);
}

.usluga-jak-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-bg-alt);
}

.usluga-jak-card__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  color: var(--color-primary);
}

.usluga-jak-card__icon svg {
  width: 20px;
  height: 20px;
}

.usluga-jak-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-h);
  margin: 0;
}

.usluga-jak-card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-body);
  flex: 1;
}

.usluga-jak-card__body p { margin-bottom: var(--space-sm); }
.usluga-jak-card__body p:last-child { margin-bottom: 0; }

.usluga-jak-card__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-sm) 0 0;
}

.usluga-jak-card__body li {
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}

.usluga-jak-card__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ─── Single Usluga — Pierwsza konsultacja (steps callout) ───────────────── */

.steps-callout {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.steps-callout__intro {
  margin-bottom: var(--space-xl);
}

.steps-callout__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-body);
  max-width: 620px;
  margin: 0 auto;
}

.steps-callout__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
  list-style: none;
}

.steps-callout__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.steps-callout__step-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}

.steps-callout__step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
  padding-top: 6px;
}

/* ─── Single Usluga — Dla kogo ────────────────────────────────────────────── */

.usluga-dla-kogo p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-body);
  margin-bottom: var(--space-md);
}

.usluga-dla-kogo ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.usluga-dla-kogo li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
}

.usluga-dla-kogo li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  border-radius: 50%;
}

.usluga-dla-kogo strong {
  font-weight: 600;
  color: var(--color-text-h);
}

/* ─── Cennik Page ────────────────────────────────────────────────────────── */

.cennik-info-bar {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid rgba(47,93,80,.15);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cennik-info-bar__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.cennik-info-bar p { margin: 0; }

.cennik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.cennik-card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow .2s ease, transform .2s ease;
}

.cennik-card:hover {
  box-shadow: 0 6px 24px rgba(47,93,80,.09);
  transform: translateY(-2px);
}

.cennik-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.cennik-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cennik-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0 0 2px;
  line-height: 1.3;
}

.cennik-card__subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

.cennik-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: auto;
}

.cennik-table tr {
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.cennik-table tr:last-child { border-bottom: none; }

.cennik-table td {
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-body);
  vertical-align: middle;
}

.cennik-table__time {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
  padding-inline: var(--space-sm);
  text-align: center;
}

.cennik-table__price {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-primary);
  white-space: nowrap;
  text-align: right;
}

.cennik-table__price--tbd {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  font-style: italic;
}

.cennik-card__link {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: var(--space-md);
}

.cennik-card__link:hover { color: var(--color-primary-dark); }

.cennik-tbd-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .cennik-grid { grid-template-columns: 1fr; }
}

/* ─── Single Specialist Profile ──────────────────────────────────────────── */

.specialist-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.specialist-profile__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.specialist-profile__photo {
  aspect-ratio: 7/8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-md);
}

.specialist-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.specialist-profile__meta {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: var(--space-md);
}

.specialist-profile__meta-item { display: flex; flex-direction: column; gap: 2px; }

.specialist-profile__meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.specialist-profile__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-h);
  margin: 0;
}

.specialist-profile__content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-body);
}

.specialist-profile__content p { margin-bottom: var(--space-md); }
.specialist-profile__content p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .specialist-profile {
    grid-template-columns: 1fr;
  }
  .specialist-profile__sidebar {
    position: static;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ─── Specialists Filter ──────────────────────────────────────────────────── */

.spec-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.spec-filter__pill {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid rgba(47,93,80,.15);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.spec-filter__pill:hover {
  border-color: var(--color-primary);
}

.spec-filter__pill.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.spec-filter__empty {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

/* ─── Specialists Archive Grid ────────────────────────────────────────────── */

.specialists-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* [hidden] and .spec-card{display:flex} tie on specificity — without this,
   source order lets the class win and the filter JS's `card.hidden = true`
   silently does nothing visually. */
.spec-card[hidden] {
  display: none;
}

.spec-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .25s ease, transform .25s ease;
}

.spec-card:hover {
  box-shadow: 0 10px 40px rgba(47,93,80,.12);
  transform: translateY(-4px);
}

.spec-card__photo {
  aspect-ratio: 7/8;
  overflow: hidden;
  background: var(--color-bg-alt);
  position: relative;
}

.spec-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.spec-card:hover .spec-card__photo img {
  transform: scale(1.04);
}

.spec-card__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  opacity: .5;
  user-select: none;
}

.spec-card__info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.spec-card__name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0;
}

.spec-card__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: .01em;
  margin: 0;
}

.spec-card__nurt {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
}

.spec-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: auto;
}

.spec-card__cta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: var(--space-sm);
}

@media (max-width: 600px) {
  .specialists-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .spec-card__info { padding: var(--space-sm); }
}

@media (max-width: 380px) {
  .specialists-archive-grid { grid-template-columns: 1fr; }
}

/* ─── Blog Archive ───────────────────────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(47,93,80,.1);
  transform: translateY(-3px);
}

.blog-card__image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover .blog-card__image img { transform: scale(1.04); }

.blog-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
}

.blog-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.blog-card__title a {
  color: var(--color-text-h);
  text-decoration: none;
}

/* Stretched link — cała karta klikalna */
.blog-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-card__title a:hover { color: var(--color-primary); }

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: auto;
}

.blog-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.blog-card__read {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card__read:hover { color: var(--color-primary-dark); }

/* ─── Single Post (article) ──────────────────────────────────────────────── */

.article-content {
  max-width: 720px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-body);
}

.article-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--color-text-h);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(47,93,80,.12);
}

.article-content h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-content p { margin-bottom: var(--space-md); }
.article-content p:last-child { margin-bottom: 0; }

.article-content ul,
.article-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li { line-height: 1.7; }

.article-content li::marker { color: var(--color-primary); }

.article-content strong {
  font-weight: 600;
  color: var(--color-text-h);
}

.article-content em { font-style: italic; }

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--color-primary-dark); }

/* ─── WooCommerce Minimal ─────────────────────────────────────────────────── */

.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  list-style: none;
}

.woocommerce .product .woocommerce-loop-product__link {
  text-decoration: none;
}

.woocommerce .product img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce .woocommerce-Price-amount {
  color: var(--color-primary);
  font-weight: 700;
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-xl       { margin-top: var(--space-xl); }
.mt-lg       { margin-top: var(--space-lg); }
.mb-lg       { margin-bottom: var(--space-lg); }

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

/* ─── Reduced Motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */

.breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb [aria-current="page"] {
  color: var(--color-text-muted);
}

/* ─── Focus Visible (keyboard navigation) ─────────────────────────────────── */

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 4px;
}

.service-card:focus-visible,
.specialist-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.site-nav__link:focus-visible,
.site-nav__dropdown a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Mobile Sticky CTA ───────────────────────────────────────────────────── */

.mobile-cta-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 12px var(--space-md);
    gap: var(--space-sm);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }

  .mobile-cta-bar .btn {
    flex: 1;
    justify-content: center;
    font-size: .875rem;
    padding: 11px 16px;
  }

  /* Push footer up so sticky bar doesn't overlap */
  .site-footer {
    padding-bottom: calc(var(--space-xl) + 68px);
  }
}

/* ─── Kontakt page ───────────────────────────────────────────────────────── */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 960px) {
  .kontakt-grid { grid-template-columns: 1fr; }
}

.kontakt-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.kontakt-form-col { /* form wrapper, no extra styling needed */ }

/* Two-column row inside form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* RODO checkbox row */
.kontakt-rodo {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.kontakt-rodo input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

.kontakt-rodo label {
  font-size: .8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Contact info card */
.kontakt-info-card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  overflow: hidden;
}

.kontakt-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-decoration: none;
  transition: background .15s ease;
}

.kontakt-info-item:last-child { border-bottom: none; }

.kontakt-info-item--highlight {
  background: var(--color-bg-alt);
}

.kontakt-info-item--highlight:hover {
  background: rgba(47,93,80,.08);
}

.kontakt-dojazd {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

/* Map */
.kontakt-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.kontakt-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .kontakt-map { height: 280px; }
}

/* Alert banners */
.kontakt-alert {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.kontakt-alert strong { margin-right: 4px; }

.kontakt-alert--success {
  background: var(--color-bg-alt);
  border: 1px solid rgba(47,93,80,.3);
  color: var(--color-primary-dark);
}

.kontakt-alert--error {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Trust strip */
.kontakt-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.kontakt-trust li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-h);
}

.kontakt-trust img { flex-shrink: 0; }

/* ─── ZnanyLekarz strip ──────────────────────────────────────────────────── */

.zl-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid rgba(47,93,80,.15);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-block: var(--space-xl);
  flex-wrap: wrap;
}

.zl-strip__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0 0 2px;
}

.zl-strip__sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ─── O nas — centrum photos ─────────────────────────────────────────────── */

.onas-photo-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: var(--space-lg);
}

.onas-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.onas-gabinet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 900px) {
  .onas-gabinet { grid-template-columns: 1fr; }
}

.onas-gabinet__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.onas-gabinet__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.onas-gabinet__feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.onas-gabinet__feature img { flex-shrink: 0; margin-top: 2px; }

.onas-gabinet__feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0 0 4px;
}

.onas-gabinet__feature-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── O nas page ─────────────────────────────────────────────────────────── */

.onas-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.onas-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
  text-align: center;
}

.onas-stat__number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.onas-stat__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: .02em;
}

@media (max-width: 768px) {
  .onas-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Values grid */
.onas-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.onas-value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  transition: box-shadow .2s ease, transform .2s ease;
}

.onas-value-card:hover {
  box-shadow: 0 6px 24px rgba(47,93,80,.09);
  transform: translateY(-2px);
}

.onas-value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onas-value-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: 0;
  line-height: 1.4;
}

.onas-value-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Story section */
.onas-story {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  align-items: start;
}

.onas-story__text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-body);
  margin-bottom: var(--space-md);
}

.onas-story__text p:last-of-type { margin-bottom: 0; }

/* Contact card in aside */
.onas-contact-card {
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.onas-contact-card__heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.onas-contact-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.onas-contact-card__item img { flex-shrink: 0; margin-top: 2px; }

.onas-contact-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 2px;
}

.onas-contact-card__item p,
.onas-contact-card__item a {
  font-size: 14px;
  color: var(--color-text-h);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}

.onas-contact-card__item a { color: var(--color-primary); }
.onas-contact-card__item a:hover { color: var(--color-primary-dark); }

@media (max-width: 900px) {
  .onas-story {
    grid-template-columns: 1fr;
  }
  .onas-contact-card { position: static; }
}

/* ─── Page-specific main backgrounds (eliminates white gap below sticky nav) */

.page-template-page-standardy #main-content { background: var(--color-bg-alt); }
.page-template-page-o-nas #main-content     { background: var(--color-bg-alt); }
.page-template-page-cennik #main-content    { background: var(--color-bg-alt); }

/* ─── Legal Document Card ────────────────────────────────────────────────── */

.legal-document-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
  padding: 48px 56px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-body);
  margin-bottom: var(--space-xl);
}

.legal-document-card h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--color-primary);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(47,93,80,.12);
  line-height: 1.3;
}

.legal-document-card h2:first-child { margin-top: 0; }
.legal-document-card > :first-child { margin-top: 0; }

.legal-document-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-document-card p {
  margin-bottom: var(--space-md);
}

.legal-document-card p:last-child { margin-bottom: 0; }

.legal-document-card ul,
.legal-document-card ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-document-card ul { list-style: disc; }
.legal-document-card ol { list-style: decimal; }

.legal-document-card li { line-height: 1.7; }

.legal-document-card ul li::marker,
.legal-document-card ol li::marker {
  color: var(--color-primary);
}

.legal-document-card strong {
  font-weight: 600;
  color: var(--color-text-h);
}

.legal-document-card a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Przycisk wewnątrz karty dokumentu — nie dziedziczy stylu linka */
.legal-document-card .btn {
  text-decoration: none;
}
.legal-document-card .btn--primary {
  color: #fff;
}
.legal-document-card .btn--primary:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .legal-document-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .legal-document-card { padding: 24px 16px; border-radius: 0; box-shadow: none; }
}

/* Download bar */
.som-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid rgba(47,93,80,.15);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.som-download__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-h);
  margin: 0 0 2px;
}

.som-download__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ─── 404 Error Page ──────────────────────────────────────────────────────── */

.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 80px var(--space-lg);
  text-align: center;
}

.error-404-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.error-404-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: #EA66DF;
  letter-spacing: -2px;
}

.error-404-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.25;
}

.error-404-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 520px;
}
