/* ==========================================================================
   Homepage v5 — повна головна сторінка (mobile first).
   Темна основа, мʼятні й блакитні акценти, фотоколажі.
   Ілюстрації в assets/img — ілюстративні, не реальні оголошення клієнтів.
   Сторінки AI Reporting використовують окремий assets/styles.css.
   ========================================================================== */

/* ---------- Шрифти (локальні, OFL — див. assets/fonts/*.txt) ---------- */
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токени ---------- */
:root {
  --v5-bg: #090e16;
  --v5-bg-2: #132631;
  --v5-panel: #0d1822;
  --v5-mint: #42c7a4;
  --v5-mint-hi: #5fe0b8;
  --v5-blue: #75bff0;
  --v5-white: #f5f7f8;
  --v5-text: #dbe4e8;
  --v5-muted: #a3b3bd;
  --v5-line: rgba(117, 191, 240, 0.16);
  --v5-glass: rgba(19, 38, 49, 0.62);

  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --radius: 24px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--v5-bg);
}
body {
  margin: 0;
  background: var(--v5-bg);
  color: var(--v5-text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: 650; }
img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
:focus-visible { outline: 3px solid var(--v5-mint-hi); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--v5-mint);
  color: #06231b;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.v5-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Шапка ---------- */
.v5-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--v5-bg);
  color: var(--v5-white);
  border-bottom: 1px solid rgba(117, 191, 240, 0.1);
}
.v5-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.v5-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: auto;
  text-decoration: none;
}
.v5-brand__mark { font-size: 26px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.v5-brand__slash {
  width: 2px;
  height: 26px;
  background: var(--v5-mint);
  transform: skewX(-18deg);
  border-radius: 2px;
}
.v5-brand__text { display: grid; line-height: 1.2; }
.v5-brand__text b { font-size: 16px; font-weight: 650; }
.v5-brand__text span { font-size: 14px; color: var(--v5-muted); }

/* Без JS кнопка меню не потрібна: навігація показується списком */
.v5-menu-btn { display: none; }
.js .v5-menu-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--v5-white);
  cursor: pointer;
}
.v5-burger,
.v5-burger::before,
.v5-burger::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.v5-burger { position: relative; }
.v5-burger::before, .v5-burger::after { content: ""; position: absolute; left: 0; }
.v5-burger::before { top: -8px; }
.v5-burger::after { top: 8px; }
.v5-menu-btn[aria-expanded="true"] .v5-burger { background: transparent; }
.v5-menu-btn[aria-expanded="true"] .v5-burger::before { transform: translateY(8px) rotate(45deg); }
.v5-menu-btn[aria-expanded="true"] .v5-burger::after { transform: translateY(-8px) rotate(-45deg); }

.v5-nav { display: flex; flex-wrap: wrap; gap: 0 8px; width: 100%; padding-bottom: 8px; }
.js .v5-nav { display: none; }
.js .v5-nav.is-open { display: grid; gap: 0; padding: 4px 0 16px; }
.v5-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 191, 240, 0.1);
}
.v5-nav a:hover { color: var(--v5-mint-hi); }
.v5-nav__tg { color: var(--v5-mint-hi); }

/* ---------- Загальне ---------- */
.v5 { position: relative; overflow: hidden; color: var(--v5-text); }

.v5-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--v5-mint-hi), var(--v5-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v5-section { position: relative; padding: 48px 0; }
.v5-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(80%, 900px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(66, 199, 164, 0.35), transparent);
}
.v5-cases::before { display: none; }

.v5-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.v5-head__title {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v5-white);
}
.v5-head__line { flex: 1; height: 1px; background: var(--v5-line); }
.v5-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.v5-head__link span { color: var(--v5-mint-hi); font-size: 20px; }
.v5-head__link:hover { color: var(--v5-mint-hi); }

.v5-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v5-mint-hi), var(--v5-mint));
  color: #06231b;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(66, 199, 164, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v5-cta:hover { box-shadow: 0 10px 34px rgba(66, 199, 164, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.v5-cta:active { transform: translateY(1px); }

.v5-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-weight: 600;
  color: var(--v5-white);
  text-decoration: underline;
  text-decoration-color: rgba(95, 224, 184, 0.6);
  text-underline-offset: 5px;
}
.v5-link:hover { color: var(--v5-mint-hi); }

/* Розкривні пояснення */
.v5-more { border-top: 1px solid var(--v5-line); }
.v5-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--v5-white);
}
.v5-more summary::-webkit-details-marker { display: none; }
.v5-more summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(95, 224, 184, 0.5);
  color: var(--v5-mint-hi);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.v5-more[open] summary::after { transform: rotate(45deg); }
.v5-more ul { display: grid; gap: 8px; padding: 2px 0 6px; }
.v5-more .v5-link { margin-bottom: 4px; }
.v5-more li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--v5-muted);
}
.v5-more li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--v5-mint);
}

/* ---------- 1. Перший екран ---------- */
.v5-hero { position: relative; padding: 24px 0 44px; }
.v5-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.v5-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.v5-glow--mint {
  width: 300px;
  height: 300px;
  right: -80px;
  top: 40px;
  background: radial-gradient(circle, rgba(66, 199, 164, 0.5), transparent 70%);
}
.v5-glow--blue {
  width: 320px;
  height: 320px;
  left: -160px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(117, 191, 240, 0.25), transparent 70%);
}

.v5-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 41%;
  column-gap: 4px;
}
.v5-hero .v5-kicker { grid-column: 1 / -1; margin-top: 14px; }
.v5-title {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 14px;
  font-size: clamp(1.75rem, 9vw, 4.5rem);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--v5-white);
}
.v5-accent {
  position: relative;
  display: inline-block;
  color: var(--v5-mint-hi);
  padding-bottom: 0.26em;
}
.v5-underline {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 92%;
  height: 0.3em;
  overflow: visible;
}
.v5-underline path {
  fill: none;
  stroke: var(--v5-mint);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Колаж: на телефоні доходить до краю екрана; краї розчиняються у фон */
.v5-art {
  grid-column: 2;
  grid-row: 2 / span 2;
  position: relative;
  align-self: start;
  width: calc(100% + var(--gutter));
  aspect-ratio: 0.6;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%), linear-gradient(90deg, transparent 0, #000 14%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.v5-art picture, .v5-art img { display: block; width: 100%; height: 100%; }
.v5-art img { object-fit: cover; object-position: 50% 52%; transform: scale(1.1); }
@media (prefers-reduced-motion: no-preference) {
  .v5-art picture { animation: v5-float 8s ease-in-out infinite alternate; }
}
@keyframes v5-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.v5-hero__sub {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.45;
  color: #cdd8de;
}
.v5-hero__action { grid-column: 1 / -1; margin-top: 22px; }
.v5-hero__action .v5-cta { width: 100%; }
.v5-hero__for { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--v5-muted); }

.v5-exp {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.v5-exp li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.35;
}
.v5-exp li:first-child { padding-left: 0; }
.v5-exp li + li { border-left: 1px solid var(--v5-line); }
.v5-exp b { color: var(--v5-white); }
.v5-exp svg, .v5-work svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--v5-mint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v5-exp li:last-child svg { stroke: var(--v5-blue); }

/* ---------- 2. Обрані кейси ---------- */
.v5-cases { padding-top: 8px; }
.v5-cards { display: grid; gap: 20px; }

.v5-card {
  --edge: var(--v5-mint);
  --edge-rgb: 66, 199, 164;
  position: relative;
  overflow: hidden;
  display: grid;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(var(--edge-rgb), 0.16), transparent 60%),
    linear-gradient(170deg, #10202a, #0a141c 70%);
  border: 1px solid rgba(var(--edge-rgb), 0.4);
  box-shadow: 0 0 32px rgba(var(--edge-rgb), 0.13);
}
.v5-card--blue { --edge: var(--v5-blue); --edge-rgb: 117, 191, 240; }

.v5-card__head { position: relative; z-index: 2; padding: 22px 20px 0; }
.v5-card__niche { padding-right: 56px; font-size: 15px; font-weight: 500; color: #cdd8de; }
.v5-card__title {
  margin-top: 8px;
  padding-right: 52px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--v5-white);
}
.v5-card__go {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(9, 14, 22, 0.7);
  border: 1px solid rgba(245, 247, 248, 0.2);
  color: var(--v5-white);
  font-size: 22px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.v5-card__go:hover { background: var(--edge); color: var(--v5-bg); }

.v5-card__task { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--v5-muted); }
.v5-card__head .v5-card__task { padding-right: 52px; }
.v5-illu-note { margin: -8px 0 18px; font-size: 14px; color: var(--v5-muted); }
.v5-illu {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 46px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 22, 0.72);
  border: 1px solid rgba(245, 247, 248, 0.18);
  font-size: 14px;
  color: var(--v5-text);
}

/* Фото — окрема смуга між заголовком і цифрами */
.v5-card__photo {
  position: relative;
  height: 250px;
  margin-top: 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 76%, transparent 100%);
}
.v5-card__photo picture, .v5-card__photo img { display: block; width: 100%; height: 100%; }
.v5-card__photo img { object-fit: cover; }
.v5-card__photo--fashion img { object-position: 62% 12%; }
.v5-card__photo--tires img { object-position: 56% 46%; }

.v5-card__data { position: relative; z-index: 2; display: grid; gap: 12px; padding: 0 20px 6px; margin-top: -26px; }
.v5-metrics {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.v5-metric {
  display: grid;
  align-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--v5-glass);
  border: 1px solid rgba(245, 247, 248, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.v5-metric b {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--edge);
  font-variant-numeric: tabular-nums;
}
.v5-metric span { font-size: 14px; line-height: 1.3; color: #cdd8de; }
.v5-metric--main {
  padding: 10px 20px 10px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--v5-mint-hi), var(--v5-mint));
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}
.v5-card--blue .v5-metric--main { background: linear-gradient(180deg, #8fd0f7, var(--v5-blue)); }
.v5-metric--main b {
  font-size: clamp(2.125rem, 1.8rem + 1.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #06231b;
}
.v5-card--blue .v5-metric--main b,
.v5-card--blue .v5-metric--main span { color: #071b2a; }
.v5-metric--main span { color: #06231b; font-weight: 600; }
.v5-card__note { font-size: 15px; line-height: 1.45; color: #b9c6ce; }
.v5-card__note b { color: var(--v5-white); font-weight: 600; }

/* ---------- 3. Ситуації ---------- */
.v5-situations {
  background: radial-gradient(70% 60% at 100% 0%, rgba(117, 191, 240, 0.1), transparent 70%);
}
.v5-sit { display: grid; gap: 10px; }
.v5-sit__item {
  position: relative;
  padding: 16px 18px 4px 56px;
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(19, 38, 49, 0.75), rgba(13, 24, 34, 0.75));
  border: 1px solid var(--v5-line);
}
.v5-sit__n {
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--v5-mint-hi);
}
.v5-sit__item h3 { font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--v5-white); }
.v5-sit__item p { margin-top: 4px; font-size: 16px; color: var(--v5-muted); }
.v5-sit__item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--v5-mint-hi);
  text-decoration: none;
}
.v5-sit__item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.v5-fit { margin-top: 18px; font-size: 15px; color: var(--v5-muted); max-width: 60ch; }

/* ---------- 4. Формат співпраці ---------- */
.v5-process {
  background: linear-gradient(180deg, rgba(13, 24, 34, 0.9), rgba(9, 14, 22, 0));
}
.v5-work { display: grid; gap: 22px; }
.v5-work li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: start;
}
.v5-work svg {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(66, 199, 164, 0.1);
  border: 1px solid rgba(66, 199, 164, 0.3);
}
.v5-work h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--v5-white); }
.v5-work p { margin-top: 2px; font-size: 16px; color: var(--v5-muted); }

.v5-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  counter-reset: f;
}
.v5-flow li {
  counter-increment: f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(19, 38, 49, 0.8);
  border: 1px solid var(--v5-line);
  font-size: 15px;
  line-height: 1.3;
  color: var(--v5-white);
}
.v5-flow li::before {
  content: counter(f);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--v5-mint);
  color: #06231b;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.v5-promise {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(66, 199, 164, 0.45);
  background: rgba(66, 199, 164, 0.07);
  box-shadow: 0 0 28px rgba(66, 199, 164, 0.1);
  font-size: 16px;
}
.v5-promise b { color: var(--v5-mint-hi); }

/* ---------- 5. Інші кейси ---------- */
.v5-dcards { display: grid; gap: 20px; }
.v5-dcard {
  --edge: var(--v5-mint);
  --edge-rgb: 66, 199, 164;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 20px 10px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(var(--edge-rgb), 0.14), transparent 65%),
    linear-gradient(170deg, #10202a, #0a141c 70%);
  border: 1px solid rgba(var(--edge-rgb), 0.32);
}
.v5-dcard--blue { --edge: var(--v5-blue); --edge-rgb: 117, 191, 240; }
.v5-dcard .v5-card__niche { padding-right: 0; }
.v5-dcard__title {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--v5-white);
}
.v5-tag {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(66, 199, 164, 0.4);
  background: rgba(66, 199, 164, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--v5-mint-hi);
}
.v5-tag--blue { border-color: rgba(117, 191, 240, 0.4); background: rgba(117, 191, 240, 0.08); color: var(--v5-blue); }
.v5-dcard__result { margin-top: 4px; font-size: 16px; color: var(--v5-muted); }
.v5-dcard__result b {
  display: block;
  font-size: clamp(2.25rem, 1.9rem + 1.4vw, 2.875rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--edge);
}
.v5-dcard__sub { font-size: 15px; color: var(--v5-muted); }

.v5-viz {
  margin-top: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(9, 14, 22, 0.55);
  border: 1px solid var(--v5-line);
}
.v5-viz figcaption { display: grid; gap: 2px; margin-bottom: 14px; font-size: 16px; font-weight: 600; color: var(--v5-white); }
.v5-viz figcaption span { font-size: 14px; font-weight: 400; color: var(--v5-muted); }

.v5-range { display: grid; gap: 14px; }
.v5-range__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}
.v5-range__name { grid-column: 1 / -1; font-size: 15px; color: var(--v5-text); }
.v5-range__track { position: relative; height: 12px; border-radius: 999px; background: rgba(117, 191, 240, 0.12); }
.v5-range__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--a);
  width: calc(var(--b) - var(--a));
  border-radius: 999px;
  background: rgba(163, 179, 189, 0.55);
  transform-origin: left center;
}
.v5-range__bar--mint { background: var(--v5-mint-hi); box-shadow: 0 0 12px rgba(95, 224, 184, 0.6); }
.v5-range__val { min-width: 76px; text-align: right; font-size: 16px; font-weight: 700; color: var(--v5-white); }
.js .v5-range__bar { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .is-in .v5-range__bar { transform: scaleX(1); }
.js .is-in .v5-range__row + .v5-range__row .v5-range__bar { transition-delay: 0.15s; }

.v5-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.v5-calc__br { flex-basis: 100%; height: 0; }
.v5-calc__t { display: grid; }
.v5-calc__t b { font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--v5-white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.v5-calc__t span { font-size: 14px; color: var(--v5-muted); }
.v5-calc__op { font-size: 24px; color: var(--v5-muted); }
.v5-calc__t--res {
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8fd0f7, var(--v5-blue));
}
.v5-calc__t--res b, .v5-calc__t--res span { color: #071b2a; }

.v5-src-note { margin-top: 16px; font-size: 15px; color: var(--v5-muted); }

/* ---------- 6. Про мене ---------- */
.v5-about {
  background: radial-gradient(60% 70% at 0% 50%, rgba(66, 199, 164, 0.09), transparent 70%);
}
.v5-about__grid { display: grid; gap: 22px; }
.v5-about__name {
  margin-top: 10px;
  font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--v5-white);
}
.v5-about__role { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--v5-blue); }
.v5-about__lead { margin-top: 14px; font-size: 18px; line-height: 1.5; max-width: 46ch; }
/* Телефон: факти рядками «значення — пояснення»; від 640px — три колонки */
.v5-facts { display: grid; gap: 8px; }
.v5-facts li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(19, 38, 49, 0.6);
  border: 1px solid var(--v5-line);
}
.v5-facts b { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--v5-mint-hi); letter-spacing: -0.02em; }
.v5-facts span { font-size: 14px; line-height: 1.35; color: var(--v5-muted); }
.v5-about__total { font-size: 17px; font-weight: 600; color: var(--v5-white); }
.v5-about__total span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 400; color: var(--v5-muted); }

/* ---------- 7. Контакт ---------- */
.v5-contact { padding-bottom: 72px; }
.v5-contact__glow {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 520px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 199, 164, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.v5-contact__grid { position: relative; display: grid; gap: 30px; }
.v5-contact__title {
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--v5-white);
  max-width: 18ch;
}
.v5-cta--lg { width: 100%; margin-top: 24px; }
.v5-contact__terms { margin-top: 16px; font-size: 16px; color: var(--v5-muted); max-width: 44ch; }
.v5-contact__terms b { color: var(--v5-white); }

.v5-draft {
  padding: 18px 20px;
  border-radius: 20px 20px 20px 6px;
  background: rgba(19, 38, 49, 0.8);
  border: 1px solid rgba(66, 199, 164, 0.3);
}
.v5-draft__k { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--v5-mint-hi); }
.v5-draft ol { counter-reset: d; display: grid; gap: 6px; }
.v5-draft li { counter-increment: d; position: relative; padding-left: 26px; font-size: 17px; color: var(--v5-white); }
.v5-draft li::before {
  content: counter(d) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--v5-muted);
}
.v5-draft__note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--v5-line); font-size: 14px; color: var(--v5-muted); }

.v5-contacts { margin-top: 16px; border-top: 1px solid var(--v5-line); }
.v5-contacts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  border-bottom: 1px solid var(--v5-line);
}
.v5-contacts span { font-size: 15px; color: var(--v5-muted); }
.v5-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-size: 17px;
  font-weight: 500;
  color: var(--v5-white);
  text-decoration: underline;
  text-decoration-color: rgba(95, 224, 184, 0.5);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.v5-contacts a:hover { color: var(--v5-mint-hi); }
.v5-contact__alt { margin-top: 14px; font-size: 15px; color: var(--v5-muted); }

/* ---------- Плаваюча кнопка Telegram (лише телефон, лише з JS) ---------- */
.v5-float-cta {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--v5-mint-hi), var(--v5-mint));
  color: #06231b;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(66, 199, 164, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.js .v5-float-cta { display: inline-flex; }
.v5-float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Банер згоди (з’являється лише якщо підключено GA4 / Meta Pixel) ---------- */
.v5-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: #0f1d27;
  border: 1px solid rgba(117, 191, 240, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-size: 15px;
}
.v5-consent__btns { display: flex; gap: 10px; margin-top: 12px; }
.v5-consent button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(95, 224, 184, 0.5);
  background: transparent;
  color: var(--v5-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.v5-consent button[data-consent="granted"] { background: var(--v5-mint); color: #06231b; border-color: transparent; }

/* ---------- Футер ---------- */
.v5-footer {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(117, 191, 240, 0.1);
  font-size: 15px;
  color: var(--v5-muted);
}
.v5-footer__inner { display: grid; gap: 4px; }
.v5-footer ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.v5-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.v5-footer a:hover { color: var(--v5-white); }

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .v5-hero__grid { grid-template-columns: minmax(0, 1fr) 40%; column-gap: 16px; }
  .v5-art { width: 100%; }
  .v5-br { display: none; }
  .v5-hero__action .v5-cta { width: auto; }
  .v5-exp li { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 0 16px; font-size: 15px; }
  .v5-card__head { padding: 30px 30px 0; }
  .v5-card__data { padding: 0 30px 8px; }
  .v5-card__photo { height: 300px; }
  .v5-sit__item { padding: 22px 22px 8px 60px; }
  .v5-sit__n { left: 22px; top: 24px; }
  .v5-dcard { padding: 28px 28px 12px; }
  .v5-cta--lg { width: auto; }
  .v5-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .v5-facts li { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 4px; }
}

@media (max-width: 359px) {
  .v5-metrics { grid-template-columns: 1fr; }
  .v5-metric--main { justify-self: start; }
}

/* ==========================================================================
   ≥ 960px
   ========================================================================== */
@media (min-width: 960px) {
  body { font-size: 18px; }
  html { scroll-padding-top: 88px; }
  .v5-header__inner { flex-wrap: nowrap; min-height: 76px; }
  .js .v5-menu-btn { display: none; }
  .js .v5-float-cta { display: none; }
  .v5-nav, .js .v5-nav { display: flex; width: auto; gap: 4px; padding: 0; }
  .v5-nav a { min-height: 44px; padding: 0 12px; font-size: 16px; border-bottom: 0; }
  .v5-nav__tg { margin-left: 8px; border: 1px solid rgba(95, 224, 184, 0.5); border-radius: 999px; }

  .v5-section { padding: 88px 0; }
  .v5-head { margin-bottom: 28px; }

  .v5-hero { padding: 48px 0 64px; }
  .v5-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 48px; }
  .v5-hero .v5-kicker { grid-column: 1; margin-top: 56px; font-size: 15px; }
  .v5-title { font-size: clamp(3rem, 1rem + 3.6vw, 4.5rem); }
  .v5-art {
    grid-row: 1 / span 5;
    width: 100%;
    max-width: 440px;
    justify-self: end;
    aspect-ratio: 0.68;
    margin-top: 0;
  }
  .v5-hero__sub { font-size: 20px; }
  .v5-hero__action { grid-column: 1; grid-row: 4; align-self: start; }
  .v5-exp { grid-row: 5; grid-column: 1; margin-top: 48px; align-self: end; }

  .v5-cards { grid-template-columns: 1fr 1fr; gap: 24px; }
  .v5-card__photo { height: 320px; }

  .v5-sit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

  .v5-process .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; }
  .v5-process .v5-head { grid-column: 1 / -1; }
  .v5-work { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .v5-flow { grid-column: 1 / -1; margin-top: 40px; }
  .v5-promise { grid-column: 1 / -1; max-width: 720px; }

  .v5-dcards { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

  .v5-about__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .v5-about__total { grid-column: 1 / -1; }

  .v5-contact__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }

  .v5-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Зменшений рух ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .v5-range__bar { transform: none; }
}

/* ---------- Сторінка 404 ---------- */
.v5-404 { min-height: 100vh; display: grid; align-items: center; padding: 64px 0; }
.v5-404__title { margin-top: 14px; font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; color: var(--v5-white); }
.v5-404__text { margin-top: 14px; max-width: 40ch; color: var(--v5-muted); }
.v5-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
