﻿:root {
  color-scheme: light;
  --color-background: #f7f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f0eff9;
  --color-text: #171422;
  --color-muted: #595973;
  --color-border: rgba(59, 46, 131, 0.16);
  --color-primary: #3b2e83;
  --color-primary-soft: #6a5acd;
  --color-accent: rgba(106, 90, 205, 0.12);
  --color-success: #0f9d58;
  --shadow-soft: 0 28px 60px rgba(24, 20, 51, 0.12);
  --shadow-card: 0 22px 40px rgba(24, 20, 51, 0.1);
  --font-heading: "Merriweather", "Playfair Display", serif;
  --font-body: "Inter", "Lato", "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-background: #0e0c1d;
  --color-surface: #17152a;
  --color-surface-alt: #211f39;
  --color-text: #f4f4fb;
  --color-muted: #b3b2cc;
  --color-border: rgba(133, 120, 197, 0.4);
  --color-primary: #9886ff;
  --color-primary-soft: #6a5acd;
  --color-accent: rgba(152, 134, 255, 0.14);
  --shadow-soft: 0 32px 70px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 24px 45px rgba(0, 0, 0, 0.35);
  --color-success: #44d98c;
}

* {
  box-sizing: border-box;
}

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

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  touch-action: pan-x pan-y;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
}

body {
  background: var(--color-background);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.3s ease;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

::selection {
  background: rgba(106, 90, 205, 0.25);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

section {
  padding: clamp(3.5rem, 6vw, 7rem) 0;
}

section[id] {
  scroll-margin-top: 110px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.5vw + 1rem, 3rem);
  margin: 0 0 0.75rem;
  color: var(--color-primary);
}

.section-header p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--color-muted);
}

\.btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 0.5rem;\n  padding: 0.85rem 1.7rem;\n  border-radius: 999px;\n  font-weight: 600;\n  border: 2px solid transparent;\n  cursor: pointer;\n  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;\n}\n\n\.btn:focus-visible {\n  outline: 3px solid var(--color-primary-soft);\n  outline-offset: 2px;\n}\n\n\.btn--small {\n  padding: 0.65rem 1.1rem;\n  font-size: 0.9rem;\n}\n\n.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(59, 46, 131, 0.3);
}

[data-theme="dark"] .btn--primary {
  box-shadow: 0 18px 34px rgba(16, 9, 41, 0.6);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(59, 46, 131, 0.35);
}

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

.btn--outline:hover {
  background-color: rgba(106, 90, 205, 0.12);
}

.btn--ghost {
  border-color: transparent;
  color: var(--color-primary);
  background-color: var(--color-accent);
  padding: 0.65rem 1.25rem;
}

.btn--ghost:hover {
  border-color: rgba(59, 46, 131, 0.45);
  background-color: rgba(106, 90, 205, 0.14);
}

[data-theme="dark"] .btn--ghost {
  background-color: rgba(152, 134, 255, 0.12);
  color: #faf9ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(247, 247, 251, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(14, 12, 29, 0.92);
  box-shadow: 0 10px 24px rgba(9, 6, 24, 0.65);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

@media (max-width: 600px) {
  .site-header .container {
    min-height: 58px;
    padding: 0.5rem 0.9rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .brand {
    flex: 0 0 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
  }

  .brand-text {
    display: none;
  }

  .site-nav {
    flex: 0 0 auto;
    margin-left: 0.5rem;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: 0.5rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 24px rgba(59, 46, 131, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(59, 46, 131, 0.18);
}

.theme-toggle__icon::before {
  content: "☀️";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

[data-theme="dark"] .theme-toggle {
  background: rgba(152, 134, 255, 0.18);
  color: #f4f4fb;
}

[data-theme="dark"] .theme-toggle__icon::before {
  content: "🌙";
}

.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  z-index: 0;
}

.hero::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(106, 90, 205, 0.28), transparent 70%);
  top: -120px;
  right: -160px;
}

.hero::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at center, rgba(59, 46, 131, 0.18), transparent 70%);
  bottom: -140px;
  left: -140px;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at center, rgba(152, 134, 255, 0.32), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2.4rem, 3.5vw + 1rem, 3.6rem);
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 1rem;
}

[data-theme="dark"] .hero__copy h1 {
  color: #fff;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero__areas {
  color: var(--color-muted);
  max-width: 540px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59, 46, 131, 0.12);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero__badge {
  background: rgba(152, 134, 255, 0.18);
  color: #f4f4fb;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.8rem;
  display: grid;
  gap: 0.75rem;
  font-weight: 500;
}

.hero__bullets li {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.hero__bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-soft) 100%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero__availability {
  color: var(--color-muted);
}

.hero__media {
  position: relative;
  max-width: 420px;
  justify-self: center;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 32px;
  border: 1px solid rgba(106, 90, 205, 0.35);
  pointer-events: none;
}

.hero__media picture,
.hero__media img {
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
}

.services {
  padding-top: clamp(3rem, 5vw, 5.5rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: linear-gradient(180deg, rgba(59, 46, 131, 0.08) 0%, var(--color-surface) 65%);
  border-radius: 22px;
  padding: 2rem;
  border: 1px solid rgba(59, 46, 131, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 260px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .service-card {
  background: linear-gradient(180deg, rgba(152, 134, 255, 0.12) 0%, var(--color-surface) 65%);
  border: 1px solid rgba(152, 134, 255, 0.18);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(59, 46, 131, 0.2);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(59, 46, 131, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

[data-theme="dark"] .service-card__icon {
  background: rgba(152, 134, 255, 0.18);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  flex-grow: 1;
}

.gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.gallery-image {
  width: 100%;
  max-width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  transition: transform 0.4s ease;
  background-color: var(--color-surface);
  padding: 10px;
  box-sizing: border-box;
}

.gallery-image:hover {
  transform: scale(1.02);
}

.gallery-control {
  border: none;
  background-color: var(--color-surface);
  color: var(--color-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.gallery-control:hover {
  background-color: var(--color-surface-alt);
  transform: scale(1.1);
}

[data-theme="dark"] .gallery-control {
  background-color: rgba(152, 134, 255, 0.18);
  color: #f4f4fb;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(59, 46, 131, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.gallery-dot[aria-selected="true"] {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

[data-theme="dark"] .gallery-dot {
  background-color: rgba(152, 134, 255, 0.3);
}

[data-theme="dark"] .gallery-dot[aria-selected="true"] {
  background-color: var(--color-primary-soft);
}

@media (max-width: 768px) {
  .gallery-carousel {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .gallery-track {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .gallery-control.prev {
    margin-right: 0.5rem;
  }

  .gallery-control.next {
    margin-left: 0.5rem;
  }

  .gallery-image {
    height: 300px;
    max-width: 100%;
  }
}

.procedures {
  background-color: var(--color-surface-alt);
}

[data-theme="dark"] .procedures {
  background-color: #1e1b33;
}

.procedures h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  margin: 0 0 1.5rem;
  color: var(--color-primary);
}

.procedure-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.why {
  padding-top: clamp(3.6rem, 5vw, 6.2rem);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}

.pillar {
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-color: rgba(59, 46, 131, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

[data-theme="dark"] .pillar__icon {
  background-color: rgba(152, 134, 255, 0.18);
}

.process {
  background-color: var(--color-surface-alt);
}

[data-theme="dark"] .process {
  background-color: #1a1730;
}

.process-steps {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.process-steps li {
  position: relative;
  padding: 2.8rem 1.7rem 1.7rem;
  border-radius: 24px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.4rem;
  left: 1.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.process-steps h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.process-steps p {
  margin: 0;
  color: var(--color-muted);
}

.testimonials {
  padding-top: clamp(3.8rem, 5vw, 6.5rem);
}

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  max-width: min(720px, 90vw);
}

.testimonial-item {
  margin: 0;
  padding: 2.3rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(59, 46, 131, 0.08) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateX(6%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}

[data-theme="dark"] .testimonial-item {
  background: linear-gradient(180deg, rgba(152, 134, 255, 0.12) 0%, var(--color-surface) 100%);
}

.testimonial-item.is-active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.testimonial-item blockquote {
  margin: 0;
  color: var(--color-text);
}

.testimonial-item cite {
  display: block;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
}

.carousel-control {
  border: none;
  background-color: rgba(59, 46, 131, 0.12);
  color: var(--color-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel-control:hover {
  background-color: rgba(59, 46, 131, 0.18);
}

[data-theme="dark"] .carousel-control {
  background-color: rgba(152, 134, 255, 0.18);
}

.faq {
  background-color: var(--color-surface-alt);
}

[data-theme="dark"] .faq {
  background-color: #1e1b33;
}

.accordion {
  display: grid;
  gap: 1.25rem;
}

.accordion-item {
  background-color: var(--color-surface);
  border-radius: 22px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.75rem;
}

.accordion-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  color: inherit;
}

.accordion-item button::after {
  content: "+";
  font-size: 1.6rem;
  transition: transform 0.2s ease;
}

.accordion-item button[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-panel {
  margin-top: 0.9rem;
  color: var(--color-muted);
}

.cta {
  background: linear-gradient(135deg, rgba(59, 46, 131, 0.95), rgba(106, 90, 205, 0.95));
  color: #fff;
}

[data-theme="dark"] .cta {
  background: linear-gradient(135deg, rgba(106, 90, 205, 0.95), rgba(152, 134, 255, 0.95));
}

.cta .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.cta__content h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.cta .btn--outline {
  border-color: #fff;
  color: #fff;
}

.contact .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact__intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}

.contact__data {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.contact__data a {
  color: var(--color-primary);
  font-weight: 600;
  word-break: break-word;
}

.contact__form {
  background-color: var(--color-surface);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-weight: 600;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group--checkbox input {
  margin-top: 0.4rem;
}

.form-group--hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(59, 46, 131, 0.22);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: rgba(30, 27, 53, 0.9);
  border-color: rgba(152, 134, 255, 0.3);
  color: #f4f4fb;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.25);
  outline: none;
}

.field-error {
  color: #d64545;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-loading {
  color: var(--color-muted);
}

.form-status.is-success {
  color: var(--color-success);
}

.form-status.is-error {
  color: #d64545;
}

.form-success {
  background-color: var(--color-surface-alt);
  border-radius: 26px;
  padding: 2.2rem;
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .form-success {
  background-color: rgba(152, 134, 255, 0.12);
}

.form-success__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-success__actions .btn {
  width: 100%;
}

@media (min-width: 600px) {
  .form-success__actions {
    flex-direction: row;
    justify-content: center;
  }

  .form-success__actions .btn {
    width: auto;
  }
}

.site-footer {
  background-color: #121029;
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0;
}

[data-theme="dark"] .site-footer {
  background-color: #0c0a1a;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer__brand .brand-mark {
  width: 46px;
  height: 46px;
  box-shadow: none;
  object-fit: cover;
}

.footer__links,
.footer__legal {
  display: grid;
  gap: 0.6rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #fff;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.75);
}

.wa-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.wa-fab:hover {
  transform: translateY(-2px);
}

.wa-fab__icon {
  pointer-events: none;
}

.wa-fab__tooltip {
  position: absolute;
  left: 68px;
  background-color: rgba(18, 16, 39, 0.88);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.wa-fab:hover .wa-fab__tooltip,
.wa-fab:focus-visible .wa-fab__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1200;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.modal__content {
  position: relative;
  background-color: var(--color-surface);
  border-radius: 26px;
  padding: 2.5rem;
  width: min(420px, 92vw);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-muted);
}

.site-header.is-sticky {
  box-shadow: 0 14px 28px rgba(24, 20, 51, 0.16);
}

@media (max-width: 1040px) {
  .site-header .container {
    flex-wrap: wrap;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 12px);
    right: 1rem;
    background-color: var(--color-surface);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
    min-width: 200px;
    font-size: 0.95rem;
    transform-origin: top right;
    transform: scale(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-list.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .nav-list {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .hero__content {
    gap: 2.5rem;
  }

  .testimonial-carousel {
    flex-direction: column;
  }

  .carousel-control {
    order: -1;
  }

  .form-group--checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-fab {
    width: 48px;
    height: 48px;
    bottom: 16px;
    left: 16px;
    z-index: 1001;
  }

  .wa-fab__icon {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 768px) {
  .site-header .container {
    padding: 0.5rem 0.9rem;
    min-height: 70px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-text {
    font-size: 0.7rem;
    overflow: hidden;
  }

  .brand-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }

  .header-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.5rem;
    order: 2;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    text-align: center;
    padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2.5rem, 8vw, 4.5rem);
  }

  .hero__content {
    gap: 2.5rem;
  }

  .hero__copy {
    max-width: 540px;
    margin: 0 auto;
  }

  .hero__badge {
    margin-inline: auto;
  }

  .hero__areas {
    margin: 0 auto;
  }

  .hero__bullets {
    justify-items: center;
  }

  .hero__bullets li {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__media {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__media::after {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 480px) {
  section {
    padding: clamp(2.4rem, 8vw, 3rem) 0;
  }

  .site-header .container {
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    min-height: 56px;
  }

  .brand {
    display: flex;
    align-items: center;
    margin-right: auto;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  .site-nav {
    margin-left: 0.3rem;
  }

  .header-actions {
    margin-left: 0.3rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .hero__bullets li::before {
    width: 8px;
    height: 8px;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }

  .service-card,
  .pillar,
  .process-steps li,
  .accordion-item {
    padding-left: clamp(1.2rem, 4vw, 1.6rem);
    padding-right: clamp(1.2rem, 4vw, 1.6rem);
  }

  .contact .container {
    gap: 2rem;
  }

  .contact__form {
    padding: 1.8rem;
  }
}



.cta-dialog {
  position: fixed;
  bottom: 96px;
  left: 24px;
  width: min(260px, 78vw);
  padding: 1.15rem 1.3rem 1.3rem;
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 0.75rem;
  z-index: 1002;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .cta-dialog {
  background: rgba(34, 31, 54, 0.96);
  border-color: rgba(152, 134, 255, 0.32);
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.45);
}

.cta-dialog::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 36px;
  width: 20px;
  height: 20px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
  z-index: -1;
}

[data-theme="dark"] .cta-dialog::after {
  background: rgba(34, 31, 54, 0.96);
  border-color: rgba(152, 134, 255, 0.32);
}

.cta-dialog__text {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.cta-dialog__close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: none;
  color: var(--color-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.cta-dialog__close:hover,
.cta-dialog__close:focus-visible {
  color: var(--color-primary);
}

.cta-dialog.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .cta-dialog {
    left: 12px;
    right: 60px;
    width: auto;
    bottom: 80px;
    padding: 1rem 1.1rem 1.2rem;
    z-index: 1001;
  }

  .cta-dialog::after {
    left: 30px;
    bottom: -8px;
  }
}

@media (max-width: 480px) {
  .cta-dialog {
    display: none;
  }
}

