/* =====================================================================
   TrafficLab — Design System
   Замініть значення змінних нижче на свої.
   ===================================================================== */
:root {
  /* ---- Кольори ---- */
  --color-bg:            #08080A;
  --color-bg-alt:        #0E0E12;
  --color-surface:       #141418;
  --color-surface-2:     #1C1C22;
  --color-border:        #26262D;
  --color-border-strong: #3A3A44;
  --color-text:          #F5F5F2;
  --color-text-muted:    #9B9BA4;
  --color-text-dim:      #65656E;
  --color-accent:        #C8FF3C;   /* сигнальний акцент */
  --color-accent-press:  #B2EE1E;
  --color-accent-ink:    #0A0E04;   /* текст на акценті */
  --color-accent-soft:   rgba(200, 255, 60, 0.10);
  --color-accent-line:   rgba(200, 255, 60, 0.30);

  /* ---- Шрифти ---- */
  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ---- Відступи ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(72px, 9vw, 150px);
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Радіуси ---- */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* ---- Інше ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.45s;
  --header-h: 76px;
  --announce-h: 0px;
  --maxw-text: 62ch;
}

/* =====================================================================
   Reset
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* =====================================================================
   Типографіка
   ===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); text-transform: uppercase; }
.h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--color-text-muted); max-width: var(--maxw-text); }
p { text-wrap: pretty; }
.muted { color: var(--color-text-muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.case-hero__kicker { display: flex; margin-bottom: var(--space-3); }
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--color-accent-line);
}
.eyebrow.no-line::before { display: none; }
.accent { color: var(--color-accent); }
.link-accent { color: var(--color-accent); text-decoration: underline; text-decoration-color: var(--color-accent-line); text-underline-offset: 3px; transition: color var(--speed) var(--ease); }
.link-accent:hover { color: var(--color-accent-press); }

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.bg-alt { background: var(--color-bg-alt); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head__intro { max-width: 60ch; }
.section-head__intro--services-approach { max-width: none; }
.section-head__intro--services-approach .h2 { white-space: normal; }
.section-head .eyebrow { margin-bottom: var(--space-4); }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  --btn-pad-y: 15px; --btn-pad-x: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--speed) var(--ease); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink) !important; }
.btn--primary:hover { background: var(--color-accent-press); color: var(--color-accent-ink) !important; transform: translateY(-2px); }
a.btn--primary:hover, a.btn--primary:visited, a.btn--primary:focus { color: var(--color-accent-ink) !important; }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border-color: var(--color-border-strong); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-text); transform: translateY(-2px); }
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { --btn-pad-y: 19px; --btn-pad-x: 38px; font-size: 0.85rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--color-border-strong);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.text-link svg { width: 1em; height: 1em; transition: transform var(--speed) var(--ease); }
.text-link:hover { color: var(--color-accent); border-color: var(--color-accent); }
.text-link:hover svg { transform: translate(3px, -3px); }

/* =====================================================================
   Header / Nav
   ===================================================================== */
.site-header {
  position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), backdrop-filter var(--speed) var(--ease);
  border-bottom: 1px solid transparent;
}

body.menu-open .site-header { z-index: 101; background: var(--color-bg); border-bottom-color: var(--color-border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-5); }
.brand {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase;
}

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.nav__link {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative; padding: 6px 0; white-space: nowrap;
  transition: color var(--speed) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--color-accent);
  transition: width var(--speed) var(--ease);
}
.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--color-text); }
.nav__cta { display: inline-flex; }
.nav__item--dropdown { position: relative; }
.nav__item--dropdown::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 100%; min-width: 260px; height: 18px; }

.nav__item--dropdown .nav__link {
  padding: 6px 12px; margin: 0 -12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-text);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.nav__item--dropdown .nav__link::after { display: none; }
.nav__item--dropdown:hover .nav__link,
.nav__item--dropdown:focus-within .nav__link {
  background: var(--color-accent-line);
}

.nav__caret { display: inline-block; width: 16px; height: 16px; margin-left: 3px; vertical-align: -3px; color: var(--color-accent); filter: drop-shadow(0 0 3px rgba(200, 255, 60, 0.45)); transition: transform var(--speed) var(--ease), filter var(--speed) var(--ease); }
.nav__item--dropdown:hover .nav__caret, .nav__item--dropdown:focus-within .nav__caret { transform: rotate(180deg); filter: drop-shadow(0 0 6px rgba(200, 255, 60, 0.75)); }
.nav__dropdown::before {
  content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background: var(--color-surface); border-left: 1px solid var(--color-border); border-top: 1px solid var(--color-border);
}
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  min-width: 260px; margin-top: 14px; padding: 10px; list-style: none;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
}
@media (min-width: 941px) {
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
}
.nav__dropdown-link {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: none;
  color: var(--color-text-muted); white-space: nowrap; transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav__dropdown-link:hover { background: var(--color-accent-soft); color: var(--color-text); }
.nav__dropdown-link[aria-current="page"] { color: var(--color-accent); }
.nav__dropdown-list { list-style: none; margin: 0; padding: 0; }
.nav__dropdown-heading {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-dim); padding: 10px 14px 4px; margin: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav__dropdown-heading::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px;
}
.nav__dropdown-heading--blue::before   { background: #7DB3FF; box-shadow: 0 0 7px rgba(125,179,255,0.7); }
.nav__dropdown-heading--amber::before  { background: #F2C24C; box-shadow: 0 0 7px rgba(242,194,76,0.7); }
.nav__dropdown-heading--green::before  { background: #45D69B; box-shadow: 0 0 7px rgba(69,214,155,0.7); }
.nav__dropdown-heading--purple::before { background: #B69CFF; box-shadow: 0 0 7px rgba(182,156,255,0.7); }
@media (min-width: 941px) {
  .nav__dropdown::after {
    content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent) 45%, var(--color-accent) 55%, transparent);
    opacity: 0.85; pointer-events: none;
  }
  .nav__dropdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    width: max-content;
    max-width: min(1320px, calc(100vw - 32px));
    gap: 0 8px;
    padding: 16px 10px 12px;
  }
  .nav__dropdown-col { min-width: 300px; }
  .nav__dropdown-heading { white-space: nowrap; line-height: 1.3; }
  .nav__dropdown-link { white-space: nowrap; position: relative; padding-right: 30px; }
  .nav__dropdown-link::after {
    content: "\2192"; position: absolute; right: 12px; top: 50%; transform: translate(-6px, -50%);
    color: var(--color-accent); opacity: 0; font-family: var(--font-mono);
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease);
  }
  .nav__dropdown-link:hover::after { opacity: 1; transform: translate(0, -50%); }
}
.nav__toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--color-text); position: relative; transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--color-text); transition: transform var(--speed) var(--ease); }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; position: relative; z-index: 102; }
  .nav__cta.nav__cta--desk { display: none; }
  .nav__links {
    position: fixed; inset: 0 0 0 0;
    flex-direction: column; justify-content: center;
    gap: var(--space-5);
    background: var(--color-bg);
    padding: var(--gutter);
    padding-top: calc(var(--announce-h) + var(--header-h) + var(--space-5));
    padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px));
    transform: translateX(100%);
    transition: transform var(--speed) var(--ease);
    border-top: 1px solid var(--color-border);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.menu-open .nav__links { transform: translateX(0); }
  body.menu-open { overflow: hidden; }
  .nav__link { font-size: 1.4rem; color: var(--color-text); }
  .nav__links .btn { margin-top: var(--space-4); }
  .nav__item--dropdown { display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; }
  .nav__item--dropdown::after { display: none; }
  .nav__caret { cursor: pointer; box-sizing: content-box; width: 18px; height: 18px; padding: 10px; margin: -10px -10px -10px 6px; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    margin: 0; padding: 0; border: none; background: none; box-shadow: none;
    display: flex; flex-direction: column; align-items: center; gap: var(--space-3); min-width: 0; width: 100%; max-width: 260px; margin-inline: auto;
    max-height: 0; overflow: hidden; transition: max-height var(--speed) var(--ease), margin-top var(--speed) var(--ease);
  }
  .nav__item--dropdown.is-open .nav__dropdown { max-height: 900px; margin-top: var(--space-3); }
  .nav__item--dropdown.is-open .nav__caret { transform: rotate(180deg); }
  .nav__dropdown-link { display: block; width: 100%; max-width: 100%; font-size: 1rem; padding: 6px 0; color: var(--color-text-muted); white-space: normal; text-align: center; word-break: break-word; }
  .nav__dropdown::before { display: none; }
  .nav__dropdown-col { width: 100%; }
  .nav__dropdown-col + .nav__dropdown-col { margin-top: var(--space-3); }
  .nav__dropdown-heading { display: flex; justify-content: center; width: 100%; padding: 0 0 4px; white-space: normal; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; padding-top: calc(var(--announce-h) + var(--header-h) + clamp(40px, 8vw, 110px)); padding-bottom: var(--section-y); overflow: hidden; }

.hero__title { margin-bottom: var(--space-6); }
.hero__title .ln { display: block; }
.hero__title .accent-fill { color: var(--color-accent); }
.hero__sub { max-width: 46ch; margin-bottom: var(--space-7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 7vw, 90px); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.hero__meta-item { text-align: center; }
.hero__meta-item .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.02em; }
.hero__meta-item .l { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 4px; }

/* Decorative oversized brand glyph */
.hero__glyph {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20rem, 42vw, 48rem); line-height: 0.7;
  color: var(--color-surface); letter-spacing: -0.06em;
  pointer-events: none; user-select: none; z-index: 0; opacity: 0.55;
}
.hero > .container { position: relative; z-index: 1; }

/* =====================================================================
   Marquee
   ===================================================================== */
.marquee { border-block: 1px solid var(--color-border); padding-block: 18px; overflow: hidden; background: var(--color-bg-alt); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 48px; }
.marquee__item::after { content: "✳"; color: var(--color-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   Stat band
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.stat:nth-child(4n) { border-right: none; }
.stat__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.stat__n .u { color: var(--color-accent); }
.stat__l { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); margin-top: var(--space-4); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(4n) { border-right: 1px solid var(--color-border); } .stat:nth-child(2n) { border-right: none; } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } .stat { border-right: none !important; } }

/* =====================================================================
   Cards / grids
   ===================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.card:hover { border-color: var(--color-border-strong); transform: translateY(-4px); }
.card.card:hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), background var(--speed) var(--ease); transition-delay: 0s; }

/* Service list (numbered rows) */
.svc-list { border-top: 1px solid var(--color-border); }
.svc-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: var(--space-5);
  align-items: center; padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative; transition: padding var(--speed) var(--ease);
}
.svc-row__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-text-dim); letter-spacing: 0.1em; }
.svc-row__main { display: grid; gap: 10px; }
.svc-row__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: -0.01em; transition: color var(--speed) var(--ease); }
.svc-row__desc { color: var(--color-text-muted); max-width: 52ch; }
.svc-row__arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease); flex: none; }
.svc-row__arrow svg { width: 20px; height: 20px; transition: transform var(--speed) var(--ease); }
.svc-row:hover .svc-row__title { color: var(--color-accent); }
.svc-row:hover .svc-row__arrow { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.svc-row:hover .svc-row__arrow svg { transform: translate(3px, -3px); }

@media (max-width: 680px) {
  .svc-row { grid-template-columns: 1fr auto; gap: var(--space-3); padding: clamp(20px, 4vw, 32px) 0; align-items: start; }
  .svc-row__num { grid-column: 1; grid-row: 1; }
  .svc-row__main { grid-column: 1; grid-row: 2; }
  .svc-row__arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 40px; height: 40px; }
  .svc-row__arrow svg { width: 16px; height: 16px; }
  .svc-row__num { font-size: 0.72rem; color: var(--color-accent); }
  .svc-row__title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
}

/* Feature card grid */

.feature h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }
.feature p { color: var(--color-text-muted); font-size: 0.97rem; }

/* =====================================================================
   Process timeline
   ===================================================================== */
.timeline { display: grid; gap: 0; }
.tl-step {
  display: grid; grid-template-columns: clamp(70px, 10vw, 130px) 1fr; gap: clamp(20px, 4vw, 60px);
  padding: clamp(28px, 4vw, 50px) 0; border-top: 1px solid var(--color-border); position: relative;
}
.tl-step:last-child { border-bottom: 1px solid var(--color-border); }
.tl-step__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--color-text-dim); transition: color var(--speed) var(--ease); }
.tl-step:hover .tl-step__num { color: var(--color-accent); }
.tl-step__title { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: var(--space-3); }
.tl-step__desc { color: var(--color-text-muted); max-width: 60ch; }
@media (max-width: 560px) { .tl-step { grid-template-columns: 1fr; gap: var(--space-3); } }

/* =====================================================================
   Comparison table
   ===================================================================== */
.compare { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.compare__row + .compare__row { border-top: 1px solid var(--color-border); }
.compare__cell { padding: clamp(16px, 2.2vw, 24px) clamp(16px, 2.4vw, 28px); display: flex; align-items: center; gap: 10px; }
.compare__cell--label { font-weight: 600; }
.compare__cell--us { background: var(--color-accent-soft); border-inline: 1px solid var(--color-border); font-weight: 600; }
.compare__head .compare__cell { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface); }
.compare__head .compare__cell--us { color: var(--color-accent); background: var(--color-accent-soft); }
.compare .yes { color: var(--color-accent); }
.compare .no { color: var(--color-text-dim); }
.compare__cell svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { .compare__cell { font-size: 0.85rem; padding-inline: 12px; }

@media (max-width: 600px) {
  .compare__row { grid-template-columns: 1fr 1fr 1fr; }
  .compare__cell { padding: 12px 8px; gap: 6px; font-size: 0.78rem; align-items: flex-start; }
  .compare__cell svg { width: 14px; height: 14px; margin-top: 2px; }
  .compare__head .compare__cell { font-size: 0.65rem; letter-spacing: 0.06em; padding: 10px 8px; }
} }

/* =====================================================================
   Pricing
   ===================================================================== */

@media (max-width: 900px) {  }
.plan { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: var(--space-5); transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--color-border-strong); }
.plan.plan:hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); transition-delay: 0s; }
.plan.reveal.js .reveal.is-visible:hover { transform: translateY(-4px); }
.plan--featured { position: relative; }
.plan--featured:hover { background: var(--color-surface-2); border-color: var(--color-accent); }

.plan__name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.15; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plan__price small { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--color-text-muted); letter-spacing: 0.05em; display: inline-block; line-height: 1.4; white-space: nowrap; }
.plan__price-tag { display: inline-flex; align-items: center; background: var(--color-accent); color: var(--color-accent-ink); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); line-height: 1; }
.plan__features { display: grid; gap: var(--space-3); }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); font-size: 0.96rem; }
.plan__features svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* =====================================================================
   Portfolio
   ===================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.work {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); background: var(--color-surface);
  display: flex; flex-direction: column; min-height: 300px;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.work:hover { transform: translateY(-4px); border-color: var(--color-border-strong); }
article.work:hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); transition-delay: 0s; }
.work--wide { grid-column: span 7; }
.work--narrow { grid-column: span 5; }
.work--half { grid-column: span 6; }
.work--third { grid-column: span 4; }
.work__media { position: relative; flex: 1; overflow: hidden; min-height: 220px; }
.work__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.work:hover .work__media img { transform: scale(1.05); filter: grayscale(0) contrast(1); }
.work__body { padding: clamp(18px, 2.2vw, 26px); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.work__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.work__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.7rem); text-transform: uppercase; }
.work__tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
@media (max-width: 860px) {
  .work--wide, .work--narrow, .work--half, .work--third { grid-column: span 12; }
}

/* filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); border: 1px solid var(--color-border);
  padding: 9px 18px; border-radius: var(--radius-pill);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.filter:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.filter.is-active { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.work.is-hidden { display: none; }
.post-card.is-hidden, .post-featured.is-hidden { display: none; }

/* =====================================================================
   Service modal (попап послуги)
   ===================================================================== */
.svc-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--space-5); }
.svc-modal[hidden] { display: none; }
.svc-modal__overlay { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.78); backdrop-filter: blur(3px); animation: svc-fade var(--speed) var(--ease); }
.svc-modal__panel {
  position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--color-surface); border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
  animation: svc-rise var(--speed) var(--ease);
}
.svc-modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  color: var(--color-text-muted); border-radius: 50%;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.svc-modal__close:hover { background: var(--color-bg-alt); color: var(--color-text); }
.svc-modal__list { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.svc-modal__list li { display: flex; align-items: flex-start; gap: 0.7em; color: var(--color-text); }
.svc-modal__list svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; margin-top: 2px; }
@keyframes svc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes svc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.svc-modal-open { overflow: hidden; }

/* before/after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.ba__panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); background: var(--color-surface); }
.ba__panel--after { background: var(--color-surface-2); border-color: var(--color-accent-line); }
.ba__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-5); }
.ba__panel--after .ba__tag { color: var(--color-accent); }
.ba__metric { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.ba__metric:last-child { border-bottom: none; }
.ba__metric .k { color: var(--color-text-muted); font-size: 0.95rem; }
.ba__metric .v { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.ba__panel--after .ba__metric .v { color: var(--color-accent); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }

/* =====================================================================
   Testimonials
   ===================================================================== */

.testi { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: var(--space-5); transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.testi:hover { border-color: var(--color-border-strong); transform: translateY(-4px); }
.testi__quote { font-size: 1.08rem; line-height: 1.55; }
.testi__quote::before { content: "“"; font-family: var(--font-display); font-size: 3rem; line-height: 0; color: var(--color-accent); display: block; margin-bottom: 14px; }
.testi__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg-alt); display: block; object-fit: cover; }
.testi__person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.testi__name { font-weight: 600; font-size: 0.95rem; }
.testi__role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }

.testi--accent .testi__quote::before { color: var(--color-accent-ink); }
.testi--accent .testi__role { color: rgba(10,14,4,0.6); }

/* =====================================================================
   FAQ accordion (pure CSS via <details>)
   ===================================================================== */
.faq { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: clamp(20px, 2.6vw, 30px) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem);
  transition: color var(--speed) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-accent); }
.faq__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; position: relative; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; transition: transform var(--speed) var(--ease), background var(--speed) var(--ease); }
.faq__icon::before { width: 13px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 13px; }
.faq__item[open] .faq__icon { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__answer { color: var(--color-text-muted); max-width: 72ch; padding-bottom: clamp(20px, 2.6vw, 30px); animation: fade-in 0.5s var(--ease); }
.faq__answer a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.faq__answer a:hover { opacity: 0.8; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band { position: relative; text-align: center; padding-block: clamp(70px, 11vw, 150px); overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.cta-band__title { font-size: clamp(2.2rem, 6vw, 5rem); text-transform: uppercase; max-width: 18ch; }
.cta-band .lead { text-align: center; margin-inline: auto; }
.cta-band__glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(80vw, 700px); aspect-ratio: 1; background: radial-gradient(circle, var(--color-accent-soft), transparent 65%); pointer-events: none; }

/* =====================================================================
   Forms
   ===================================================================== */
.form { display: grid; gap: var(--space-5); }

@media (max-width: 560px) {  }

.field label .req { color: var(--color-accent); }

.form-note { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-text-dim); }

/* contact info list */
.contact-list { display: grid; gap: 4px; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: center; padding: clamp(16px, 2vw, 22px) 0; border-bottom: 1px solid var(--color-border); }
.contact-item:first-child { border-top: 1px solid var(--color-border); }
.contact-item__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-accent); }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.contact-item__v { font-size: 1.05rem; transition: color var(--speed) var(--ease); }
a.contact-item:hover .contact-item__v { color: var(--color-accent); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--color-border); padding-top: clamp(56px, 8vw, 100px); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(24px, 3.4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand .brand { font-size: 1.6rem; margin-bottom: var(--space-5); }
.footer-brand p { color: var(--color-text-muted); max-width: 34ch; margin-bottom: var(--space-6); }
.footer-col h4 { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: var(--space-5); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--color-text-muted); font-size: 0.96rem; transition: color var(--speed) var(--ease); }
.footer-col a:hover { color: var(--color-accent); }
.socials { display: flex; gap: 10px; margin-top: var(--space-4); }
.social { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-text-muted); transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease), background var(--speed) var(--ease); }
.social svg { width: 18px; height: 18px; }
.socials .social:hover { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--color-border); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--color-text-dim); text-transform: uppercase; }
.footer-bottom a:hover { color: var(--color-accent); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* =====================================================================
   Page hero (interior pages)
   ===================================================================== */
.page-hero { padding-top: calc(var(--announce-h) + var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero__title { margin-block: var(--space-5) var(--space-6); }
.page-hero .lead { max-width: 56ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-dim); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: var(--color-text); overflow-wrap: break-word; word-break: break-word; }

/* =====================================================================
   About / values
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.media-frame { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); aspect-ratio: 4/5; transition: filter 0.6s var(--ease), transform 0.6s var(--ease); }
.media-frame:hover img { filter: grayscale(0); transform: scale(1.05); }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.value { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.value:hover { border-color: var(--color-border-strong); transform: translateY(-4px); }
.value.value:hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); transition-delay: 0s; }
.value__n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-accent); letter-spacing: 0.1em; }
.value h3 { font-size: 1.3rem; margin-block: var(--space-4) var(--space-3); }
.value p { color: var(--color-text-muted); font-size: 0.96rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.member { }
.member__photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 3/4; margin-bottom: var(--space-4); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.6s var(--ease); }
.member:hover .member__photo img { filter: grayscale(0); }
.member__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.member__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 6px; }

/* =====================================================================
   Blog
   ===================================================================== */
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid var(--color-accent-line); border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface); }

.post-featured__body { padding: clamp(28px, 4vw, 56px); max-width: 72ch; }

.post-featured__body .h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important; line-height: 1.08; letter-spacing: -0.02em; }
.post-featured__media { overflow: hidden; height: 100%; min-height: 320px; background: var(--color-surface-2); position: relative; }

.post-featured__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, var(--color-accent-soft) 0%, transparent 65%), radial-gradient(ellipse at 80% 80%, rgba(200,255,60,0.04) 0%, transparent 60%); pointer-events: none; }

.post-featured__media::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--color-accent-line); opacity: 0.4; box-shadow: 0 0 0 40px var(--color-accent-soft), 0 0 0 80px rgba(200,255,60,0.03); }

.post-featured__media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }

.post-featured:hover .post-featured__media img { transform: scale(1.04); filter: grayscale(0); }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.post-featured:hover .post-featured__media img { transform: scale(1.04); filter: grayscale(0); }
.post-featured__body { padding: clamp(28px, 4vw, 56px); max-width: 72ch; }
@media (max-width: 820px) { .post-featured { grid-template-columns: 1fr; } .post-featured__body { padding: clamp(32px, 5vw, 56px); max-width: 75ch; } .post-featured__media { min-height: 240px; } }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.post-card:hover { border-color: var(--color-border-strong); transform: translateY(-4px); }
.post-card.post-card:hover { transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); transition-delay: 0s; }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 0.7s var(--ease), filter 0.7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); filter: grayscale(0); }
.post-card__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-meta { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
.post-meta .cat { color: var(--color-accent); }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; }
.post-card__excerpt { color: var(--color-text-muted); font-size: 0.94rem; }
.post-card .text-link { margin-top: auto; align-self: flex-start; border: none; padding: 0; }
.post-card:hover .post-card__title { color: var(--color-accent); transition: color var(--speed) var(--ease); }

/* tags row */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); border: 1px solid var(--color-border); padding: 8px 16px; border-radius: var(--radius-pill); transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.pill:hover, .pill.is-active { color: var(--color-accent); border-color: var(--color-accent-line); }

/* =====================================================================
   Courses extras
   ===================================================================== */
.curriculum { display: grid; gap: 0; counter-reset: mod; }
.module { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-4); overflow: hidden; }
.module summary { list-style: none; cursor: pointer; padding: clamp(18px, 2.4vw, 26px); display: flex; align-items: center; gap: var(--space-4); }
.module summary::-webkit-details-marker { display: none; }
.module__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent); flex: none; }
.module__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.35rem); flex: 1; }
.module__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); }
.module__body { padding: 0 clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 26px) clamp(52px, 6vw, 70px); }
.module__body li { color: var(--color-text-muted); padding: 8px 0; border-top: 1px solid var(--color-border); display: flex; gap: 10px; }
.module__body li svg { width: 16px; height: 16px; color: var(--color-accent); flex: none; margin-top: 5px; }
.module[open] summary { border-bottom: 1px solid var(--color-border); }

/* highlight badges row */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); padding: 10px 16px; border-radius: var(--radius-pill); }
.badge svg { width: 16px; height: 16px; color: var(--color-accent); }

/* =====================================================================
   Reveal animation
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* skip link */
.skip-link { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); background: var(--color-accent); color: var(--color-accent-ink); padding: 10px 20px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.78rem; z-index: 200; transition: top var(--speed) var(--ease); }
.skip-link:focus { top: 12px; }

/* utility */
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

.center { text-align: center; }

@media (max-width: 640px) {  }

/* =====================================================================
/* =====================================================================
   Single article (шаблон single.php)
   ===================================================================== */
.article-head { padding-top: calc(var(--announce-h) + var(--header-h) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(28px, 4vw, 48px); }
.article-head__inner { max-width: 820px; margin-inline: auto; }
.article__cat { display: inline-flex; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-ink); background: var(--color-accent); padding: 6px 14px; border-radius: var(--radius-pill); margin-top: var(--space-5); }
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: var(--space-5); }
.article__excerpt { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--color-text-muted); margin-top: var(--space-6); max-width: 60ch; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.article__author { display: flex; align-items: center; gap: var(--space-4); }
.article__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.article__author-name { font-weight: 700; }
.article__author-role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--color-text-dim); text-transform: uppercase; }
.article__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-text-dim); }
.article__meta-item { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--color-text-muted); }

.article__cover { max-width: 1100px; margin: clamp(8px, 2vw, 24px) auto 0; padding-inline: var(--gutter); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--color-border); display: block; }

.article-body { padding-block: clamp(40px, 6vw, 80px); padding-inline: var(--gutter); }
.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: var(--space-6); }
.prose p { font-size: 1.12rem; line-height: 1.75; color: #D8D8D4; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.18; letter-spacing: -0.01em; margin-top: var(--space-9); }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; margin-top: var(--space-8); }
.prose h2 + p, .prose h3 + p { margin-top: var(--space-5); }
.prose strong { color: var(--color-text); font-weight: 700; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--color-accent-press); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: var(--space-3); }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.7em; font-size: 1.08rem; line-height: 1.7; color: #D8D8D4; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--color-accent); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose ol li { font-size: 1.08rem; line-height: 1.7; color: #D8D8D4; padding-left: 0.3em; }
.prose ol li::marker { color: var(--color-accent); font-family: var(--font-mono); font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--color-accent); padding: var(--space-4) 0 var(--space-4) var(--space-6); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.4; color: var(--color-text); }
.prose figure { margin-top: var(--space-7); }
.prose figure img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--color-border); display: block; }
.prose figcaption { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--color-text-dim); text-align: center; margin-top: var(--space-3); }
.prose .wp-block-table { margin-top: var(--space-6); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.98rem; }
.prose table th, .prose table td { padding: 10px 14px; border: 1px solid var(--color-border); text-align: left; color: #D8D8D4; }
.prose table th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); background: var(--color-surface); font-weight: 700; }

.article-foot { max-width: 720px; margin: clamp(40px, 6vw, 72px) auto 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.article-tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--color-text-muted); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 7px 14px; }
.author-card { display: flex; gap: var(--space-5); align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); margin-top: var(--space-7); }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.author-card__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-accent); margin-top: var(--space-2); }

@media (max-width: 560px) { .author-card { flex-direction: column; } }

/* =====================================================================
   Contact Form 7 — стилізація під дизайн сайту
   ===================================================================== */
.cf7-wrap .wpcf7-form { display: grid; gap: var(--space-5); }
.cf7-wrap .wpcf7-form > p { margin: 0; display: grid; gap: 8px; }
@media (max-width: 560px) {
  .cf7-wrap .wpcf7-form { grid-template-columns: 1fr; }
}
@media (min-width: 561px) {
  .cf7-wrap .wpcf7-form { grid-template-columns: 1fr 1fr; }
  .cf7-wrap .wpcf7-form > p:nth-of-type(1) { grid-column: 1; }
  .cf7-wrap .wpcf7-form > p:nth-of-type(2) { grid-column: 2; }
  .cf7-wrap .wpcf7-form > p:nth-of-type(3) { grid-column: 1; }
  .cf7-wrap .wpcf7-form > p:nth-of-type(4) { grid-column: 2; }
  .cf7-wrap .wpcf7-form > p:nth-of-type(5),
  .cf7-wrap .wpcf7-form > p:nth-of-type(6),
  .cf7-wrap .wpcf7-form > p:nth-of-type(7) { grid-column: 1 / -1; }
}

.cf7-wrap .wpcf7-form label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
  display: block;
}
.cf7-wrap .wpcf7-form label br { display: block; content: ''; margin-top: 8px; }
.cf7-wrap .wpcf7-form-control-wrap { display: block; }
.cf7-wrap .req-star { color: var(--color-accent); }

.cf7-wrap .wpcf7-form-control {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--color-border-strong);
  padding: 12px 0; font-size: 1rem; color: var(--color-text); font-family: var(--font-body);
  transition: border-color var(--speed) var(--ease); border-radius: 0; box-sizing: border-box;
}
.cf7-wrap .wpcf7-form-control::placeholder { color: var(--color-text-dim); }
.cf7-wrap .wpcf7-form-control:focus { outline: none; border-bottom-color: var(--color-accent); }
.cf7-wrap .wpcf7-form-control:-webkit-autofill,
.cf7-wrap .wpcf7-form-control:-webkit-autofill:hover,
.cf7-wrap .wpcf7-form-control:-webkit-autofill:focus,
.cf7-wrap .wpcf7-form-control:-webkit-autofill:active {
  -webkit-text-fill-color: var(--color-text) !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
  caret-color: var(--color-text);
}
.cf7-wrap textarea.wpcf7-form-control { resize: vertical; min-height: 120px; }
.cf7-wrap select.wpcf7-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9BA4' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; cursor: pointer;
}
.cf7-wrap select.wpcf7-form-control option { background: var(--color-bg); color: var(--color-text); }
.cf7-wrap select.wpcf7-form-control:invalid,
.cf7-wrap select.wpcf7-form-control option[value='\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u043e\u043a'] { color: var(--color-text-dim); }

.cf7-wrap .wpcf7-acceptance { display: block; }
.cf7-wrap .wpcf7-list-item { margin: 0; display: block; }
.cf7-wrap .wpcf7-list-item label {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px;
  text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.9rem; color: var(--color-text-muted);
}
.cf7-wrap .wpcf7-list-item input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-accent); appearance: auto; -webkit-appearance: checkbox; flex-shrink: 0; }

.cf7-wrap .wpcf7-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 19px 38px; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: var(--color-accent); color: var(--color-accent-ink) !important;
  cursor: pointer; transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease);
  will-change: transform;
}
.cf7-wrap .wpcf7-submit:hover { background: var(--color-accent-press); color: var(--color-accent-ink) !important; transform: translateY(-2px); }
.cf7-wrap .wpcf7-submit svg { width: 1.05em; height: 1.05em; transition: transform var(--speed) var(--ease); }
.cf7-wrap .wpcf7-submit:hover svg { transform: translateX(4px); }
.cf7-wrap .wpcf7-submit.has-spinner { display: inline-flex; align-items: center; gap: 8px; }

.cf7-wrap .wpcf7-not-valid-tip {
  font-family: var(--font-mono); font-size: 0.72rem; color: #ff6b6b; font-weight: 400;
  text-transform: none; letter-spacing: 0; margin-top: 4px;
}
.cf7-wrap .wpcf7-response-output {
  font-family: var(--font-mono); font-size: 0.8rem; border-radius: 12px; margin-top: var(--space-4);
  padding: 14px 18px; border: 1px solid var(--color-border-strong);
}
.cf7-wrap .wpcf7-response-output:empty { display: none; padding: 0; margin: 0; border: none; }
.cf7-wrap .wpcf7-mail-sent-ok { border-color: var(--color-accent); color: var(--color-accent); }
.cf7-wrap .wpcf7-validation-errors,
.cf7-wrap .wpcf7-mail-sent-ng,
.cf7-wrap .wpcf7-spam-blocked { border-color: #ff6b6b; color: #ff6b6b; }
/* =====================================================================
   svc-cats — картки послуг (головна сторінка)
   ===================================================================== */

@media (max-width: 768px) {  }
@media (min-width: 769px) and (max-width: 1024px) {  }

/* =====================================================================
   Service groups (collapsible detail cards) — сторінка послуг
   ===================================================================== */
.svc-groups { display: grid; gap: clamp(40px, 5vw, 68px); margin-top: var(--space-6); }
.svc-group__label { margin-bottom: var(--space-5); }
.svc-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--speed) var(--ease);
}
.svc-card + .svc-card { margin-top: var(--space-4); }
.svc-card[open], .svc-card:hover { border-color: var(--color-border-strong); }
.svc-card__head {
  display: flex; align-items: center; gap: var(--space-4);
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
  cursor: pointer; list-style: none; user-select: none;
}
.svc-card__head::-webkit-details-marker { display: none; }
.svc-icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-icon__glyph { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.svc-icon--blue   { background: rgba(96,165,250,0.15);  color: #7DB3FF; }
.svc-icon--green  { background: rgba(52,211,153,0.15);  color: #45D69B; }
.svc-icon--purple { background: rgba(167,139,250,0.15); color: #B69CFF; }
.svc-icon--amber  { background: rgba(245,190,90,0.16);  color: #F2C24C; }
.svc-icon--red    { background: rgba(248,113,113,0.15); color: #F58A8A; }
.svc-card__heading { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.svc-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.15; letter-spacing: -0.01em;
}
.svc-card__price { font-size: 0.92rem; color: var(--color-accent); }
.svc-card__chev {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; color: var(--color-accent);
  transition: transform var(--speed) var(--ease);
}
.svc-card__chev svg { width: 20px; height: 20px; }
.svc-card[open] .svc-card__chev { transform: rotate(180deg); }
.svc-checks {
  list-style: none; margin: 0;
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-4) clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--color-border);
}
.svc-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--color-text-muted); line-height: 1.45; }
.svc-checks svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent); }
@media (max-width: 680px) { .svc-checks { grid-template-columns: 1fr; } }

/* Service overview cards — link style (no accordion), lead to dedicated service pages */
a.svc-card--link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  text-decoration: none; color: inherit;
  padding-right: clamp(20px, 2.4vw, 30px);
}
.svc-card__body { flex: 1 1 auto; min-width: 0; }
.svc-card__pitch {
  margin: 0; padding: 0 clamp(20px, 2.4vw, 30px) clamp(18px, 2.2vw, 26px);
  color: var(--color-text-muted); line-height: 1.5; max-width: 62ch;
}
.svc-card__cta {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text);
  flex: none; border: 1px solid var(--color-border-strong); padding: 10px 16px; border-radius: var(--radius-pill);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.svc-card__cta svg { width: 14px; height: 14px; transition: transform var(--speed) var(--ease); }
a.svc-card--link:hover .svc-card__cta { border-color: var(--color-accent); color: var(--color-accent); }
a.svc-card--link:hover .svc-card__cta svg { transform: translateX(3px); }
@media (max-width: 680px) {
  a.svc-card--link { flex-direction: column; align-items: stretch; padding-right: 0; }
  .svc-card__cta { margin: 0 clamp(20px, 2.4vw, 30px) clamp(18px, 2.2vw, 26px); justify-content: center; }
}

/* =====================================================================
   Testimonials Carousel
   ===================================================================== */
.testi-carousel { margin-top: var(--space-7); }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  transition: none;
  cursor: grab;
  touch-action: pan-y;
}
.testi-track.is-dragging { cursor: grabbing; }
.testi-track.is-dragging, .testi-track.is-dragging * { user-select: none; }
@media (max-width: 900px) { .testi-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .testi-track { grid-template-columns: 1fr; } }

.testi-track .testi { display: none; }
.testi-track .testi.is-active { display: flex; }

.testi-nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-5); margin-top: var(--space-6);
}
.testi-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: transparent; color: var(--color-text);
  display: grid; place-items: center; cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.testi-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.testi-btn svg { width: 20px; height: 20px; }
.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-border-strong); border: none;
  cursor: pointer; transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
  padding: 0;
}
.testi-dot.is-active { background: var(--color-accent); transform: scale(1.3); }

/* Logo image */
.brand__logo { display:block; height:25px; width:auto; max-width:none; }
.brand { display:flex; align-items:center; }

/* === Work Portfolio Modal === */
#work-overlay{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:900;backdrop-filter:blur(4px);}
.work-modal{position:fixed;inset:0;margin:auto;z-index:901;background:var(--clr-surface,#1a1a1a);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:2rem 2rem 2rem;max-width:540px;width:calc(100% - 2rem);max-height:90vh;overflow-y:auto;color:var(--clr-text,#fff);display:flex;flex-direction:column;gap:1rem;}
.work-modal[hidden]{display:none;}
.work-modal__close{position:absolute;top:1rem;right:1rem;background:transparent;border:none;color:var(--clr-text,#fff);font-size:1.5rem;cursor:pointer;line-height:1;padding:.25rem .5rem;opacity:.6;transition:opacity .2s;}
.work-modal__close:hover{opacity:1;}
.work-modal__cat{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--clr-accent,#aaff00);font-weight:600;}
.work-modal__title{font-size:clamp(1.6rem,4vw,2.2rem);font-weight:900;margin:0;line-height:1.1;}
.work-modal__result{display:inline-block;background:var(--clr-accent,#aaff00);color:#000;font-weight:800;font-size:.85rem;border-radius:999px;padding:.3rem .9rem;width:fit-content;}
.work-modal__list{list-style:none;padding:0;margin:.5rem 0 0;display:flex;flex-direction:column;gap:.6rem;}
.work-modal__list li{padding-left:1.2rem;position:relative;opacity:.85;font-size:.95rem;line-height:1.5;}
.work-modal__list li::before{content:"→";position:absolute;left:0;color:var(--clr-accent,#aaff00);}
.work-modal__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;border-top:1px solid rgba(255,255,255,.08);padding-top:1.2rem;margin-top:.5rem;text-align:center;}
.work-modal__stats>div{display:flex;flex-direction:column;gap:.2rem;font-size:.75rem;opacity:.6;text-transform:uppercase;letter-spacing:.05em;}
.work-modal__stats>div span{font-size:1.4rem;font-weight:900;color:var(--clr-accent,#aaff00);opacity:1;}
body.work-modal-open{overflow:hidden;}


/* ============================================================
   TL — Курсор-прилад та скрол-протокол (лабораторна тематика)
   ============================================================ */
/* Поза мишкою (мобільні/тач-екрани) ці елементи повністю сховані — інакше вони видні як звичайні блоки в початку body */
.tl-cursor-dot,
.tl-cursor-ring,
.tl-cursor-label {
  display: none;
}

@media (pointer: fine) {
  .tl-cursor-dot,
  .tl-cursor-ring,
  .tl-cursor-label {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  body.tl-cursor-on,
  body.tl-cursor-on * {
    cursor: none !important;
  }
  body.tl-cursor-on a:hover,
  body.tl-cursor-on a:hover *,
  body.tl-cursor-on button:hover,
  body.tl-cursor-on button:hover *,
  body.tl-cursor-on input:hover,
  body.tl-cursor-on input:hover *,
  body.tl-cursor-on select:hover,
  body.tl-cursor-on select:hover *,
  body.tl-cursor-on textarea:hover,
  body.tl-cursor-on textarea:hover *,
  body.tl-cursor-on summary:hover,
  body.tl-cursor-on summary:hover *,
  body.tl-cursor-on [role="button"]:hover,
  body.tl-cursor-on [role="button"]:hover *,
  body.tl-cursor-on .btn:hover,
  body.tl-cursor-on .btn:hover *,
  body.tl-cursor-on .nav__link:hover,
  body.tl-cursor-on .nav__link:hover *,
  body.tl-cursor-on .social:hover,
  body.tl-cursor-on .social:hover *,
  body.tl-cursor-on .testi-btn:hover,
  body.tl-cursor-on .testi-btn:hover * {
    cursor: pointer !important;
  }
  .tl-cursor-dot {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--color-accent);
  }
  .tl-cursor-ring {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid var(--color-accent-line);
    border-radius: 50%;
    transition: opacity 0.3s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease),
      margin 0.25s var(--ease), border-radius 0.25s var(--ease), border-color 0.25s var(--ease),
      box-shadow 0.25s var(--ease);
  }
  .tl-cursor-label {
    margin: 14px 0 0 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.02em;
    color: var(--color-text-dim);
    white-space: nowrap;
    transition: opacity 0.3s var(--ease);
  }
  body.tl-cursor-on .tl-cursor-dot,
  body.tl-cursor-on .tl-cursor-ring,
  body.tl-cursor-on .tl-cursor-label {
    opacity: 1;
  }
  body.tl-cursor-on .tl-cursor-ring.is-locked,
  body.tl-cursor-on .tl-cursor-dot.is-locked {
    opacity: 0;
  }
  body.tl-cursor-on .tl-cursor-label.is-locked {
    opacity: 0;
  }
}

.tl-scroll-protocol {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  z-index: 300;
}
.tl-scroll-protocol__fill {
  height: 100%;
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-soft);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.tl-scroll-protocol__badge {
  position: fixed;
  top: 12px;
  right: var(--gutter);
  z-index: 300;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--color-text-dim);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.tl-scroll-protocol__badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 899px) {
  .tl-scroll-protocol__badge { display: none; }
}

/* ---- TL Кнопка «нагору» (пробірка) ---- */
.tl-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tl-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tl-to-top:hover {
  border-color: var(--color-accent-line);
  background: var(--color-surface-2);
}
.tl-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.tl-to-top svg {
  transition: transform 0.5s var(--ease);
}
.tl-to-top.is-flipping svg {
  transform: rotate(180deg);
}
@media (max-width: 640px) {
  .tl-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}


/* ---- TL Хвиля-маркер при кліку ---- */
.tl-click-ripple {
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 9999;
  transform: scale(0);
  animation: tlRippleExpand 0.6s ease-out forwards;
}
@keyframes tlRippleExpand {
  0% { transform: scale(0); opacity: 0.35; }
  100% { transform: scale(9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-click-ripple { display: none; }
}

/* ---- TL 3D-нахил карток: додаємо transform у транзицію .svc-card, щоб повернення було плавним, як і в інших карток ---- */
.svc-card {
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
/* =====================================================================
   TL CASE — повна сторінка кейсу (single-tl_case.php)
   Шрифти/розміри тексту всюди беруться з існуючих токенів вище (--font-*, .h1/.h2/.h3/.eyebrow/.stat__n/.stat__l).
   ===================================================================== */
.case-hero { padding-top: calc(var(--announce-h) + var(--header-h) + clamp(36px, 5vw, 64px)); padding-bottom: clamp(36px, 5vw, 60px); }
.case-hero__title { margin-block: var(--space-5) var(--space-6); max-width: 26ch; overflow-wrap: break-word; }
@media (max-width: 480px) { .case-hero__title { font-size: clamp(1.6rem, 8vw, 2.1rem); } }

.case-log { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-block: var(--space-6); max-width: 560px; }
.case-log__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.case-log__dot { width: 9px; height: 9px; border-radius: 50%; }
.case-log__dot--r { background: #F58A8A; }
.case-log__dot--y { background: #F2C24C; }
.case-log__dot--g { background: #45D69B; }
.case-log__bar span:not(.case-log__dot) { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; color: var(--color-text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.case-log__body { padding: 16px 18px; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.9; }
.case-log__body .l { color: var(--color-text-dim); }
.case-log__body .k { color: var(--color-accent); }
.case-log__body .ok { color: var(--color-accent); font-weight: 700; }
.case-log__cursor { display: inline-block; width: 2px; height: 1.1em; background: var(--color-accent); vertical-align: text-bottom; animation: case-log-blink 1s step-end infinite; margin-left: 2px; }
@keyframes case-log-blink { 50% { opacity: 0; } }

.case-hero__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.case-hero__meta-item .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-dim); margin-bottom: 6px; }
.case-hero__meta-item .v { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.case-hero__divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-6) 0 0; }
.case-hero__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 16/8; margin-top: var(--space-6); background: var(--color-surface); }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero__badge { position: absolute; bottom: var(--space-6); left: var(--space-6); background: rgba(8,8,10,0.72); backdrop-filter: blur(10px); border: 1px solid var(--color-accent-line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: 2px; }
.case-hero__badge .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 3rem); color: var(--color-accent); line-height: 1; }
.case-hero__badge .l { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
@media (max-width: 640px) {
  .case-hero__badge { bottom: var(--space-3); left: var(--space-3); padding: 8px 14px; border-radius: var(--radius-pill); gap: 0; }
  .case-hero__badge .n { font-size: 1rem; }
  .case-hero__badge .l { display: none; }
}

.case-split { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: clamp(28px, 5vw, 64px); }
.case-split__label { position: static; }
.case-split__label h3 { margin-top: 10px; max-width: 14ch; text-transform: none; }

.insight-box { border: 1px solid var(--color-accent-line); border-left: 3px solid var(--color-accent); background: var(--color-accent-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: var(--space-5) var(--space-6); margin-top: var(--space-5); max-width: 62ch; }
.insight-box__tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.insight-box p { color: var(--color-text); }

.case-steps { display: grid; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.case-step { background: var(--color-surface); padding: var(--space-5) var(--space-6); display: grid; grid-template-columns: 40px 1fr; gap: var(--space-5); align-items: center; }
.case-step__n { font-family: var(--font-mono); font-size: 0.86rem; color: var(--color-accent); border: 1px solid var(--color-accent-line); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.case-step__title { font-weight: 600; }

.case-phase { margin-bottom: var(--space-6); }
.case-phase:last-child { margin-bottom: 0; }
.case-phase__head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-4); }
.case-phase__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-accent-ink); background: var(--color-accent); border-radius: var(--radius-pill); width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.case-phase__title { font-weight: 700; }
.case-phase__items { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.case-phase__item { padding: 13px 20px; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); display: flex; gap: 10px; }
.case-phase__item:last-child { border-bottom: none; }
.case-phase__item::before { content: "—"; color: var(--color-accent); flex: none; }

.result-callout { border: 1px solid var(--color-accent-line); background: var(--color-accent-soft); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.result-callout__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 3rem); color: var(--color-accent); line-height: 1; }
.result-callout__text { max-width: 46ch; color: var(--color-text-muted); }
.result-callout__text b { color: var(--color-text); }

.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--3 .stat:nth-child(4n) { border-right: 1px solid var(--color-border); }
.stats--3 .stat:last-child { border-right: none; }

.lab-conclusion { position: relative; background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px); }
.lab-conclusion__tag { position: absolute; top: -13px; left: 32px; background: var(--color-bg); padding: 0 12px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); }
.lab-conclusion__text { max-width: none; text-transform: none; letter-spacing: 0; font-size: 1.08rem; line-height: 1.55; }
.lab-conclusion__text::before { content: "> "; font-family: var(--font-mono); font-weight: 700; color: var(--color-accent); }
.lab-conclusion__cursor { display: inline-block; width: 2px; height: 1em; background: var(--color-accent); vertical-align: text-bottom; margin-left: 3px; animation: case-log-blink 1s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .lab-conclusion__cursor { animation: none; } }

.testimonial-slot { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); text-align: center; color: var(--color-text-dim); font-family: var(--font-mono); font-size: 0.86rem; }

.rel-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); }
.rel-service { border: 1px solid var(--color-border-strong); background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; justify-content: space-between; align-items: center; transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease); }
.rel-service:hover { border-color: var(--color-accent); transform: translateY(-4px); }
.rel-service .tag { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px; }
.rel-service .t { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.rel-service .d { color: var(--color-accent); font-weight: 700; font-family: var(--font-mono); font-size: 0.9rem; margin-top: 8px; }
.rel-service__arrow-wrap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; flex: none; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.rel-service:hover .rel-service__arrow-wrap { background: var(--color-accent); border-color: var(--color-accent); }
.rel-service__arrow { width: 18px; height: 18px; color: var(--color-accent); transition: transform var(--speed) var(--ease), color var(--speed) var(--ease); }
.rel-service:hover .rel-service__arrow { transform: translateX(3px); color: var(--color-accent-ink); }

@media (max-width: 900px) {
  .case-split { grid-template-columns: 1fr; }
  .case-split__label { position: static; }
  .case-hero__meta { grid-template-columns: 1fr 1fr; }
  .result-callout { flex-direction: column; text-align: center; }
}

/* ms2-related — читайте також, спільний компонент, використовується на послугах, курсах і в блозі */
.ms2-related{ margin-top:var(--space-8); }
.ms2-related__list{ list-style:none; padding:0; margin:var(--space-4) 0 0; border-top:1px solid var(--color-border); }
.ms2-related__link{ display:flex; align-items:center; gap:var(--space-4); padding-block:var(--space-4); border-bottom:1px solid var(--color-border); color:var(--color-text); text-decoration:none; }
.ms2-related__tag{ font-family:var(--font-mono); font-size:0.78rem; color:var(--color-accent); flex-shrink:0; }
.ms2-related__title{ flex:1; }
.ms2-related__arrow{ font-family:var(--font-mono); color:var(--color-text-dim); transition:transform 0.2s ease, color 0.2s ease; }
.ms2-related__link:hover .ms2-related__title{ color:var(--color-accent); }
.ms2-related__link:hover .ms2-related__arrow{ transform:translateX(6px); color:var(--color-accent); }

/* ms2-related — згортання посилань понад 3 + кнопка «Ще» */
.ms2-related__list li:nth-child(n+4){ display:none; }
.ms2-related__list.is-expanded li{ display:block; }
.ms2-related__more{
  display:inline-flex; align-items:center; gap:0.5em;
  margin-top:var(--space-4);
  font-family:var(--font-mono); font-size:0.78rem;
  letter-spacing:0.1em; text-transform:uppercase;
  color:var(--color-text-dim);
  background:none; border:none; border-bottom:1px solid var(--color-border-strong);
  padding:0 0 3px; cursor:pointer;
  transition:color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.ms2-related__more:hover{ color:var(--color-accent); border-color:var(--color-accent); }
