/*
Theme Name: Adent Theme
Theme URI: https://adentsiedlce.pl/
Author: JR
Author URI: https://jakubradomyski.netlify.app/
Description: Motyw przychodni stomatologicznej ADENT Siedlce, przekonwertowany ze statycznej strony HTML.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adent-theme
*/

/* ==========================================================================
   ADENT Siedlce — arkusz stylów
   Minimalistyczny, jasny design; akcent #2869bf; Montserrat.
   ========================================================================== */

:root {
  --blue: #2869bf;
  --blue-dark: #1f4f8a;
  --blue-deep: #17395f;
  --blue-soft: #eaf1fb;
  --blue-tint: #f4f8fd;
  --ink: #1b1b1b;
  --ink-2: #3a3f47;
  --muted: #667085;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(23, 57, 95, 0.08);
  --shadow-lg: 0 24px 60px rgba(23, 57, 95, 0.14);
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px; /* wysokość przyklejonego nagłówka przy linkach #kotwica */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .25s var(--ease);
}

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-2); }

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

.container--narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.section__head {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head h2 { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Przyciski
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(40, 105, 191, .28);
}

.btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(40, 105, 191, .34);
}

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

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--blue);
}

.btn--light:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateY(-2px);
}

.btn--sm { padding: .7rem 1.2rem; font-size: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .92rem;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Nagłówek / nawigacja
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(23, 57, 95, .06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
}

.brand svg { width: 38px; height: 38px; flex: none; }

.brand__name {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .14em;
  color: var(--blue);
  line-height: 1;
}

.brand__sub {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}

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

.nav__link {
  position: relative;
  display: inline-block;
  padding: .55rem .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .25s, background .25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav__cta { margin-left: .6rem; }

/* Menu rozwijane „Zabiegi” */
.nav__item { position: relative; }

.nav__item-row {
  display: inline-flex;
  align-items: center;
}

.nav__item--has-sub .nav__link { padding-right: .55rem; }

.nav__sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -.25rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .25s, color .25s, transform .3s var(--ease);
}

.nav__sub-toggle svg { width: 16px; height: 16px; }
.nav__sub-toggle:hover { background: var(--blue-soft); color: var(--blue); }
.nav__item--has-sub.is-open .nav__sub-toggle { transform: rotate(180deg); color: var(--blue); }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: .7rem;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}

.nav__sub-panel {
  min-width: 300px;
  padding: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: .1rem;
}

.nav__item--has-sub.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (hover: hover) and (min-width: 901px) {
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

.nav__sub-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .65rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}

.nav__sub-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 1.5px solid var(--blue);
  flex: none;
  transition: background .2s;
}

.nav__sub-link:hover::before,
.nav__sub-link:focus-visible::before { background: var(--blue); }
.nav__sub-link--all::before { display: none; }

.nav__sub-link svg { width: 16px; height: 16px; margin-left: auto; }
.nav__sub-link:hover,
.nav__sub-link:focus-visible { background: var(--blue-soft); color: var(--blue); }

.nav__sub-link--all {
  margin-top: .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  color: var(--blue);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open .nav-toggle .icon-menu { display: none; }

/* --------------------------------------------------------------------------
   Hero (strona główna)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(40, 105, 191, .10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--blue-tint) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero .lead { margin-bottom: 2rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.6rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
}

.trust {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.trust strong {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.trust span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.hero__card {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  background: #fff;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 300px;
}

.hero__card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.hero__card .ico svg { width: 22px; height: 22px; }
.hero__card strong { display: block; font-size: .9rem; }
.hero__card span { font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Karty usług
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: var(--ink);
}

.service-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.service-card:hover .service-card__media img { transform: scale(1.05); }

.service-card__body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  margin-bottom: .5rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  font-size: .93rem;
  margin-bottom: 1rem;
}

.service-card ul {
  margin-bottom: 1.3rem;
  display: grid;
  gap: .35rem;
}

.service-card li {
  font-size: .88rem;
  color: var(--ink-2);
  padding-left: 1.2rem;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.service-card .link-arrow { margin-top: auto; }

/* Karta CTA w siatce usług */
.service-card--cta {
  grid-column: span 2;
  justify-content: center;
  background: linear-gradient(160deg, var(--blue-deep), var(--blue));
  border: 0;
  color: #fff;
  padding: 2rem 1.8rem;
}

.service-card--cta:hover { color: #fff; }
.service-card--cta h3, .service-card--cta p { color: #fff; }
.service-card--cta p { opacity: .85; }
.service-card--cta .service-card__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.service-card--cta .service-card__ico svg { width: 26px; height: 26px; }
.service-card--cta .link-arrow { color: #fff; margin-top: .4rem; }

/* Karta wąska (lista w podstronach) */
.service-mini {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: .92rem;
  transition: background .25s, color .25s;
}

.service-mini img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.service-mini:hover,
.service-mini.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Sekcja O nas
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.about__media .about__badge {
  position: absolute;
  right: -1rem;
  top: -1rem;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 14px 30px rgba(40, 105, 191, .35);
}

.about__badge strong { font-size: 1.7rem; font-weight: 700; display: block; }
.about__badge span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.about__text p + p { margin-top: 1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.stat {
  padding: 1.2rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.1;
}

.stat span { font-size: .8rem; color: var(--muted); }

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

.doctor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.doctor__avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .05em;
}

.doctor h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.doctor p { color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------------------
   Cechy / wartości
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.8rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature__ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.feature p { font-size: .9rem; color: var(--muted); }
.feature__list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; }
.feature__list li { position: relative; padding-left: 1.1rem; font-size: .86rem; color: var(--ink-2); }
.feature__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* --------------------------------------------------------------------------
   Galeria + lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-soft);
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 57, 95, .35));
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}

.gallery__item:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 30, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}

.lightbox[hidden] { display: none; }
.lightbox.fade-out { animation: fadeOut .3s both; }

.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox__btn {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s;
}

.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  letter-spacing: .1em;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOut { from { opacity: 1 } to { opacity: 0 } }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.contact-card__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
}

.contact-card__ico svg { width: 20px; height: 20px; }

.contact-card h3 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .45rem;
}

.contact-card a,
.contact-card p {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1.5;
}

.contact-card a:hover { color: var(--blue); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; font-weight: 400; }

.contact-col { display: grid; gap: 1rem; align-content: start; }

.parking {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.parking:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }

.parking img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.parking:hover img { transform: scale(1.04); }

.parking__caption {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.parking__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: none;
}

.parking__ico svg { width: 20px; height: 20px; }
.parking__caption strong { display: block; font-size: .95rem; font-weight: 600; }
.parking__caption span { display: block; font-size: .8rem; color: var(--muted); }

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

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  filter: saturate(.85);
}
.map__link { font-size: .85rem; font-weight: 500; color: var(--blue); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}

/* treść nad ozdobnym kołem, żeby przyciski dało się kliknąć */
.cta > * { position: relative; }

.cta h2, .cta p { color: #fff; }
.cta h2 { margin-bottom: .6rem; }
.cta p { opacity: .85; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Podstrony — nagłówek strony
   -------------------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(40, 105, 191, .10), transparent 60%),
    linear-gradient(180deg, #fff, var(--blue-tint));
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero .lead { margin-bottom: 1.6rem; }

.page-hero__media img {
  width: 100%;
  aspect-ratio: 5 / 3.6;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.page-hero--simple { text-align: center; }
.page-hero--simple .breadcrumbs { justify-content: center; }
.page-hero--simple .lead { margin-inline: auto; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* --------------------------------------------------------------------------
   Podstrony — układ treść + sidebar
   -------------------------------------------------------------------------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.article > * + * { margin-top: 1.2rem; }
.article h2 { margin-top: 3rem; margin-bottom: .6rem; font-size: 1.7rem; }
.article h2:first-child { margin-top: 0; }
.article p { font-size: 1rem; }

.check-list {
  display: grid;
  gap: .8rem;
  margin-top: 1.4rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .8rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .3s, transform .3s var(--ease);
}

.check-list li:hover { border-color: var(--blue); transform: translateX(4px); }

.check-list .tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-top: .1rem;
}

.check-list .tick svg { width: 14px; height: 14px; }
.check-list strong { display: block; font-size: .98rem; font-weight: 600; }
.check-list span { font-size: .9rem; color: var(--muted); }

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: 1.4rem;
  position: relative;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  padding-bottom: 1.8rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 1;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23.5px;
  top: 48px;
  bottom: 0;
  width: 1.5px;
  background: var(--line);
  pointer-events: none;
}

.step h3 { font-size: 1.02rem; margin-bottom: .25rem; margin-top: .55rem; }
.step p { font-size: .92rem; color: var(--muted); }

.faq { display: grid; gap: .7rem; margin-top: 1.4rem; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.2rem;
  transition: border-color .3s;
}

.faq details[open] { border-color: var(--blue); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: .97rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
  line-height: 1;
  transition: transform .3s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 0 1.1rem;
  font-size: .93rem;
  color: var(--muted);
}

.note {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .93rem;
}

.note p { color: var(--ink-2); }

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.figure-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.2rem;
}

.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.side-card--blue {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue));
  color: #fff;
  border: 0;
}

.side-card--blue h3, .side-card--blue p { color: #fff; }
.side-card--blue p { opacity: .85; font-size: .9rem; }
.side-card h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.side-card .btn { width: 100%; margin-top: 1rem; }

.side-card__phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: .8rem;
}

.side-card__phone:hover { color: #fff; opacity: .9; }
.side-card small { display: block; opacity: .8; font-size: .78rem; }

.side-card ul { display: grid; gap: .15rem; margin: 0 -.5rem; }

.hours { display: grid; gap: .4rem; font-size: .92rem; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .35rem 0; }
.hours div:last-child { border-bottom: 0; }
.hours span:last-child { font-weight: 600; }

/* --------------------------------------------------------------------------
   Cennik
   -------------------------------------------------------------------------- */
.pdf-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.pdf-frame iframe, .pdf-frame object {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f1c2d;
  color: rgba(255, 255, 255, .72);
  padding: 4.5rem 0 2rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: rgba(255, 255, 255, .55); }
.site-footer p { color: rgba(255, 255, 255, .62); font-size: .88rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   Animacje wejścia
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--cta { grid-column: auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

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

  /* backdrop-filter tworzy blok zawierający dla position: fixed,
     przez co panel menu miałby wysokość nagłówka zamiast ekranu */
  body.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }

  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 78px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    gap: .3rem;
    z-index: 49;
    overflow-y: auto;
    animation: fadeIn .25s ease;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav__link { font-size: 1.1rem; padding: .9rem 1rem; border-radius: 12px; }
  body.nav-open .nav__cta { margin: 1rem 0 0; }

  /* „Zabiegi” jako akordeon */
  .nav__item-row { display: flex; align-items: stretch; gap: .3rem; }
  .nav__item--has-sub .nav__link { flex: 1; padding-right: 1rem; }
  .nav__sub-toggle {
    width: 52px;
    height: auto;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  .nav__sub-toggle svg { width: 20px; height: 20px; }
  .nav__item--has-sub.is-open .nav__sub-toggle { transform: none; background: var(--blue-soft); border-color: transparent; }
  .nav__item--has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }

  .nav__sub {
    display: none;
    position: static;
    padding: .3rem 0 .4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__item--has-sub.is-open .nav__sub { display: block; }
  .nav__sub-panel {
    min-width: 0;
    padding: .4rem;
    border-radius: 12px;
    box-shadow: none;
    background: var(--blue-tint);
    border-color: transparent;
  }
  .nav__sub-link { font-size: 1rem; padding: .7rem .8rem; }

  .hero__grid, .about-grid, .page-hero__grid, .cta { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__card { left: 1rem; bottom: 1rem; }
  .team { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .about__media .about__badge { right: .5rem; top: .5rem; width: 90px; height: 90px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .services-grid, .features, .footer-grid, .contact-cards, .sidebar, .figure-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .hero__actions .btn { width: 100%; }
  .site-header__inner { height: 68px; }
  body.nav-open .nav { inset: 68px 0 0 0; }
  .lightbox__prev, .lightbox__next { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .brand__name { font-size: 1.15rem; }
}

/* ==========================================================================
   WordPress – uzupełnienia motywu (bloki ADENT, cennik, dostępność)
   ========================================================================== */

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  z-index: 1000; top: .6rem; left: .6rem; padding: .8rem 1.2rem;
  background: #fff; color: var(--blue); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

/* Logo z biblioteki mediów */
.brand img { width: 44px; height: 44px; object-fit: contain; }

/* Kafelki – wariant 3 kolumny */
.features--3 { grid-template-columns: repeat(3, 1fr); }

/* Grupa przycisków */
.adent-buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.5rem; }
.adent-buttons--center { justify-content: center; }
.adent-buttons--left { justify-content: flex-start; }
.section__head + .adent-buttons { margin-top: 0; }

/* Zdjęcie + tekst */
.about__text .eyebrow + h2 { margin-top: .4rem; }
.about__text h2 + p { margin-top: 1rem; }
.about__text > .link-arrow { margin-top: 1.8rem; }
.about__media img { width: 100%; }

/* Lekarze */
.doctor__desc { margin-top: .6rem; font-size: .85rem; }
.doctor__avatar--photo { overflow: hidden; padding: 0; }
.doctor__avatar--photo img { width: 100%; height: 100%; object-fit: cover; }

/* Panel boczny */
.side-card__phone--small { font-size: 1.05rem; margin-top: .2rem; }
.side-card ul { display: grid; gap: .35rem; }

/* Godziny przyjęć */
.section .container--narrow { max-width: 520px; margin-inline: auto; }

/* Treść z edytora w artykule – odstępy jak w wersji statycznej */
.article > h2:not(:first-child) { margin-top: 2.2rem; }
.article > h2 + * { margin-top: .6rem; }
.article > p + p { margin-top: .75rem; }

/* Treść z edytora w artykule */
.article ul.wp-block-list, .article ol.wp-block-list { padding-left: 1.3rem; display: grid; gap: .4rem; }
.article ul.wp-block-list { list-style: disc; }
.article ol.wp-block-list { list-style: decimal; }
.article li::marker { color: var(--blue); }
.article a:not(.btn):not(.link-arrow) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article .wp-block-image img { border-radius: var(--radius); }
.article blockquote { border-left: 3px solid var(--blue); padding: .4rem 0 .4rem 1.2rem; font-style: italic; color: var(--ink-2); }
.article .faq { margin-top: 1rem; }

/* ---------- Cennik ---------- */
.price-list { display: grid; gap: 1.6rem; }
.price-tools {
  position: sticky; top: calc(var(--header-h, 76px) + .6rem); z-index: 5;
  display: grid; gap: .9rem;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.price-search {
  display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .75rem 1.1rem; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.price-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.price-search svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.price-search input {
  flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: .95rem; color: var(--ink);
}
.price-nav { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.price-nav::-webkit-scrollbar { display: none; }
.price-nav a {
  flex: none; padding: .45rem .9rem; border-radius: 999px;
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: .78rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s;
}
.price-nav a::first-letter { text-transform: uppercase; }
.price-nav a:hover { background: var(--blue); color: #fff; }
.price-list.is-searching .price-nav { display: none; }

.price-groups { columns: 2 420px; column-gap: 1.6rem; }
.price-group {
  break-inside: avoid; margin-bottom: 1.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1rem; scroll-margin-top: 200px;
}
.price-group h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 1.08rem; padding-bottom: .8rem; margin-bottom: .4rem;
  border-bottom: 2px solid var(--blue-soft);
}
.price-group h3::first-letter { text-transform: uppercase; }
.price-group__count {
  flex: none; font-size: .7rem; font-weight: 600; color: var(--blue);
  background: var(--blue-tint); border-radius: 999px; padding: .2rem .6rem;
}
.price-group li {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .55rem 0; font-size: .9rem; color: var(--ink-2);
  border-bottom: 1px solid var(--bg-soft);
}
.price-group li:last-child { border-bottom: 0; }
.price-group li[hidden] { display: none; }
.price-group[hidden] { display: none; }
.price-name::first-letter { text-transform: uppercase; }
.price-dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted #c9d2de; transform: translateY(-.25rem); }
.price-value { flex: none; font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.price-note, .price-empty { text-align: center; font-size: .88rem; color: var(--muted); max-width: 720px; margin-inline: auto; }
.price-pdf { text-align: center; }

/* Cennik – wariant 2: jedna lista pod sobą, podzielona na kategorie */
.price-list--list { max-width: 880px; margin-inline: auto; width: 100%; }
.price-list--list .price-groups {
  columns: auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.price-list--list .price-group {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  scroll-margin-top: 220px;
}
.price-list--list .price-group + .price-group { border-top: 1px solid var(--line); }
.price-list--list .price-group h3 {
  justify-content: flex-start; margin: 0; padding: 1.05rem 1.6rem;
  background: var(--blue-tint); border-bottom: 1px solid var(--line);
  font-size: 1.05rem; color: var(--blue-deep);
}
.price-list--list .price-group h3::before {
  content: ""; flex: none; width: 4px; height: 1.15em; border-radius: 4px; background: var(--blue);
}
.price-list--list .price-group__count { margin-left: auto; background: #fff; }
.price-list--list .price-group ul { margin: 0; padding: 0; list-style: none; }
.price-list--list .price-group li {
  padding: .85rem 1.6rem; font-size: .93rem; border-bottom: 1px solid var(--bg-soft);
  transition: background .15s;
}
.price-list--list .price-group li:hover { background: var(--bg-soft); }
.price-list--list .price-value { min-width: 7.5rem; text-align: right; }

@media (max-width: 900px) {
  .features--3 { grid-template-columns: repeat(2, 1fr); }
  .price-tools { position: static; }
}
@media (max-width: 640px) {
  .features--3 { grid-template-columns: 1fr; }
  .price-group { padding: 1.1rem 1.1rem .8rem; }
  .price-name { flex: 1; }
  .price-dots { display: none; }
  .price-list--list .price-group h3 { padding: .9rem 1.1rem; }
  .price-list--list .price-group li { padding: .75rem 1.1rem; }
  .price-list--list .price-value { min-width: 0; }
}

/* ==========================================================================
   Blog
   ========================================================================== */

/* Filtry kategorii */
.blog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.6rem; }
.blog-filters a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: .82rem; font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
}
.blog-filters a span { font-size: .7rem; color: var(--muted); font-weight: 600; }
.blog-filters a:hover { border-color: var(--blue); color: var(--blue); }
.blog-filters a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.blog-filters a.is-active span { color: rgba(255, 255, 255, .75); }

/* Karty wpisów */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; }
.post-card__placeholder svg { width: 64px; height: 64px; opacity: .35; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta, .post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem;
  font-size: .76rem; color: var(--muted); margin-bottom: .8rem;
}
.post-card__meta span, .post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-card__meta svg, .post-meta svg { width: 14px; height: 14px; }
.post-card__cat {
  color: var(--blue) !important; background: var(--blue-tint);
  padding: .2rem .65rem; border-radius: 999px; font-weight: 600; letter-spacing: .02em;
}
.post-card h3 { font-size: 1.12rem; line-height: 1.35; margin-bottom: .6rem; }
.post-card h3 a { color: var(--ink); }
.post-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover h3 a { color: var(--blue); }
.post-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.post-card .link-arrow { margin-top: auto; }
.post-card:hover .link-arrow svg { transform: translateX(4px); }

/* Wyróżniony (najnowszy) wpis */
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 380px; position: relative; }
.post-card--featured .post-card__media img { position: absolute; inset: 0; }
.post-card--featured .post-card__body { padding: clamp(1.6rem, 3.5vw, 3rem); justify-content: center; }
.post-card--featured h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.post-card--featured p { font-size: 1rem; }

.blog-empty { text-align: center; padding: 3rem 0; }
.blog-empty h2 { margin-bottom: .6rem; }

/* Paginacja */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .88rem;
}
.pagination .page-numbers svg { width: 18px; height: 18px; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* Pojedynczy wpis */
.post-hero h1, .post-hero .lead { max-width: 820px; }
.post-hero .eyebrow:hover { color: var(--blue-dark); }
.post-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.post-hero .post-meta { margin: 1.2rem 0 0; font-size: .85rem; }
.post-body { padding-top: clamp(2.5rem, 5vw, 4rem); }
.post-cover { margin-bottom: 2.4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-cover figcaption, .post-content figcaption { font-size: .8rem; color: var(--muted); padding: .6rem 0 0; text-align: center; }

.post-content { font-size: 1.05rem; }
.post-content > p:first-child { font-size: 1.12rem; color: var(--ink); }
.post-content h3 { margin-top: 2rem; font-size: 1.25rem; }
.post-content > h2 + *, .post-content > h3 + * { margin-top: .6rem; }
.post-content strong { color: var(--ink); }
.post-content .wp-block-image { margin: 2rem 0; }
.post-content .wp-block-image img { border-radius: var(--radius); }
.post-content .wp-block-quote, .post-content blockquote {
  margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--blue);
  background: var(--blue-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal; font-size: 1.1rem; color: var(--ink);
}
.post-content blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; color: var(--muted); font-style: normal; }
.post-content .wp-block-table { margin: 2rem 0; overflow-x: auto; }
.post-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.post-content th, .post-content td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.post-content th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post-content .wp-block-embed { margin: 2rem 0; }
.post-content .wp-block-embed iframe { width: 100%; border-radius: var(--radius); }
.post-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.post-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.post-content .aligncenter { margin-inline: auto; text-align: center; }

.post-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; width: 100%; }
.post-tags a { font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.post-tags a:hover { background: var(--blue-tint); color: var(--blue); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
.post-share a, .post-share button {
  font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.post-share a:hover, .post-share button:hover { border-color: var(--blue); color: var(--blue); }
.post-share button.is-copied { background: var(--blue); border-color: var(--blue); color: #fff; }
.post-back svg { transform: none; }
.post-back:hover svg { transform: translateX(-4px); }

/* Panel boczny – najnowsze wpisy */
.side-posts { display: grid; gap: .9rem; }
.side-posts a { display: flex; gap: .8rem; align-items: center; color: var(--ink); }
.side-posts img { width: 64px; height: 64px; flex: none; border-radius: 12px; object-fit: cover; }
.side-posts strong { display: block; font-size: .86rem; line-height: 1.35; font-weight: 600; transition: color .2s; }
.side-posts small { font-size: .74rem; color: var(--muted); }
.side-posts a:hover strong { color: var(--blue); }

@media (max-width: 1080px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .post-card--featured .post-card__media img { position: static; }
}
@media (max-width: 640px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.25rem; padding: 0 1.25rem .3rem; scrollbar-width: none; }
  .blog-filters a { flex: none; }
  .post-content .alignleft, .post-content .alignright { float: none; max-width: 100%; margin: 1.5rem 0; }
}
