/* HexCool — стилі сайту.
   Зміст: 1. Основа  2. Спільні елементи  3. Шапка  4. Перший екран  5. Стрічка напрямів
          6. Послуги  7. Демо  8. Прайс  9. Процес  10. FAQ  11. Фінал і футер
          12. Анімації  13. Адаптивність  14. Зменшення руху */

/* ---------- 1. Основа ---------- */
:root {
  --bg: #08121e;
  --bg-alt: #0b1723;
  --surface: #0f1e2b;
  --surface-2: #142634;
  --line: #23313f;
  --line-strong: #34495a;
  --mint: #19efc6;
  --mint-bright: #69f7da;
  --mint-soft: #12332e;
  --mint-line: #2a6657;
  --text: #eef7fa;
  --muted: #9db1bf;
  --dim: #8097a7;
  --font: 'Segoe UI', 'Inter', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: Consolas, 'Cascadia Mono', 'Courier New', monospace;
  --gutter: 56px;
  --header-h: 76px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img, video, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--bg); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--mint); color: var(--bg); padding: 12px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

.nojs-note { position: relative; z-index: 40; margin: 0; padding: 12px 20px; background: #3a2a12; border-bottom: 1px solid #8a6a2c; color: #ffe2ad; font-size: 14px; line-height: 1.45; text-align: center; }
/* Без JavaScript кнопки демо нічого не роблять — ховаємо їх, щоб не вводити в оману. */
html:not(.js) #add-request, html:not(.js) .advance, html:not(.js) #reset-demo, html:not(.js) .board-status, html:not(.js) .contact-form, html:not(.js) .menu-toggle, html:not(.js) .to-top { display: none; }

/* ---------- 2. Спільні елементи ---------- */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: 60px; }
.section-alt { background: #0b17239e; border-block: 1px solid var(--line); }
.muted { color: var(--muted); }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #19efc622; flex-shrink: 0; }

h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading > p { max-width: 430px; color: var(--muted); font-size: 16px; text-wrap: pretty; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 650; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.button .icon { transition: transform .25s var(--ease); }
.button:hover .icon { transform: translate(2px, -2px); }
.primary { background: var(--mint); color: #05171c; }
.primary:hover { background: var(--mint-bright); transform: translateY(-1px); box-shadow: 0 10px 30px #19efc626; }
.primary:active { transform: none; }
.small { min-height: 42px; padding: 8px 16px; gap: 8px; font-size: 14px; background: var(--mint-soft); color: var(--mint); border-color: var(--mint-line); }
.small:hover { background: #17443c; }
.small:hover .icon { transform: none; }
.small[aria-disabled=true] { opacity: .55; cursor: not-allowed; }

.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; transition: color .2s; }
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--mint); }
.text-link:hover .icon { transform: translate(2px, -2px); }
.text-link.accent { color: var(--mint); }
.text-link.accent:hover { color: var(--mint-bright); }

.pill { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; color: var(--mint); background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 999px; white-space: nowrap; }

/* ---------- 3. Шапка ---------- */
.header { position: sticky; top: 0; z-index: 30; background: #08121ed9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.header.scrolled { border-bottom-color: var(--line-strong); background: #08121ef2; }
.header-inner { width: min(1328px, 100% - 2 * var(--gutter)); min-height: var(--header-h); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; min-height: 44px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.brand img { flex-shrink: 0; object-fit: contain; }
.brand-dot { color: var(--mint); }
.decode-cell { display: inline-block; text-align: center; transition: color .15s; }
.decode-cell.is-code { color: var(--mint); font-family: var(--mono); font-size: .82em; font-weight: 400; letter-spacing: 0; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; white-space: nowrap; padding: 10px 14px; color: #b9c8d2; font-size: 15px; border-radius: 6px; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--mint); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
/* Кнопка дзвінка: м'ятний кружечок зі слухавкою «дзвонить» — хвиля розходиться, слухавка здригається. */
.header-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 5px 20px 5px 6px; border: 1px solid var(--mint-line); border-radius: 999px; background: linear-gradient(100deg, #12332e, #0f1e2b); white-space: nowrap; transition: border-color .25s, box-shadow .25s, background-color .25s; }
.call-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--mint); color: #05171c; }
.call-icon::before, .call-icon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: call-pulse 3s ease-out infinite; pointer-events: none; }
.call-icon::after { animation-delay: .45s; }
.call-icon .icon { animation: call-ring 3s ease-in-out infinite; }
.call-text { display: grid; line-height: 1.15; }
.call-text small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.call-text > span { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.nav { order: 1; }
.header-cta { order: 2; }
.menu-toggle { order: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 14px; font-size: 14px; font-weight: 500; color: #dbe7ed; border: 1px solid var(--line-strong); border-radius: 999px; transition: color .2s, border-color .2s, background-color .2s; }
.nav-social { display: none; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.chip:hover { color: var(--mint); border-color: var(--mint-line); background: var(--mint-soft); }
.header-cta .icon { width: 18px; height: 18px; stroke-width: 2.1; }
.header-cta:hover { border-color: var(--mint); box-shadow: 0 0 0 4px #19efc61f, 0 10px 30px #19efc626; }
.header-cta:hover .call-icon::before, .header-cta:hover .call-icon::after, .header-cta:hover .call-icon .icon { animation-duration: 1.2s; }
.nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 15px; }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded=true] .icon-menu { display: none; }
.menu-toggle[aria-expanded=true] .icon-close { display: block; }

/* ---------- 4. Перший екран ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
/* Код на фоні всього сайту: полотно закріплене за вікном, тьмяніше нижче першого екрана. */
.matrix-rain { position: fixed; left: 0; top: 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; opacity: .33; transition: opacity .6s; }
.matrix-rain.is-dim { opacity: .23; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-block: 40px 64px; }

/* М’яка підкладка під текстом: код на фоні не заважає читати. */
.hero-copy { position: relative; }
.hero-copy::before { content: ''; position: absolute; inset: -56px -72px; z-index: -1; background: radial-gradient(ellipse at 42% 50%, #08121efa 30%, #08121ed9 60%, transparent 80%); pointer-events: none; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 4.55vw, 60px); line-height: 1.08; font-weight: 650; letter-spacing: -.04em; margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-description { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; }
.play-badge { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--mint-line); border-radius: 50%; color: var(--mint); transition: background-color .2s; }
.play-badge .icon { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.5; }
.text-link:hover .play-badge { background: var(--mint-soft); }
.text-link:hover .play-badge .icon { transform: none; }
.hero-typed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 540px; font-size: 15px; color: var(--muted); }
.hero-typed-line { display: inline-flex; align-items: center; min-height: 1.6em; font-family: var(--mono); font-size: 15px; color: var(--mint); white-space: nowrap; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 3px; background: var(--mint); opacity: .85; animation: caret 1.05s steps(1) infinite; }
.is-paused .caret { animation: none; opacity: 0; }

.system-visual { position: relative; border: 1px solid #2a4447; border-radius: 14px; background: radial-gradient(ellipse at 50% 60%, #123b3640, transparent 68%), #0c1926f5; padding: 20px 24px 30px; box-shadow: 0 30px 90px #0006; }
.visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.workflow { padding-top: 24px; }
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow-node { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; background: var(--surface-2); border: 1px solid #2d414f; border-radius: 8px; }
.flow-node .icon { width: 22px; height: 22px; color: var(--mint); }
.flow-node b { display: block; font-size: 14px; line-height: 1.3; }
.flow-node small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.flow-connector { display: grid; place-items: center; height: 34px; }
.flow-connector i { position: relative; width: 1px; height: 100%; background: linear-gradient(#257060, #19efc6aa); }
.flow-connector i::after { content: ''; position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: flow 2.4s ease-in-out infinite; }
.flow-connector:nth-of-type(4) i::after { animation-delay: 1.2s; }
/* Фон картки збігається з рідним фоном логотипа — сам файл не змінено. */
.flow-core { width: min(220px, 100%); margin-inline: auto; display: flex; flex-direction: column; align-items: center; padding: 8px 16px 18px; background: #09121e; border: 1px solid #277768; border-radius: 12px; box-shadow: 0 0 50px #19efc612; text-align: center; }
.flow-core img { width: 88px; height: 88px; }
.flow-core b { font-size: 19px; letter-spacing: .01em; line-height: 1.2; }
.flow-core small { margin-top: 6px; font-size: 12px; color: var(--muted); }
.flow-results > div { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 12px 10px; font-size: 13px; font-weight: 500; line-height: 1.3; background: #102c2a; border: 1px solid #295044; border-radius: 8px; text-align: center; }
.flow-results .icon { color: var(--mint); }
.floating-note { position: absolute; right: -14px; bottom: -30px; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; background: var(--surface-2); border: 1px solid #3a514f; border-radius: 10px; box-shadow: 0 14px 40px #0008; }
.floating-note > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #15463b; color: var(--mint); }
.floating-note b { display: block; font-size: 14px; line-height: 1.3; }
.floating-note small { display: block; font-size: 12px; color: var(--muted); }

/* ---------- 5. Стрічка напрямів ---------- */
.expertise-strip { border-block: 1px solid var(--line); background: #0b1723cc; }
.expertise-strip ul { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 22px; font-size: 15px; color: #c6d4dd; }
.expertise-strip li { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.expertise-strip .clone { display: none; }
.expertise-strip li + li::before { content: '✳'; color: var(--mint); font-size: 13px; }

/* ---------- 6. Послуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px 28px 22px; background: linear-gradient(140deg, #10202c, #0b1823); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
a.service-card:hover { border-color: #3c7769; transform: translateY(-3px); box-shadow: 0 18px 44px #0005; }
.service-icon { width: 34px; height: 34px; color: var(--mint); stroke-width: 1.5; }
.service-card h3 { margin: 22px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.service-card > p { color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.service-tags { display: block; margin-top: 14px; padding-bottom: 20px; font-size: 13px; color: var(--dim); }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.service-foot .icon { width: 20px; height: 20px; color: var(--mint); transition: transform .25s var(--ease); }
a.service-card:hover .service-foot .icon { transform: translate(3px, -3px); }
.service-question { background: #102a2a; border-color: #245449; }
.service-question h3 { margin-top: 16px; font-size: 25px; line-height: 1.25; text-wrap: balance; }
.service-question > p:not(.eyebrow) { font-size: 16px; color: #c3d3db; margin-bottom: 20px; }
.service-question .text-link { margin-top: auto; }

/* ---------- 7. Демо ---------- */
#demos { --demo-gap: 64px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; gap: var(--demo-gap); }
/* На десктопі пояснення стоїть над дошкою заявок, а сама дошка піднята до рівня заголовка. */
@media (min-width: 961px) {
  #demos .section-heading { align-items: start; margin-bottom: 24px; }
  #demos .section-heading > p { flex: 0 0 calc((100% - var(--demo-gap)) * 1.4 / 2.2); max-width: none; padding-top: 2px; }
  #demos .demo-board { margin-top: -68px; }
  #demos .demo-copy { padding-top: 12px; }
}
.demo-copy { padding-top: 24px; }
.demo-copy h3 { margin: 20px 0 16px; font-size: 31px; line-height: 1.2; letter-spacing: -.025em; }
.demo-copy > p { color: var(--muted); }
.check-list { margin: 24px 0; color: #c6d4dd; font-size: 15px; }
.check-list li { position: relative; margin: 10px 0; padding-left: 28px; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }

.demo-board { min-width: 0; background: #0b1521; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 24px 70px #0005; overflow: hidden; }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #11212e; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a4f5e; }
.board-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
.board-title h4 { font-size: 22px; line-height: 1.2; }
.board-title p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px; }
.kanban-column { min-height: 196px; padding: 12px 10px; background: #101e2b; border-radius: 8px; }
.kanban-column h5 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.kanban-column h5 i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.kanban-column[data-stage=progress] h5 i { background: #e6c877; }
.kanban-column[data-stage=done] h5 i { background: var(--mint); }
.kanban-column h5 span { margin-left: auto; min-width: 24px; padding: 0 7px; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); background: #1a2c3a; border-radius: 999px; }
.kanban-cards { display: grid; gap: 8px; align-content: start; max-height: 392px; margin-right: -6px; padding-right: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.kanban-empty { padding: 18px 8px; text-align: center; font-size: 13px; color: var(--dim); border: 1px dashed var(--line-strong); border-radius: 6px; }
.request-card { padding: 12px; background: #182b38; border: 1px solid #334b59; border-radius: 6px; transition: border-color .2s; }
.request-card:hover { border-color: #46657a; }
.request-card small { display: block; font-size: 12px; line-height: 1.4; color: #a9bfcc; }
.request-card h6 { margin: 6px 0 2px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.request-card p { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.advance { display: block; width: 100%; min-height: 40px; padding: 8px 10px; background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 6px; color: var(--mint); font-size: 13px; font-weight: 600; line-height: 1.3; transition: background-color .2s, border-color .2s; }
.advance:hover { background: #17443c; border-color: #3a8a76; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mint); }
.done-badge::before { content: ''; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.board-status { min-height: 44px; margin: 0 16px 12px; padding: 10px 14px; display: flex; align-items: center; font-size: 14px; line-height: 1.4; color: #c6d4dd; background: #0f1e2b; border-left: 2px solid var(--mint); border-radius: 0 6px 6px 0; }
.board-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; }
#reset-demo { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; background: none; border: 0; border-radius: 6px; color: var(--mint); font-size: 14px; white-space: nowrap; transition: background-color .2s; }
#reset-demo:hover { background: var(--mint-soft); }
.demo-disclaimer { font-size: 13px; color: var(--dim); }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; margin-top: 32px; }
/* Native scroll remains usable without JavaScript, including touch and trackpads. */
.demo-gallery { margin-top: 48px; min-width: 0; }
.gallery-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.gallery-header .eyebrow { margin-bottom: 8px; }
.gallery-header h3 { font-size: clamp(20px, 2.3vw, 28px); font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.gallery-intro { margin-top: 8px; color: var(--muted); font-size: 13px; }
.gallery-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gallery-controls span { font: 13px var(--mono); color: var(--muted); margin-right: 8px; min-width: 44px; }
.gallery-controls button { width: 44px; height: 44px; border: 1px solid var(--mint-line); border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-size: 22px; }
.gallery-controls button:hover { border-color: var(--mint); background: #19473c; }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.demo-gallery .video-grid { display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; padding: 4px 2px 8px; margin: 0; }
.demo-gallery .video-grid::-webkit-scrollbar { display: none; }
.demo-gallery .video-body video { width: min(100%, 380px); }
.demo-gallery .video-demo { flex: 0 0 calc((100% - 16px) / 2); min-width: 0; scroll-snap-align: start; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; }
.gallery-footer p { font-size: 12px; color: var(--muted); }
.gallery-dots { display: flex; gap: 2px; flex-shrink: 0; }
.gallery-dots button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; background: none; }
.gallery-dots button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #45606f; }
.gallery-dots button[aria-current=true]::after { background: var(--mint); width: 15px; border-radius: 5px; }
.gallery-controls, .gallery-dots { visibility: hidden; }
.demo-gallery.is-ready .gallery-controls, .demo-gallery.is-ready .gallery-dots { visibility: visible; }
@media(max-width: 760px) { .gallery-header { align-items: start; flex-direction: column; gap: 14px; }.demo-gallery .video-demo { flex-basis: 94%; }.gallery-footer { align-items: start; flex-direction: column; gap: 8px; }.demo-gallery { margin-top: 32px; }.demo-gallery .video-text b { font-size: 15px; }.demo-gallery .video-text small { font-size: 12px; } }
.video-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s; }
.video-demo:hover, .video-demo[open] { border-color: var(--line-strong); }
.video-demo summary { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; cursor: pointer; list-style: none; }
.video-demo summary::-webkit-details-marker { display: none; }
.video-demo summary img { width: 45px; height: 80px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line-strong); }
.video-text { min-width: 0; }
.video-text b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; text-wrap: balance; transition: color .2s; }
.video-text small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.video-demo .chevron { margin-left: auto; width: 22px; height: 22px; color: var(--mint); transition: transform .3s var(--ease); }
.video-demo[open] .chevron { transform: rotate(180deg); }
.video-demo summary:hover b { color: var(--mint); }
.video-body { padding: 4px 20px 20px; }
.video-body video { display: block; width: min(100%, 300px); height: auto; aspect-ratio: 9 / 16; margin-inline: auto; background: #050d16; border-radius: 8px; border: 1px solid var(--line); }
.video-body p { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- 8. Прайс ---------- */
.pricing-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pricing-tabs button { min-height: 44px; padding: 8px 18px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 15px; transition: color .2s, border-color .2s, background-color .2s; }
.pricing-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.pricing-tabs button[aria-selected=true] { color: var(--mint); border-color: var(--mint-line); background: var(--mint-soft); font-weight: 600; }
.price-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 64px; min-height: 352px; padding-top: 22px; border-radius: 6px; }
.price-intro { padding-top: 8px; }
.price-intro h3 { margin: 16px 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.price-intro p { max-width: 340px; color: var(--muted); }
.slider-dots { display: none; justify-content: center; gap: 7px; }
.slider-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); transition: background-color .25s, width .25s; }
.slider-dots i.is-active { width: 20px; border-radius: 4px; background: var(--mint); }
.price-list { position: relative; min-width: 0; }
.price-loader { position: absolute; left: 50%; top: 96px; width: 56px; height: 56px; margin-left: -28px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.price-loader svg { display: block; width: 100%; height: 100%; fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 8px #19efc655); }
.loader-track { stroke: var(--mint-line); opacity: .55; }
.loader-run { stroke: var(--mint); stroke-dasharray: 28 72; animation: loader-run .9s linear infinite; animation-play-state: paused; }
.price-list.is-loading .price-loader { opacity: 1; }
.price-list.is-loading .loader-run { animation-play-state: running; }
.price-list.is-loading .price-row { animation: none; opacity: 0; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 16px; transition: background-color .2s; }
.price-row:hover { background: #0f1e2b80; }
.price-row b { white-space: nowrap; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-row small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-footnote { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 24px; }
.price-footnote p { max-width: 720px; font-size: 14px; color: var(--muted); }
.price-footnote a { white-space: nowrap; }
.price-footnote a:hover .icon { transform: translateY(2px); }
.noscript { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- 9. Процес ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid #355348; }
.steps li::before { content: ''; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--mint); }
.steps li > span { position: relative; display: inline-block; min-width: 36px; text-align: center; padding: 5px 10px; font: 14px var(--mono); color: var(--mint); background: var(--mint-soft); border: 1px solid var(--mint-line); border-radius: 6px; }
/* Крок «загоряється», лінія добігає до наступного — і так по колу (клас is-running додає app.js). */
.steps li:nth-child(2) { --step: 1; }
.steps li:nth-child(3) { --step: 2; }
.steps li:nth-child(4) { --step: 3; }
.steps.is-running li > span { animation: step-light 8s linear infinite; animation-delay: calc(var(--step, 0) * 2s); }
.steps.is-running li::before { animation: step-line 8s linear infinite; animation-delay: calc(var(--step, 0) * 2s); }
/* Спалах у момент переходу: шестикутник розходиться від номера, на кінці лінії біжить іскра. */
.steps li > span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpolygon points='24,3 42.2,13.5 42.2,34.5 24,45 5.8,34.5 5.8,13.5' fill='none' stroke='%2319efc6' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; pointer-events: none; }
.steps li::after { content: ''; position: absolute; top: -3px; left: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #e6fff9; box-shadow: 0 0 12px 3px var(--mint); opacity: 0; pointer-events: none; }
.steps.is-running li > span::after { animation: step-burst 8s linear infinite; animation-delay: calc(var(--step, 0) * 2s); }
.steps.is-running li::after { animation: step-spark 8s linear infinite; animation-delay: calc(var(--step, 0) * 2s); }
.steps.is-running li h3 { animation: step-title 8s linear infinite; animation-delay: calc(var(--step, 0) * 2s); }
.steps h3 { margin: 22px 0 10px; font-size: 19px; line-height: 1.3; }
.steps p { font-size: 15px; color: var(--muted); text-wrap: pretty; }

/* ---------- 10. FAQ ---------- */
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 72px; align-items: start; }
.faq-section .eyebrow { margin-bottom: 18px; }
/* Спокійна темна підкладка: код на фоні не проходить просто за текстом відповідей. */
.faq-list { padding: 6px 24px; background: #0a1622e0; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 16px 4px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; line-height: 1.4; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--mint); }
.faq-list summary i { position: relative; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .3s var(--ease), border-color .2s, background-color .2s; }
.faq-list summary i::before, .faq-list summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--mint); }
.faq-list summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq-list details[open] summary i { border-color: var(--mint-line); background: var(--mint-soft); }
.faq-list details[open] summary i::after { transform: none; }
.faq-list details p { max-width: 640px; padding: 0 44px 22px 4px; font-size: 15px; color: #cbd5e1; }
.faq-list details[open] p, .video-demo[open] .video-body { animation: details-in .35s var(--ease); }

/* ---------- 11. Фінал і футер ---------- */
.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.contact-copy .eyebrow { margin-bottom: 18px; }
.contact-copy h2 { font-size: clamp(28px, 3.1vw, 40px); }
.contact-copy > p:not(.eyebrow) { max-width: 460px; margin-top: 18px; color: var(--muted); text-wrap: pretty; }
.contact-list { display: grid; gap: 12px; max-width: 480px; margin-top: 28px; }
.contact-card { background: linear-gradient(140deg, #10202c, #0b1823); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.contact-card:hover { border-color: #3c7769; box-shadow: 0 14px 36px #0005; }
.contact-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--mint-soft); border: 1px solid var(--mint-line); color: var(--mint); transition: background-color .25s, color .25s; }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-main:hover .contact-icon { background: var(--mint); color: #05171c; }
.contact-body { display: grid; min-width: 0; line-height: 1.25; }
.contact-body small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.contact-body b { margin-top: 3px; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color .2s; }
.contact-main:hover .contact-body b { color: var(--mint); }
.contact-go { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--mint); white-space: nowrap; }
.contact-go .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.contact-main:hover .contact-go .icon { transform: translate(2px, -2px); }
.contact-extra { display: grid; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #0b172380; }
.contact-extra small { font-size: 13px; color: var(--muted); }
.contact-form { display: grid; gap: 18px; padding: 28px; background: #0b1521; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 24px 70px #0005; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: #c6d4dd; }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--text); background: #0f1e2b; border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: #46657a; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px #19efc633; }
.field [aria-invalid=true] { border-color: #f0a36b; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .button { flex: 1 1 auto; }
.form-actions .button.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.form-actions .button.ghost:hover { border-color: var(--mint-line); background: var(--mint-soft); }
.form-status { font-size: 14px; color: #c6d4dd; }
.form-status:empty { margin-top: -18px; }
.form-status.is-error { color: #f6b98a; }
.footer { border-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 20px; color: var(--text); }
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 25; display: grid; place-items: center; width: 52px; height: 52px; background: var(--mint); color: #05171c; border-radius: 50%; box-shadow: 0 10px 30px #0009, 0 0 0 4px #19efc626; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s, box-shadow .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--mint-bright); box-shadow: 0 10px 30px #0009, 0 0 0 7px #19efc633; }
.to-top .icon { width: 24px; height: 24px; stroke-width: 2.4; transform: rotate(180deg); }
.to-top:focus-visible { outline-offset: 5px; }

/* ---------- 12. Анімації ---------- */
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes flow { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
@keyframes details-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes loader-run { to { stroke-dashoffset: -100; } }
@keyframes step-light { 0%, 3% { background: var(--mint-soft); color: var(--mint); border-color: var(--mint-line); box-shadow: none; transform: none; } 4.5% { background: #e6fff9; color: #05171c; border-color: #e6fff9; box-shadow: 0 0 0 3px #19efc699, 0 0 38px 8px #19efc6cc; transform: scale(1.24); } 9%, 24% { background: var(--mint); color: #05171c; border-color: var(--mint); box-shadow: 0 0 20px #19efc680; transform: none; } 31%, 100% { background: var(--mint-soft); color: var(--mint); border-color: var(--mint-line); box-shadow: none; transform: none; } }
@keyframes step-burst { 0%, 3.5% { opacity: 0; transform: scale(.7); } 4.5% { opacity: 1; transform: scale(.9); } 13% { opacity: 0; transform: scale(2.5); } 100% { opacity: 0; transform: scale(2.5); } }
@keyframes step-spark { 0%, 5% { left: 56px; opacity: 0; } 7% { left: 56px; opacity: 1; } 24% { left: 100%; opacity: 1; } 27%, 100% { left: 100%; opacity: 0; } }
@keyframes step-line { 0%, 5% { width: 56px; opacity: 1; box-shadow: none; } 24% { width: 100%; opacity: 1; box-shadow: 0 0 10px var(--mint); } 30% { width: 100%; opacity: 0; box-shadow: none; } 31% { width: 56px; opacity: 0; } 38%, 100% { width: 56px; opacity: 1; } }
@keyframes step-title { 6%, 24% { color: var(--mint-bright); } 0%, 31%, 100% { color: var(--text); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes call-pulse { 0% { transform: scale(1); opacity: .75; } 40%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes call-ring { 0%, 34%, 100% { transform: rotate(0); } 4% { transform: rotate(-16deg); } 9% { transform: rotate(14deg); } 14% { transform: rotate(-12deg); } 19% { transform: rotate(10deg); } 24% { transform: rotate(-6deg); } 29% { transform: rotate(3deg); } }
@keyframes row-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes card-in { from { opacity: 0; transform: scale(.96); } 60% { border-color: var(--mint); box-shadow: 0 0 0 3px #19efc626; } }

/* Перший екран: заголовок виїжджає рядками, решта м’яко з’являється. */
.js .hero h1 .line > span { animation: line-up .95s var(--ease) backwards; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .13s; }
.js .hero-in { animation: rise .8s var(--ease) var(--d, 0s) backwards; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { background: linear-gradient(100deg, var(--mint) 42%, #d8fff6 50%, var(--mint) 58%) 0 0 / 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .js .hero h1 em { animation: shine 1.5s ease-out 1s backwards; }
}

/* Поява блоків під час прокручування (клас is-visible додає app.js).
   Лише на широких екранах: на телефоні вміст видно одразу, без ризику лишитися прихованим. */
@media (min-width: 721px) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-visible { opacity: 1; animation: rise .75s var(--ease) var(--d, 0s) backwards; }
}

.price-rows .price-row { animation: row-in .4s var(--ease) backwards; }
.price-rows .price-row:nth-child(2) { animation-delay: 45ms; }
.price-rows .price-row:nth-child(3) { animation-delay: 90ms; }
.price-rows .price-row:nth-child(4) { animation-delay: 135ms; }
.price-rows .price-row:nth-child(5) { animation-delay: 180ms; }
.price-rows .price-row:nth-child(6) { animation-delay: 225ms; }
.request-card.is-moved { animation: card-in .55s var(--ease); }

/* ---------- 13. Адаптивність ---------- */
/* Кнопка дзвінка завжди притиснута праворуч. Номер повністю видно на комп'ютері (від 1221 px) і на планшеті
   (641–1000 px, де меню згорнуте); у проміжку 1001–1220 px і на телефоні лишається тільки значок. */
@media (max-width: 1220px) {
  .header-cta { margin-left: auto; }
}
@media (max-width: 1220px) and (min-width: 1001px), (max-width: 640px) {
  .header-cta { min-height: 44px; padding: 0; border: 0; background: none; }
  .header-cta .call-icon { width: 42px; height: 42px; }
  .header-cta .icon { width: 20px; height: 20px; }
  .call-text { display: none; }
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .hero-grid { gap: 40px; }
  .nav a { padding-inline: 10px; }
  .nav a::after { left: 10px; right: 10px; }
  #demos { --demo-gap: 40px; }
  .price-panel { gap: 40px; }
  .faq-section { gap: 48px; }
  .service-card { padding: 24px 22px 20px; }
  .steps { gap: 22px; }
}

@media (max-width: 960px) {
  .section { padding-block: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: 0; padding-block: 44px 72px; }
  .hero-copy { max-width: 660px; }
  .hero h1 { font-size: clamp(38px, 7.6vw, 62px); }
  .system-visual { width: min(100%, 560px); margin-inline: auto; }
  .section-heading { flex-direction: column; align-items: start; gap: 16px; margin-bottom: 32px; }
  .section-heading > p { max-width: 560px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .demo-layout { grid-template-columns: 1fr; gap: 36px; }
  .demo-copy { max-width: 560px; padding-top: 0; }
  .price-panel { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .price-intro { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding-bottom: 8px; }
  .price-intro .service-icon { grid-row: span 2; width: 40px; height: 40px; }
  .price-intro h3 { margin: 0; }
  .price-intro p { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .faq-section { grid-template-columns: 1fr; gap: 32px; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; }
  .expertise-strip ul { justify-content: center; gap: 10px 20px; }
  /* Напрями: один рядок, що повільно їде, замість кількох рядків зі «зірочками» на початку. */
  .expertise-strip { overflow: hidden; }
  .expertise-strip.has-clones ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; margin: 0; padding-block: 14px; animation: marquee 26s linear infinite; }
  .expertise-strip.has-clones li, .expertise-strip.has-clones .clone { display: flex; gap: 18px; padding-right: 18px; }
  .expertise-strip.has-clones li::before { content: '✳'; color: var(--mint); font-size: 13px; }
}

@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 4px; padding: 10px calc(var(--gutter) - 8px) 18px; background: var(--bg); border-bottom: 1px solid var(--line-strong); border-radius: 0 0 18px 18px; box-shadow: 0 30px 50px #000b; }
  .nav.open { display: flex; }
  .nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px 0 16px; font-size: 17px; font-weight: 500; color: #dbe7ed; border-radius: 10px; border-left: 3px solid transparent; transition: background-color .2s, color .2s; }
  .nav a::after { content: ''; position: static; width: 8px; height: 8px; background: none; border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); border-radius: 0; transform: translateY(-3px) rotate(45deg); transition: border-color .2s; }
  .nav a:hover, .nav a:active { background: var(--surface); }
  .nav a:hover::after, .nav a[aria-current]::after { transform: translateY(-3px) rotate(45deg); border-color: var(--mint); }
  .nav a[aria-current] { color: var(--mint); background: var(--mint-soft); border-left-color: var(--mint); }
  .nav.open a { animation: rise .32s var(--ease) backwards; }
  .nav.open a:nth-child(2) { animation-delay: 30ms; }
  .nav.open a:nth-child(3) { animation-delay: 60ms; }
  .nav.open a:nth-child(4) { animation-delay: 90ms; }
  .nav.open a:nth-child(5) { animation-delay: 120ms; }
  .nav.open a:nth-child(6) { animation-delay: 150ms; }
  .nav.open a:nth-child(7) { animation-delay: 180ms; }
  .nav.open a:nth-child(8) { animation-delay: 210ms; }
  .nav a.nav-cta { display: flex; justify-content: space-between; min-height: 52px; margin-top: 10px; padding-inline: 20px; color: #05171c; background: var(--mint); border-left: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
  .nav-social { display: flex; padding: 12px 4px 0; }
  .nav .chip { min-height: 40px; padding: 5px 14px; font-size: 15px; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 999px; justify-content: flex-start; }
  .nav .chip::after { content: none; }
  .header-inner { gap: 16px; }
}

/* Вузький телефон: шапка трохи щільніша, щоб логотип, дзвінок і «Меню» вміщалися в один рядок. */
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  .header .brand { gap: 6px; font-size: 21px; }
  .header .brand img { width: 38px; height: 38px; }
  .menu-toggle { gap: 8px; padding: 8px 11px; }
  .header-cta .call-icon { width: 40px; height: 40px; }
  .nav a.nav-cta::after { content: none; }
  .nav a.nav-cta:hover { background: var(--mint-bright); }
  /* Поки меню відкрите, сторінка під ним притемнена. */
  .header ~ main, .header ~ .footer { transition: opacity .25s; }
  .header.menu-open ~ main, .header.menu-open ~ .footer { opacity: .28; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .video-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .price-footnote { flex-direction: column; align-items: start; gap: 12px; }
}

@media (max-width: 640px) {
  .section { padding-block: 48px; }
  .hero-grid { padding-block: 36px 64px; gap: 40px; }
  .matrix-rain { opacity: .25; }
  .matrix-rain.is-dim { opacity: .18; }
  .hero-copy::before { inset: -24px -20px; background: radial-gradient(ellipse at 50% 45%, #08121ed9 35%, #08121e99 70%, transparent 100%); }
  .hero .eyebrow { margin-bottom: 20px; letter-spacing: .05em; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 50px); letter-spacing: -.035em; margin-bottom: 20px; }
  .hero-description { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero-actions .button { justify-content: space-between; }
  .hero-typed { margin-top: 24px; padding-top: 18px; }
  .hero-typed-label { flex-basis: 100%; }
  .system-visual { padding: 16px 14px 34px; }
  .flow-node { flex-direction: column; align-items: start; gap: 8px; padding: 12px; }
  .flow-results > div { flex-direction: column; gap: 6px; padding: 12px 8px; }
  .floating-note { right: 10px; bottom: -28px; padding: 10px 16px 10px 12px; }
  .expertise-strip ul { gap: 8px 14px; padding-block: 18px; font-size: 14px; }
  .expertise-strip li { gap: 14px; }
  h2 { font-size: clamp(28px, 8.4vw, 36px); }
  .section-heading { margin-bottom: 26px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 24px 22px 20px; }
  .service-question h3 { font-size: 24px; }
  .demo-copy h3 { font-size: 27px; }
  .board-title { padding: 16px 14px; }
  .board-bar { padding: 10px 14px; }
  .kanban { padding-inline: 12px; }
  .kanban-column { padding: 12px; }
  .kanban-cards { max-height: none; overflow: visible; }
  .board-status { margin-inline: 12px; }
  .board-footer { align-items: start; padding: 12px 6px 12px 14px; }
  .price-intro h3 { font-size: 22px; }
  .price-intro p { grid-column: 1 / -1; margin-top: 10px; font-size: 15px; }
  .price-intro .service-icon { grid-row: auto; width: 32px; height: 32px; }
  .price-row { gap: 14px; padding: 16px 0; font-size: 15px; }
  .price-row b { font-size: 17px; }
  .price-row small { font-size: 13px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .faq-list summary { font-size: 16px; gap: 16px; }
  .faq-list { padding: 2px 16px; }
  .faq-list details p { padding-right: 8px; }
  .contact-form { padding: 20px 16px; }
  .contact-go > span { display: none; }
  .contact-go .icon { width: 18px; height: 18px; }
  .contact-body b { font-size: 17px; }
  .footer-inner p { display: none; }

  /* --- Компактна мобільна версія: коротша сторінка без втрати змісту --- */
  .section { padding-block: 40px; }
  .hero-grid { padding-block: 28px 44px; }
  .system-visual { display: none; }
  /* Послуги: іконка поруч із назвою, без рядка тегів. */
  .service-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 18px 14px; }
  .service-card .service-icon { width: 28px; height: 28px; }
  .service-card h3 { margin: 0; font-size: 19px; }
  .service-card > p, .service-card .service-foot, .service-card .text-link { grid-column: 1 / -1; }
  .service-card > p { margin-top: 10px; font-size: 15px; }
  .service-tags { display: none; }
  .service-foot { margin-top: 14px; padding-top: 12px; }
  .service-question { display: flex; align-items: stretch; }
  .service-question h3 { margin-top: 12px; font-size: 22px; }
  .service-question > p:not(.eyebrow) { margin-bottom: 8px; }
  /* На телефоні в розділі «Демо» лишається бібліотека відео; дошку заявок приховано — вона там незручна. */
  #demos .demo-layout { display: none; }
  .demo-gallery { margin-top: 0; }
  .slider-dots { display: flex; }
  /* Прайс: вкладки в один рядок із горизонтальним прокручуванням. */
  .pricing-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tabs button { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: center; }
  .pricing-tabs { scroll-snap-type: x proximity; padding-bottom: 14px; border-bottom: 0; }
  #price-dots { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .price-panel { padding-top: 18px; touch-action: pan-y; }
  .price-row { padding: 13px 0; }
  .price-loader { top: 60px; }
  /* Кроки: номер ліворуч від тексту. */
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 18px 0 20px; }
  .steps li > span { grid-row: 1 / span 2; margin-top: 1px; }
  .steps h3 { margin: 3px 0 6px; font-size: 18px; }
  .steps p { grid-column: 2; }
  .faq-list summary { min-height: 58px; padding-block: 12px; }
  .contact-section { gap: 24px; }
  .field textarea { min-height: 108px; }
  .to-top { right: 14px; bottom: 16px; width: 48px; height: 48px; }
}

/* ---------- 14. Зменшення руху ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; }
  .caret, .flow-connector i::after { display: none; }
  .expertise-strip.has-clones ul { flex-wrap: wrap; justify-content: center; width: auto; margin-inline: auto; gap: 8px 14px; }
  .expertise-strip.has-clones .clone { display: none; }
  .expertise-strip.has-clones li:first-child::before { content: none; }
  .primary:hover, a.service-card:hover { transform: none; }
}
