:root {
  --bg: #f3f0e8;
  --card: #fffdf8;
  --ink: #121310;
  --muted: #6b6a62;
  --line: #dcd7ca;
  --c-main: #1f3bff;
  --c-fin: #0a8f5b;
  --c-ex: #0d9488;
  --c-crypto: #e8870c;
  --c-sales: #f0541e;
  --c-mp: #ae3ec9;
  --c-content: #8a3ffc;
  --c-ai: #1f3bff;
  --c-sea: #0b7fa8;
  --c-log: #5b8c1a;
  --c-calc: #b45309;
  --c-acc: #c2255c;
  --accent: var(--c-main);
  --danger: #d92d20;
  --radius: 22px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0;
  background: radial-gradient(circle, #c6c1b2 1.1px, transparent 1.6px) 0 0 / 24px 24px, var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.5 var(--body);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- header & nav ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font: 700 15px/1 var(--display); letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.logo img { display: block; height: 42px; width: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 16px; }
.logo small { font: 500 12px/1 var(--body); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 5px; }
.cta {
  height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; text-decoration: none;
  transition: background .2s, color .2s;
}
.cta:hover { background: transparent; color: var(--ink); }

.dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 9;
  display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.dots a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  height: 26px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500;
}
.dots a span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.dots a::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent;
  transition: background .25s, transform .25s, border-color .25s;
}
.dots a:hover span, .dots a.on span { opacity: 1; transform: none; }
.dots a.on { color: var(--ink); }
.dots a.on::after { background: var(--dot, var(--ink)); border-color: var(--dot, var(--ink)); transform: scale(1.35); }

/* ---------- pages ---------- */
.page {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px 0 56px;
  scroll-snap-align: start;
  overflow: hidden;
}
.page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 560px at 82% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 65%);
}
.two { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }

.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 70px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--card); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ghost { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.ghost:hover { color: var(--accent); border-color: var(--accent); }

/* reveal on enter */
.copy > *, .scene, .idea-inner > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.page.in .copy > *, .page.in .scene, .page.in .idea-inner > * { opacity: 1; transform: none; }
.page.in .copy > :nth-child(2), .page.in .idea-inner > :nth-child(2) { transition-delay: .08s; }
.page.in .copy > :nth-child(3), .page.in .idea-inner > :nth-child(3) { transition-delay: .16s; }
.page.in .copy > :nth-child(4), .page.in .idea-inner > :nth-child(4) { transition-delay: .24s; }
.page.in .scene { transition-delay: .2s; }
.page:not(.in) .scene * { animation-play-state: paused !important; }

/* ---------- scenes (shared) ---------- */
.scene svg { display: block; width: 100%; height: auto; max-height: 68vh; overflow: visible; }
.scene text { font-family: var(--body); font-size: 13px; fill: var(--ink); }
.scene .mut { fill: var(--muted); }
.ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.thin { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .25; }
.pane { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.acc { fill: var(--accent); }
.acc-s { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.soft { fill: var(--accent); opacity: .14; }
.fb { transform-box: fill-box; transform-origin: center; }

/* home */
.spin { animation: spin 40s linear infinite; }
.spin.rev { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.core { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.pill { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* fintech */
@media (min-width: 901px) {
  .two.wide { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 32px; }
  .two.wide .scene svg { max-height: 76vh; }
}

/* iso scenes */
#homeSvg .hl { opacity: 0; pointer-events: none; transition: opacity .18s; }
#homeSvg .hl.on { opacity: 1; }
#homeSvg .flow, #homeSvg .wave { animation: none; }   /* на головній штрихи нерухомі: інакше весь SVG перемальовується 60 разів на секунду */
#home .scene svg { max-height: none; max-width: 900px; margin-left: auto; }
#home { flex-direction: column; align-items: stretch; justify-content: center; }
.partners { margin-top: 56px; position: relative; z-index: 1; }
.partners ul { list-style: none; margin: 18px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.partners img { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }
.partners span { font: 700 19px/1 var(--display); letter-spacing: -.02em; color: #55544d; white-space: nowrap; }
@media (min-width: 901px) {
  #home { overflow: clip; }
  #home .two { align-items: start; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: 20px; }
  #home h1 { font-size: clamp(26px, 3.3vw, 46px); }
  #home .copy { position: sticky; top: 24vh; }
}
.flow { stroke-dasharray: 5 7; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.wave { animation: wave 3.2s ease-in-out infinite alternate; }
@keyframes wave { from { transform: translateX(-5px); opacity: .5; } to { transform: translateX(6px); opacity: 1; } }

/* ---------- idea (composer) ---------- */
.idea-inner { position: relative; max-width: 860px; margin: 0 auto; width: 100%; }
.card { background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); transition: box-shadow .2s; }
.card:focus-within { box-shadow: 6px 6px 0 var(--accent); }
.card.drag { border-style: dashed; border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.composer textarea { display: block; width: 100%; min-height: 120px; max-height: 320px; padding: 22px 24px 8px; border: 0; background: transparent; resize: none; outline: none; font-size: 18px; line-height: 1.5; }
.composer textarea::placeholder { color: #a3a094; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 20px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-weight: 500; }
.chip .size { color: var(--muted); white-space: nowrap; }
.chip audio { height: 30px; max-width: 220px; }
.chip .x { width: 24px; height: 24px; flex: none; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; color: var(--muted); }
.chip .x:hover { background: var(--line); color: var(--ink); }
.bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px; }
.bar .spacer { flex: 1; }
.icon-btn { height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--bg); border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; flex: none; }
.icon-btn.rec { background: var(--danger); border-color: var(--danger); color: #fff; }
.icon-btn.rec .dot { width: 10px; height: 10px; border-radius: 3px; background: #fff; }
.icon-btn.rec time { font-variant-numeric: tabular-nums; }
.primary { height: 44px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform .12s, opacity .15s, filter .15s; }
.primary:hover:not(:disabled) { filter: brightness(.88); }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.primary svg { width: 18px; height: 18px; }
.hint { margin: 16px 4px 0; font-size: 14px; color: var(--muted); }
.hint.error { color: var(--danger); }

.form { padding: 26px 26px 24px; }
.form h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.form > p { margin: 0 0 20px; color: var(--muted); }
.summary { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.summary .text { flex: 1; min-width: 0; }
.summary .text b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.summary .text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#ideaText { min-height: 120px; font-size: 16px; line-height: 1.5; }
.field.invalid textarea { border-color: var(--danger); }
.drop { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px; background: #fff; border: 1px dashed #c9c5b8; border-radius: 12px; transition: border-color .15s, background .15s; }
.drop.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.drop-note { font-size: 14px; color: var(--muted); }
.drop-note.error { color: var(--danger); }
.field .chips { padding: 4px 0 0; }
.actions .note { font-size: 14px; color: var(--muted); }
.actions .note i { font-style: normal; color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label i { font-style: normal; color: var(--accent); }
.field input, .field textarea { width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.invalid input { border-color: var(--danger); }
.field .err { font-size: 13px; color: var(--danger); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.done { padding: 44px 28px; text-align: center; }
.done .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.done .check svg { width: 32px; height: 32px; }
.done h3 { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.done p { color: var(--muted); margin: 0 auto 24px; max-width: 30em; }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

#submitBtn { white-space: nowrap; flex: none; }
.actions .note a { color: inherit; }

@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .two { grid-template-columns: 1fr; gap: 28px; }
  .scene svg { max-height: 46vh; }
  .dots { display: none; }
  .page { padding: 92px 0 48px; }
  .wrap { padding: 0 20px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .icon-btn span.label { display: none; }
  .card { box-shadow: 4px 4px 0 var(--ink); }
  .form { padding: 22px 18px 20px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .primary { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .copy > *, .scene, .idea-inner > * { opacity: 1; transform: none; }
  .typecover { display: none; }
}

/* =====================================================================
   v2: меню «Ми розробляємо», картки напрямів, окремі сторінки, переходи
   ===================================================================== */
html { scroll-snap-type: none; scroll-padding-top: 84px; }
.page { scroll-snap-align: none; }
.h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; }

/* анімований перехід між сторінками */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px) scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(34px); } }
header { view-transition-name: site-header; }
::view-transition-group(site-header) { z-index: 5; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* ---------- шапка й меню ---------- */
header { background: var(--bg); }
.top { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  height: 40px; padding: 0 14px 0 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--card); }
.menu-btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-btn .short { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink);
  box-shadow: 0 24px 40px -24px rgb(18 19 16 / .35);
  max-height: calc(100vh - 69px); max-height: calc(100svh - 69px); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega .wrap { display: block; height: auto; padding-top: 26px; padding-bottom: 22px; }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 18px; }
.mega-h { margin: 0 0 8px; padding: 0 12px; font: 500 12px/1 var(--display); letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.mega-a {
  position: relative; display: block; padding: 10px 12px 11px 30px; border-radius: 12px;
  color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .15s;
}
.mega.open .mega-a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 25ms + 60ms), calc(var(--i) * 25ms + 60ms), 0s; }
.mega-a::before { content: ""; position: absolute; left: 12px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transition: transform .2s; }
.mega-a b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mega-a span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.mega-a:hover, .mega-a:focus-visible { background: var(--card); }
.mega-a:hover b { color: var(--accent); }
.mega-a:hover::before { transform: scale(1.5); }
.mega-a[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mega-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.mega-foot a { color: var(--ink); text-decoration: none; }
.mega-foot a:hover { color: var(--c-main); }
.scrim { position: fixed; inset: 0; z-index: 8; background: rgb(18 19 16 / .28); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- смуги вмісту ---------- */
.band { position: relative; padding: 84px 0; }
.band + .band { padding-top: 12px; }
.band > .wrap > h2 { margin-bottom: 36px; }
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.band.in .rv { opacity: 1; transform: none; }

/* картки напрямів на головній */
.svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 22px 22px 20px;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: 0 0 0 var(--accent);
}
.band.in .svc { transition: opacity .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover, .svc:focus-visible { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--accent); transition-delay: 0s; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.svc-n { font: 700 13px/1 var(--display); color: var(--accent); }
.svc-g { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; white-space: nowrap; }
.svc b { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.svc-d { color: var(--muted); font-size: 15px; line-height: 1.45; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.svc-tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.svc-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); }
.svc-go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc:hover .svc-go svg { transform: translateX(5px); }
.svc-own { background: var(--ink); color: var(--bg); --accent: #8ea0ff; }
.svc-own .svc-d { color: #c9c6bb; }
.svc-own .svc-n { font-size: 22px; }

/* кроки */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 46px 0 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 700 13px/1 var(--display); color: var(--accent); }
.steps h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- сторінка напряму ---------- */
.page.sub { min-height: 0; padding: 124px 0 64px; }
.page.sub .lead { max-width: 32em; }
.page.sub .tags { margin-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feat { padding: 22px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); }
.feat-n { display: block; margin-bottom: 14px; font: 700 13px/1 var(--display); color: var(--accent); }
.feat h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.note-box { margin: 32px 0 0; padding: 16px 18px; max-width: 60em; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.who { margin: 0; padding: 0; list-style: none; }
.who li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.who li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.tags.tech li { border-color: var(--line); }
.works { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px; background: var(--ink); color: var(--bg); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--accent); }
.cta-card h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; }
.cta-card h2 em { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.cta-card p { margin: 0; color: #c9c6bb; max-width: 34em; }
.cta-card .primary { flex: none; height: 52px; padding: 0 24px; white-space: nowrap; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--accent); background: var(--card); }
.pager span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pager b { font: 700 18px/1.2 var(--display); letter-spacing: -.02em; }
.pager a:hover b { color: var(--accent); }

/* тема заявки */
.topic { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 6px 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.topic b { color: var(--ink); font-weight: 600; }
.topic button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; color: var(--muted); }
.topic button:hover { background: var(--line); color: var(--ink); }

/* ---------- підвал ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--bg); padding: 30px 0 26px; font-size: 14px; color: var(--muted); }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.f-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.f-links a:hover { color: var(--c-main); }
.f-bot { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.f-bot a { color: var(--muted); }
.f-bot a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .steps.five { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 900px) {
  .band { padding: 60px 0; }
  .svcs, .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .cols { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .page.sub { padding: 104px 0 40px; }
  .partners ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  header .wrap { height: 60px; }
  .logo img { height: 34px; }
  .menu-btn .long { display: none; }
  .menu-btn .short { display: inline; }
  .menu-btn, .cta { height: 38px; padding: 0 13px; font-size: 14px; }
  .mega { max-height: calc(100svh - 61px); }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .mega-a span { display: none; }
  .mega-a { padding-top: 9px; padding-bottom: 9px; }
  .svcs, .feats, .steps, .steps.five { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .pager { grid-template-columns: 1fr; gap: 12px; }
  .pager a:last-child { text-align: left; }
  .partners ul { gap: 18px 28px; }
  .partners img { height: 24px; max-width: 110px; }
  .who li { font-size: 16px; }
  .cta-card .primary { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .mega-a { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* поле-пастка для ботів і кнопка Telegram */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tg-btn { height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--ink); background: var(--card); color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: background .15s, color .15s; }
.tg-btn:hover { background: var(--ink); color: var(--bg); }
.tg-btn svg { width: 18px; height: 18px; color: #2aabee; }

/* Telegram */
.tg-top { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #2aabee; flex: none; transition: transform .15s, filter .15s; }
.tg-top svg { width: 34px; height: 34px; display: block; }
.tg-top:hover { transform: scale(1.08); filter: brightness(.92); }
.f-tg { display: inline-flex; align-items: center; gap: 6px; }
.f-tg svg { width: 16px; height: 16px; color: #2aabee; }
@media (max-width: 480px) {
  nav.top { gap: 6px; }
  .tg-top { width: 32px; height: 32px; }
  .tg-top svg { width: 30px; height: 30px; }
  header .cta { padding-left: 12px; padding-right: 12px; }
  .menu-btn { padding-left: 10px; padding-right: 8px; }
}
