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

/* Skip-to-content (visible only on focus) */
.skip-to-content {
  position: absolute; top: -9999px; left: -9999px; z-index: 9999;
  padding: 1rem; background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 2px; font-weight: 500;
}

:root {
  --cream:   #FAF8F3;
  --white:   #FFFFFF;
  --ink:     #1A1C1E;
  --mid:     #4A4E54;
  --light:   #63676F;   /* muted labels — AA on cream/section (was #8A8F97, ~3:1) */
  --accent:  #2A5F8F;
  --accent2: #4A9BAF;       /* decorative: hover borders, focus rings, footer hover */
  --accent2-ink: #2A6E7E;   /* same teal, darkened for small text on light bg (AA) */
  --gold:    #C8A96E;
  --border:  #E4E0D8;
  --section: #F2F0EB;
  --font-display: 'Hanken Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* No visual italics anywhere — <em> keeps its semantics, renders upright */
em { font-style: normal; }

.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 44px; height: 44px;
  background: var(--accent); border: none; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), background 0.2s, transform 0.15s var(--ease-out);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:active { transform: scale(0.93); }
.scroll-top i { font-size: 16px; color: #fff; line-height: 1; }
.scroll-top svg { color: #fff; }

.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 199;
  background: var(--accent); color: #fff;
  align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.03em; text-decoration: none;
  transition: transform 0.15s var(--ease-out), background 0.2s;
}
.mobile-call-bar:active { transform: scale(0.98); background: #1d4d77; }
.mobile-call-bar i { font-size: 15px; color: #fff; flex-shrink: 0; line-height: 1; }
@media (max-width: 640px) {
  .mobile-call-bar { display: flex; }
  .scroll-top { bottom: calc(var(--call-bar-h, 3.4rem) + 1rem); }
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(250,248,243,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.nav-logo {
  font-family: var(--font-display);
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.22em; line-height: 1;
}
.logo-kicker {
  font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--light);
}
.logo-name {
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-logo .logo-kicker { color: rgba(255,255,255,0.45); }
.footer-logo .logo-name { color: var(--white); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  transition: background 0.2s, transform 0.15s var(--ease-out) !important;
}
.nav-cta:active { transform: scale(0.96); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--ink); transition: transform 0.25s var(--ease-in-out), opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(250,248,243,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5vw 2rem;
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease-drawer);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-drawer ul li { border-bottom: 1px solid var(--border); }
.nav-drawer ul li:last-child { border-bottom: none; }
.nav-drawer ul a {
  display: block; padding: 1rem 0;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
.nav-drawer ul a.drawer-cta {
  color: var(--accent); font-weight: 500;
}

/* Back link on subpages (visible at all widths) */
.nav-back {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  padding: 0 1rem; border: 1px solid var(--border); border-radius: 2px;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease-out);
}
.nav-back:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav-back:hover { border-color: var(--accent); background: rgba(42,95,143,0.05); }
}

.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: flex-start;
  padding-top: 68px;
  background: linear-gradient(180deg, rgba(74, 155, 175, 0.12) 0%, rgba(74, 155, 175, 0.03) 100%);
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 6rem 5vw;
  max-width: 780px; text-align: left;
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent2-ink); margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.4rem;
  max-width: 17ch; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1rem; color: var(--mid);
  max-width: 46ch; margin-bottom: 2.25rem; line-height: 1.55;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: #fff;
  padding: 0.85rem 2rem;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.05em;
  border: none; border-radius: 2px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.25s, transform 0.15s var(--ease-out);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.btn-outline {
  background: transparent; color: var(--accent);
  padding: 0.85rem 2rem;
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.05em;
  border: 1.5px solid var(--accent); border-radius: 2px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.25s, color 0.25s, transform 0.15s var(--ease-out);
}
.btn-outline:active { transform: scale(0.97); }
.btn-outline:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }

.nfz-banner {
  background: var(--accent); padding: 1.1rem 5vw;
  display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
@media (min-width: 900px) {
  .nfz-banner { flex-wrap: nowrap; }
}
.nfz-logo {
  height: clamp(40px, 6vw, 64px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  background: white;
  padding: 0.5rem;
  border-radius: 2px;
}
.nfz-text {
  color: rgba(255,255,255,0.9); font-size: 0.88rem; line-height: 1.6;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.nfz-text p { margin: 0; }
.nfz-text strong { color: #fff; }

section { padding: 6rem 5vw; }

/* Keep content readable on wide screens */
.services-header,
.services-grid,
.features-grid,
.godziny-inner,
.contact-grid,
#cechy > .section-tag,
#cechy > .section-title,
#kontakt > .section-tag,
#kontakt > .section-title {
  max-width: 1180px;
  margin-inline: auto;
}
.section-tag {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent2-ink); margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 0.75rem;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub {
  font-size: 0.92rem; color: var(--mid); line-height: 1.75;
}

#uslugi { background: var(--section); }
.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}
.service-card {
  background: var(--cream); padding: 2rem;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.35s ease;
}
.service-icon {
  width: 44px; height: 44px; background: rgba(42,95,143,0.08);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.2rem;
}
.service-icon i { font-size: 20px; color: var(--accent); line-height: 1; }
.service-name {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.45rem;
}
.service-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.65; }

#onas { background: var(--cream); }
.onas-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 700px; margin: 0 auto;
}
.about-content { display: flex; flex-direction: column; gap: 1.4rem; }
.about-quote {
  font-family: var(--font-display); font-size: 1.2rem;
  font-style: normal; font-weight: 500; color: var(--accent);
  line-height: 1.5; border-left: 2px solid var(--gold); padding-left: 1.25rem;
  text-align: left;
}
.about-text { font-size: 0.91rem; color: var(--mid); line-height: 1.8; }
.about-team {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
}
.about-doctor {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.25rem 1rem;
  background: var(--section); border-radius: 2px;
  border-top: 2px solid var(--border);
  transition: border-top-color 0.25s;
}
.about-doctor.lead { border-top-color: var(--accent); }
.about-doctor-avatar {
  width: 52px; height: 52px;
  background: rgba(42,95,143,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.about-doctor-avatar i { font-size: 1.3rem; line-height: 1; }
.about-doctor.placeholder .about-doctor-avatar {
  background: rgba(138,143,151,0.1); color: var(--light);
}
.about-doctor-name { font-weight: 500; font-size: 0.82rem; color: var(--ink); line-height: 1.4; }
.about-doctor.placeholder .about-doctor-name { color: var(--light); font-style: normal; font-weight: 400; }
.about-doctor-title { font-size: 0.72rem; color: var(--light); margin-top: 0.25rem; letter-spacing: 0.03em; }

#cechy { background: var(--section); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; margin-top: 3rem;
  background: var(--border);
  border: 1.5px solid var(--border);
}
.feature-item {
  padding: 2.25rem 2rem; background: var(--white); 
  position: relative; overflow: hidden; transition: background 0.3s;
}
.feature-item::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.35s ease;
}
.feature-icon {
  width: 40px; height: 40px; background: rgba(42,95,143,0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon i { font-size: 17px; color: var(--accent); line-height: 1; }
.feature-title { font-weight: 500; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.65; }

#godziny { background: var(--section); }
.godziny-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.9rem 0; font-size: 0.88rem; }
.hours-table td:first-child { color: var(--mid); }
.hours-table td:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.hours-table tr.closed td { color: var(--light); }
.hours-table tr.closed td:last-child { font-weight: 400; }

.registration-card {
  background: var(--cream); padding: 2.5rem;
  border-radius: 2px; border-top: 3px solid var(--accent);
}
.reg-title {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.5rem;
}
.reg-sub { font-size: 0.85rem; color: var(--mid); margin-bottom: 2rem; line-height: 1.7; }
.reg-option {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.reg-option:last-of-type { border-bottom: none; }
.reg-icon {
  width: 38px; height: 38px; background: rgba(42,95,143,0.08);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.reg-icon i { font-size: 15px; color: var(--accent); line-height: 1; }
.reg-option-title { font-weight: 500; font-size: 0.88rem; color: var(--ink); }
.reg-option-val { font-size: 0.85rem; color: var(--mid); margin-top: 0.15rem; }
.reg-option-val a { color: var(--accent); text-decoration: none; font-weight: 500; }

#kontakt { background: var(--cream); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 3rem; margin-top: 3rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: border-color 0.2s;
}
.contact-item-icon i { font-size: 16px; color: var(--accent); line-height: 1; }
.contact-item-label {
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--light);
}
.contact-item-val { font-size: 0.95rem; color: var(--ink); margin-top: 0.15rem; line-height: 1.5; }
.contact-item-val a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.map-frame {
  background: var(--white); border-radius: 2px;
  overflow: hidden; border: 1px solid var(--border); min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: none; display: block; }

/* Map consent placeholder (loads Google Maps only on request) */
.map-consent {
  min-height: 378px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(0deg,  transparent 0 23px, rgba(42,95,143,0.045) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(42,95,143,0.045) 23px 24px),
    var(--section);
}
.map-consent i { font-size: 26px; color: var(--accent); }
.map-consent-text { font-size: 0.8rem; color: var(--mid); max-width: 40ch; line-height: 1.65; }
.map-consent .btn-primary { cursor: pointer; }
.map-consent-link { font-size: 0.78rem; color: var(--accent); text-decoration: underline; }

.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 640px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 14px 44px -14px rgba(26,28,30,0.3);
  padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-text { flex: 1 1 15rem; font-size: 0.8rem; color: var(--mid); line-height: 1.6; }
.cookie-bar-text a { color: var(--accent); }
.cookie-bar-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-left: auto; }
.cookie-bar-actions .btn-primary,
.cookie-bar-actions .btn-outline {
  cursor: pointer; font-size: 0.8rem; padding: 0.75rem 1.6rem;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .cookie-bar { bottom: calc(var(--call-bar-h, 3.4rem) + 0.6rem); }
}

footer {
  background: var(--ink); padding: 3rem 5vw 2.5rem;
  display: flex; flex-direction: column; gap: 2rem;
}
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display); text-decoration: none;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.3em; line-height: 1;
}
.footer-logo .logo-kicker { font-size: 0.62rem; letter-spacing: 0.26em; }
.footer-logo .logo-name { font-size: 1.6rem; }
.footer-links {
  display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: color 0.2s;
}
.footer-base {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.4rem 1.5rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.09);
}
.footer-copy { margin: 0; font-size: 0.74rem; color: rgba(255,255,255,0.45); letter-spacing: 0.03em; }
.footer-credit { margin: 0; font-size: 0.72rem; color: rgba(255,255,255,0.38); letter-spacing: 0.03em; }
.footer-credit a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s;
}
@media (max-width: 640px) {
  footer { padding-bottom: max(2.5rem, calc(var(--call-bar-h, 3.4rem) + 1.25rem)); }
}
@media (max-width: 560px) {
  .footer-main { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
  .footer-logo { align-items: center; }
  .footer-base { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
}

.legal {
  max-width: 760px; margin: 0 auto; padding: calc(68px + 4rem) 5vw 5rem;
}
.legal h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 0.5rem;
}
.legal .legal-updated { font-size: 0.8rem; color: var(--light); margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); margin: 2.5rem 0 0.7rem;
}
.legal h3 {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 600;
  color: var(--ink); margin: 1.6rem 0 0.4rem;
}
.legal p, .legal li { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }
.legal p { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .legal-note {
  margin-top: 3rem; padding: 1.25rem 1.4rem; background: var(--section);
  border-left: 3px solid var(--gold); border-radius: 2px;
  font-size: 0.82rem; color: var(--mid); line-height: 1.7;
}
.legal-back {
  display: inline-block; margin-top: 2.5rem; font-size: 0.82rem;
  color: var(--accent); text-decoration: none; font-weight: 500;
}
.legal-back:hover { text-decoration: underline; }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* Respect motion preferences for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-top,
  .nav-hamburger span,
  .nav-drawer,
  .service-card::after,
  .about-doctor,
  .feature-item {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary {
    border: 2px solid CanvasText;
  }
  .btn-outline {
    border-width: 2px;
  }
  .service-card::after {
    background: CanvasText;
  }
  .hero-eyebrow::before,
  .section-tag::before {
    background: CanvasText;
  }
  a:focus-visible,
  button:focus-visible {
    outline: 3px solid;
  }
}

.skip-to-content:focus {
  top: 0;
  left: 0;
  z-index: 10000;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav-cta:hover { background: #1d4d77 !important; }
  .btn-primary:hover { background: #1d4d77; transform: translateY(-1px); }
  .btn-outline:hover { background: var(--accent); color: #fff; }
  .scroll-top:hover { background: #1d4d77; transform: translateY(-2px); }
  .service-card:hover { background: var(--white); box-shadow: 0 14px 34px -20px rgba(26,28,30,0.22); z-index: 1; }
  .service-card:hover::after { width: 100%; }
  .feature-item:hover { background: var(--white); box-shadow: 0 14px 34px -20px rgba(26,28,30,0.22); z-index: 1; }
  .feature-item:hover::after { width: 100%; }
  .about-doctor:hover { border-top-color: var(--accent2); }
  .contact-item:hover .contact-item-icon { border-color: var(--accent2); }
  .contact-item-val a:hover { color: var(--accent); }
  .reg-option-val a:hover { text-decoration: underline; }
  .footer-links a:hover { color: var(--accent2); }
  .footer-credit a:hover { color: #fff; }
}

@media (max-width: 900px) {
  .hero-content { padding: 4rem 6vw; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .nfz-banner { justify-content: center; }
  .nfz-logo { height: clamp(64px, 18vw, 88px); padding: 0.6rem; }
  .onas-inner { align-items: center; }
  .godziny-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .services-header { flex-direction: column; align-items: stretch; gap: 1rem; }

  .about-team { grid-template-columns: 1fr; }
  .about-doctor {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: 1.1rem; align-items: center; text-align: left; padding: 1.1rem 1.25rem;
  }
  .about-doctor-avatar { grid-row: 1 / span 2; margin-bottom: 0; }
  .about-doctor-name  { grid-column: 2; align-self: end; }
  .about-doctor-title { grid-column: 2; align-self: start; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-item {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: 1.1rem; align-items: start; padding: 1.5rem 1.75rem;
  }
  .feature-icon  { grid-row: 1 / span 2; margin-bottom: 0; align-self: start; }
  .feature-title { grid-column: 2; margin-bottom: 0.35rem; }
  .feature-desc  { grid-column: 2; }
}
@media (max-width: 899px) and (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 3rem 5vw 3rem; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}
