/* ==========================================================================
   Inventisko — Design System & Styles
   ========================================================================== */

:root {
  /* Color tokens */
  --bg: #0a0e17;
  --bg-elevated: #10151f;
  --bg-card: #121824;
  --bg-card-hover: #161d2b;
  --border: #232b3a;
  --border-light: #2c3648;

  --text-primary: #f4f6fb;
  --text-secondary: #9aa5b8;
  --text-muted: #7b8598; /* meets WCAG AA 4.5:1 against --bg for small text */

  --accent: #4f7cff;
  --accent-bright: #6f93ff;
  --accent-soft: rgba(79, 124, 255, 0.12);
  --accent-cyan: #35d0c4;
  --accent-cyan-soft: rgba(53, 208, 196, 0.12);

  --success: #35d0a0;
  --warn: #f2b84b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(79, 124, 255, 0.25), 0 8px 40px rgba(79, 124, 255, 0.15);

  --max-width: 1180px;
  --section-pad: 120px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 72px;
  }
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}
section { padding: var(--section-pad) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 124, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 18px;
  white-space: pre-wrap;
}
.body-text { color: var(--text-secondary); font-size: 1.02rem; white-space: pre-wrap; }

.text-gradient {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-cyan));
  color: #060a12;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand-logo { height: 30px; width: auto; display: block; flex-shrink: 0; }
.footer-brand .brand-logo { height: 26px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 2px;
  background: var(--accent-bright);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
@media (max-width: 860px) {
  /* height is set with calc(100vh - ...) rather than bottom:0 because .navbar uses
     backdrop-filter, which (like transform) creates a new containing block for
     fixed-position descendants — bottom:0 would resolve against the ~68px-tall
     navbar box instead of the viewport, clipping this panel to a sliver. */
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px); background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 32px; gap: 22px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 168px;
  padding-bottom: 100px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(79,124,255,0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(53,208,196,0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-cta-row { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-grid .hero-inner { max-width: none; }
.hero-image { width: 100%; }
.hero-image img { width: 100%; height: auto; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 460px; margin: 0 auto; order: -1; }
}

.section-image { width: 100%; border-radius: var(--radius-lg); overflow: hidden; }
.section-image img { width: 100%; height: auto; display: block; }
.about-image { max-width: 520px; margin: 0 auto; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.stat-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat { }
.stat .num { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--text-primary); }
.stat .num span { color: var(--accent-bright); }
.stat .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
@media (max-width: 720px) {
  .stat-row, .stat-row.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-light); background: var(--bg-card-hover); }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.icon-tile svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.mini-stats { display: flex; gap: 24px; padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: 18px; }
.mini-stats div { flex: 1; }
.mini-stats .n { font-weight: 800; color: var(--accent-bright); font-size: 1.1rem; }
.mini-stats .l { font-size: 0.78rem; color: var(--text-muted); }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-bright); font-weight: 600; font-size: 0.92rem; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Numbered feature list ---------- */
.feature-row { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--accent-bright);
}
.feature-copy h3 { margin-bottom: 6px; font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(79,124,255,0.16), rgba(53,208,196,0.1));
  border: 1px solid rgba(79,124,255,0.28);
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 30px; }
.cta-band .hero-cta-row { justify-content: center; margin-top: 0; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ---------- Testimonials ---------- */
.testimonial-card { position: relative; }
.testimonial-card .quote-mark { font-size: 2.6rem; color: var(--accent); opacity: 0.5; line-height: 1; margin-bottom: 6px; font-family: Georgia, serif; }
.testimonial-card p.quote { color: var(--text-primary); font-size: 1.02rem; margin-bottom: 22px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #060a12; font-size: 0.9rem;
}
.testimonial-person .name { font-weight: 700; font-size: 0.94rem; }
.testimonial-person .role { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; padding-left: 28px; border-left: 1px solid var(--border-light); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline-year { color: var(--accent-bright); font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }

/* ---------- Values / About cards ---------- */
.value-card .icon-tile { background: var(--accent-cyan-soft); color: var(--accent-cyan); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; color: #060a12;
}
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--accent-bright); font-size: 0.88rem; font-weight: 600; margin-bottom: 12px; }

/* ---------- Quote / Story block ---------- */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  line-height: 1.5;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* On a single-column layout, lead with the form (the primary action) and
     push the contact-details block below it, instead of the source order
     (details, then form) that the two-column desktop layout relies on. */
  .contact-grid .contact-form-col { order: -1; }
}
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item .icon-tile { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; }
.contact-info-item h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item p { font-weight: 600; }

.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-size: 0.85rem; color: var(--text-secondary); }
.checkbox-row label a { color: var(--accent-bright); text-decoration: underline; }
.form-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-cyan-soft); border: 1px solid rgba(53,208,196,0.35); color: var(--text-primary); font-size: 0.9rem; margin-bottom: 18px; }
.form-status.visible { display: block; }

.office-card { }
.office-card .flag { font-size: 1.6rem; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: left;
}
.faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--accent-bright); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding-bottom: 22px; color: var(--text-secondary); max-width: 640px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-elevated); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); margin-top: 14px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}
.social-row a:hover { color: var(--accent-bright); border-color: var(--accent); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Accessibility: focus states & skip link ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #060a12;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: 160px; padding-bottom: 72px; text-align: center; }
.page-hero .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Cookie consent banner ---------- */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}
#cookie-consent-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 640px;
}
#cookie-consent-banner a {
  color: var(--accent-bright);
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-consent-actions .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-consent-actions {
    justify-content: center;
  }
}

/* ==========================================================================
   Services page
   Sticky service switcher + one panel per service + connected process steps.
   ========================================================================== */
.svc-hero { padding-bottom: 44px; }

/* Offsets: fixed navbar is 88px tall on desktop and 75px at <=860px. */
.svc-wrap { --svc-nav-top: 88px; --svc-nav-h: 62px; }
@media (max-width: 860px) { .svc-wrap { --svc-nav-top: 75px; } }

.svc-nav {
  position: sticky;
  top: var(--svc-nav-top);
  z-index: 90;
  background: rgba(10, 14, 23, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* The container scrolls sideways on narrow screens; its padding keeps the first pill inset. */
.svc-nav .container { position: relative; overflow-x: auto; scrollbar-width: none; }
.svc-nav .container::-webkit-scrollbar { display: none; }
.svc-nav-list { display: flex; gap: 8px; padding: 12px 0; }
.svc-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.svc-nav-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.svc-nav-list a:hover { color: var(--text-primary); border-color: var(--border-light); }
.svc-nav-list a[aria-current="true"] {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: rgba(79, 124, 255, 0.45);
}
.svc-nav-list a[aria-current="true"] svg { color: var(--accent-bright); }

.svc-section { padding-top: 0; padding-bottom: calc(var(--section-pad) * 0.6); }
.svc-list { display: grid; gap: 28px; padding-top: 40px; }

.svc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--svc-nav-top) + var(--svc-nav-h) + 16px);
  /* repeats the .reveal transitions, since this rule would otherwise replace them */
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Marks the service currently in view (set by the scroll watcher in script.js). */
.svc-panel.is-active {
  border-color: rgba(79, 124, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(79, 124, 255, 0.18), 0 18px 60px rgba(79, 124, 255, 0.1);
}

.svc-main { padding: 44px 48px; display: flex; flex-direction: column; align-items: flex-start; }
.svc-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.svc-title .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.svc-title h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.svc-lede { margin-top: 0; font-size: 1.1rem; font-weight: 500; color: var(--text-primary); }
.svc-body { margin-top: 14px; font-size: 0.98rem; }

.svc-checks {
  display: grid;
  gap: 12px;
  align-self: stretch;
  margin: 26px 0 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.svc-checks li { position: relative; padding-left: 32px; font-weight: 500; }
.svc-checks li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(53, 208, 196, 0.35);
}
.svc-checks li::after {
  content: '';
  position: absolute;
  left: 7px; top: 6px;
  width: 6px; height: 10px;
  border: solid var(--accent-cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.8);
}
.svc-cta { margin-top: auto; }

.svc-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 36px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(79, 124, 255, 0.1), transparent 60%),
    var(--bg-elevated);
  border-left: 1px solid var(--border);
}
.svc-art img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }

.svc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 23, 0.45);
}
.svc-stats li { padding: 14px 16px; }
.svc-stats li + li { border-left: 1px solid var(--border); }
.svc-stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.svc-stats span { font-size: 0.78rem; color: var(--text-muted); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
  .svc-visual { border-left: 0; border-top: 1px solid var(--border); }
  .svc-art { max-width: 420px; width: 100%; margin: 0 auto; }
  .svc-cta { margin-top: 0; }
}
@media (max-width: 640px) {
  .svc-main { padding: 28px 22px; }
  .svc-visual { padding: 22px; }
  .svc-title { gap: 14px; }
  .svc-cta { width: 100%; }
  .svc-stats li { padding: 12px; }
  .svc-stats strong { font-size: 1rem; }
  .svc-list { padding-top: 28px; gap: 20px; }
}

/* ---------- Process steps (a real sequence, so the numbers earn their place) ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; text-align: left; }
.process-steps li { list-style: none; }
.process-steps li { position: relative; }
.step-badge {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.process-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px; left: 56px; right: -20px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-light), var(--border));
}
.process-steps h3 { margin-bottom: 8px; }
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-steps li { padding-left: 64px; }
  .step-badge { position: absolute; left: 0; top: 0; margin: 0; }
  .process-steps li:not(:last-child)::after {
    top: 52px; left: 22px; right: auto; bottom: -24px;
    width: 1px; height: auto;
    background: var(--border-light);
  }
}
#process { padding-top: calc(var(--section-pad) * 0.8); padding-bottom: calc(var(--section-pad) * 0.4); }
.form-captcha { margin: 6px 0 18px; min-height: 78px; }
