:root {
  --green-900: #1B4332;
  --green-800: #2D6A4F;
  --green-700: #40916C;
  --green-600: #52B788;
  --green-500: #74C69D;
  --green-400: #95D5B2;
  --green-300: #B7E4C7;
  --green-200: #D8F3DC;
  --green-100: #EDF7F0;
  --sand-100: #FAF8F5;
  --sand-200: #F5F0EB;
  --text-dark: #1A1A1A;
  --text-body: #3D3D3D;
  --text-muted: #4A4A4A;
  --border-light: #E8E8E8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

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

html {
  scroll-padding-top: 88px;
  font-size: 100%;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 400;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover { color: var(--green-800); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green-700);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--green-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

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

[hidden] {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-600);
  flex-shrink: 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-subtitle.centered {
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-900);
  color: var(--white);
  border-color: var(--green-900);
}

.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-900);
}

.btn-outline:hover {
  background: var(--green-900);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--green-100);
  border-color: var(--green-100);
  color: var(--green-900);
  transform: translateY(-1px);
}

/* ========== NAVBAR ========== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

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

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  /* szerszy niż sekcje (1200px): pełna nazwa + 8 pozycji + przycisk potrzebują ~1180px treści */
  max-width: 1400px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 50%;
}

.navbar-brand .brand-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--green-900);
}

.navbar-nav a.active::after {
  width: 100%;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: var(--transition);
}

.navbar-nav a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--text-dark);
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== HERO ========== */

.hero {
  padding: 140px 0 96px;
  background: linear-gradient(135deg, var(--white) 0%, var(--green-100) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-200) 0%, transparent 70%);
  opacity: 0.5;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content .section-label {
  margin-bottom: 16px;
}

.hero-content h1 {
  margin-bottom: 24px;
  font-size: 2.75rem;
  line-height: 1.2;
}

.hero-content h1 span {
  display: block;
  color: var(--green-800);
  font-size: 0.72em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.hero-chips li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-100);
  border: 1px solid var(--green-300);
  padding: 6px 14px;
  border-radius: var(--radius-pill, 999px);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--green-200);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--green-600);
  border-radius: 50%;
  opacity: 0.15;
}

/* lewy dolny róg — prawy zajmuje .hero-decoration; kontekstem jest
   .hero-image (position: relative), nie .hero-image-wrapper (overflow: hidden) */
.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--green-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* ========== HELP SECTION ========== */

.help-section {
  background: var(--white);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  list-style: none;
  padding: 0;
}

.help-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--green-100);
}

.help-icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--green-600);
  border-radius: 50%;
  margin-top: 1px;
}

.help-icon::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 4px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.help-item span {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ========== AREA ROWS (obszary pracy — układ redakcyjny) ========== */

.area-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
}

.area-row:first-of-type {
  border-top: none;
  margin-top: 24px;
  padding-top: 48px;
}

.area-side-inner {
  position: sticky;
  top: 96px;
}

.area-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--green-600);
  display: block;
  margin-bottom: 12px;
}

.area-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 8px;
}

.area-side h3 {
  font-size: 1.5rem;
}

.area-lead {
  color: var(--text-body);
  font-size: 1rem;
  max-width: 45rem;
  margin-bottom: 14px;
}

.area-check-title {
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 4px;
}

.area-content .area-check-title {
  margin-bottom: 10px;
}

.area-list {
  list-style: none;
  columns: 2;
  column-gap: 48px;
  margin: 0 0 8px;
  padding: 0;
}

.area-list li {
  break-inside: avoid;
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--green-100);
}

.area-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
}

.area-close {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 45rem;
  margin-top: 24px;
}

/* ========== ABOUT QUOTE ========== */

.about-subheading {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--green-200);
}

.about-quote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--green-600);
  background: var(--green-100);
  border-radius: var(--radius-sm);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--green-900);
}

/* ========== INLINE CTA ========== */

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  border-radius: var(--radius-md);
}

.inline-cta p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
  max-width: 34rem;
}

/* ========== MOBILE STICKY CTA ========== */

.mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }

  .mobile-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-cta[hidden] {
    display: none;
  }
}

/* ========== BUSINESS SECTION (dla firm) ========== */

.business-section {
  background: var(--sand-100);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
  align-items: start;
}

.business-content {
  max-width: 45rem;
}

.business-aside .area-check-title:first-child {
  margin-top: 0;
}

/* w wąskiej kolumnie bocznej lista jest jednokolumnowa */
.business-list {
  columns: 1;
}

.business-content p {
  color: var(--text-body);
  font-size: 1rem;
  margin-bottom: 16px;
}

.business-note {
  max-width: 45rem;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.business-note a {
  text-decoration: underline;
}

/* ========== ABOUT ========== */

.about-section {
  background: var(--sand-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 96px;
  align-self: start;
}

.about-photo-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--green-200);
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ========== EDUCATION ========== */

.education-section {
  background: var(--white);
}

.education-list {
  list-style: none;
  max-width: 800px;
  margin-top: 48px;
}

/* rok tuż przy treści (flex-start), nie na prawej krawędzi listy —
   space-between odrywał datę od tytułu, do którego należy */
.education-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding-left: 36px;
  padding-bottom: 32px;
}

.education-content {
  flex: 0 1 auto;
}

.education-item .education-year {
  flex-shrink: 0;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -6px;
  width: 2px;
  background: var(--green-200);
}

.education-item:last-child {
  padding-bottom: 0;
}

.education-item:last-child::before {
  display: none;
}

.education-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--green-700);
  border-radius: 50%;
}

.education-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.education-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.education-year {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.education-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.education-title-row h3 {
  margin-bottom: 4px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--green-200);
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  cursor: pointer;
  transition: var(--transition);
}

.cert-btn:hover {
  background: var(--green-200);
  transform: translateY(-1px);
}

/* ========== CERT GALLERY (masonry) ========== */

.cert-gallery-section {
  background: var(--sand-100);
}

.cert-gallery {
  list-style: none;
  columns: 3;
  column-gap: 24px;
  margin-top: 48px;
}

.cert-tile-item {
  break-inside: avoid;
  margin-bottom: 24px;
}

.cert-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: var(--transition);
}

.cert-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--green-300);
}

.cert-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.cert-gallery-more {
  margin-top: 8px;
  text-align: center;
}

/* ========== CERT MODAL ========== */

.cert-modal {
  border: none;
  padding: 0;
  background: transparent;
  width: fit-content;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.cert-modal::backdrop {
  background: rgba(26, 26, 26, 0.72);
}

.cert-modal-inner {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cert-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.cert-modal-close:hover {
  background: var(--green-100);
}

.cert-modal-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--sand-100);
}

/* ========== SERVICES ========== */

.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* nieparzysta ostatnia karta nie zostaje sama na pół szerokości */
.services-grid > .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ...ale jej tekst nie rozciąga się na całą szerokość (czytelna miara) */
.services-grid > .service-card:last-child:nth-child(odd) p {
  max-width: 45rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green-600);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  flex: 1;
}

.service-price {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========== HOW I WORK ========== */

.approach-section {
  background: var(--green-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.approach-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-800) 0%, transparent 70%);
}

.approach-section .section-label {
  color: var(--green-300);
}

.approach-section .section-title {
  color: var(--white);
}

.approach-section .section-subtitle {
  color: var(--green-300);
}

.approach-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.approach-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* lead — pierwsze zdanie sekcji jaśniejsze i większe, kotwiczy wzrok na ciemnym tle */
.approach-content p:first-child {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--green-200);
}

.approach-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.approach-value {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.approach-value:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.approach-value-icon {
  width: 44px;
  height: 44px;
  background: var(--green-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.approach-value h3 {
  color: var(--green-200);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.approach-value p {
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.approach-value p + p {
  margin-top: 12px;
}

/* ========== FAQ ========== */

.faq-section {
  background: var(--sand-100);
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

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

/* hover sygnalizuje klikalność całego nagłówka, nie tylko plusa */
.faq-item summary:hover {
  background: var(--green-100);
  border-radius: var(--radius-md);
}

.faq-item summary:hover::after {
  background: var(--green-300);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-dark);
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--green-900);
  color: var(--white);
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer a {
  text-decoration: underline;
}

/* ========== LEGAL ========== */

.legal-section {
  padding-top: 140px;
  background: var(--white);
}

.legal-section h1.section-title {
  font-size: 2.25rem;
}

.legal-content {
  max-width: 760px;
  margin-top: 32px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal-content ul {
  margin: 0 0 16px 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  text-decoration: underline;
}

/* ========== CTA ========== */

.cta-section {
  background: var(--green-900);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-700) 0%, transparent 70%);
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 2rem;
}

.cta-section p {
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}

.contact-form {
  max-width: 640px;
  text-align: left;
}

.contact-location-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-map-links {
  margin: 12px 0 20px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-map-links a {
  color: var(--white);
  text-decoration: underline;
}

.contact-map-links span {
  color: rgba(255,255,255,0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: var(--transition);
}

.form-field textarea {
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

/* min. 24px pola + label jako drugi cel dotykowy (for=) — WCAG 2.5.8 */
.form-consent input {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-300);
  cursor: pointer;
}

.form-consent label {
  color: rgba(255,255,255,0.95);
  font-size: 0.85rem;
  line-height: 1.6;
  cursor: pointer;
}

.form-consent a {
  color: var(--white);
  text-decoration: underline;
}

/* honeypot — poza ekranem, niewidoczny i pomijany przez fokus */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-200);
}

.form-status:empty {
  display: none;
}

.form-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.95);
}

.form-note a {
  color: var(--white);
  text-decoration: underline;
}

/* ========== FOOTER ========== */

.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.87);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .brand-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.87);
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.87);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-500);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.87);
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: var(--white);
}

.footer-crisis {
  margin: 24px auto 0;
  max-width: 45rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.87);
}

.footer-crisis a {
  color: var(--white);
  text-decoration: underline;
  white-space: nowrap;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.87);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 320px 1fr;
    gap: 40px;
  }

  .area-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 0;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    max-width: none;
  }

  .area-side-inner {
    position: static;
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .area-num {
    margin-bottom: 0;
    font-size: 3.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-values {
    grid-template-columns: repeat(2, 1fr);
  }

  /* nieparzysta ostatnia wartość nie zawisa samotnie na pół szerokości */
  .approach-values > .approach-value:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .approach-values > .approach-value:last-child:nth-child(odd) p {
    max-width: 45rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* menu mobilne (hamburger) już od 1024px — pełne 8-pozycyjne menu nie mieści się wyżej */
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; }

  .navbar-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 8px;
  }

  .navbar-nav.active a {
    display: block;
    padding: 12px 4px;
  }
}

/* logo bez pełnej nazwy w wąskim zakresie desktopu, by menu miało miejsce
   (pełna nazwa + 8 pozycji + przycisk mieszczą się dopiero od ~1280px) */
@media (max-width: 1279px) {
  .navbar-brand .brand-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .cert-gallery {
    columns: 2;
    column-gap: 16px;
  }

  .cert-tile-item {
    margin-bottom: 16px;
  }

  .hero { padding: 110px 0 64px; }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* wyłączenie sticky — na wąskim ekranie zdjęcie stoi nad tekstem, nie obok */
  .about-photo {
    position: relative;
    top: auto;
    max-width: 320px;
  }

  /* bez ujemnego offsetu — przy zwężonym hero badge wystawałby poza viewport */
  .hero-badge {
    left: 0;
  }

  .help-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .area-list {
    columns: 1;
  }

  .approach-values {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* specyficzność ≥ .hero-content h1, inaczej wygrywa reguła bazowa 2.75rem */
  h1,
  .hero-content h1 { font-size: 1.75rem; }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .service-card-header {
    flex-direction: column;
  }

  .education-item {
    flex-direction: column;
    gap: 8px;
  }

  .cert-gallery {
    columns: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ========== BOOKING MODAL ========== */

.booking-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--sand-100);
}

.booking-shell {
  width: min(720px, 100%);
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.booking-brand {
  display: inline-flex;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--green-900);
}

.booking-alert {
  padding: 12px 14px;
  border: 1px solid var(--green-800);
  border-radius: 8px;
  background: var(--green-100);
  color: var(--text-dark);
  font-weight: 700;
}

.visit-details {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.visit-details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.visit-details dt {
  font-weight: 800;
  color: var(--text-dark);
}

.visit-details dd {
  margin: 0;
}

.visit-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.visit-reschedule-form { align-items: center; margin-top: 8px; }
.visit-selected-slot { flex: 1 1 220px; color: var(--text-muted); font-weight: 600; }
.visit-reschedule-modal .booking-modal-inner { grid-template-rows: auto minmax(0, 1fr); }
.visit-modal-body { min-height: 0; padding: 18px 28px 24px; overflow: auto; }
.visit-modal-hint { margin-top: 0; color: var(--text-muted); }
.visit-slot-days { display: grid; gap: 20px; }
.visit-slot-day { padding-top: 16px; border-top: 1px solid var(--border-light); }
.visit-slot-day:first-child { padding-top: 0; border-top: 0; }
.visit-slot-day h3 { margin: 0 0 10px; font-family: 'Inter', sans-serif; font-size: 1rem; }
.visit-slot-day .booking-slots { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }

.refund-choice {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.refund-choice h2 { margin-bottom: 8px; }
.refund-choice .visit-actions { flex-direction: column; align-items: stretch; }
.refund-choice input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font: inherit;
}

.service-booking-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 32px));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-dark);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.booking-modal::backdrop {
  background: rgba(16, 32, 24, 0.58);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.booking-modal-inner {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: inherit;
}

.booking-modal-header {
  padding: 18px 68px 16px 28px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--white) 100%);
}

.booking-modal-step {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 3px 9px;
  border: 1px solid var(--green-300);
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.booking-modal h2 {
  margin: 0;
  font-size: 1.3rem;
}

#bookingModalBody {
  min-height: 0;
  padding: 16px 28px 20px;
  overflow: auto;
}

.booking-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.booking-choice-list,
.booking-days,
.booking-slots {
  display: grid;
  gap: 8px;
}

.booking-category-list {
  display: grid;
  gap: 14px;
}

.booking-category {
  display: grid;
  gap: 8px;
}

.booking-category h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--green-900);
}

.booking-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.booking-choice::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  color: var(--green-900);
}

.booking-choice span {
  display: block;
  min-width: 0;
  font-weight: 700;
  line-height: 1.35;
}

.booking-choice small,
.booking-day small {
  min-width: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.booking-choice small {
  max-width: 58%;
  text-align: right;
}

.booking-days {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.booking-day,
.booking-slot {
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.booking-day {
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.booking-day span {
  display: block;
  font-weight: 700;
}

.booking-slots {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

.booking-slot {
  font-weight: 700;
}

.booking-choice:hover,
.booking-day:hover,
.booking-slot:hover,
.booking-modal-close:hover {
  border-color: var(--green-800);
  box-shadow: var(--shadow-md);
}

.booking-choice:hover,
.booking-day:hover,
.booking-slot:hover {
  background: var(--green-100);
  transform: translateY(-1px);
}

.booking-choice:focus-visible,
.booking-day:focus-visible,
.booking-slot:focus-visible,
.booking-modal-close:focus-visible,
.booking-back:focus-visible {
  outline: 3px solid var(--green-800);
  outline-offset: 2px;
}

.booking-back {
  min-height: 44px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-900);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.booking-form {
  display: grid;
  gap: 10px;
}

.booking-form label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.booking-form input:not([type]),
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"] {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  font: inherit;
  transition: var(--transition);
}

.booking-form input:not([type]):hover,
.booking-form input[type="text"]:hover,
.booking-form input[type="email"]:hover,
.booking-form input[type="tel"]:hover {
  border-color: var(--green-300);
}

.booking-payments {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--sand-100);
}

.booking-payments legend {
  padding: 0 6px;
  font-weight: 800;
}

.booking-payments label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.booking-form .booking-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.booking-form .booking-consent input {
  margin-top: 2px;
}

.booking-summary,
.booking-status {
  margin: 0;
  color: var(--text-body);
}

.booking-summary {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--green-300);
  border-radius: 8px;
  background: var(--green-100);
}

.booking-summary strong {
  color: var(--text-dark);
}

.booking-summary span {
  color: var(--text-body);
}

.booking-status {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--sand-100);
  line-height: 1.55;
}

.booking-package-note {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--green-100);
  color: var(--text-dark);
  font-weight: 600;
}

.booking-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.booking-actions .booking-back {
  margin-top: 0;
  padding: 10px 16px;
  text-decoration: none;
}

.booking-actions .btn {
  min-height: 40px;
  justify-content: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 480px) {
  .booking-modal {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: calc(100dvh - 16px);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: none;
  }

  .booking-modal-header {
    padding: 16px 62px 12px 16px;
  }

  .booking-modal h2 {
    font-size: 1.25rem;
  }

  #bookingModalBody {
    padding: 16px;
  }

  .booking-choice {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-right: 42px;
  }

  .booking-choice small {
    max-width: none;
    text-align: left;
  }

  .booking-actions {
    position: sticky;
    bottom: -18px;
    margin: 2px -16px -16px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .booking-actions .btn {
    flex: 1 1 160px;
  }

  .booking-back:not(.btn) {
    width: 100%;
    text-align: left;
  }
}

/* Redesign 2026-08: compact booking flow with fixed dialog chrome. */
body.booking-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.booking-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.booking-modal {
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.booking-modal-inner {
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100dvh - 48px);
}

.booking-modal-header {
  min-height: 82px;
  padding: 16px 76px 14px 24px;
}

.booking-modal-step {
  min-height: 22px;
  margin-bottom: 5px;
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.booking-modal h2 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.booking-modal h2:focus {
  outline: none;
}

.booking-modal h2:focus-visible {
  outline: 3px solid var(--green-800);
  outline-offset: 4px;
}

#bookingModalBody {
  padding: 16px 24px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.booking-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 68px;
  padding: 11px 24px;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.98);
}

.booking-modal-footer[hidden] {
  display: none;
}

.booking-modal-close {
  top: 19px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.booking-intro {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.booking-selected-service {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 0.875rem;
  font-weight: 700;
}

.booking-choice-list,
.booking-days,
.booking-slots {
  gap: 8px;
}

.booking-category-list {
  gap: 12px;
}

.booking-category {
  gap: 6px;
}

.booking-category h3 {
  font-size: 0.875rem;
}

.booking-choice {
  min-height: 48px;
  padding: 8px 42px 8px 12px;
}

.booking-choice span {
  font-size: 0.9375rem;
  line-height: 1.35;
}

.booking-choice small,
.booking-day small {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.booking-day,
.booking-slot {
  min-height: 44px;
}

.booking-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 8px 4px;
  font-size: 0.875rem;
}

.booking-form {
  gap: 12px;
}

.booking-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.booking-field > label,
.booking-form > label {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-optional {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.booking-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
}

.booking-form input:not([type]),
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"] {
  min-height: 44px;
  padding: 9px 11px;
  border-color: #A9B3AC;
  font-size: 1rem;
  line-height: 1.4;
}

.booking-form input[aria-invalid="true"] {
  border-color: #9B1C1C;
  box-shadow: 0 0 0 1px #9B1C1C;
}

.booking-field-error {
  min-height: 0;
  color: #7D1515;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.booking-field-error:empty {
  display: none;
}

.booking-payments {
  gap: 6px;
  padding: 8px 10px 10px;
}

.booking-payments legend {
  padding: 0 5px;
  font-size: 0.875rem;
}

.booking-payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px 8px;
}

.booking-payments label {
  display: flex;
  min-height: 44px;
  gap: 9px;
  padding: 5px 4px;
  font-size: 0.875rem;
  line-height: 1.35;
  cursor: pointer;
}

.booking-payments input[type="radio"],
.booking-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--green-900);
}

.booking-voucher-code {
  margin-top: 4px;
}

.booking-form .booking-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 44px;
  gap: 10px;
  padding: 3px 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  cursor: pointer;
}

.booking-form .booking-consent input {
  margin: 0;
}

.booking-consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-summary {
  gap: 1px;
  padding: 9px 11px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.booking-package-note {
  padding: 8px 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.booking-status {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.booking-status.is-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-status.is-error,
.booking-submit-message.is-error {
  border-color: #B42318;
  background: #FFF3F2;
  color: #7D1515;
}

.booking-status.is-unavailable,
.booking-submit-message.is-unavailable {
  border-color: #8A5A00;
  background: #FFF8E6;
  color: #5F3D00;
}

.booking-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid var(--green-300);
  border-top-color: var(--green-900);
  border-radius: 50%;
  animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

.booking-submit-message {
  margin: 0;
  padding: 0;
  border: 0 solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.booking-submit-message:not(:empty) {
  padding: 9px 11px;
  border-width: 1px;
  background: var(--sand-100);
}

.booking-success {
  display: grid;
  justify-items: center;
  padding: 12px 8px;
  text-align: center;
}

.booking-success p {
  margin: 4px 0 0;
}

.booking-success-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 1.25rem;
  font-weight: 800;
}

.booking-modal-footer .btn {
  min-height: 44px;
  justify-content: center;
  padding: 11px 20px;
  font-size: 0.9375rem;
}

.booking-modal-footer .booking-back {
  margin-right: auto;
}

@media (max-width: 600px) {
  .booking-modal {
    top: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: none;
  }

  .booking-modal-inner {
    height: 100dvh;
    max-height: 100dvh;
  }

  .booking-modal-header {
    min-height: 78px;
    padding: calc(13px + env(safe-area-inset-top)) 68px 12px calc(16px + env(safe-area-inset-left));
  }

  .booking-modal-close {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }

  #bookingModalBody {
    padding: 14px calc(16px + env(safe-area-inset-right)) 16px calc(16px + env(safe-area-inset-left));
    scrollbar-gutter: auto;
  }

  .booking-modal-footer {
    min-height: 68px;
    padding: 10px calc(16px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  }

  .booking-contact-row {
    grid-template-columns: 1fr;
  }

  .booking-choice {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 8px 42px 8px 12px;
  }

  .booking-choice small {
    max-width: none;
    text-align: left;
  }

  .booking-payment-options {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-modal-footer .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 360px) {
  .booking-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 4px;
  }

  .booking-modal-footer .booking-back {
    justify-content: center;
    margin-right: 0;
  }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
