/* ============================================================
   FIXES.CSS - Bridge between CSS class names and HTML templates
   ============================================================ */

/* --- Waves background (bubbles overlay) --- */
#waves-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

#waves-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Space for fixed navbar on non-hero pages */
#main-content {
  padding-top: 110px;
}

/* Hero has its own padding, remove double spacing */
#main-content:has(> .hero) {
  padding-top: 0;
}

/* --- Smooth scroll --- */
html {
  scroll-behavior: smooth;
}

/* --- Logo --- */
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}


/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 40px;
  box-sizing: border-box;
}

.hero .particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  padding: 48px 100px 44px;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.hero-decorline {
  width: 50px;
  height: 2px;
  background: var(--color-highlight);
  margin: 0 auto 20px;
  opacity: 0.6;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw + 1rem, 4.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--color-text);
}

.hero-motto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.65rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 168, 130, 0.12);
  border: 1px solid rgba(196, 168, 130, 0.25);
  color: var(--color-highlight);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

/* Hero buttons row */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Hero trust indicators */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-secondary);
  border-radius: 24px;
  padding: 8px 16px;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-highlight);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Navbar (HTML classes) --- */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  z-index: 1001;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links li a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-highlight);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--color-highlight);
}

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

.nav-links li a.nav-cta {
  background-color: var(--color-highlight);
  color: #fff !important;
  padding: 10px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-cta::after {
  display: none !important;
}

.nav-links li a.nav-cta:hover {
  background-color: #b89b6f;
  color: #fff !important;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(196, 168, 130, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Section Title/Subtitle --- */
.section-title {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 700;
  position: relative;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-highlight), transparent);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-accent);
  line-height: 1.7;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* --- Value/Target/Service Icons --- */
.value-icon,
.target-icon,
.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: 14px;
  color: var(--color-highlight);
}

.target-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 50%;
}

.value-card h3,
.target-card h3,
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* --- Service Primary variant --- */
.service-primary {
  background: #fff;
  border: 2px solid var(--color-highlight);
  box-shadow: 0 8px 32px rgba(196, 168, 130, 0.15);
}

.service-primary:hover {
  box-shadow: 0 16px 48px rgba(196, 168, 130, 0.25);
}

/* --- Pricing (HTML classes) --- */
.pricing-desc {
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-highlight);
  margin-bottom: 8px;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 8px;
}

/* --- Testimonial Slider (HTML classes) --- */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonial-prev,
.testimonial-next {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: #fff;
}

.testimonials-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-highlight);
  transform: scale(1.2);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--color-highlight);
}


/* --- Services Preview (homepage) --- */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* Language switcher */
.lang-switch {
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: #fff;
}

.service-preview-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid rgba(138, 121, 104, 0.12);
  box-shadow: 0 4px 16px rgba(61, 61, 61, 0.10), 0 1px 4px rgba(61, 61, 61, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(61, 61, 61, 0.14), 0 2px 8px rgba(61, 61, 61, 0.08);
}

.service-preview-card h3 {
  font-size: 1.05rem;
  margin-top: 12px;
}

/* --- CTA Section --- */
.section-cta {
  background: linear-gradient(170deg, var(--color-secondary) 0%, var(--color-primary) 100%);
}

.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-block .section-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-block .section-subtitle {
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Service card highlight from hash --- */
.service-card.highlight {
  animation: serviceHighlight 1.5s ease;
}

@keyframes serviceHighlight {
  0% { box-shadow: 0 0 0 0 rgba(138, 121, 104, 0.4); }
  30% { box-shadow: 0 0 0 12px rgba(138, 121, 104, 0.2); }
  100% { box-shadow: 0 4px 16px rgba(61, 61, 61, 0.10), 0 1px 4px rgba(61, 61, 61, 0.06); }
}

/* --- Contact (HTML classes) --- */
.contact-form-wrap {
  /* wrapper, no extra styles needed */
}

.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(61, 61, 61, 0.05);
}

.contact-info-card h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-highlight);
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 0.9rem;
  color: #6b6b6b;
}

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

/* --- Form Message --- */
.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.form-message.success {
  background: #f0faf0;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background: #fef0f0;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.btn-submit {
  width: 100%;
}

.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}


/* --- Legal pages --- */
.section-legal {
  padding: 40px 0 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 16px rgba(61, 61, 61, 0.05);
}

.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 24px;
  list-style: disc;
}

.legal-content ul li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-highlight);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #b89b6f;
}


/* --- Form privacy note --- */
.form-privacy-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #888;
}

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

/* --- GDPR consent checkbox --- */
.form-checkbox {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-highlight);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--color-highlight);
  text-decoration: underline;
}

/* --- Withdrawal form in terms --- */
.legal-withdrawal-form {
  background: var(--color-primary);
  border: 1px dashed var(--color-accent);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 16px 0 24px;
}

.legal-withdrawal-form p {
  margin-bottom: 8px;
}

/* --- Mobile drawer overlay --- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* --- Scroll-to-top button --- */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-highlight);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(196, 168, 130, 0.35);
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #b89b6f;
  transform: translateY(-2px);
}

/* --- Cookie bar (GDPR) --- */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(61, 61, 61, 0.97);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-bar.visible {
  transform: translateY(0);
}

.cookie-bar-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-bar-content p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
  flex: 1 1 300px;
}

.cookie-bar a {
  color: var(--color-highlight);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar a:hover {
  color: #d4b88a;
}

.cookie-bar-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.cookie-btn-accept {
  background: var(--color-highlight);
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #b89b6f;
}

.cookie-btn-reject {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.cookie-btn-reject:hover {
  background: rgba(255,255,255,0.25);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  padding: 10px 12px;
}

.cookie-btn-settings:hover {
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.cookie-modal-overlay.visible {
  display: flex;
}

.cookie-modal {
  background: #fff;
  color: var(--color-text, #2E2A26);
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookie-modal h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
}

.cookie-option {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-option-desc {
  font-size: 0.85rem;
  color: #666;
  margin: 6px 0 0;
  line-height: 1.4;
}

.cookie-always-on {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-highlight, #9E8A6E);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-modal-buttons {
  margin-top: 20px;
  text-align: right;
}

.cookie-modal-buttons .cookie-btn {
  font-size: 0.9rem;
  padding: 12px 28px;
}

/* --- Responsive nav (mobile drawer from left) --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(245, 240, 235, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 100px 0 40px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links li a {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 52px;
  }

  .nav-links li a::after {
    content: none;
  }

  .nav-links .lang-switch {
    margin-left: 0;
    padding: 16px 28px;
  }

  .nav-links .lang-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .nav-links li a:hover,
  .nav-links li a:focus {
    background: rgba(196, 168, 130, 0.1);
    color: var(--color-highlight);
  }

  /* Active link accent bar on left side */
  .nav-links li a.active {
    color: var(--color-highlight);
    background: rgba(196, 168, 130, 0.08);
    box-shadow: inset 3px 0 0 var(--color-highlight);
  }

  .nav-cta {
    margin: 20px 28px 0;
    text-align: center;
    border-radius: 50px;
    justify-content: center;
  }

  /* Hamburger → X animation */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* --- Hero mobile fixes --- */
  .hero {
    height: 100svh;
    min-height: 0;
    padding: 80px 16px 24px;
  }

  .hero-content {
    width: auto;
    max-width: none;
    padding: 28px 20px 24px;
    border-radius: 18px;
  }

  .hero-decorline {
    width: 40px;
    margin: 0 auto 14px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-buttons .btn {
    width: auto;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.82rem;
  }

  .hero-trust {
    gap: 8px;
  }

  .hero-trust-item {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

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

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

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

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


  /* Cookie bar stacks on mobile */
  .cookie-bar {
    padding: 16px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-bar-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cookie-bar-buttons {
    justify-content: center;
  }

  .cookie-modal {
    padding: 24px 20px;
    width: 95%;
  }

  /* Testimonials arrows — bring inside on mobile */
  .slider-arrow.prev {
    left: -16px;
  }
  .slider-arrow.next {
    right: -16px;
  }

  /* Legal pages — reduce padding */
  .legal-content {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .values-grid,
  .target-grid {
    grid-template-columns: 1fr;
  }

  /* hero-title uses clamp() */

  .nav-links {
    width: 260px;
  }

  .hero-content {
    padding: 24px 16px 20px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* Cookie bar — tighter on small phones */
  .cookie-bar {
    padding: 12px 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 0.85rem;
  }

  .cookie-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Legal pages — even tighter */
  .legal-content {
    padding: 24px 16px;
  }

  /* Testimonials arrows */
  .slider-arrow.prev {
    left: -10px;
  }
  .slider-arrow.next {
    right: -10px;
  }
  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* --- Footer mobile stacking --- */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer-info {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.6;
  }
}

/* --- Testimonial padding mobile --- */
@media (max-width: 480px) {
  .testimonial-card {
    padding: 32px 24px;
  }

  .testimonial-card .quote::before {
    font-size: 3.5rem;
  }
}

/* --- 404 page --- */
.section-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 1rem;
}

.error-message {
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 2rem;
}

/* --- Lang button touch target --- */
@media (max-width: 768px) {
  .nav-links .lang-btn {
    padding: 10px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
