/* =========================================================
   62px — Design System
   Brand motif: digit 62 (radius, spacing, 62-day promise)
   Stack: Bootstrap 5 + custom tokens + light/dark themes
   Fonts: Inter (display + body, full Latin/Cyrillic/Greek) + JetBrains Mono (accents, all 3 scripts)
   ========================================================= */

/* Metric-matched fallback for Inter — makes the system fallback occupy the
   same space as Inter so the late web-font swap causes no reflow (CLS≈0).
   Values match Next.js/fontsource Arial→Inter overrides. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.00%;
  descent-override: 22.43%;
  line-gap-override: 0.00%;
  size-adjust: 107.12%;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --c-accent:      #C3FA4B;
  --c-accent-ink:  #0B0B0D;
  --c-warning:     #FF6B4A;
  --c-success:     #22C55E;
  --c-info:        #3D89FF;

  /* Light theme (default) */
  --c-bg:          #FFFFFF;
  --c-bg-alt:      #F5F5F7;
  --c-surface:     #FFFFFF;
  --c-surface-2:   #F5F5F7;
  --c-surface-3:   #ECECEF;
  --c-ink:         #0B0B0D;
  --c-ink-2:       #3A3B40;
  --c-muted:       #6B6D75;
  --c-border:      #E5E5EA;
  --c-border-2:    #D1D1D6;
  --c-overlay:     rgba(11, 11, 13, 0.5);

  /* Hero (always dark, even in light theme) */
  --c-hero-bg:     #0B0B0D;
  --c-hero-surface:#17171A;
  --c-hero-border: #26262B;
  --c-hero-ink:    #FFFFFF;
  --c-hero-muted:  #9C9DA5;

  /* Typography — single family for all languages (Latin / Cyrillic / Greek) */
  --font-display: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radius (62-scale) */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 62px;
  --r-pill: 999px;

  /* Spacing (includes 62) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 62px;
  --s-9: 96px;
  --s-10: 124px;

  /* Container */
  --container-max: 1240px;  /* 62 × 20 */

  /* Header height */
  --header-h: 62px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 11, 13, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 11, 13, 0.06);
  --shadow-lg: 0 12px 40px rgba(11, 11, 13, 0.08);
  --shadow-xl: 0 24px 62px rgba(11, 11, 13, 0.12);
  --shadow-accent: 0 12px 40px rgba(195, 250, 75, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med:  300ms;
  --t-slow: 600ms;
}

@media (min-width: 992px) {
  :root { --header-h: 80px; }
}

/* Dark theme */
[data-theme="dark"] {
  --c-bg:          #0B0B0D;
  --c-bg-alt:      #101014;
  --c-surface:     #17171A;
  --c-surface-2:   #1E1E23;
  --c-surface-3:   #26262B;
  --c-ink:         #FFFFFF;
  --c-ink-2:       #D1D1D6;
  --c-muted:       #9C9DA5;
  --c-border:      #26262B;
  --c-border-2:    #3A3B40;
  --c-overlay:     rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 62px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
::-webkit-scrollbar { width: 0; height: 0; }
html { scrollbar-width: none; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

a:hover { opacity: 0.8; }

::selection { background: var(--c-accent); color: var(--c-accent-ink); }

/* ---------- Typography ---------- */
.display-1, .display-2, .display-3,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 var(--s-4);
}
h1, .h1 { line-height: 1.18; }
h2, .h2 { line-height: 1.2; }

h1, .h1 { font-size: clamp(1.125rem, 4.5vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; overflow-wrap: break-word; word-break: normal; }
h2, .h2 { font-size: clamp(1.25rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; overflow-wrap: break-word; }
@media (min-width: 768px) {
  h1, .h1 { font-size: clamp(2rem, 5vw, 4.25rem); }
}
@media (min-width: 992px) {
  h1, .h1 { font-size: clamp(2.5rem, 4vw, 4.25rem); }
}
h3, .h3 { font-size: clamp(1.375rem, 1.5vw + 0.75rem, 1.875rem); }
h4, .h4 { font-size: clamp(1.125rem, 0.75vw + 0.875rem, 1.375rem); }
h5, .h5 { font-size: 1.125rem; font-weight: 600; }
h6, .h6 { font-size: 0.9375rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.display-1 { font-size: clamp(3rem, 8vw, 6.25rem); font-weight: 700; letter-spacing: -0.04em; }
.display-62 { font-size: clamp(3.5rem, 10vw, 7.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; font-family: var(--font-display); }

p { margin: 0 0 var(--s-4); color: var(--c-ink-2); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--c-ink-2); }
small, .small { font-size: 0.875rem; }
.text-muted { color: var(--c-muted) !important; }
.text-mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.text-accent {
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 0 0.15em;
  border-radius: var(--r-sm);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Container ---------- */
.container-62 {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--s-4);
}
@media (max-width: 480px) { .container-62 { padding-inline: 12px; } }
@media (min-width: 768px) { .container-62 { padding-inline: var(--s-5); } }
@media (min-width: 1240px) { .container-62 { padding-inline: var(--s-7); } }

/* On very small mobile: reduce Bootstrap row gutters to prevent negative-margin overflow */
@media (max-width: 480px) {
  .row { --bs-gutter-x: 0.5rem; }
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1rem; }
  .row.g-4, .row.gx-4 { --bs-gutter-x: 0.75rem; }
  .row.g-3, .row.gx-3 { --bs-gutter-x: 0.5rem; }
}

/* ---------- Section ---------- */
.section {
  padding-block: var(--s-8);
}
@media (min-width: 992px) {
  .section { padding-block: var(--s-9); }
}
.section-tight { padding-block: var(--s-7); }
.section-head { margin-bottom: var(--s-7); }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- Icon ---------- */
.i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}
.i-16 { width: 16px; height: 16px; }
.i-20 { width: 20px; height: 20px; }
.i-24 { width: 24px; height: 24px; }
.i-32 { width: 32px; height: 32px; }
.i-40 { width: 40px; height: 40px; }
.i-48 { width: 48px; height: 48px; }
.i-62 { width: 62px; height: 62px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-ink);
  --btn-ink: var(--c-bg);
  --btn-border: var(--c-ink);
  --btn-bg-hover: var(--c-ink-2);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  text-align: center;
  white-space: nowrap;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  user-select: none;
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-ink);
  opacity: 1;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; }

.btn-accent {
  --btn-bg: var(--c-accent);
  --btn-ink: var(--c-accent-ink);
  --btn-border: var(--c-accent);
  --btn-bg-hover: #B4F12A;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { box-shadow: 0 16px 48px rgba(195, 250, 75, 0.35); }

.btn-outline {
  --btn-bg: transparent;
  --btn-ink: var(--c-ink);
  --btn-border: var(--c-border-2);
  --btn-bg-hover: var(--c-surface-2);
}
[data-theme="dark"] .btn-outline { --btn-border: var(--c-border-2); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-ink: var(--c-ink);
  --btn-border: transparent;
  --btn-bg-hover: var(--c-surface-2);
}

.btn-on-dark {
  --btn-bg: #FFFFFF;
  --btn-ink: #0B0B0D;
  --btn-border: #FFFFFF;
  --btn-bg-hover: #F5F5F7;
}

.btn-outline-on-dark {
  --btn-bg: transparent;
  --btn-ink: #FFFFFF;
  --btn-border: rgba(255,255,255,0.25);
  --btn-bg-hover: rgba(255,255,255,0.1);
}

.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 0.8125rem; }
.btn-icon { padding: 0; width: 44px; min-height: 44px; aspect-ratio: 1; }
.btn-icon.btn-lg { width: 56px; min-height: 56px; }

/* ---------- Pill / Chip / Badge ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
}
.pill-accent {
  color: var(--c-accent-ink);
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.pill-dark {
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Card ---------- */
.card62 {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  overflow: hidden;
}
@media (max-width: 768px) { .card62 { border-radius: var(--r-lg); padding: var(--s-5); } }
.card62:hover {
  transform: translateY(-2px);
  border-color: var(--c-border-2);
  box-shadow: var(--shadow-lg);
}
.card62-hover-accent:hover {
  border-color: var(--c-accent);
}

.card62-md { border-radius: var(--r-md); padding: var(--s-5); }
.card62-sm { border-radius: var(--r-sm); padding: var(--s-4); }

.card62-dark {
  background: var(--c-hero-surface);
  border-color: var(--c-hero-border);
  color: var(--c-hero-ink);
}
.card62-dark h3, .card62-dark h4 { color: var(--c-hero-ink); }
.card62-dark p { color: var(--c-hero-muted); }

.card62-accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}
.card62-accent h2, .card62-accent h3 { color: var(--c-accent-ink); }
.card62-accent p { color: var(--c-accent-ink); opacity: 0.85; }

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-ink-2);
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 4px rgba(11, 11, 13, 0.06);
}
[data-theme="dark"] .input:focus,
[data-theme="dark"] .textarea:focus,
[data-theme="dark"] .select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(195, 250, 75, 0.15);
}
.textarea { resize: vertical; min-height: 124px; }

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select {
  padding-right: 48px;
  cursor: pointer;
}

/* Range slider (users count in CRM calc) — lime thumb */
input[type="range"].form-range {
  accent-color: var(--c-accent);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--c-surface-3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type="range"].form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-bg);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(195, 250, 75, 0.35);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"].form-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"].form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 3px solid var(--c-bg);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(195, 250, 75, 0.35);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"].form-range::-moz-range-track {
  height: 6px;
  background: var(--c-surface-3);
  border-radius: 999px;
}
input[type="range"].form-range:focus { outline: none; }

/* Checkbox tile (for calculators) */
.check-tile {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.check-tile:hover { border-color: var(--c-border-2); }
.check-tile input { position: absolute; opacity: 0; pointer-events: none; }
.check-tile .check-tile__box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--c-border-2);
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
  color: transparent;
}
.check-tile .check-tile__box .i { width: 14px; height: 14px; }
.check-tile:has(input:checked) { border-color: var(--c-ink); background: var(--c-surface-2); }
.check-tile:has(input:checked) .check-tile__box { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
[data-theme="dark"] .check-tile:has(input:checked) { border-color: var(--c-accent); background: rgba(195, 250, 75, 0.08); }
[data-theme="dark"] .check-tile:has(input:checked) .check-tile__box { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
.check-tile__body { flex: 1; min-width: 0; }
.check-tile__title { font-weight: 500; font-size: 0.9375rem; color: var(--c-ink); }
.check-tile__note { font-size: 0.8125rem; color: var(--c-muted); font-family: var(--font-mono); }

/* Radio tile (calc type selection) */
.radio-tile {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.radio-tile input { position: absolute; opacity: 0; pointer-events: none; }
.radio-tile:hover { border-color: var(--c-border-2); }
.radio-tile:has(input:checked) {
  border-color: var(--c-ink);
  background: var(--c-surface-2);
}
[data-theme="dark"] .radio-tile:has(input:checked) {
  border-color: var(--c-accent);
  background: rgba(195, 250, 75, 0.08);
}
.radio-tile .i { width: 28px; height: 28px; color: var(--c-ink); }
.radio-tile__title { font-weight: 600; font-size: 1rem; }
.radio-tile__note { font-size: 0.8125rem; color: var(--c-muted); }

/* ---------- Header ---------- */
.header62 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-med) var(--ease);
}
.header62.is-scrolled { border-bottom-color: var(--c-border); }
.header62-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}
.header62-brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.header62-brand__num { color: var(--c-ink); }
.header62-brand__unit {
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  margin-left: 2px;
}
.header62-nav {
  display: none;
  gap: 4px;
  align-items: center;
  margin-inline: auto;
}
@media (min-width: 992px) { .header62-nav { display: inline-flex; } }
.header62-nav__link {
  padding: 8px 14px;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.header62-nav__link:hover { background: var(--c-surface-2); color: var(--c-ink); opacity: 1; }
.header62-nav__link.is-active { color: var(--c-ink); background: var(--c-surface-2); }
.header62-nav__link.has-dropdown::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}
.nav-dd:hover > .header62-nav__link.has-dropdown::after,
.nav-dd:focus-within > .header62-nav__link.has-dropdown::after { transform: translateY(1px) rotate(-135deg); }
.nav-dd:hover > .header62-nav__link,
.nav-dd:focus-within > .header62-nav__link { background: var(--c-surface-2); color: var(--c-ink); }

/* CSS-only hover dropdown + side submenu — no Bootstrap JS */
.nav-dd { position: relative; }
.nav-dd__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1040;
}
/* small gap bridge so moving mouse from trigger to menu doesn't close */
.nav-dd::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: -40px;
  height: 12px;
  pointer-events: none;
}
.nav-dd:hover::after, .nav-dd:focus-within::after { pointer-events: auto; }
.nav-dd:hover > .nav-dd__menu,
.nav-dd:focus-within > .nav-dd__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: nav-dd-in 150ms var(--ease);
}
@keyframes nav-dd-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dd__item { position: relative; list-style: none; }
.nav-dd__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 9px 12px;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dd__item:hover > .nav-dd__link,
.nav-dd__item:focus-within > .nav-dd__link { background: var(--c-surface-2); color: var(--c-ink); }
.nav-dd__chev {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateX(-2px) rotate(-45deg);
  opacity: 0.6;
  flex-shrink: 0;
}
.nav-dd__divider { height: 1px; background: var(--c-border); margin: 6px 4px; }
.nav-dd__link--cta {
  color: var(--c-ink);
  font-weight: 500;
}
.nav-dd__link--cta:hover { background: var(--c-accent) !important; color: var(--c-accent-ink) !important; }
.nav-dd__link--cta .i { width: 16px; height: 16px; }

/* Side submenu — always opens to the right of parent */
.nav-dd__sub {
  position: absolute;
  top: -8px;
  left: 100%;
  margin-left: 8px;
  min-width: 240px;
  padding: 8px;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-dd__item.has-sub::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 100%;
  width: 12px;
  pointer-events: none;
}
.nav-dd__item.has-sub:hover::before { pointer-events: auto; }
.nav-dd__item.has-sub:hover > .nav-dd__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: nav-sub-in 150ms var(--ease);
}
@keyframes nav-sub-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nav-dd__sub li a {
  display: block;
  padding: 9px 12px;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dd__sub li a:hover { background: var(--c-surface-2); color: var(--c-ink); opacity: 1; }

/* Menu variants */
.nav-dd__menu--wide { min-width: 280px; }
.nav-dd__note {
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
}

/* If last dropdown menu would overflow right viewport, right-align its panel */
.header62-nav .nav-dd:last-of-type > .nav-dd__menu {
  left: auto;
  right: 0;
}
/* Cap submenu width for last dropdown to prevent viewport overflow */
.header62-nav .nav-dd:last-of-type .nav-dd__sub { min-width: 200px; max-width: 220px; }

.header62-actions { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: auto; }
@media (min-width: 992px) { .header62-actions { margin-left: 0; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: var(--c-surface-2);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
}
.lang-switch button,
.lang-switch a {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-muted);
  background: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.lang-switch button.is-active,
.lang-switch a.is-active { background: var(--c-ink); color: var(--c-bg); }

.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-ink);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--c-border-2); transform: rotate(20deg); }
.theme-toggle .i { width: 18px; height: 18px; }
.theme-toggle .i-sun, .theme-toggle .i-moon {
  position: absolute;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg); }
:root:not([data-theme="dark"]) .theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg); }
:root:not([data-theme="dark"]) .theme-toggle .i-moon { opacity: 1; transform: rotate(0); }

.mobile-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-ink);
}
@media (min-width: 992px) { .mobile-toggle { display: none; } }

/* Mobile offcanvas nav */
.offcanvas-62 { background: var(--c-bg); color: var(--c-ink); border: none; }
.offcanvas-62 .offcanvas-header { border-bottom: 1px solid var(--c-border); }
.offcanvas-62 .offcanvas-title { font-family: var(--font-mono); font-weight: 700; }
.offcanvas-62 .offcanvas-body { padding: var(--s-5); }
.offcanvas-62 .btn-close { filter: var(--c-ink) == #fff ? invert(1) : none; }
[data-theme="dark"] .offcanvas-62 .btn-close { filter: invert(1); }
.offcanvas-nav { display: flex; flex-direction: column; gap: 2px; }
.offcanvas-nav__link {
  display: block;
  padding: 12px 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--r-md);
  text-decoration: none;
}
.offcanvas-nav__link:hover { background: var(--c-surface-2); opacity: 1; }

.offcanvas-group { border-bottom: 1px solid var(--c-border); }
.offcanvas-group:first-child { border-top: 1px solid var(--c-border); }
.offcanvas-group__head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-ink);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.offcanvas-group__head::-webkit-details-marker { display: none; }
.offcanvas-group__head::marker { content: ""; }
.offcanvas-group__head:hover { background: var(--c-surface-2); }
.offcanvas-group__head .i { width: 18px; height: 18px; color: var(--c-muted); transition: transform var(--t-fast) var(--ease); }
.offcanvas-group[open] .offcanvas-group__head .i { transform: rotate(180deg); }
.offcanvas-group__body { display: flex; flex-direction: column; padding: 0 0 12px 8px; }
.offcanvas-group__body a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  border-radius: var(--r-sm);
  text-decoration: none;
}
.offcanvas-group__body a:hover { background: var(--c-surface-2); color: var(--c-ink); opacity: 1; }

/* ---------- Hero ---------- */
.hero62 {
  position: relative;
  background: var(--c-hero-bg);
  color: var(--c-hero-ink);
  padding-top: calc(var(--header-h) + var(--s-8));
  padding-bottom: var(--s-8);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
@media (min-width: 992px) {
  .hero62 { padding-top: calc(var(--header-h) + var(--s-9)); padding-bottom: var(--s-9); }
}
.hero62 h1 { color: var(--c-hero-ink); }
.hero62 p { color: var(--c-hero-muted); }

.hero62-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(195, 250, 75, 0.18), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(61, 137, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.hero62-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
}

.hero62-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 14px 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-hero-ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  max-width: 100%;
}
@media (max-width: 480px) {
  .hero62-eyebrow { font-size: 0.7rem; padding: 5px 10px 5px 8px; }
}
.hero62-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(195, 250, 75, 0.2);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(195, 250, 75, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(195, 250, 75, 0); }
}

.hero62-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
}
@media (max-width: 480px) {
  .hero62-mini-stats { gap: 8px; }
  .hero62-mini-stats__item { padding-left: 10px; }
  .hero62-mini-stats__num { font-size: 1.5rem; }
}
.hero62-mini-stats__item {
  padding-left: var(--s-4);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.hero62-mini-stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--c-hero-ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero62-mini-stats__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-hero-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .hero62-mini-stats__label {
    font-size: 0.5625rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }
  .hero62-mini-stats__label br { display: none; }
}
@media (max-width: 480px) {
  .logobar__grid { gap: var(--s-3) var(--s-4); }
  .logobar__logo { font-size: 0.9375rem; }
}

.hero62-visual {
  position: relative;
  padding: var(--s-6);
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  backdrop-filter: blur(20px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero62-visual__ring {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: rotate 40s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero62-visual__big {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--c-hero-ink);
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero62-visual__px {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 0.05em 0.18em 0;
  border-radius: var(--r-md);
  margin-left: 0.06em;
  font-size: 0.55em;
  vertical-align: middle;
  transform: translateY(-0.4em);
}

/* Logo bar */
.logobar {
  padding: var(--s-6) 0;
  border-bottom: 1px solid var(--c-border);
}
.logobar__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  text-align: center;
  margin-bottom: var(--s-5);
}
.logobar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-5);
  align-items: center;
  justify-items: center;
}
@media (min-width: 576px) { .logobar__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .logobar__grid { grid-template-columns: repeat(5, 1fr); } }
.logobar__logo {
  display: grid;
  place-items: center;
  height: 48px;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-muted);
  /* Muted color alone clears WCAG AA on both themes (#6B6D75 → 5.2:1 on light,
     #9C9DA5 → 7.3:1 on dark). Opacity was the culprit: it composited the text
     toward the background and dropped light mode to ~3.1–3.8:1 (fails 4.5:1).
     Hover brightens to ink instead of fading opacity — same "wake up" effect,
     but the resting state stays legible. */
  transition: color var(--t-fast) var(--ease);
  letter-spacing: -0.02em;
}
.logobar__logo:hover { color: var(--c-ink); }

/* Services grid (main 6) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex; flex-direction: column;
  min-height: 260px;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}
@media (max-width: 768px) { .service-card { border-radius: var(--r-lg); padding: var(--s-5); min-height: 220px; } }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-ink);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.service-card:hover .service-card__icon { background: var(--c-accent); color: var(--c-accent-ink); }
.service-card__icon .i { width: 28px; height: 28px; }
.service-card__title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.service-card__text { color: var(--c-muted); font-size: 0.9375rem; margin: 0; }
.service-card__arrow {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-muted);
  transition: all var(--t-fast) var(--ease);
}
.service-card:hover .service-card__arrow {
  background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg);
  transform: rotate(-45deg);
}
.service-card__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.service-card__chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 8px;
  color: var(--c-muted);
  background: var(--c-surface-2);
  border-radius: var(--r-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Flagman — yep CRM/ERP block */
.flagman {
  position: relative;
  padding: var(--s-8);
  background: linear-gradient(135deg, var(--c-hero-bg) 0%, #141419 100%);
  color: var(--c-hero-ink);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 768px) { .flagman { padding: var(--s-6); border-radius: var(--r-lg); } }
.flagman::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(195, 250, 75, 0.2), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(61, 137, 255, 0.15), transparent 45%);
  pointer-events: none;
}
.flagman-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 992px) { .flagman-grid { grid-template-columns: 1.2fr 1fr; } }
.flagman h2 { color: var(--c-hero-ink); }
.flagman p { color: var(--c-hero-muted); }
.flagman-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.flagman-feature {
  display: flex; align-items: flex-start; gap: var(--s-2);
  color: var(--c-hero-ink);
  font-size: 0.9375rem;
}
.flagman-feature .i {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--c-accent);
  margin-top: 2px;
}
.flagman-compare {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.flagman-compare__head {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-hero-muted);
  margin-bottom: var(--s-4);
}
.flagman-compare__row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  align-items: center;
}
@media (max-width: 768px) {
  .flagman-compare { padding: var(--s-4); }
  .flagman-compare__row { grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 6px; font-size: 0.7rem; padding: 8px 0; }
  .flagman-compare__row--head { font-size: 0.625rem; letter-spacing: 0.04em; }
  .flagman-compare__feature { font-size: 0.75rem; }
  .flagman-compare__cell { font-size: 0.7rem; }
  .flagman-compare__cell .i { width: 14px; height: 14px; }
  .flagman-compare__head { font-size: 0.625rem; }
}
.flagman-compare__row:last-child { border-bottom: none; }
.flagman-compare__row--head {
  color: var(--c-hero-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.flagman-compare__row--head .col-yep {
  color: var(--c-accent);
}
.flagman-compare__cell { color: var(--c-hero-ink); text-align: center; }
.flagman-compare__cell .i { width: 16px; height: 16px; }
.flagman-compare__cell--yes { color: var(--c-accent); }
.flagman-compare__cell--no { color: #FF6B4A; }
.flagman-compare__feature { color: var(--c-hero-ink); text-align: left; font-weight: 500; }

/* Calculator */
.calc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  overflow: hidden;
}
@media (max-width: 768px) { .calc { padding: var(--s-5); border-radius: var(--r-lg); } }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 992px) { .calc-grid { grid-template-columns: 1.5fr 1fr; } }
.calc-step {
  margin-bottom: var(--s-6);
}
.calc-step__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.calc-step__label::before {
  content: counter(calc-step, decimal-leading-zero);
  counter-increment: calc-step;
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  font-weight: 700;
}
.calc-grid { counter-reset: calc-step; }
.calc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); }
.calc-options { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
@media (min-width: 576px) { .calc-options { grid-template-columns: repeat(2, 1fr); } }

.calc-total {
  padding: var(--s-6);
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-lg);
}
.calc-extras {
  margin-top: var(--s-4);
  padding: var(--s-5);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.calc-extras__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
}
.calc-extras ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.calc-extras li { display: flex; gap: var(--s-2); font-size: 0.875rem; color: var(--c-ink-2); align-items: flex-start; }
.calc-extras li .i { width: 16px; height: 16px; color: var(--c-success); flex-shrink: 0; margin-top: 2px; }
.calc-quote {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  color: var(--c-ink-2);
  line-height: 1.55;
}
.calc-quote__author {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .calc-total { background: var(--c-accent); color: var(--c-accent-ink); }
.calc-total__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: var(--s-2);
}
.calc-total__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.calc-total__hint {
  font-size: 0.8125rem;
  opacity: 0.6;
  margin-top: var(--s-2);
}
.calc-total__rows { margin-top: var(--s-5); display: flex; flex-direction: column; gap: 6px; }
.calc-total__row {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem;
  padding: 4px 0;
  opacity: 0.8;
}
.calc-total__cta { margin-top: var(--s-5); }
.calc-total__cta .btn-accent {
  position: relative;
  font-weight: 600;
  animation: calc-cta-pulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  box-shadow: 0 12px 40px rgba(195, 250, 75, 0.3) !important;
}
.calc-total__cta .btn-accent .i {
  animation: cta-arrow 2s ease-in-out infinite;
}
@keyframes calc-cta-pulse {
  0%, 100% {
    box-shadow:
      0 12px 40px rgba(195, 250, 75, 0.3),
      0 0 0 0 rgba(195, 250, 75, 0.55);
  }
  70% {
    box-shadow:
      0 20px 56px rgba(195, 250, 75, 0.55),
      0 0 0 18px rgba(195, 250, 75, 0);
  }
}
@keyframes cta-arrow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}
.calc-total__cta .btn-accent:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(195, 250, 75, 0.5) !important;
}
.calc-total__cta .btn-accent:hover .i { animation-play-state: paused; transform: translate(4px, -4px); }

/* Dark theme: .calc-total is lime — invert button to ink-dark so it stands out */
[data-theme="dark"] .calc-total__cta .btn-accent {
  --btn-bg: #0B0B0D;
  --btn-ink: #FFFFFF;
  --btn-border: #0B0B0D;
  --btn-bg-hover: #1E1E23;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35) !important;
  animation: calc-cta-pulse-dark 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes calc-cta-pulse-dark {
  0%, 100% {
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(11, 11, 13, 0.55);
  }
  70% {
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.5),
      0 0 0 18px rgba(11, 11, 13, 0);
  }
}
[data-theme="dark"] .calc-total__cta .btn-accent:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
}
@media (prefers-reduced-motion: reduce) {
  .calc-total__cta .btn-accent, .calc-total__cta .btn-accent .i { animation: none; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.plan {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  position: relative;
  transition: all var(--t-med) var(--ease);
}
@media (max-width: 768px) { .plan { border-radius: var(--r-lg); padding: var(--s-5); } }
.plan:hover { border-color: var(--c-ink); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--featured {
  background: var(--c-hero-bg);
  color: var(--c-hero-ink);
  border-color: var(--c-hero-bg);
}
[data-theme="dark"] .plan--featured {
  background: var(--c-surface);
  border: 1px solid var(--c-accent);
  box-shadow: 0 0 0 1px rgba(195, 250, 75, 0.25), 0 16px 48px rgba(195, 250, 75, 0.08);
}
.plan--featured h3 { color: var(--c-hero-ink); }
.plan--featured p, .plan--featured li { color: var(--c-hero-muted); }
.plan__badge {
  position: absolute;
  top: -12px; right: 20px;
  padding: 4px 10px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan__name { font-family: var(--font-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.plan--featured .plan__name { color: var(--c-hero-muted); }
.plan__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan__old {
  font-size: 0.875rem; color: var(--c-muted); margin-top: 4px;
  text-decoration: line-through;
}
.plan--featured .plan__old { color: var(--c-hero-muted); }
.plan__desc { font-size: 0.9375rem; color: var(--c-muted); margin: 0; }
.plan--featured .plan__desc { color: var(--c-hero-muted); }
.plan__feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan__feats li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: 0.9375rem; color: var(--c-ink-2); }
.plan--featured .plan__feats li { color: var(--c-hero-ink); }
.plan__feats .i { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-success); margin-top: 2px; }
.plan__feats li.off { color: var(--c-muted); }
.plan__feats li.off .i { color: var(--c-muted); }
.plan__cta { margin-top: auto; transition: all var(--t-fast) var(--ease); }
.plan__cta.btn-outline:hover {
  --btn-bg: var(--c-accent);
  --btn-ink: var(--c-accent-ink);
  --btn-border: var(--c-accent);
  --btn-bg-hover: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(195, 250, 75, 0.18), 0 12px 32px rgba(195, 250, 75, 0.3);
}
[data-theme="dark"] .plan__cta.btn-outline:hover {
  box-shadow: 0 0 0 4px rgba(195, 250, 75, 0.25), 0 12px 32px rgba(195, 250, 75, 0.4);
}

/* Guarantees */
.guar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.guar {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.guar__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-accent-ink);
  border-radius: var(--r-md);
}
.guar__icon .i { width: 22px; height: 22px; }
.guar__title { font-weight: 600; font-size: 1rem; margin: 0; }
.guar__text { font-size: 0.875rem; color: var(--c-muted); margin: 0; }

/* Stats */
.stats {
  background: var(--c-hero-bg);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7);
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .stats {
  background: linear-gradient(135deg, var(--c-hero-bg) 0%, #141419 100%);
  border: 1px solid var(--c-border);
  box-shadow: 0 0 0 1px rgba(195, 250, 75, 0.08), 0 24px 62px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(195, 250, 75, 0.12), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(61, 137, 255, 0.08), transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}
@media (max-width: 768px) { .stats { padding: var(--s-6); border-radius: var(--r-lg); } }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  position: relative;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #B4B5BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__num--accent {
  background: linear-gradient(180deg, var(--c-accent) 0%, #B4F12A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-hero-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--s-2);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 576px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-item {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  transition: all var(--t-med) var(--ease);
}
.portfolio-item:hover { border-color: var(--c-ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.portfolio-item__mock {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 32px 1fr;
  background: var(--c-bg);
}
.portfolio-item__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 0 var(--s-3);
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
}
.portfolio-item__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-border-2);
}
.portfolio-item__body {
  padding: var(--s-3);
  display: flex; flex-direction: column; gap: 8px;
}
.portfolio-item__bar {
  height: 10px; background: var(--c-surface-2); border-radius: 4px;
}
.portfolio-item__bar--accent { background: var(--c-accent); width: 40%; }
.portfolio-item__bar--short { width: 60%; }
.portfolio-item__bar--shorter { width: 45%; }
.portfolio-item__bar--block { height: 60px; flex: 1; }
.portfolio-item__overlay {
  position: absolute; inset: 0;
  padding: var(--s-5);
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: var(--s-3);
  background: linear-gradient(0deg, rgba(11,11,13,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  color: #fff;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.portfolio-item__tag {
  font-family: var(--font-mono); font-size: 0.6875rem;
  padding: 4px 8px;
  background: rgba(255,255,255,0.15); color: #fff;
  border-radius: var(--r-xs);
  text-transform: uppercase; letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.portfolio-item__title { color: #fff; font-size: 1.125rem; margin: 0; font-weight: 600; }
.portfolio-item__metric {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.8125rem;
  color: var(--c-accent); font-weight: 500;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  counter-reset: step 0;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }

.step {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
  counter-increment: step;
  cursor: default;
}

/* Giant watermark number — reveals on hover */
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.25em;
  right: -0.1em;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--c-accent);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
  z-index: 0;
}

/* Arrow pip that appears bottom-right on hover */
.step::after {
  content: "";
  position: absolute;
  bottom: var(--s-5);
  right: var(--s-5);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B0B0D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  z-index: 2;
}

.step > * { position: relative; z-index: 1; }

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 4px 10px;
  border-radius: var(--r-xs);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--s-3);
  transition: transform var(--t-fast) var(--ease);
}
.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
  transition: color var(--t-fast) var(--ease);
}

.step:hover, .step.force-hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 16px 48px rgba(195, 250, 75, 0.18);
}
.step:hover::before, .step.force-hover::before {
  opacity: 0.14;
  transform: translateX(0);
}
.step:hover::after, .step.force-hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.step:hover .step__num, .step.force-hover .step__num {
  transform: scale(1.05);
}

[data-theme="dark"] .step:hover::before { opacity: 0.22; }
[data-theme="dark"] .step:hover {
  box-shadow: 0 16px 48px rgba(195, 250, 75, 0.1), 0 0 0 1px rgba(195, 250, 75, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .step, .step::before, .step::after, .step__num { transition: none !important; }
  .step:hover { transform: none; }
}
.step__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-top: var(--s-3);
}

.process-hero {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7);
  text-align: center;
  margin-bottom: var(--s-6);
}
@media (max-width: 768px) { .process-hero { padding: var(--s-6); border-radius: var(--r-lg); } }
.process-hero__big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-accent-ink);
}
.process-hero__big sup {
  font-family: var(--font-mono);
  font-size: 0.35em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 0.2em;
  opacity: 0.7;
}
.process-hero__sub {
  font-size: 1.125rem;
  max-width: 520px;
  margin: var(--s-3) auto 0;
  color: var(--c-accent-ink);
}

/* Tech stacks grid — uses Bootstrap .row/.col for responsive columns */
.tech-grid.row { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
.tech-grid .tech-chip { width: 100%; }
.tech-chip {
  aspect-ratio: 1.3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-align: center;
  transition: all var(--t-fast) var(--ease);
}
.tech-chip:hover {
  border-color: var(--c-ink);
  opacity: 1;
  transform: translateY(-2px);
}
.tech-chip__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.tech-chip__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-ink);
}

/* Industries grid */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 576px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .ind-grid { grid-template-columns: repeat(5, 1fr); } }
.ind-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease);
  min-height: 140px;
}
.ind-card:hover { border-color: var(--c-ink); opacity: 1; transform: translateY(-2px); }
.ind-card .i { width: 24px; height: 24px; color: var(--c-ink); }
.ind-card__name { font-weight: 600; font-size: 0.9375rem; margin: 0; }
.ind-card__count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-muted); margin-top: auto; }

/* Integrations 3-col */
.intg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) { .intg-grid { grid-template-columns: repeat(3, 1fr); } }
.intg-col {
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
@media (max-width: 768px) { .intg-col { border-radius: var(--r-lg); padding: var(--s-5); } }
.intg-col__head {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.intg-col__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  color: var(--c-ink);
  border-radius: var(--r-md);
}
.intg-col__icon .i { width: 24px; height: 24px; }
.intg-col__title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.intg-col__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.intg-col__list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  transition: all var(--t-fast) var(--ease);
}
.intg-col__list li a:hover { background: var(--c-surface-2); color: var(--c-ink); opacity: 1; }
.intg-col__list li a .i { width: 14px; height: 14px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.intg-col__list li a:hover .i { opacity: 1; }

/* Why us (comparison table) */
.why-table {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 768px) { .why-table { border-radius: var(--r-lg); } }
.why-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-border);
  align-items: center;
  justify-items: center;
  gap: var(--s-3);
  font-size: 0.9375rem;
}
.why-row__feat { justify-self: start; }
.why-row:last-child { border-bottom: none; }

.why-row--head {
  background: var(--c-surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}
.why-row--head .col-us { color: var(--c-accent-ink); background: var(--c-accent); padding: 4px 10px; border-radius: var(--r-xs); }
.why-row__feat { font-weight: 500; color: var(--c-ink); }
.why-row__cell {
  text-align: center;
  color: var(--c-ink-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}
.why-row__cell--us { color: var(--c-accent-ink); background: var(--c-accent); padding: 6px 10px; border-radius: var(--r-sm); font-weight: 500; }
[data-theme="dark"] .why-row--head .col-us { color: var(--c-accent-ink); }
.why-row__cell .i { width: 18px; height: 18px; }
.why-row__cell--yes { color: var(--c-success); }
.why-row__cell--no { color: var(--c-warning); }

/* Responsive: на мобайле таблица превращается в карточки с явными подписями */
@media (max-width: 768px) {
  .why-table { border-radius: var(--r-lg); background: transparent; border: none; }
  .why-row--head { display: none; }
  .why-row {
    grid-template-columns: 1fr 1fr;
    padding: var(--s-4);
    gap: var(--s-2) var(--s-3);
    justify-items: start;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    margin-bottom: var(--s-3);
  }
  .why-row:last-child { border-bottom: 1px solid var(--c-border); margin-bottom: 0; }
  .why-row__feat {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-ink);
    margin-bottom: 4px;
    padding-bottom: var(--s-2);
    border-bottom: 1px solid var(--c-border);
    width: 100%;
  }
  .why-row__cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    justify-content: flex-start;
    padding: 4px 0;
    min-height: 0;
  }
  .why-row__cell::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-muted);
  }
  .why-row__cell:nth-child(2)::before { content: "Фрилансер"; }
  .why-row__cell:nth-child(3)::before { content: "Крупная студия"; }
  .why-row__cell:nth-child(4)::before { content: "62px"; color: var(--c-accent-ink); background: var(--c-accent); padding: 2px 6px; border-radius: var(--r-xs); align-self: flex-start; }
  .why-row__cell--us { align-self: flex-start; }
  /* On mobile the "us" column spans full width for emphasis */
  .why-row__cell:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: var(--s-2);
    padding-top: var(--s-2);
    border-top: 1px dashed var(--c-border);
  }
}

/* Testimonials */
.testi {
  position: relative;
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  cursor: default;
}
@media (max-width: 768px) { .testi { border-radius: var(--r-lg); padding: var(--s-5); } }

/* Giant "quote" watermark — appears on hover */
.testi::before {
  content: "„";
  position: absolute;
  top: -0.55em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--c-accent);
  opacity: 0;
  transform: translateX(24px) rotate(-4deg);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
  z-index: 0;
}
.testi > * { position: relative; z-index: 1; }

.testi__stars { display: inline-flex; gap: 2px; color: var(--c-accent); margin-bottom: var(--s-3); transition: transform var(--t-med) var(--ease); }
.testi__stars .i { width: 18px; height: 18px; }
.testi__text { font-size: 1.0625rem; line-height: 1.5; color: var(--c-ink); flex: 1; }
.testi__author { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.testi__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem;
  transition: transform var(--t-med) var(--ease);
}
.testi__name { font-weight: 600; font-size: 0.9375rem; }
.testi__role { font-size: 0.8125rem; color: var(--c-muted); font-family: var(--font-mono); }

.testi:hover, .testi.force-hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 16px 48px rgba(195, 250, 75, 0.15);
}
.testi:hover::before, .testi.force-hover::before {
  opacity: 0.14;
  transform: translateX(0) rotate(-4deg);
}
.testi:hover .testi__stars, .testi.force-hover .testi__stars { transform: scale(1.05); transform-origin: left center; }
.testi:hover .testi__avatar, .testi.force-hover .testi__avatar { transform: scale(1.08) rotate(-4deg); }

[data-theme="dark"] .testi:hover::before { opacity: 0.22; }
[data-theme="dark"] .testi:hover {
  box-shadow: 0 16px 48px rgba(195, 250, 75, 0.1), 0 0 0 1px rgba(195, 250, 75, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .testi, .testi::before, .testi__stars, .testi__avatar { transition: none !important; }
  .testi:hover { transform: none; }
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: inherit;
  transition: all var(--t-fast) var(--ease);
  height: 100%;
  overflow: hidden;
}
.post:hover { border-color: var(--c-ink); opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post__img {
  aspect-ratio: 16/9;
  background: var(--c-surface-2);
  margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) 0;
  background-image: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface-3) 100%);
  position: relative;
  overflow: hidden;
}
.post__img::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(195,250,75,0.3), transparent 60%);
}
.post__tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  padding: 4px 8px;
  background: var(--c-surface-2);
  border-radius: var(--r-xs);
}
.post__title { font-size: 1.125rem; font-weight: 600; margin: 0; line-height: 1.3; }
.post__meta {
  display: flex; gap: var(--s-3);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-item:first-child { border-top: 1px solid var(--c-border); }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.faq-item__btn:hover { color: var(--c-accent-ink); }
[data-theme="dark"] .faq-item__btn:hover { color: var(--c-accent); }
.faq-item__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-muted);
  transition: all var(--t-fast) var(--ease);
}
.faq-item[open] .faq-item__icon { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); transform: rotate(45deg); }
[data-theme="dark"] .faq-item[open] .faq-item__icon { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.faq-item__icon .i { width: 16px; height: 16px; }
.faq-item__body {
  padding: 0 0 var(--s-5);
  color: var(--c-ink-2);
  line-height: 1.6;
  max-width: 95%;
}

/* Partner */
.partner {
  padding: var(--s-7) var(--s-6);
  background: linear-gradient(135deg, var(--c-accent) 0%, #D4FF69 100%);
  color: var(--c-accent-ink);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .partner { border-radius: var(--r-lg); padding: var(--s-6); } }
.partner::before {
  content: "15%";
  position: absolute;
  top: 10%; right: -5%;
  font-family: var(--font-display);
  font-size: clamp(12rem, 30vw, 20rem);
  font-weight: 700;
  color: rgba(11,11,13,0.06);
  line-height: 0.8;
  z-index: 0;
  pointer-events: none;
}
.partner > * { position: relative; z-index: 1; }
.partner h2 { color: var(--c-accent-ink); max-width: 680px; margin: 0 auto var(--s-4); }
.partner p { color: var(--c-accent-ink); opacity: 0.8; max-width: 540px; margin: 0 auto var(--s-5); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.contact-info { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-method {
  display: flex; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease);
}
.contact-method:hover { border-color: var(--c-ink); opacity: 1; }
.contact-method__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--c-surface-2);
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--c-ink);
}
.contact-method__icon .i { width: 24px; height: 24px; }
.contact-method__label {
  font-family: var(--font-mono); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--c-muted);
}
.contact-method__value { font-size: 1rem; font-weight: 500; color: var(--c-ink); }
.contact-form {
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
@media (max-width: 768px) { .contact-form { border-radius: var(--r-lg); padding: var(--s-5); } }

/* CTA */
.cta-final {
  padding: var(--s-8) var(--s-7);
  background: var(--c-hero-bg);
  color: var(--c-hero-ink);
  border-radius: var(--r-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .cta-final { border-radius: var(--r-lg); padding: var(--s-7) var(--s-5); } }
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(195,250,75,0.2), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(61,137,255,0.15), transparent 50%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--c-hero-ink); max-width: 720px; margin: 0 auto var(--s-4); }
.cta-final p { color: var(--c-hero-muted); max-width: 520px; margin: 0 auto var(--s-6); }
.cta-final-actions { display: inline-flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* Footer */
.footer62 {
  padding: var(--s-8) 0 var(--s-5);
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.footer62-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (min-width: 640px) { .footer62-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer62-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s-7); } }
.footer62-col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.footer62-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer62-col ul a { font-size: 0.9375rem; color: var(--c-ink-2); }
.footer62-col ul a:hover { color: var(--c-ink); opacity: 1; }
.footer62-brand { max-width: 320px; }
.footer62-brand p { font-size: 0.9375rem; color: var(--c-muted); margin: var(--s-3) 0 var(--s-4); }
.footer62-social { display: flex; gap: var(--s-2); }
.footer62-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease);
}
.footer62-social a:hover { background: var(--c-ink); color: var(--c-bg); opacity: 1; border-color: var(--c-ink); }
.footer62-social a .i { width: 18px; height: 18px; }
.footer62-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-muted);
  font-family: var(--font-mono);
}
.footer62-bottom a { color: var(--c-muted); }
.footer62-bottom a:hover { color: var(--c-ink); opacity: 1; }
.footer62-legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- Service page components ---------- */
.breadcrumbs {
  padding: calc(var(--header-h) + var(--s-5)) 0 0;
  background: var(--c-bg);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--c-border-2);
  margin-left: 6px;
}
.breadcrumbs a {
  color: var(--c-muted);
  transition: color var(--t-fast) var(--ease);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--c-ink); opacity: 1; }
.breadcrumbs [aria-current="page"] { color: var(--c-ink); }

/* Compact service hero */
.srv-hero {
  position: relative;
  background: var(--c-hero-bg);
  color: var(--c-hero-ink);
  padding: var(--s-8) 0 var(--s-8);
  margin-top: var(--s-4);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-inline: var(--s-4);
}
@media (min-width: 768px) { .srv-hero { margin-inline: var(--s-5); } }
@media (min-width: 1240px) { .srv-hero { margin-inline: var(--s-7); max-width: var(--container-max); margin-left: auto; margin-right: auto; } }
.srv-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 25%, rgba(195, 250, 75, 0.16), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(61, 137, 255, 0.1), transparent 55%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 62px 62px,
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 62px 62px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
  pointer-events: none;
}
.srv-hero > .container-62 { position: relative; }
.srv-hero h1 { color: var(--c-hero-ink); }
.srv-hero p.lead { color: var(--c-hero-muted); }

.srv-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
.srv-hero__stat {
  padding: var(--s-5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  backdrop-filter: blur(12px);
}
.srv-hero__stat:nth-child(1) {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}
.srv-hero__stat:nth-child(1) .srv-hero__stat-label { color: var(--c-accent-ink); opacity: 0.8; }
.srv-hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.srv-hero__stat-num sup {
  font-family: var(--font-mono);
  font-size: 0.4em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 4px;
  opacity: 0.7;
}
.srv-hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-hero-muted);
  line-height: 1.3;
}

/* Benefits grid */
.srv-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .srv-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .srv-benefits { grid-template-columns: repeat(4, 1fr); } }
.srv-benefit {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: all var(--t-med) var(--ease);
}
.srv-benefit:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 12px 40px rgba(195, 250, 75, 0.12);
}
.srv-benefit__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  transition: transform var(--t-med) var(--ease);
}
.srv-benefit:hover .srv-benefit__icon { transform: scale(1.08) rotate(-4deg); }
.srv-benefit__icon .i { width: 24px; height: 24px; }
.srv-benefit__title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 8px; }
.srv-benefit__text { font-size: 0.9375rem; color: var(--c-muted); margin: 0; line-height: 1.5; }

/* Process (compact 4-step) */
.srv-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  counter-reset: srv-step 0;
}
@media (min-width: 640px) { .srv-process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .srv-process { grid-template-columns: repeat(4, 1fr); } }
.srv-process__step {
  position: relative;
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  counter-increment: srv-step;
  transition: all var(--t-med) var(--ease);
}
.srv-process__step:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(195, 250, 75, 0.1);
}
.srv-process__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 3px 8px;
  border-radius: var(--r-xs);
  display: inline-block;
  margin-bottom: var(--s-3);
}
.srv-process__step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.srv-process__step p { font-size: 0.875rem; color: var(--c-muted); margin: 0; line-height: 1.5; }

/* Related services */
.srv-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 640px) { .srv-related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .srv-related { grid-template-columns: repeat(3, 1fr); } }
.srv-related__card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.srv-related__card:hover {
  border-color: var(--c-accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(195, 250, 75, 0.12);
  opacity: 1;
}
.srv-related__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  color: var(--c-ink);
  border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
}
.srv-related__card:hover .srv-related__icon { background: var(--c-accent); color: var(--c-accent-ink); }
.srv-related__icon .i { width: 20px; height: 20px; }
.srv-related__body { flex: 1; min-width: 0; }
.srv-related__body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
.srv-related__body p { font-size: 0.8125rem; color: var(--c-muted); margin: 0; font-family: var(--font-mono); }

/* Hub grid (большие карточки категорий — главный блок хабовых страниц) */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 768px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }

.hub-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all var(--t-med) var(--ease);
  overflow: hidden;
}
@media (max-width: 768px) { .hub-card { padding: var(--s-5); } }
.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: 0 16px 48px rgba(195, 250, 75, 0.15);
  opacity: 1;
}
.hub-card--featured {
  background: linear-gradient(145deg, var(--c-hero-bg) 0%, #141419 100%);
  border-color: var(--c-hero-bg);
  color: var(--c-hero-ink);
}
.hub-card--featured .hub-card__title { color: var(--c-hero-ink); }
.hub-card--featured .hub-card__text { color: var(--c-hero-muted); }
.hub-card--featured .hub-card__meta { color: var(--c-hero-muted); }
.hub-card--featured .hub-card__price {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}

.hub-card__badge {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  background: var(--c-accent);
  border-radius: var(--r-pill);
}

.hub-card__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  color: var(--c-ink);
  border-radius: var(--r-md);
  transition: all var(--t-fast) var(--ease);
}
.hub-card--featured .hub-card__icon { background: rgba(255,255,255,0.08); color: var(--c-hero-ink); }
.hub-card:hover .hub-card__icon { background: var(--c-accent); color: var(--c-accent-ink); transform: scale(1.05); }
.hub-card__icon .i { width: 24px; height: 24px; }

.hub-card__body { flex: 1; min-width: 0; }
.hub-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.hub-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.hub-card__price {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.hub-card__text {
  font-size: 0.9375rem;
  color: var(--c-muted);
  margin: 0 0 var(--s-3);
  line-height: 1.5;
}
.hub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  align-items: center;
}
.hub-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hub-card__meta .i { width: 14px; height: 14px; }
.hub-card__arrow {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-muted);
  transition: all var(--t-fast) var(--ease);
  opacity: 0;
}
.hub-card--featured .hub-card__arrow {
  border-color: rgba(255,255,255,0.15);
  color: var(--c-hero-muted);
}
.hub-card:hover .hub-card__arrow {
  opacity: 1;
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
  transform: rotate(-45deg);
}

/* SEO longform content block */
.srv-longform {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}
.srv-longform .section-head { margin-bottom: var(--s-6); }
.srv-longform h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--s-7) 0 var(--s-3);
  color: var(--c-ink);
}
.srv-longform h3:first-of-type { margin-top: 0; }
.srv-longform p { margin-bottom: var(--s-4); color: var(--c-ink-2); }
.srv-longform ul, .srv-longform ol {
  padding-left: 1.4em;
  margin-bottom: var(--s-5);
  color: var(--c-ink-2);
}
.srv-longform li { margin-bottom: var(--s-3); line-height: 1.6; }
.srv-longform strong { color: var(--c-ink); font-weight: 600; }
.srv-longform a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 2px;
  transition: all var(--t-fast) var(--ease);
}
.srv-longform a:hover {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-decoration: none;
  padding: 0 2px;
  margin: 0 -2px;
  border-radius: var(--r-xs);
  opacity: 1;
}

/* Mini-CTA after FAQ */
.srv-mini-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-5) var(--s-6);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
.srv-mini-cta__body { flex: 1; min-width: 260px; }
.srv-mini-cta__title { font-size: 1.125rem; font-weight: 600; margin: 0 0 4px; }
.srv-mini-cta__text { font-size: 0.9375rem; color: var(--c-muted); margin: 0; }
.srv-mini-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.srv-mini-cta__actions .btn { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* Service contact section (inline form) */
.srv-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 992px) { .srv-contact { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); align-items: start; } }
.srv-contact__left h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.srv-contact__methods { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-5); }

/* ---------- Portfolio Modal ---------- */
.modal { --bs-modal-bg: transparent; }
.modal-xl { --bs-modal-width: 1100px; }
.modal-backdrop.show { opacity: 0.85; }
[data-theme="dark"] .modal-backdrop { background-color: #000; }
[data-theme="dark"] .modal-backdrop.show { opacity: 0.7; }

.pmodal {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
@media (max-width: 768px) { .pmodal { border-radius: var(--r-lg); } }

.pmodal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 13, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.pmodal__close:hover { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); transform: rotate(90deg); }
.pmodal__close .i { width: 18px; height: 18px; }

/* Hero mock (browser window style with a fake site preview) */
.pmodal__hero {
  padding: var(--s-5);
  background: linear-gradient(135deg, var(--c-hero-bg) 0%, #141419 100%);
  position: relative;
}
.pmodal__hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(195, 250, 75, 0.18), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(61, 137, 255, 0.12), transparent 55%);
  pointer-events: none;
}
.pmodal__mock {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16/9;
  display: grid;
  grid-template-rows: 36px 1fr;
}
.pmodal__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f2f2f4;
  border-bottom: 1px solid #e5e5ea;
}
.pmodal__chrome span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d1d1d6;
}
.pmodal__chrome span:nth-child(1) { background: #ff5f57; }
.pmodal__chrome span:nth-child(2) { background: #febc2e; }
.pmodal__chrome span:nth-child(3) { background: #28c840; }
.pmodal__url {
  margin-left: 14px;
  flex: 1;
  padding: 4px 12px;
  background: #fff;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6b6d75;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmodal__screen {
  padding: 24px 32px;
  background: #fafafa;
  color: #0b0b0d;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.pmodal__screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5ea;
}
.pmodal__screen-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: 10px;
}
.pmodal__screen-menu {
  display: flex;
  gap: 12px;
}
.pmodal__screen-menu span {
  width: 42px;
  height: 10px;
  background: #d1d1d6;
  border-radius: 4px;
}
.pmodal__screen-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
}
.pmodal__screen-line {
  height: 14px;
  border-radius: 4px;
  background: #0b0b0d;
}
.pmodal__screen-line--lg { width: 65%; height: 20px; }
.pmodal__screen-line--md { width: 50%; height: 14px; background: #6b6d75; }
.pmodal__screen-line--sm { width: 40%; height: 12px; background: #d1d1d6; }
.pmodal__screen-btn {
  width: 120px; height: 32px;
  background: var(--c-accent);
  border-radius: 20px;
  margin-top: 8px;
}
.pmodal__screen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}
.pmodal__screen-card {
  aspect-ratio: 4/3;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.pmodal__screen-card::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  height: 10px;
  background: #d1d1d6;
  border-radius: 3px;
}
.pmodal__screen-card:nth-child(even)::after { background: var(--c-accent); }

/* Body */
.pmodal__body {
  padding: var(--s-7) var(--s-7) var(--s-6);
}
@media (max-width: 768px) {
  .pmodal__body { padding: var(--s-5); }
  .pmodal__hero { padding: var(--s-4); }
}

.pmodal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-4); }
.pmodal__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-ink-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pmodal__tags .pmodal__chip:first-child {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-color: var(--c-accent);
}

.pmodal__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.pmodal__subtitle {
  font-size: 1.0625rem;
  color: var(--c-muted);
  margin-bottom: var(--s-6);
}

/* Metrics */
.pmodal__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-7);
  padding: var(--s-5);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}
@media (min-width: 768px) { .pmodal__metrics { grid-template-columns: repeat(4, 1fr); } }
.pmodal__metric { text-align: left; }
.pmodal__metric-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.pmodal__metric:nth-child(1) .pmodal__metric-num { color: var(--c-accent-ink); background: var(--c-accent); padding: 0 8px; border-radius: var(--r-sm); display: inline-block; }
[data-theme="dark"] .pmodal__metric:nth-child(1) .pmodal__metric-num { background: var(--c-accent); color: var(--c-accent-ink); }
.pmodal__metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.3;
}

/* Sections grid (task / solution / result) */
.pmodal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (min-width: 768px) { .pmodal__grid { grid-template-columns: repeat(3, 1fr); } }

.pmodal__section {
  margin-bottom: var(--s-6);
}
.pmodal__section p { font-size: 0.9375rem; line-height: 1.6; color: var(--c-ink-2); margin: 0; }
.pmodal__section-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
}
.pmodal__section-num {
  padding: 3px 8px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pmodal__did {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 640px) { .pmodal__did { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .pmodal__did { grid-template-columns: repeat(3, 1fr); } }
.pmodal__did li {
  padding: 10px 14px 10px 36px;
  font-size: 0.9375rem;
  color: var(--c-ink-2);
  background: var(--c-surface-2);
  border-radius: var(--r-sm);
  position: relative;
}
.pmodal__did li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--c-success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.pmodal__stack { display: flex; flex-wrap: wrap; gap: 8px; }
.pmodal__stack .pmodal__chip {
  font-size: 0.8125rem;
  padding: 8px 16px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-mono);
}

.pmodal__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
}

/* ---------- Order modal ---------- */
.omodal {
  background: var(--c-bg);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  position: relative;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden; /* clips rounded corners; scroll lives inside .omodal__body */
}
.modal-dialog-scrollable .omodal { max-height: 100%; }
.modal-dialog-scrollable .omodal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Custom scrollbar inside modal body */
.omodal__body::-webkit-scrollbar { width: 8px; }
.omodal__body::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 4px; }
.omodal__body::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }
.omodal__body::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 768px) { .omodal { border-radius: var(--r-lg); } }

.omodal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--c-surface-2);
  color: var(--c-ink);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.omodal__close:hover { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); transform: rotate(90deg); }
.omodal__close .i { width: 16px; height: 16px; }

.omodal__body { padding: var(--s-7) var(--s-6) var(--s-6); }
@media (max-width: 768px) { .omodal__body { padding: var(--s-5) var(--s-4) var(--s-4); } }

.omodal__head { margin-bottom: var(--s-5); padding-right: 48px; }
.omodal__title { font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.omodal__sub { font-size: 0.9375rem; color: var(--c-muted); margin: 0; line-height: 1.55; }

.omodal__context {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}
.omodal__context-head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-2);
}
.omodal__context-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: 6px 0;
  font-size: 0.9375rem;
  border-top: 1px dashed var(--c-border);
}
.omodal__context-row:first-of-type { border-top: none; }
.omodal__context-row strong { color: var(--c-ink); }
.omodal__context-row .accent {
  color: var(--c-accent-ink);
  background: var(--c-accent);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  font-weight: 600;
}

.omodal__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--c-ink-2);
  margin: var(--s-2) 0 var(--s-4);
  cursor: pointer;
  line-height: 1.45;
}
.omodal__consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--c-ink);
}
[data-theme="dark"] .omodal__consent input[type="checkbox"] { accent-color: var(--c-accent); }
.omodal__consent a { text-decoration: underline; text-underline-offset: 2px; color: var(--c-ink); }

.omodal__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.omodal__hint a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-ink);
  font-weight: 500;
}
.omodal__hint .i { width: 14px; height: 14px; }

.omodal__success {
  text-align: center;
  padding: var(--s-5) 0;
}
.omodal__success-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: 50%;
  animation: pop-in 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.omodal__success-icon .i { width: 36px; height: 36px; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.omodal__success h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); margin: 0 0 var(--s-3); }
.omodal__success p { font-size: 0.9375rem; color: var(--c-ink-2); max-width: 460px; margin: 0 auto var(--s-5); line-height: 1.55; }
.omodal__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1055;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: calc(100% - 32px);
  max-width: 780px;
  padding: var(--s-4) var(--s-5);
  background: var(--c-hero-bg);
  color: var(--c-hero-ink);
  border: 1px solid var(--c-hero-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(195, 250, 75, 0.08);
  animation: cookie-in 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-leaving { animation: cookie-out 300ms cubic-bezier(0.55, 0, 0.7, 0) forwards; }

@keyframes cookie-in {
  from { opacity: 0; transform: translateX(-50%) translateY(24px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes cookie-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(24px); }
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  border-radius: var(--r-md);
}
.cookie-banner__icon .i { width: 24px; height: 24px; }

.cookie-banner__body { flex: 1; min-width: 0; }
.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-hero-ink);
  margin-bottom: 2px;
}
.cookie-banner__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-hero-muted);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__text a:hover { opacity: 0.85; }

.cookie-banner__actions {
  display: flex;
  gap: var(--s-2);
  flex-shrink: 0;
}
.cookie-banner__actions .btn-outline {
  --btn-ink: var(--c-hero-ink);
  --btn-border: rgba(255, 255, 255, 0.2);
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
}

.cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--c-hero-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.cookie-banner__close:hover { color: var(--c-hero-ink); background: rgba(255, 255, 255, 0.08); }
.cookie-banner__close .i { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-5);
    bottom: 12px;
    width: calc(100% - 24px);
    gap: var(--s-3);
  }
  .cookie-banner__icon { width: 40px; height: 40px; }
  .cookie-banner__icon .i { width: 20px; height: 20px; }
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    flex: 0 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ---------- Scroll-reveal animations (below-fold only, no LCP impact) ----------
   Animates only opacity + transform (GPU-composited, no layout/paint).
   Hero content above fold renders normally — no animation-delay on LCP element.
   IntersectionObserver triggers once, then unobserves. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-fade { opacity: 0; transform: none; transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-fade.in { opacity: 1; }

.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* Stagger — children of .reveal-stagger cascade in when parent enters viewport */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1)  { transition-delay:   0ms; }
.reveal-stagger.in > *:nth-child(2)  { transition-delay:  70ms; }
.reveal-stagger.in > *:nth-child(3)  { transition-delay: 140ms; }
.reveal-stagger.in > *:nth-child(4)  { transition-delay: 210ms; }
.reveal-stagger.in > *:nth-child(5)  { transition-delay: 280ms; }
.reveal-stagger.in > *:nth-child(6)  { transition-delay: 350ms; }
.reveal-stagger.in > *:nth-child(7)  { transition-delay: 420ms; }
.reveal-stagger.in > *:nth-child(8)  { transition-delay: 490ms; }
.reveal-stagger.in > *:nth-child(9)  { transition-delay: 560ms; }
.reveal-stagger.in > *:nth-child(10) { transition-delay: 630ms; }
.reveal-stagger.in > *:nth-child(11) { transition-delay: 700ms; }
.reveal-stagger.in > *:nth-child(12) { transition-delay: 770ms; }
.reveal-stagger.in > *:nth-child(n+13) { transition-delay: 840ms; }

/* Accessibility: respect user's motion preference + mobile data-saver */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html.no-anim .reveal, html.no-anim .reveal-fade, html.no-anim .reveal-left,
html.no-anim .reveal-right, html.no-anim .reveal-scale, html.no-anim .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ===== Article / news detail =====
   Ported from the blog mockups' per-page inline <style> into the shared theme
   sheet so both imported news (one richtext block carrying full article chrome)
   and RSS/blockless news (chrome built in site/news/show.html) render styled.
   Mockup hardcoded #C3FA4B/#0B0B0D/#6c757d → mapped to theme tokens for dark-mode. */
.article-62 { max-width: 760px; }
.article-62 h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; margin: 1rem 0 1.5rem; }
.article-meta { color: var(--c-muted); font-size: 0.9rem; }
.article-hero { aspect-ratio: 1200 / 630; background: var(--c-hero-bg); border-radius: 16px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-cat { display: inline-block; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 500; padding: 0.4em 0.8em; border-radius: 999px; font-size: 0.8rem; }
.breadcrumb-back { color: var(--c-muted); text-decoration: none; }
.breadcrumb-back:hover { color: var(--c-ink); }
.article-62 .lead, .article-body .lead { font-size: 1.15rem; line-height: 1.7; }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.25rem; padding-left: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body hr { margin: 3rem 0; opacity: 0.1; }

/* ===== Dark-mode: imported Bootstrap checklists =====
   Imported service/industry content uses Bootstrap `.list-group-item` (light bg
   baked in) and inline `stroke="#10B981"/#0F766E` on checkmark SVGs — neither
   adapts to the dark theme. Map them to theme tokens. The `svg[stroke]` selector
   matches only imported content (theme `.icon`s take stroke from CSS, not an
   attribute), and a CSS stroke property overrides the inline presentation attr. */
[data-theme="dark"] main .list-group-item { color: var(--c-ink); background: transparent; }
[data-theme="dark"] main svg[stroke] { stroke: var(--c-accent); }

/* ===== Base icon sizing + blog listing cards =====
   This theme loads only its own main.css (not uastyle), so the shared
   default/components/news-card.html used by the /blog listing had unstyled
   .article-card markup and bare <svg class="icon"> rendering at the SVG default
   300×150. Provide a base icon size + port the .article-card styles, mapped to
   62px tokens. Inline-sized icons (style="width:…") still override the base. */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }

.article-card { display: block; position: relative; color: inherit; text-decoration: none; }
.article-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-hero-bg); border-radius: 16px; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s; }
.article-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%); opacity: 0; transition: opacity .4s; }
.article-card__read { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; color: var(--c-accent-ink); background: var(--c-accent); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem; border-radius: 999px; opacity: 0; transform: translateY(12px); transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); }
.article-card__read .icon { width: 14px; height: 14px; }
.article-card__meta { display: flex; gap: .75rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); margin-top: 1.1rem; }
.article-card__meta span { position: relative; }
.article-card__meta span + span::before { content: ""; position: absolute; left: -.5rem; top: 50%; width: 3px; height: 3px; background: var(--c-muted); border-radius: 50%; transform: translateY(-50%); }
.article-card__title { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: .6rem 0 .4rem; color: var(--c-ink); }
.article-card__excerpt { display: block; color: var(--c-ink-2); font-size: .9rem; line-height: 1.5; margin-top: .5rem; }
.article-card:hover .article-card__media img { transform: scale(1.06); filter: brightness(.95); }
.article-card:hover .article-card__media::after { opacity: 1; }
.article-card:hover .article-card__read { opacity: 1; transform: translateY(0); }

/* ===========================================================
   Pagination (default/components/pagination.html)
   Structure is theme-agnostic; this is the 62px skin (tokens only).
   =========================================================== */
.kit-pagination { display: inline-flex; align-items: center; gap: .4rem; }
.kit-page {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 .55rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600;
  color: var(--c-ink);
  background: var(--c-surface);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.kit-page:hover { border-color: var(--c-ink); }
.kit-page.is-active { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.kit-page.is-disabled { opacity: .4; pointer-events: none; }
.kit-page .i, .kit-page .icon { width: 16px; height: 16px; }

/* "Load more" — the shared component ships it as .btn.btn-outline-primary;
   this theme has no -primary skin so Bootstrap's blue leaks through. Pin it to
   the theme's own .btn tokens (dark base, subtle ink hover — never blue). */
.catalog-load-more.btn { --btn-bg: var(--c-ink); --btn-ink: var(--c-bg); --btn-border: var(--c-ink); --btn-bg-hover: var(--c-ink-2); }
.catalog-load-more.btn,
.catalog-load-more.btn:focus,
.catalog-load-more.btn:active { background: var(--btn-bg); border-color: var(--btn-border); color: var(--btn-ink); }
.catalog-load-more.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-ink); }

/* ---- Portfolio case cards ---------------------------------------------
   Token-driven so they follow the dark theme — Bootstrap's .card hard-codes
   a white background, which left the cards light in dark mode. The cover
   shows a real thumbnail when present, otherwise a branded gradient
   placeholder so image-less cards still read as intentional, not empty. */
.case-card {
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-border) !important;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent) !important;
  box-shadow: 0 14px 34px rgba(11, 11, 13, .12);
}
[data-theme="dark"] .case-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.case-card h3 { color: var(--c-ink); }
.case-card__excerpt { color: var(--c-muted); }
.case-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--c-surface-2);
  position: relative;
  overflow: hidden;
}
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card__cover--empty {
  background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-surface-3) 100%);
}
.case-card__cover--empty::after {
  content: "62px";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: .06em;
  color: var(--c-border-2);
}
.case-card .btn-outline { color: var(--c-ink); }

/* ---- Case study screenshots + gallery --------------------------------- */
.case-shot, .case-gallery__item { margin: 0; }
.case-shot img, .case-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--c-border);
}
.case-shot figcaption, .case-gallery__item figcaption {
  margin-top: .6rem;
  color: var(--c-muted);
  font-size: .9rem;
  line-height: 1.4;
}

/* ---- Case project summary (fact sheet) -------------------------------- */
.case-summary {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl, 24px);
  overflow: hidden;
}
.case-summary__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: var(--s-4, 16px);
  padding: var(--s-4, 16px) var(--s-5, 24px);
  border-bottom: 1px solid var(--c-border);
}
.case-summary__row:last-child { border-bottom: 0; }
.case-summary__row dt {
  margin: 0;
  color: var(--c-muted);
  font-family: var(--font-mono, monospace);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  align-self: center;
}
.case-summary__row dd {
  margin: 0;
  color: var(--c-ink);
  align-self: center;
}
.case-summary__row dd a { color: var(--c-accent-ink, inherit); text-decoration: underline; }
[data-theme="dark"] .case-summary__row dd a { color: var(--c-accent); }
@media (max-width: 575.98px) {
  .case-summary__row { grid-template-columns: 1fr; gap: .25rem; }
}
