* { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #ffffff;
    --bg-alt: #f4f6f8;
    --surface: #ffffff;
    --text: #1a1d21;
    --muted: #5a6472;
    --accent: #2563eb;
    --accent-dark: #1e3a8a;
    --border: #e5e8ec;
    --navy: #0f172a;
    --navy-2: #16233d;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.03);
    --shadow-md: 0 14px 30px rgba(15,23,42,.08);
    --shadow-lg: 0 30px 64px rgba(15,23,42,.14);
  }
  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  a { text-decoration: none; color: inherit; }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .logo { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
  .logo span { color: var(--accent); }
  .menu { display: flex; gap: 30px; align-items: center; }
  .menu a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
  .menu a:hover { color: var(--text); }
  .menu .btn { color: #fff; }
  .btn {
    display: inline-block; padding: 11px 22px; border-radius: 8px;
    font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: background .15s, transform .1s;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-dark); }
  .btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
  .btn-ghost:hover { border-color: var(--accent); }

  /* Hero */
  .hero { padding: 84px 0 72px; background: var(--bg); }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  .hero-inner { max-width: none; }
  .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #eef4ff; color: var(--accent-dark); font-weight: 600; font-size: 13px;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  }
  h1 { font-size: 46px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 18px; }
  h1 .hl { color: var(--accent); }
  .hero p.lead { font-size: 19px; color: var(--muted); margin-bottom: 30px; max-width: 620px; }
  .hero-cta { display: flex; gap: 14px; margin-bottom: 40px; }
  .tags { display: flex; flex-wrap: wrap; gap: 10px; }
  .tag { font-size: 14px; font-weight: 500; color: var(--muted); background: var(--bg-alt); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); }

  /* Sections */
  section { padding: 64px 0; }
  section.alt { background: var(--bg-alt); }
  .sec-head { max-width: 620px; margin-bottom: 44px; }
  .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
  h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
  .sec-head p { color: var(--muted); font-size: 17px; }

  /* Cards */
  .grid { display: grid; gap: 24px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card {
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px;
    transition: box-shadow .2s, border-color .2s;
  }
  .card:hover { box-shadow: 0 8px 24px rgba(26,29,33,.08); border-color: #cdd6e0; }
  .icon {
    width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    background: #eef4ff; color: var(--accent); margin-bottom: 18px;
  }
  .card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
  .card p { font-size: 14.5px; color: var(--muted); }
  .card .link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--accent); }

  /* Metrics */
  .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
  .metric { text-align: left; }
  .metric .num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
  .metric .lbl { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

  /* Case */
  .case { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .case-body { padding: 24px; }
  .case-tag { font-size: 12px; font-weight: 700; color: var(--accent-dark); background: #eef4ff; padding: 4px 10px; border-radius: 6px; }
  .case h3 { font-size: 19px; font-weight: 700; margin: 12px 0 6px; }
  .case p { font-size: 14.5px; color: var(--muted); }
  .case .res { margin-top: 14px; font-weight: 700; color: #16a34a; font-size: 15px; }
  .case-thumb { height: 150px; background: linear-gradient(135deg, #eef4ff, #e0eaff); display:flex; align-items:center; justify-content:center; color: var(--accent-dark); font-weight: 700; font-size: 15px; }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { position: relative; }
  .step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom: 14px; }
  .step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
  .step p { font-size: 14px; color: var(--muted); }

  /* CTA + form */
  .cta-band { background: var(--accent); border-radius: 18px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .cta-band h2 { color: #fff; }
  .cta-band p { color: #dbe7ff; font-size: 16px; }
  .form { background: #fff; border-radius: 14px; padding: 28px; color: var(--text); }
  .form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
  .form input, .form select, .form textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 15px; margin-bottom: 14px; color: var(--text); background: #fbfcfd;
  }
  .form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
  .form .btn { width: 100%; }
  .form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

  /* Footer */
  footer { background: #14161a; color: #cbd2dc; padding: 56px 0 32px; }
  .foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  footer .logo { color: #fff; margin-bottom: 12px; }
  footer p { font-size: 14px; }
  footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
  footer a { display: block; font-size: 14px; color: #cbd2dc; margin-bottom: 8px; }
  footer a:hover { color: #fff; }
  .foot-bottom { border-top: 1px solid #262a31; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #7d8694; display: flex; justify-content: space-between; }

  svg { display: block; }

  /* Case thumbnails + flash messages */
  .case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; font-size: 14.5px; background: #eef4ff; color: var(--accent-dark); }

/* Case detail content spacing */
.case-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
}
.case-content h3:first-child { margin-top: 0; }
.case-content p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #3a424d;
  margin-bottom: 14px;
}
.case-content .res {
  font-size: 18px;
  font-weight: 700;
  color: #16a34a;
  margin: 24px 0;
}

/* Case gallery + lightbox */
.case-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.case-gallery .gallery-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); transition: opacity .15s; }
.case-gallery .gallery-item:hover img { opacity: .8; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 34px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }

/* Burger menu toggle */
.burger { display: none; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 3px 0; transition: .2s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 48px 0 40px; }
  .hero p.lead { font-size: 17px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  section { padding: 40px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 20px; gap: 24px; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .sec-head { margin-bottom: 28px; }
  .case-thumb { height: 180px; }
  .container { padding: 0 20px; }

  header { overflow: visible; }
  .nav { position: relative; }
  .burger {
    display: flex; flex-direction: column; justify-content: center;
    width: 32px; height: 32px; cursor: pointer; background: none; border: none; padding: 0;
  }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(26,29,33,.08);
    flex-direction: column; align-items: stretch; padding: 16px 20px; gap: 4px;
  }
  .menu.open { display: flex; }
  .menu a { width: 100%; padding: 10px 0; }
  .menu a.btn { display: none; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .metric .num { font-size: 30px; }
}

/* Hero CTA — bigger + subtle shine */
.hero-cta .btn-primary {
  position: relative;
  overflow: hidden;
  font-size: 18px;
  padding: 14px 28px;
}
.hero-cta .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0% { left: -100%; }
  55% { left: 150%; }
  100% { left: 150%; }
}

/* Hero tags — staggered fade-in */
.hero .tag {
  opacity: 0;
  animation: heroFadeIn .5s ease forwards;
}
.hero .tag:nth-child(1) { animation-delay: .15s; }
.hero .tag:nth-child(2) { animation-delay: .25s; }
.hero .tag:nth-child(3) { animation-delay: .35s; }
.hero .tag:nth-child(4) { animation-delay: .45s; }
.hero .tag:nth-child(5) { animation-delay: .55s; }
.hero .tag:nth-child(6) { animation-delay: .65s; }
.hero .tag:nth-child(7) { animation-delay: .75s; }
.hero .tag:nth-child(8) { animation-delay: .85s; }
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary::after { animation: none; }
  .hero .tag { animation: none; opacity: 1; }
}

/* Card — fixed structure (equal height, no shifting) */
.card {
  display: flex;
  flex-direction: column;
}
.card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 57.6px; /* 2 lines of 18px @ line-height 1.6 */
}
.card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 69.6px; /* 3 lines of 14.5px @ line-height 1.6 */
}
.card .link {
  margin-top: auto;
  padding-top: 14px;
}

/* Case cards — smaller, fixed title, bottom link, hover */
.case { transition: box-shadow .2s, border-color .2s; }
.case:hover { box-shadow: 0 8px 24px rgba(26,29,33,.08); border-color: #cdd6e0; }
.case-thumb { height: 120px; }
.case-body { padding: 20px; display: flex; flex-direction: column; }
.case h3 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 121.6px; /* reserve 4 lines of 19px @ line-height 1.6 */
}
.case .link { margin-top: auto; padding-top: 14px; }

@media (max-width: 768px) {
  .case-thumb { height: 144px; }
}

/* Case tag — compact pill, sized to text (not full row) */
.case-tag {
  align-self: flex-start;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Case cards — 16:9 cover, smaller title, blue CTA */
.case-thumb { aspect-ratio: 16 / 9; height: auto; }
.case h3 { font-size: 18px; min-height: 115.2px; }
.case .link { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Cases slider */
.cases-slider { position: relative; }
.cases-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px;
  scrollbar-width: none;
}
.cases-track::-webkit-scrollbar { display: none; }
.cases-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 29, 33, .10);
}
.slider-prev { left: -14px; }
.slider-next { right: -14px; }

@media (max-width: 992px) {
  .cases-slide { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 768px) {
  .cases-slide { flex: 0 0 85%; }
  .slider-btn { display: none; }
}

/* Service card price — fixed line for uniform card size */
.card .res {
  font-weight: 700;
  color: #16a34a;
  font-size: 15px;
  margin-top: 6px;
  min-height: 22px;
}

/* Hero visual — code editor mockup */
.hero-visual { display: flex; justify-content: flex-end; }
.code-window { width: 100%; max-width: 500px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(30,58,138,.12); overflow: hidden; }
.code-titlebar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: #fbfcfd; }
.cdot { width: 11px; height: 11px; border-radius: 50%; }
.cdot:nth-child(1) { background: #f87171; }
.cdot:nth-child(2) { background: #fbbf24; }
.cdot:nth-child(3) { background: #34d399; }
.code-file { margin-left: auto; font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-body { padding: 20px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.85; }
.code-line { white-space: nowrap; }
.code-line.indent { padding-left: 22px; }
.c-kw { color: #1e3a8a; font-weight: 600; }
.c-fn { color: #2563eb; }
.c-str { color: #16a34a; }
.c-com { color: #9aa3af; }
.c-var { color: #0ea5e9; }
.c-num { color: #b45309; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ===== Services page (premium catalog) ===== */
.svc-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eef1f6 0%, var(--bg) 72%);
  padding: 88px 0 56px; border-bottom: 1px solid var(--border);
}
.svc-hero::before {
  content: ""; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.10) 0%, rgba(37,99,235,0) 70%);
  pointer-events: none;
}
.svc-hero .container { position: relative; }
.svc-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.svc-kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.svc-hero h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--navy); margin-bottom: 18px; }
.svc-hero h1 .hl { color: var(--accent); }
.svc-hero p { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 640px; margin-bottom: 34px; }

.svc-trust { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 36px; border-top: 1px solid var(--border); padding-top: 22px; }
.svc-trust__item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); padding: 4px 26px 4px 0; margin-right: 26px; border-right: 1px solid var(--border); }
.svc-trust__item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.svc-trust__ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); transition: border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.svc-chip:hover { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.svc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-chip__ic { font-size: 16px; }

.svc-dir { padding: 80px 0; border-bottom: 1px solid var(--border); }
.svc-dir--alt { background: var(--bg-alt); }
.svc-dir__head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.svc-dir__icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--accent-dark) 100%); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; box-shadow: var(--shadow-md); }
.svc-dir__meta { flex: 1; min-width: 220px; }
.svc-dir__meta h2 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-bottom: 4px; }
.svc-dir__meta p { color: var(--muted); font-size: 15px; }
.svc-dir__all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--navy); white-space: nowrap; }
.svc-dir__all span { display: inline-block; transition: transform .18s; }
.svc-dir__all:hover { color: var(--accent); }
.svc-dir__all:hover span { transform: translateX(3px); }

.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.svc-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-card__icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--border); align-items: center; justify-content: center; font-size: 21px; margin-bottom: 18px; }
.svc-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); flex: 1; margin-bottom: 18px; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.svc-card__price { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.svc-card__price--empty { color: var(--muted); font-weight: 600; }
.svc-card__link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--accent); }

.svc-cta { padding: 24px 0 88px; }
.svc-cta__box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 20px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 30px 60px rgba(15,23,42,.28);
}
.svc-cta__box::before {
  content: ""; position: absolute; top: -140px; right: -80px; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.35) 0%, rgba(37,99,235,0) 70%);
}
.svc-cta__box > * { position: relative; }
.svc-cta__box h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.svc-cta__box p { color: rgba(255,255,255,.72); font-size: 16px; }
.svc-cta .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.svc-cta .btn-primary:hover { background: #eef3ff; }

@media (max-width: 992px) {
  .svc-cta__box { padding: 40px; }
}
@media (max-width: 768px) {
  .svc-hero { padding: 56px 0 40px; }
  .svc-trust { flex-direction: column; gap: 12px; border-top: none; padding-top: 0; }
  .svc-trust__item { border-right: none; margin-right: 0; padding: 0; }
  .svc-dir { padding: 52px 0; }
  .svc-cta { padding: 16px 0 56px; }
  .svc-cta__box { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
}

/* ===== Service detail page ===== */
.sdet-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 58%, var(--accent-dark) 140%);
  padding: 72px 0 60px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sdet-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 65%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 65%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.sdet-hero::after {
  content: ""; position: absolute; top: -200px; right: -160px; width: 560px; height: 560px;
  border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.35) 0%, rgba(96,165,250,0) 70%);
  pointer-events: none;
}
.sdet-hero .container { position: relative; }
.sdet-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.sdet-hero__grid--solo { grid-template-columns: 1fr; }
.sdet-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a8c6ff; margin-bottom: 18px; border-radius: 4px; }
.sdet-crumb:hover { color: #fff; }
.sdet-crumb:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sdet-hero h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #fff; margin-bottom: 18px; }
.sdet-lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 26px; }
.sdet-hero__row { margin-bottom: 28px; }
.sdet-price { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); padding: 10px 20px; border-radius: 999px; backdrop-filter: blur(6px); }
.sdet-price::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; flex-shrink: 0; }
.sdet-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.sdet-hero__cta .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.sdet-hero__cta .btn-primary:hover { background: #eef3ff; }
.sdet-hero__cta .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.sdet-hero__cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.sdet-hero__cta .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sdet-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.sdet-trust__item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.72); }
.sdet-trust__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; flex-shrink: 0; }
.sdet-hero__media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 64px rgba(0,0,0,.35); background: rgba(255,255,255,.04); }
.sdet-hero__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.sdet-hero__media img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }

.sdet-sec { padding: 88px 0; }
.sdet-sec--alt { background: var(--bg-alt); }
.sdet-h2 { position: relative; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); padding-bottom: 20px; margin-bottom: 40px; }
.sdet-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; border-radius: 2px; background: var(--accent); }
.sdet-prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: var(--text); }
.sdet-prose p { margin-bottom: 14px; }

.sdet-features { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; max-width: 900px; }
.sdet-feat { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.sdet-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; margin-top: 1px; }

.sdet-steps { list-style: none; max-width: 720px; counter-reset: none; }
.sdet-step { position: relative; display: flex; gap: 22px; padding-bottom: 40px; }
.sdet-step:last-child { padding-bottom: 0; }
.sdet-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--border); }
.sdet-step-num { position: relative; z-index: 1; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.sdet-step-txt { font-size: 16px; line-height: 1.6; padding-top: 8px; }

.sdet-video { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--navy); }
.sdet-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sdet-faq { max-width: 820px; }
.sdet-faq__item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease; }
.sdet-faq__item:hover { box-shadow: var(--shadow-sm); border-color: #d7dce2; }
.sdet-faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sdet-faq__item summary::-webkit-details-marker { display: none; }
.sdet-faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sdet-faq__item summary::after {
  content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--accent); font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sdet-faq__item[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: #fff; }
.sdet-faq__ans { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

@media (max-width: 992px) {
  .sdet-hero__grid { gap: 36px; }
}
@media (max-width: 768px) {
  .sdet-hero { padding: 48px 0 36px; }
  .sdet-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .sdet-sec { padding: 56px 0; }
  .sdet-h2 { margin-bottom: 30px; }
  .sdet-features { grid-template-columns: 1fr; }
}

/* Footer legal links */
.foot-legal { display: flex; gap: 16px; }
.foot-legal a { display: inline; margin-bottom: 0; }

/* Legal pages (offer / privacy / cookies) */
.legal-page { padding: 56px 0 72px; }
.legal-doc { max-width: 860px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.legal-doc h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.legal-doc h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal-doc p, .legal-doc li { margin-bottom: 10px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px 22px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--bg-alt); }
.legal-doc a { color: var(--accent); }

@media (max-width: 768px) {
  .legal-page { padding: 36px 0 48px; }
  .legal-doc { font-size: 15px; }
}
