/* ============================================================
   PROFESSIONAL MEDICAL PHYSIOTHERAPY WEBSITE
   Color Palette: Deep teal + Navy + Warm whites + Sage accents
   ============================================================ */

:root {
  /* Primary medical palette */
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5c56;
  --navy: #0f172a;
  --navy-light: #1e293b;

  /* Accent & action */
  --accent: #0891b2;
  --accent-2: #0f766e;
  --accent-3: #0d9488;
  --accent-warm: #d97706;

  /* Neutrals */
  --bg: #f8fafb;
  --bg-alt: #f0f5f4;
  --card: #ffffff;
  --muted: #475569;
  --muted-light: #94a3b8;
  --text: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.10);
  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);

  /* Layout */
  --maxw: 1200px;
  --border-radius: 12px;
  --radius: 12px;
  --radius-lg: 18px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
  --gradient-hero: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 50%, #ffffff 100%);
  --sport-gradient: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);

  /* Fonts */
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ==================== RESET ==================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  font-weight: 400;
  padding-top: 80px;
}

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== HEADER ==================== */

.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

nav.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.nav a:hover,
.nav a:focus {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav a.cta {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.nav a.cta:hover {
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
}

/* ==================== HERO ==================== */

.hero {
  padding: 70px 0 50px;
  background: linear-gradient(135deg, rgba(248, 248, 248, 0.55) 0%, rgba(40, 101, 107, 0.523) 100%),
              url('../images/terapiaa.jpg') top center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 50%;
  background: radial-gradient(ellipse at 15% 10%, rgba(2, 20, 30, 0.7) 0%, rgba(2, 20, 30, 0.4) 40%, transparent 75%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(2, 20, 30, 0.35), transparent);
  z-index: 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-copy h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-copy h2 .highlight {
  color: #175049 !important;
}

.hero-copy p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 540px;
}

.hero-emphasis {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 12px #175049;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}



/* ==================== TRUST STATS BAR ==================== */

.trust-bar {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-stat {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}

.trust-stat:last-child { border-right: none; }

.trust-stat:hover { background: var(--bg-alt); }

.trust-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 10px;
  margin-bottom: 10px;
}

.trust-stat-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  stroke: var(--primary);
}

.trust-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trust-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ==================== SECTIONS ==================== */

.section {
  padding: 70px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h3 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

h3 {
  margin-top: 0;
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  text-shadow: none;
}

h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-header h3::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ==================== PROCESS / HOW IT WORKS ==================== */

.process-section {
  background: white;
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.2);
  border: 4px solid white;
}

.process-step h4 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ==================== CARDS ==================== */

.cards-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.carousel-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
  z-index: 2;
  flex-shrink: 0;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 8px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.cards::-webkit-scrollbar { display: none; }

.card {
  background: var(--card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  flex: 0 0 290px;
  scroll-snap-align: start;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(1px);
  z-index: 0;
  transition: all 0.3s ease;
}

.card::after {
  content: none;
}

.card > * {
  position: relative;
  z-index: 2;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card:hover::before {
  background: rgba(255, 255, 255, 0.92);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: 12px;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke: var(--primary);
}

.card h4 {
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

/* ==================== ABOUT / O MNIE ==================== */

#o-mnie {
  background: var(--bg-alt);
}

.about-content h3 {
  margin-bottom: 20px;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
  line-height: 1.7;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 16px;
}

.about-highlight {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.about-cta-text {
  color: var(--navy) !important;
  font-weight: 600 !important;
}

/* Credentials */
.credentials-section {
  margin-top: 28px;
}

.credentials-toggle {
  cursor: pointer;
  padding: 14px 18px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  list-style: none;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.credentials-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
}

.credentials-content {
  margin-top: 16px;
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.credentials-content h4 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
}

.credentials-content ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.credentials-content li { margin-bottom: 6px; }
.credentials-content strong { color: var(--navy-light); }

/* Certificate items */
.certificate-item img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.certificate-item img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

/* ==================== FAQ ==================== */

.faq {
  max-width: 720px;
  width: 100%;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover { box-shadow: var(--shadow-md); }
details.faq-item { overflow: hidden; }

.faq-question {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 16px;
  list-style: none;
  position: relative;
  color: var(--navy);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  font-weight: 300;
}

.faq-answer {
  padding: 0 16px 0;
  color: var(--muted);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.36s ease, opacity 0.30s ease, transform 0.30s ease;
  line-height: 1.7;
  font-size: 0.95rem;
}

details[open] .faq-question::after {
  content: '−';
  transform: translateY(-50%);
}

details[open] .faq-answer {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  padding: 4px 16px 14px;
}

/* ==================== CONTACT ==================== */

.contact {
  display: block;
  padding: 0;
}

.contact > h3 {
  display: block;
  width: 100%;
  margin-bottom: 18px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.contact-main { flex: 1; }
.contact-side { flex: 1; max-width: 520px; margin: 0 auto; }

/* Visit info */
.visit-info {
  background: var(--card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.visit-info h4 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-item {
  display: grid;
  grid-template-columns: 28px 140px 1fr;
  align-items: flex-start;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-item:last-child { border-bottom: none; }

.info-item .info-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--primary);
  flex-shrink: 0;
}

.info-item strong {
  color: var(--navy-light);
  font-weight: 600;
  font-size: 0.92rem;
}

.info-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  background: var(--card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-form label {
  font-size: 0.9rem;
  color: var(--navy-light);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--bg);
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
  outline: none;
  background: white;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted-light);
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}

.consent input[type="checkbox"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.consent .legal-trigger {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  transition: opacity 0.2s ease;
}

.consent .legal-trigger:hover { opacity: 0.7; }

/* Form Messages */
.form-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  font-size: 0.9rem;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-loading { opacity: 0.7; }

/* ==================== CTA BANNER ==================== */

.cta-banner {
  background: var(--gradient-primary);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-banner h3 {
  color: white !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-banner h3::after { display: none; }

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==================== FOOTER ==================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--muted);
  background: white;
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

/* ==================== LEGAL MODAL ==================== */

.legal-trigger {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.legal-trigger:hover,
.legal-trigger:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px 40px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.legal-overlay.visible { opacity: 1; pointer-events: auto; }

.legal-dialog {
  width: 100%;
  max-width: 840px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  padding: 36px 42px 40px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid var(--border);
}

.legal-title {
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 700;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
}

.legal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-close:hover { transform: scale(1.05); }

.legal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.legal-content h3 {
  margin-top: 32px;
  font-size: 1.2rem;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.legal-content p { margin: 0 0 16px; }

/* ==================== ACCESSIBILITY ==================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 759px) {
  body { padding-top: 70px; }
  .container { padding: 0 18px; }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 18px;
  }

  .logo {
    font-size: 0.92rem;
    width: 100%;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-icon svg { width: 18px; height: 18px; }

  nav.nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 2px;
  }

  .nav a {
    font-size: 0.88rem;
    padding: 6px 10px;
    margin: 0;
  }

  .nav a.cta {
    padding: 8px 14px;
    font-size: 0.88rem;
    margin-left: 0;
  }

  /* FAQ mobile fixes */
  #faq.section.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .faq {
    width: 100%;
    max-width: 100%;
  }

  .faq-item {
    padding: 2px;
    margin-left: 0;
    margin-right: 0;
  }

  .faq-question {
    padding: 12px 14px;
    padding-right: 40px;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .faq-question::after {
    right: 12px;
  }

  .faq-answer {
    padding: 0 14px 0;
    font-size: 0.9rem;
  }

  details[open] .faq-answer {
    padding: 4px 14px 12px;
  }

  /* Hero */
  .hero { padding: 40px 0 30px; }
  .hero-copy h2 { font-size: 1.9rem; }
  .hero-copy p { font-size: 1rem; }
  .hero-ctas .btn-primary[href="#kontakt"] { display: none !important; }

  /* Trust bar */
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .trust-stat { padding: 20px 16px; }
  .trust-stat:nth-child(2) { border-right: none; }
  .trust-stat-number { font-size: 1.4rem; }

  /* Process */
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-steps::before { display: none; }
  .process-step-number { width: 56px; height: 56px; font-size: 1.2rem; }

  /* Cards */
  .card { flex: 0 0 260px; }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    opacity: 0.9;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .carousel-btn-prev { left: 4px; }
  .carousel-btn-next { right: 4px; }

  /* About */
  #o-mnie .container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  #o-mnie .container > div:last-child {
    position: static !important;
    transform: none !important;
    padding-top: 20px !important;
    margin-top: 20px;
  }

  .section-header h3::after,
  #o-mnie h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Sections */
  .section { padding: 48px 0; }
  h3 { font-size: 1.5rem; }

  /* Contact */
  .contact-grid { flex-direction: column; }

  /* CTA */
  .cta-banner h3 { font-size: 1.5rem; }

  /* Legal */
  .legal-dialog { padding: 24px 20px 30px; border-radius: var(--radius); }
  .legal-title { font-size: 1.4rem; }
}

@media (min-width: 760px) {
  .container { padding: 0 40px; }
  .hero-copy h2 { font-size: 2.8rem; }
  .site-header .container { padding: 16px 40px; }
  nav.nav { gap: 4px; }
  .contact-grid { flex-direction: row; }
  .card { flex: 0 0 300px; }
}

@media (min-width: 1024px) {
  .hero { padding: 80px 0 60px; }
  .section { padding: 80px 0; }
}
