/* Бровар Софт, brovarsoft.com
   Design read: B2B-сайт для власників і головбухів малого й середнього бізнесу, спокійна сучасна
   «швейцарська» мова, довіра понад ефекти. Native CSS + Geist + іконки Phosphor.
   Dials: variance 6, motion 5, density 4.

   Правило форм: картки й фото 20px, внутрішні блоки 12px, кнопки й чипи повністю округлі.
   Акцент один на весь сайт: смарагдовий. Тема одна на сторінку, світла або темна за системою. */

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF1F4;
  --text: #0E1726;
  --text-2: #475467;
  --text-3: #5F6B7C;
  --border: #E2E6EB;
  --border-2: #D0D6DE;
  --accent: #0B7A55;
  --accent-hover: #086447;
  --accent-soft: #E2F2EA;
  --accent-ink: #075B40;
  --on-accent: #FFFFFF;
  --scrim: rgba(8, 14, 24, .72);
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 16px 40px -20px rgba(14, 23, 38, .18);
  --shadow-hover: 0 1px 2px rgba(14, 23, 38, .05), 0 24px 48px -20px rgba(14, 23, 38, .26);

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 20px;
  --r-md: 12px;
  --header-h: 68px;
  color-scheme: light;
}

/* Темна тема: за системою, якщо відвідувач сам не обрав денну; або примусово кнопкою (data-theme на <html>).
   Блоки однакові, міняти обидва разом. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0F17;
    --surface: #121824;
    --surface-2: #182131;
    --text: #E8ECF2;
    --text-2: #A9B3C2;
    --text-3: #8F9AAC;
    --border: #222C3B;
    --border-2: #2E3A4C;
    --accent: #3CCB8F;
    --accent-hover: #63D9A7;
    --accent-soft: rgba(60, 203, 143, .12);
    --accent-ink: #7BE3B6;
    --on-accent: #052116;
    --scrim: rgba(3, 6, 12, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .6);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F17;
  --surface: #121824;
  --surface-2: #182131;
  --text: #E8ECF2;
  --text-2: #A9B3C2;
  --text-3: #8F9AAC;
  --border: #222C3B;
  --border-2: #2E3A4C;
  --accent: #3CCB8F;
  --accent-hover: #63D9A7;
  --accent-soft: rgba(60, 203, 143, .12);
  --accent-ink: #7BE3B6;
  --on-accent: #052116;
  --scrim: rgba(3, 6, 12, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -20px rgba(0, 0, 0, .6);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .75);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--text); }

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--text); }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head .lead { margin-top: 16px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font: 500 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn .ic { width: 18px; height: 18px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: .2em; }
.link .ic { width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- шапка ---------- */
.top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.05rem; letter-spacing: 0;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: var(--text); background: var(--surface-2); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 500; }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.menu-toggle, .theme-toggle { display: none; }

/* день і ніч: місяць у денній темі, сонце в нічній */
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
}

@media (max-width: 1100px) {
  .header-row { gap: 10px; }
  .menu-toggle, .theme-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer;
  }
  .theme-toggle { margin-left: auto; }
  .menu-toggle .ic, .theme-toggle .ic { width: 20px; height: 20px; }
  .menu-close { display: none; }
  .nav-open .menu-open { display: none; }
  .nav-open .menu-close { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39;
    display: none; flex-direction: column; align-items: stretch; gap: 16px;
    margin: 0; padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 13px 14px; border-radius: var(--r-md); font-size: 1.05rem; }
  .nav-cta { min-height: 50px; }
}

/* ---------- головна: перший екран ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.3vw, 3.5rem); }
.hero-copy .lead { margin-top: 24px; max-width: 30em; }
.hero-copy .actions { margin-top: 36px; }
.hero-media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 5 / 6; max-height: calc(100dvh - var(--header-h) - 80px); width: 100%;
  background: var(--surface-2); box-shadow: var(--shadow);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- цифри ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 10px; color: var(--text-2); font-size: .98rem; max-width: 14em; }

/* ---------- послуги: бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.cell {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-2); }
.cell:active { transform: translateY(-1px) scale(.995); }
.cell p { color: var(--text-2); font-size: .98rem; max-width: 30em; }
.cell-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink);
}
.cell-icon .ic { width: 24px; height: 24px; }
.cell-wide { grid-column: span 2; }
.cell-photo { border: 0; color: #fff; min-height: 320px; }
.cell-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cell-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 24, 0) 25%, var(--scrim) 100%); }
.cell-photo:hover img { transform: scale(1.035); }
.cell-photo h3 { color: #fff; font-size: 1.5rem; }
.cell-photo p { color: rgba(255, 255, 255, .86); }
.cell-tint { background: var(--accent-soft); border-color: transparent; }
.cell-tint .cell-icon { background: var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; }

/* ---------- конфігурації на головній ---------- */
.split-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--surface-2); }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cfg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin-top: 32px; }
.cfg-list a, .cfg-list .item { display: block; padding: 16px 0; border-top: 1px solid var(--border); text-decoration: none; }
.cfg-list b { display: block; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.cfg-list span { display: block; margin-top: 4px; color: var(--text-3); font-size: .92rem; }
.cfg-list a:hover b { color: var(--accent-ink); }
.split-media .link { margin-top: 28px; }

/* ---------- ціна на головній ---------- */
.price-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.price-figure b { display: block; font-size: clamp(3.2rem, 7vw, 5.5rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.price-figure b small { font-size: .38em; font-weight: 500; letter-spacing: -.02em; color: var(--text-2); margin-left: .2em; }
.price-figure p { margin-top: 14px; color: var(--text-2); max-width: 22em; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.price-band .actions { margin-top: 28px; }

/* ---------- як працюємо (шкала) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: var(--border-2); transform-origin: left; transition: transform 1.2s var(--ease);
}
.js .timeline:not(.is-in)::before { transform: scaleX(0); }
.timeline li { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums;
}
.timeline h3 { margin-top: 20px; font-size: 1.08rem; }
.timeline p { margin-top: 8px; color: var(--text-2); font-size: .96rem; }

/* ---------- заклик ---------- */
.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); background: var(--accent-soft);
}
.cta-panel .lead { margin-top: 16px; }
.cta-side { display: grid; gap: 18px; justify-items: start; }
.cta-phone { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-phone:hover { color: var(--accent-ink); }

/* ---------- внутрішні сторінки ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-head .lead { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); text-decoration: none; font-size: .95rem; transition: border-color .2s, background-color .2s; }
.chips a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* послуги */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.svc-photo { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-2); }
.svc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.svc-body > p { color: var(--text-2); }
.svc-body .checks { gap: 10px; margin-top: 6px; font-size: .97rem; }
.svc-body .checks .ic { width: 20px; height: 20px; }
.svc-title { display: flex; align-items: center; gap: 14px; }
.svc-title .cell-icon { margin: 0; width: 44px; height: 44px; }
.svc-title h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.svc-card-wide { grid-column: 1 / -1; }
.svc-card-wide .svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.svc-card-wide .svc-text { display: grid; gap: 14px; }
.svc-card-wide .svc-text p { color: var(--text-2); }
.svc-card-wide .checks { margin-top: 0; }

/* конфігурації */
.cfg-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cfg-big { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 32px; border-radius: var(--r-lg); color: #fff; isolation: isolate; }
.cfg-big img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cfg-big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 24, .05) 20%, var(--scrim) 92%); }
.cfg-big h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cfg-big p { margin-top: 12px; color: rgba(255, 255, 255, .88); max-width: 32em; }
.cfg-big .what { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.badge { display: inline-flex; align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: .85rem; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cfg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cfg-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.cfg-card h3 { font-size: 1.12rem; }
.cfg-card .who { color: var(--text-2); font-size: .96rem; }
.cfg-card .what { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .92rem; }
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tech li { display: grid; gap: 10px; align-content: start; }
.tech .cell-icon { margin: 0 0 6px; }
.tech p { color: var(--text-2); font-size: .96rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.two-col .lead + .lead { margin-top: 16px; }

/* ціни */
.pricing { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.plan .amount { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: .4em; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; margin-left: .15em; }
.plan .amount-text { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.plan .cond { color: var(--text-2); }
.plan .vs { margin-top: -8px; padding: 8px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink); font-size: .92rem; font-weight: 500; }
.plan .checks { margin-top: 4px; font-size: .97rem; gap: 11px; }
.plan .checks .ic { width: 20px; height: 20px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.1rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--text-3); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: none; color: var(--accent); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); max-width: 44em; }

/* як працюємо */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-media { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; background: var(--surface-2); }
.process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps { position: relative; display: grid; gap: 40px; }
.steps::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 46px; width: 2px; background: var(--border-2); transform-origin: top; transition: transform 1.4s var(--ease); }
.js .steps:not(.is-in)::before { transform: scaleY(0); }
.steps li { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 24px; }
.steps h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); padding-top: 7px; }
.steps p { margin-top: 10px; color: var(--text-2); }
.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gets li { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.gets .cell-icon { margin: 0; }
.gets p { margin-top: 6px; color: var(--text-2); font-size: .97rem; }

/* про нас */
.wide-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 21 / 9; background: var(--surface-2); }
.wide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; max-width: 26em; text-wrap: pretty; }
.statement b { color: var(--accent-ink); font-weight: 600; }
.own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.own li { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.own .cell-icon { margin-bottom: 18px; }
.own p { margin-top: 6px; color: var(--text-2); font-size: .96rem; }

/* контакти */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.ccard .cell-icon { margin: 0 0 12px; }
.ccard .label { color: var(--text-3); font-size: .92rem; }
.ccard a, .ccard strong { font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ccard a:hover { color: var(--accent-ink); }
.ccard-wide { grid-column: 1 / -1; }
.ccard .link { font-size: .95rem; font-weight: 500; }
.map { position: relative; min-height: 420px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prep { max-width: 46rem; }
.prep .checks { margin-top: 24px; }

.page-404 { padding-bottom: clamp(96px, 14vw, 180px); }
.page-404 .actions { margin-top: 32px; }

/* інтеграції */
.int-section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--border); }
.int-section:first-of-type { border-top: 0; }
.int-head { display: flex; gap: 20px; align-items: flex-start; max-width: 52rem; margin-bottom: clamp(28px, 3.5vw, 40px); }
.int-head .cell-icon { margin: 4px 0 0; }
.int-head .lead { margin-top: 12px; }
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.int-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.int-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.int-card h3 { font-size: 1.1rem; }
.int-card p { color: var(--text-2); font-size: .95rem; }
.int-wide { grid-column: span 2; }
.int-tint { background: var(--accent-soft); border-color: transparent; }
.int-tint h3 { font-size: 1.3rem; }
.int-tint p { color: var(--text); font-size: 1rem; max-width: 34em; }
.int-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.big-stat b { display: block; margin-top: 24px; font-size: clamp(4rem, 9vw, 7rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.big-stat p { margin-top: 16px; color: var(--text-2); max-width: 26em; }
.int-list { display: grid; gap: 12px; }
.int-list li { display: flex; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.int-list .cell-icon { margin: 0; }
.int-list p { margin-top: 4px; color: var(--text-2); font-size: .96rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.pills li { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; font-size: .96rem; }
.int-data { margin-top: 0; }

/* ---------- біжучий рядок інтеграцій (один на сторінку) ---------- */
.marquee-section { padding: clamp(28px, 4vw, 44px) 0 0; }
.marquee-head { margin-bottom: 18px; }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; flex: none; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); animation: marquee 50s linear infinite; }
.marquee-track li { font-size: clamp(1.3rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -.035em; color: var(--text-3); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- карусель «Типові задачі» ---------- */
.tasks-section { overflow: hidden; }
.tasks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 44px); }
.tasks-head .lead { margin-top: 14px; max-width: 40em; }
.tasks-controls { display: flex; align-items: center; gap: 10px; }
.tasks-counter { margin-right: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tasks-counter b { color: var(--text); font-weight: 600; font-size: 1.15rem; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, opacity .2s, transform .15s var(--ease);
}
.round-btn:hover { border-color: var(--accent); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; border-color: var(--border-2); }
.round-btn .ic { width: 20px; height: 20px; }
.round-btn[data-dir="-1"] .ic { transform: rotate(180deg); }
.tasks-track {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: 16px; margin: 0; padding: 4px var(--edge) 28px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab; -webkit-user-select: none; user-select: none;
}
.tasks-track::-webkit-scrollbar { display: none; }
.tasks-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.tasks-track:focus-visible { outline-offset: -2px; }
.task-card {
  position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(380px, 82vw); aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px;
  border-radius: var(--r-lg); scroll-snap-align: start;
  background: linear-gradient(160deg, #162238 0%, #0C121D 100%); color: #F2F5F9;
  box-shadow: 0 24px 48px -28px rgba(8, 14, 24, .55);
}
.task-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.task-card.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 24, .78) 0%, rgba(8, 14, 24, .55) 45%, rgba(8, 14, 24, .82) 100%); }
.task-hours { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.task-card h3 { margin-top: 10px; color: #fff; font-size: clamp(1.4rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.task-card p { color: rgba(242, 245, 249, .8); font-size: 1rem; max-width: 24em; }
.task-num {
  position: absolute; right: -.04em; bottom: -.17em; z-index: -1; pointer-events: none;
  font-size: clamp(9rem, 26vw, 13.5rem); font-weight: 700; line-height: 1; letter-spacing: -.07em;
  color: #3CCB8F; opacity: .3; font-variant-numeric: tabular-nums;
}

/* ---------- «Як ми працюємо»: картки складаються в стос під час прокрутки ---------- */
.stack { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 20px + var(--n) * 14px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: center; gap: 20px clamp(24px, 5vw, 64px);
  min-height: clamp(230px, 34vh, 320px); padding: clamp(26px, 4vw, 52px); overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 -16px 40px -28px rgba(14, 23, 38, .35);
  transform: scale(var(--s, 1)); transform-origin: 50% 0; transition: transform .25s linear;
}
.stack-card::after { content: ""; position: absolute; inset: 0; background: var(--text); opacity: var(--dim, 0); pointer-events: none; transition: opacity .25s linear; border-radius: inherit; }
.stack-card:last-child { background: var(--accent-soft); border-color: transparent; }
.stack-card:last-child .cell-icon { background: var(--surface); }
.stack-num { font-size: clamp(5rem, 11vw, 8.5rem); font-weight: 700; line-height: .85; letter-spacing: -.07em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stack-body .cell-icon { margin: 0; }
.stack-body h3 { margin-top: 18px; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.stack-body p { margin-top: 10px; color: var(--text-2); font-size: 1.05rem; max-width: 34em; }

/* легке наближення фото першого екрана під час прокрутки (де браузер уміє scroll-driven анімації) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media img { animation: hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    @keyframes hero-zoom { to { transform: scale(1.1) translateY(2%); } }
  }
}

/* ---------- каталог конфігурацій ---------- */
.cat-group { padding: clamp(28px, 4vw, 44px) 0; }
.cat-group + .cat-group { border-top: 1px solid var(--border); }
.cat-group h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 24px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--border-2); }
.js .cat-card[data-reveal].is-in:hover { transform: translateY(-3px); }
.cat-card h3 { font-size: 1.18rem; }
.cat-card p { color: var(--text-2); font-size: .97rem; flex: 1; }
.cat-price { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cat-card .link { margin-top: 2px; }

.sheet-table { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table thead th { font-size: .88rem; font-weight: 500; color: var(--text-3); background: var(--surface-2); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--text-2); }
.price-table .num { text-align: right; white-space: nowrap; color: var(--text); font-weight: 600; }
.price-table thead .num { font-weight: 500; color: var(--text-3); }
.industry-table { min-width: 680px; }

.lic-block { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.lic-block h3 { padding: 18px 18px 6px; font-size: 1.05rem; }
.lic-block .price-table thead { display: none; }
.lic-list { display: grid; gap: 16px; }
.lic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lic-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lic-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.lic-steps h2 { font-size: 1.25rem; letter-spacing: -.02em; padding-top: 9px; }
.lic-steps p { margin-top: 10px; color: var(--text-2); }

/* сторінка конфігурації */
.crumbs { margin-bottom: 14px; }
.crumbs a { color: var(--text-3); text-decoration: none; font-size: .95rem; }
.crumbs a::before { content: "← "; }
.crumbs a:hover { color: var(--accent-ink); }
.prod-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.prod-hero .actions { margin-top: 30px; }
.prod-media { aspect-ratio: 4 / 3; }
.prod-facts { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--accent-soft); }
.prod-facts .label { color: var(--text-3); font-size: .9rem; }
.prod-facts .label + p { margin-top: 6px; }
.prod-facts p + .label { margin-top: 22px; }
.prod-from { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ed-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ed-grid .plan h3 { font-size: 1.15rem; }
.ed-grid .amount { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.other-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.other-links a { padding: 7px 13px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .92rem; }
.other-links a:hover { color: var(--accent-ink); }

/* ---------- ціни на інтеграції: у нас і на ринку ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.cmp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp-table thead th { font-size: .88rem; font-weight: 500; color: var(--text-3); background: var(--surface-2); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody th { font-weight: 600; width: 22%; }
.cmp-table td { color: var(--text-2); font-size: .96rem; }
.cmp-table .num { text-align: right; white-space: nowrap; }
.cmp-table td.cmp-our { color: var(--accent-ink); font-weight: 700; font-size: 1.02rem; background: var(--accent-soft); }
.cmp-table thead .cmp-our { color: var(--accent-ink); background: var(--accent-soft); }
.cmp-table td.cmp-none { color: var(--text-3); font-size: .9rem; white-space: normal; }
.cmp-note { margin-top: 14px; color: var(--text-3); font-size: .9rem; max-width: 60em; }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.offer-grid .plan h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.offer-grid .amount { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.offer-grid .amount-text { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.save-badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .86rem; font-weight: 600; }

/* ---------- вигода: картки зі смугами «у нас / в інших» ---------- */
.win-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.win { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.win-tag { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 500; }
.win-tag .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.win-big { font-size: clamp(2.2rem, 3.8vw, 3rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.win-big small { display: block; margin-top: 8px; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; color: var(--text-2); }
.win-note { margin-top: auto; color: var(--text-2); font-size: .96rem; }
.win-note a { color: var(--accent-ink); font-weight: 500; }
.win .pills li { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: .93rem; }
.bar span { color: var(--text-3); }
.bar b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-our span { color: var(--text); font-weight: 500; }
.bar-our b { color: var(--accent-ink); font-size: 1.05rem; }
.bar i { grid-column: 1 / -1; position: relative; display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i::before, .bar i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
/* --a: точна ціна; --b: верхня межа діапазону або доплата, штрихуванням */
.bar i::before { width: var(--b, 0%); background: repeating-linear-gradient(135deg, var(--border-2) 0 5px, transparent 5px 9px); }
.bar i::after { width: var(--a); background: var(--text-3); opacity: .55; }
.bar-our i::after { background: var(--accent); opacity: 1; }
.js [data-reveal]:not(.is-in) .bar i::before, .js [data-reveal]:not(.is-in) .bar i::after { transform: scaleX(0); }

.price-list { margin-top: clamp(56px, 7vw, 88px); }
.price-list-head h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.03em; }
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0 24px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--accent-soft); }
.incl li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .95rem; font-weight: 500; }
.incl .ic { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.proof { display: block; width: fit-content; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .82rem; font-weight: 500; font-style: normal; }

/* ---------- власна система лояльності на /integrations ---------- */
.loyal { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .88rem; font-weight: 600; }
.eyebrow .ic { width: 18px; height: 18px; }
.loyal-copy .lead { margin-top: 16px; }
.loyal-copy .checks { margin-top: 28px; }
.loyal-copy .actions { margin-top: 32px; }
.life-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); }
.life-title { margin-bottom: 20px; color: var(--text-3); font-size: .92rem; font-weight: 600; }
.life { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.life li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
/* відрізок від центру кружка до наступного кроку, тож лінія не виходить за останній крок */
.life li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: -42px; width: 2px; background: var(--border-2); transform-origin: top; transition: transform .5s var(--ease); transition-delay: calc(.3s + var(--n, 0) * .25s); }
.life li:nth-child(2) { --n: 1; } .life li:nth-child(3) { --n: 2; } .life li:nth-child(4) { --n: 3; }
.js [data-reveal]:not(.is-in) .life li::before { transform: scaleY(0); }
.life .step-num { z-index: 1; }
.life .step-num { width: 40px; height: 40px; background: var(--surface); }
.life h3 { padding-top: 8px; font-size: 1.05rem; }
.life p { margin-top: 4px; color: var(--text-2); font-size: .95rem; }
.loyal-grid { margin-top: 16px; }

/* ---------- калькулятор економії на /price ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.calc .lead { margin-top: 14px; }
.calc-field { margin-top: 28px; }
.calc-field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.calc-field output { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.calc-field input { width: 100%; margin-top: 14px; accent-color: var(--accent); height: 28px; cursor: pointer; }
.calc-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.calc-save { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink); }
.calc-save b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-save > span { display: block; margin-top: 4px; font-size: .95rem; }
.calc .actions { margin-top: 24px; }

@media (max-width: 760px) {
  .cmp-wrap { overflow: visible; border: 0; background: none; }
  .cmp-table { min-width: 0; }
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto; }
  .cmp-table tr { margin-bottom: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
  .cmp-table th, .cmp-table td { padding: 0; border: 0; }
  .cmp-table tbody th { width: auto; font-size: 1.08rem; margin-bottom: 6px; }
  .cmp-table td { margin-top: 8px; }
  .cmp-table td.num { display: flex; justify-content: space-between; gap: 12px; text-align: right; white-space: normal; }
  .cmp-table td.num::before { content: attr(data-label); color: var(--text-3); font-weight: 400; font-size: .9rem; text-align: left; }
  .cmp-table td.cmp-our { padding: 10px 12px; border-radius: var(--r-md); }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .win-grid, .calc { grid-template-columns: minmax(0, 1fr); }
  .incl { grid-template-columns: minmax(0, 1fr); padding: 18px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- підвал ---------- */
.site-footer { margin-top: clamp(72px, 9vw, 120px); padding: 56px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--text-2); max-width: 24em; }
.footer-title { color: var(--text-3); font-size: .9rem; margin-bottom: 14px; }
.footer-nav ul { columns: 2; column-gap: 24px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; color: var(--text); }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-contacts li { margin-bottom: 10px; }
.footer-contacts a, .footer-contacts span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.footer-contacts a:hover { color: var(--accent-ink); }
.footer-contacts .ic { width: 18px; height: 18px; color: var(--text-3); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .9rem; }

/* ---------- рух: поява при прокрутці (IntersectionObserver у site.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-media[data-reveal] { transform: scale(.97); }
.js .hero-media[data-reveal].is-in { transform: none; }
.js .cell[data-reveal].is-in:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .timeline:not(.is-in)::before, .js .steps:not(.is-in)::before { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .marquee-track { animation: none; flex-wrap: wrap; row-gap: 8px; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .stack-card { transform: none; }
  .stack-card::after { display: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-grid, .int-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-wide, .int-grid.cols-3 .int-last { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-wide { grid-column: 1 / -1; }
  .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan-main { grid-column: 1 / -1; }
  .cfg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .timeline::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; transform-origin: top; }
  .js .timeline:not(.is-in)::before { transform: scaleY(0); }
  .timeline li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 20px; }
  .timeline h3 { margin-top: 10px; }
  .timeline p { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero-grid, .split-media, .price-band, .cta-panel, .two-col, .process-grid, .contact-grid, .int-split, .prod-hero, .lic-grid, .lic-steps, .loyal { grid-template-columns: minmax(0, 1fr); }
  .hero-media { aspect-ratio: 4 / 3; max-height: none; }
  .media-frame { aspect-ratio: 16 / 10; }
  .process-media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .svc-grid, .cfg-feature { grid-template-columns: minmax(0, 1fr); }
  .svc-card-wide .svc-body { grid-template-columns: minmax(0, 1fr); }
  .own, .gets { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .wide-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 860px) {
  .stack-card { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; top: calc(var(--header-h) + 12px + var(--n) * 10px); }
  .stack-num { font-size: clamp(3.6rem, 16vw, 5rem); }
  .stack-body h3 { margin-top: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .tasks-controls { width: 100%; }
  .task-card { padding: 24px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .cell { padding: 24px; }
  .cell-icon { margin-bottom: 18px; }
  .cell-photo { min-height: 300px; }
  .cell-icon { margin-bottom: 18px; }
  .cfg-list { grid-template-columns: minmax(0, 1fr); }
  .pricing, .cfg-grid, .tech, .contact-cards, .int-grid, .int-grid.cols-3, .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .price-table th, .price-table td { padding: 12px 14px; }
  .int-head { flex-direction: column; gap: 14px; }
  .actions .btn { flex: 1 1 100%; }
  .cfg-big { min-height: 360px; padding: 24px; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 320px; }
}

@media print {
  .site-header, .cta-panel, .map { display: none; }
}

/* при двох колонках бенто остання клітинка займає весь рядок, щоб не лишалось порожнього місця */
@media (max-width: 1024px) and (min-width: 601px) {
  .bento .cell-last { grid-column: 1 / -1; }
}
