:root {
  --primary: #3878ff;
  --primary-dark: #1f56d6;
  --accent: #2bb826;
  --bg: #ffffff;
  --surface: #f5f8fb;
  --text: #1a2332;
  --text-light: #5a6b7e;
  --border: #e2e8f0;
  --radius: 14px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2147483002;
  font-weight: 700;
  border-radius: 0 0 0 8px;
}
.skip-link:focus { right: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(56,120,255,.28); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.header-phone { display: none; }
@media (min-width: 640px) { .header-phone { display: inline-flex; } }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--surface) 0%, #eaf1ff 100%);
  padding: 56px 0 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } }
.hero-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.hero-subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 18px;
}
.hero-desc { color: var(--text-light); font-size: 1.05rem; margin-bottom: 26px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(20,40,80,.16); }

/* Section basics */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.section-lead {
  text-align: center;
  color: var(--text-light);
  max-width: 60ch;
  margin: 0 auto 40px;
}

/* Pain points */
.pain-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 30px rgba(20,40,80,.06);
}
.pain-box h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 6px; }
.pain-box h1 { font-size: 1.9rem; margin-bottom: 16px; }
.pain-box p { color: var(--text-light); font-size: 1.05rem; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 6px 20px rgba(20,40,80,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,40,80,.12); }
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service-card p { color: var(--text-light); font-size: .95rem; }

/* Testimonials slider */
.testi-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 20px rgba(20,40,80,.06);
}
.testi-card .stars { color: #fbbc04; letter-spacing: 2px; margin-bottom: 12px; }
.testi-card p { color: var(--text); white-space: pre-line; }

/* Before/after */
.before-after {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: start;
}
@media (max-width: 860px) { .before-after { grid-template-columns: 1fr; } }
.before-after img, .before-after video {
  border-radius: var(--radius);
  width: 100%;
  box-shadow: 0 8px 24px rgba(20,40,80,.08);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-grid a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* About / solution */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-text strong { color: var(--text); }

/* Contact form */
.contact-form-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(20,40,80,.1);
}
.contact-form-box h3 { margin-bottom: 4px; font-size: 1.2rem; }
.contact-form-box .form-note { color: var(--text-light); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; background: #fff; }
.field textarea { resize: vertical; min-height: 100px; }
.contact-form-box button[type="submit"] { width: 100%; justify-content: center; }

/* Footer */
.site-footer {
  background: #0f1d33;
  color: #cfd9e8;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { color: #cfd9e8; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .85rem;
  color: #93a2b8;
}
.footer-bottom a { color: #93a2b8; }
.footer-bottom a:hover { color: #fff; }

/* FAB */
.fab-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.fab {
  pointer-events: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fab.wa { background: #25D366; }
.fab.call { background: var(--primary); }
.fab svg { width: 28px; height: 28px; fill: white; }
@media (max-width: 480px) {
  .fab { width: 48px; height: 48px; }
  .fab svg { width: 24px; height: 24px; }
}
@media print { .fab-container { display: none; } }

/* Simple content page (thanks / accessibility use .a11y-page from a11y-widget.css too) */
.simple-page {
  padding: 90px 24px 100px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.simple-page .icon-badge {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.simple-page .icon-badge svg { width: 44px; height: 44px; }
.simple-page h1 { font-size: 2rem; margin-bottom: 14px; }
.simple-page p { color: var(--text-light); font-size: 1.08rem; margin-bottom: 28px; }
