/* ============================================
   DR HAB. N. MED. MATEUSZ WINIARCZYK
   Mobile-First | WCAG AA | Modern Medical
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --navy: #0B1D3A;
  --navy-light: #132B50;
  --aqua: #2FA8CC;
  --aqua-dark: #1E8FAF;       /* tła i hover stany */
  --aqua-text: #146A85;       /* tekst na białym - WCAG AA */
  --aqua-bg: #E8F6FA;
  --gray-100: #F1F3F7;
  --gray-200: #E2E6ED;
  --gray-400: #8B95A5;
  --gray-500: #5C6878;        /* labelki/prefiksy - WCAG AA */
  --gray-600: #4A5568;
  --gray-800: #1A202C;
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 8px 32px rgba(11, 29, 58, 0.10);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--aqua-text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--navy);
}

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

/* --- SKIP LINK (a11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  color: var(--white);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--aqua);
  border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
}

.btn--primary {
  background: var(--aqua);
  color: var(--white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--aqua-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
  min-height: 56px;
  border-radius: 14px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.header__name {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header__surname {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__phone,
.header__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--navy);
  transition: all var(--transition);
}

.header__phone:hover,
.header__phone:focus-visible {
  background: var(--gray-100);
  color: var(--aqua-text);
}

.header__cta-icon {
  background: var(--aqua-bg);
  color: var(--aqua-text);
}

.header__cta-icon:hover,
.header__cta-icon:focus-visible {
  background: var(--aqua);
  color: var(--white);
}

/* Burger */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.header__burger:hover,
.header__burger:focus-visible {
  background: var(--gray-100);
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger.is-active .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav */
.nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--white);
  border-top: 1px solid transparent;
}

.nav.is-open {
  max-height: 320px;
  border-top-color: var(--gray-200);
}

.nav__list {
  list-style: none;
  padding: 0.5rem 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 0.875rem 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  border-radius: 10px;
  min-height: 48px;
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--gray-100);
  color: var(--aqua-text);
}

.nav__link[aria-current="page"] {
  color: var(--aqua-text);
  background: var(--aqua-bg);
}

.nav__link--cta {
  background: var(--aqua);
  color: var(--white);
  justify-content: center;
  margin-top: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--aqua-dark);
  color: var(--white);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 64px;
  background: linear-gradient(175deg, var(--off-white) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

.hero__photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero__photo {
  width: 260px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-lg);
}

.hero__content {
  text-align: center;
  padding-bottom: 2.5rem;
}

.hero__title-prefix {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--aqua-text);
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1rem;
}

.stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stats__number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stats__number {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--aqua);
}

.stats__plus {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--aqua);
}

.stats__icon {
  stroke: var(--aqua);
  margin-bottom: 0.25rem;
}

.stats__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 3.5rem 1rem;
  background: var(--white);
}

.about__inner {
  max-width: 800px;
  margin: 0 auto;
}

.about__text p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

.about__text strong {
  color: var(--navy);
}

.about__expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.about__expandable.is-expanded {
  max-height: 1200px;
}

.about__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--aqua-text);
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
  transition: color var(--transition);
}

.about__toggle:hover,
.about__toggle:focus-visible {
  color: var(--navy);
}

.about__toggle svg {
  transition: transform var(--transition);
}

.about__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 3.5rem 1rem;
  background: var(--off-white);
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.service-card:hover,
.service-card:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--aqua);
  color: inherit;
}

.service-card:hover .service-card__cta,
.service-card:focus-visible .service-card__cta {
  color: var(--aqua-text);
  gap: 0.5rem;
}

.service-card__icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--aqua-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  stroke: var(--aqua-text);
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aqua-text);
  transition: gap var(--transition), color var(--transition);
}

.services__footer {
  text-align: center;
  margin-top: 2rem;
}

.services__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--aqua-text);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  min-height: 44px;
  transition: gap var(--transition), background var(--transition);
}

.services__all-link:hover,
.services__all-link:focus-visible {
  background: var(--aqua-bg);
  gap: 0.7rem;
  color: var(--aqua-text);
}

/* ============================================
   CONTACT / LOCATIONS
   ============================================ */
.contact {
  padding: 3.5rem 1rem;
  background: var(--white);
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.location-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.location-card__sub + .location-card__sub {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gray-200);
}

.location-card__sub .location-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

.location-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--aqua);
}

.location-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  margin-right: 0.35rem;
}

.location-card__badge--nfz {
  background: #D4EDDA;
  color: #155724;
}

.location-card__badge--private {
  background: var(--aqua-bg);
  color: var(--aqua-text);
}

.location-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.location-card__address,
.location-card__phone,
.location-card__email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--gray-600);
}

.location-card__address svg,
.location-card__phone svg,
.location-card__email svg {
  flex-shrink: 0;
  stroke: var(--aqua-text);
}

.location-card__address a,
.location-card__phone a,
.location-card__email a {
  color: var(--gray-600);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  word-break: break-word;
}

.location-card__phone a,
.location-card__email a {
  font-weight: 600;
  color: var(--navy);
}

.location-card__phone a:hover,
.location-card__phone a:focus-visible,
.location-card__email a:hover,
.location-card__email a:focus-visible {
  color: var(--aqua-text);
}

.location-card__address a {
  text-decoration: underline;
  text-decoration-color: var(--gray-200);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.location-card__address a:hover,
.location-card__address a:focus-visible {
  color: var(--aqua-text);
  text-decoration-color: var(--aqua);
}

/* Portals */
.contact__portals {
  text-align: center;
}

.contact__portals-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact__portals-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.portal-btn--zl {
  background: var(--aqua);
  color: var(--white);
}

.portal-btn--zl:hover,
.portal-btn--zl:focus-visible {
  background: var(--aqua-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.portal-btn--lbk {
  background: var(--navy);
  color: var(--white);
}

.portal-btn--lbk:hover,
.portal-btn--lbk:focus-visible {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   SUBPAGE: ZABIEGI
   ============================================ */

/* Page hero */
.page-hero {
  padding-top: calc(64px + 2rem);
  padding-bottom: 2.5rem;
  background: linear-gradient(175deg, var(--off-white) 0%, var(--white) 100%);
}

.page-hero__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero__lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 65ch;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--gray-400);
}

.breadcrumb__item a {
  color: var(--gray-600);
  font-weight: 500;
}

.breadcrumb__item a:hover,
.breadcrumb__item a:focus-visible {
  color: var(--aqua-text);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* Table of contents */
.toc {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 1rem;
}

.toc__inner {
  max-width: 800px;
  margin: 0 auto;
}

.toc__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.toc__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  font-weight: 500;
  color: var(--navy);
  min-height: 44px;
  transition: background var(--transition), color var(--transition);
}

.toc__link:hover,
.toc__link:focus-visible {
  background: var(--aqua-bg);
  color: var(--aqua-text);
}

.toc__num {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--aqua-text);
  min-width: 1.5rem;
}

/* Procedures wrapper */
.procedures {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
}

.procedure {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
  scroll-margin-top: 80px;
}

.procedure:last-child {
  border-bottom: none;
}

.procedure__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.procedure__number {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aqua);
  flex-shrink: 0;
}

.procedure__heading {
  padding-top: 0.25rem;
}

.procedure__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.procedure__subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--aqua-text);
}

.procedure__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  max-width: 65ch;
}

/* Info blocks */
.info-block {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--off-white);
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--gray-200);
}

.info-block--when {
  border-left-color: var(--aqua);
}

.info-block--how {
  border-left-color: var(--navy);
}

.info-block--benefits {
  border-left-color: #38A169;
  background: #F0FAF4;
}

.info-block__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.info-block--when .info-block__icon { color: var(--aqua-dark); }
.info-block--how .info-block__icon { color: var(--navy); }
.info-block--benefits .info-block__icon { color: #2F855A; }

.info-block__icon svg {
  width: 20px;
  height: 20px;
}

.info-block__body {
  flex: 1;
  min-width: 0;
}

.info-block__title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.info-block__body p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.97rem;
}

.info-block__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-block__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--gray-600);
  line-height: 1.55;
  font-size: 0.97rem;
}

.info-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.info-block--when .info-block__list li::before { background: var(--aqua); opacity: 1; }
.info-block--benefits .info-block__list li::before { background: #38A169; opacity: 1; }

/* Methods list (dl) */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.method-list dt {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.method-list dd {
  margin-left: 0;
  color: var(--gray-600);
  line-height: 1.55;
  font-size: 0.97rem;
}

/* Tip card */
.tip-card {
  max-width: 800px;
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
}

.tip-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--aqua-bg);
  border: 1px solid #C9E8F1;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.tip-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua-text);
}

.tip-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tip-card p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.97rem;
}

/* CTA block */
.cta-block {
  padding: 3rem 1rem;
  background: var(--navy);
  color: var(--white);
  margin-top: 3rem;
  text-align: center;
}

.cta-block__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-block__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-block__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--off-white);
  padding: 3rem 1rem;
  border-top: 1px solid var(--gray-200);
}

.faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-text);
  margin-bottom: 0.5rem;
}

.faq__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq__lead {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
  border-color: var(--aqua);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  user-select: none;
  transition: background var(--transition);
}

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

.faq-item__question:hover,
.faq-item__question:focus-visible {
  background: var(--off-white);
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--aqua-text);
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-size: 0.97rem;
}

.faq-item__answer p {
  margin-bottom: 0.75rem;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer strong {
  color: var(--navy);
}

.faq-item__defs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.faq-item__defs dt {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.faq-item__defs dd {
  margin-left: 0;
}

.faq__footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.faq__contact-link {
  font-weight: 600;
  color: var(--aqua-text);
  margin-left: 0.25rem;
  white-space: nowrap;
}

.faq__contact-link:hover,
.faq__contact-link:focus-visible {
  color: var(--navy);
}

/* ============================================
   NEXT STEP CARD (link to prep)
   ============================================ */
.next-step {
  display: block;
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1rem;
  text-decoration: none;
  color: inherit;
}

.next-step__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--aqua);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.next-step:hover .next-step__inner,
.next-step:focus-visible .next-step__inner {
  box-shadow: var(--shadow-md);
  border-color: var(--aqua);
  transform: translateY(-2px);
}

.next-step__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--aqua-bg);
  color: var(--aqua-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.next-step__body {
  flex: 1;
  min-width: 0;
}

.next-step__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-text);
  margin-bottom: 0.25rem;
}

.next-step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.next-step__text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.next-step__arrow {
  flex-shrink: 0;
  color: var(--aqua-text);
  transition: transform var(--transition);
}

.next-step:hover .next-step__arrow,
.next-step:focus-visible .next-step__arrow {
  transform: translateX(4px);
}

/* ============================================
   STEPS (przygotowanie)
   ============================================ */
.steps {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
  list-style: none;
  position: relative;
}

.step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--aqua) 0%, var(--gray-200) 100%);
}

.step__marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--gray-200);
  z-index: 1;
  scroll-margin-top: 80px;
}

.step:target .step__marker {
  background: var(--navy);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--aqua);
}

.step__num {
  line-height: 1;
}

.step__body {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.step__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua-text);
  margin-bottom: 0.4rem;
}

.step__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.step__body p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  max-width: 65ch;
}

.step__body p:last-child {
  margin-bottom: 0;
}

.step__body strong {
  color: var(--navy);
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--gray-600);
  line-height: 1.55;
  font-size: 0.97rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--aqua-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146A85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Callout (inside step) */
.callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.callout--info {
  background: var(--aqua-bg);
  border-left: 3px solid var(--aqua);
  color: var(--gray-800);
}

.callout__icon {
  flex-shrink: 0;
  color: var(--aqua-text);
  margin-top: 2px;
}

.callout p {
  margin: 0;
  color: var(--gray-800);
}

.callout strong {
  color: var(--navy);
}

/* Alert */
.alert {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.alert__inner {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #F5C57A;
  background: #FFF8EB;
  box-shadow: var(--shadow-sm);
}

.alert__icon {
  flex-shrink: 0;
  color: #B7791F;
}

.alert__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #744210;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.alert__body p {
  color: #5C3F0E;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
}

.alert__body p:last-child {
  margin-bottom: 0;
}

.alert__body strong {
  color: #744210;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DESKTOP (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }

  .header__inner {
    height: 72px;
    padding: 0 2rem;
  }

  .header__surname {
    font-size: 1.5rem;
  }

  /* Desktop nav: inline */
  .header__burger {
    display: none;
  }

  .nav {
    max-height: none;
    overflow: visible;
    position: static;
    border-top: none;
    background: transparent;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .nav__link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .nav__link--cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
  }

  .header__actions {
    display: none;
  }

  /* Inline header layout */
  .header__inner {
    display: flex;
    justify-content: space-between;
  }

  .header > .nav {
    position: absolute;
    right: 2rem;
    top: 0;
    height: 72px;
    display: flex;
    align-items: center;
  }

  /* Hero */
  .hero {
    padding-top: 72px;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 2rem;
    min-height: calc(85vh - 72px);
  }

  .hero__photo-wrap {
    margin-bottom: 0;
  }

  .hero__photo {
    width: 340px;
    border-radius: var(--radius-lg);
  }

  .hero__content {
    text-align: left;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: 3.5rem;
  }

  .hero__tagline {
    margin-left: 0;
  }

  /* Stats */
  .stats__inner {
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem 2rem;
  }

  /* About */
  .about {
    padding: 5rem 2rem;
  }

  /* Reveal all text on desktop */
  .about__expandable {
    max-height: none;
  }

  .about__toggle {
    display: none;
  }

  /* Services */
  .services {
    padding: 5rem 2rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Contact */
  .contact {
    padding: 5rem 2rem;
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact__portals-grid {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  /* Subpage desktop */
  .page-hero {
    padding-top: calc(72px + 3rem);
    padding-bottom: 3.5rem;
  }

  .page-hero__inner {
    padding: 0 2rem;
  }

  .page-hero__title {
    font-size: 2.75rem;
  }

  .toc {
    padding: 2rem;
  }

  .toc__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .procedures {
    padding: 3.5rem 2rem 0;
  }

  .procedure {
    padding: 3rem 0;
  }

  .procedure__number {
    font-size: 3.5rem;
  }

  .procedure__title {
    font-size: 2rem;
  }

  .info-block {
    padding: 1.5rem 1.75rem;
  }

  .tip-card {
    padding: 0 2rem;
  }

  .tip-card__inner {
    padding: 2rem 2.25rem;
  }

  .cta-block {
    padding: 4rem 2rem;
  }

  .cta-block__title {
    font-size: 2.25rem;
  }

  /* FAQ desktop */
  .faq {
    padding: 4rem 2rem;
  }

  .faq__title {
    font-size: 2rem;
  }

  .faq-item__question {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
  }

  .faq-item__answer {
    padding: 0 1.5rem 1.5rem;
  }

  /* Steps desktop */
  .steps {
    padding: 3.5rem 2rem 0;
  }

  .step {
    gap: 1.5rem;
    padding-bottom: 3rem;
  }

  .step:not(:last-child)::before {
    left: 27px;
    top: 56px;
  }

  .step__marker {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .step__title {
    font-size: 1.6rem;
  }

  /* Alert desktop */
  .alert {
    padding: 0 2rem;
  }

  .alert__inner {
    padding: 1.75rem 2rem;
  }
}

/* ============================================
   LARGE DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .hero__photo {
    width: 400px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
