/* ==========================================================================
   TEMA agency — основні стилі
   ========================================================================== */

:root {
  --bg: #f6f6f4;
  --bg-2: #eeeeeb;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #2e2e2e;
  --muted: #6b6b6b;
  --line: #e3e3e0;
  --line-2: #ededea;
  --accent: #d71920;
  --accent-soft: rgba(215, 25, 32, .08);
  --on-accent: #ffffff;
  --block: #0a0a0a;
  --on-block: #f5f5f5;
  --block-line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 50px -30px rgba(0, 0, 0, .25);
  --glow: 0 12px 34px -12px rgba(215, 25, 32, .65);

  --ff-d: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #080808;
  --surface: #0e0e0e;
  --ink: #ffffff;
  --ink-2: #d4d4d4;
  --muted: #9a9a9a;
  --line: #262626;
  --line-2: #1a1a1a;
  --accent: #ff1f1f;
  --accent-soft: rgba(255, 31, 31, .1);
  --block: #0e0e0e;
  --on-block: #ffffff;
  --block-line: #262626;
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
  --glow: 0 12px 40px -10px rgba(255, 31, 31, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--ff);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }
.container--narrow { max-width: 820px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
[id] { scroll-margin-top: 96px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.is-leaving main, body.is-leaving .footer { opacity: 0; transform: translateY(-8px); }
main, .footer { transition: opacity .3s var(--ease-2), transform .3s var(--ease-2); }

/* --------------------------------------------------------------------------
   Типографіка
   -------------------------------------------------------------------------- */

.h1, .h2, .h3 { font-family: var(--ff-d); font-weight: 800; letter-spacing: -.025em; }
.h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.08; }
.h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.12; }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }

.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.label {
  display: inline-block;
  font: 700 13px/1 var(--ff-d);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px;
  border-radius: 12px;
  font: 700 16px/1 var(--ff-d); letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .3s, background-color .3s, border-color .3s, color .3s;
}
.btn svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn--accent:hover { box-shadow: 0 16px 44px -10px rgba(215, 25, 32, .8); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn--block { width: 100%; }

.btn__t { position: relative; display: block; overflow: hidden; }
.btn__t span { display: block; transition: transform .5s var(--ease); }
.btn__t::after { content: attr(data-t); position: absolute; left: 0; top: 100%; transition: transform .5s var(--ease); }
.btn:hover .btn__t span, .btn:hover .btn__t::after { transform: translateY(-100%); }

.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent);
}
.link-more svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Хедер
   -------------------------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .4s;
}
.header.is-hidden { transform: translateY(-100%); }
.header__bar { display: flex; align-items: center; gap: 24px; height: 76px; }

.logo { display: block; color: var(--ink); flex-shrink: 0; padding-block: 10px; }
.logo svg { height: 22px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-weight: 500; font-size: 16px;
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }
.nav__link svg { width: 10px; height: 10px; transition: transform .3s; }
.nav__item { position: relative; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(860px, 92vw); padding: 12px;
  display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .45s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__feat {
  grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 22px; border-radius: 14px; background: var(--accent); color: #fff; min-height: 240px;
}
.mega__feat small { font: 700 12px var(--ff-d); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mega__feat b { display: block; font: 800 46px/1 var(--ff-d); letter-spacing: -.03em; margin-bottom: 8px; }
.mega__feat p { font-size: 14px; opacity: .9; line-height: 1.45; }
.mega__col { padding: 10px 6px; }
.mega__col .col-title { margin: 0 0 6px 10px; font: 700 11px/1 var(--ff-d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mega__col a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 15px; transition: background-color .2s, color .2s; }
.mega__col a small { color: var(--muted); font-size: 12px; }
.mega__col a:hover { background: var(--bg); color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  position: relative; width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: border-color .3s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { position: absolute; width: 19px; height: 19px; transition: transform .6s var(--ease), opacity .3s; }
.theme-toggle .i-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; transform: none; }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--bg); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.mnav {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  padding: 100px var(--gut) 28px; display: flex; flex-direction: column; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.menu-open { overflow: hidden; }
.mnav { visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.mnav__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font: 800 clamp(26px, 7vw, 36px)/1.1 var(--ff-d); letter-spacing: -.02em;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease);
}
.mnav__list a sup { font: 600 12px var(--ff); color: var(--muted); }
.menu-open .mnav__list a { opacity: 1; transform: none; }
.menu-open .mnav__list li:nth-child(2) a { transition-delay: .04s; }
.menu-open .mnav__list li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mnav__list li:nth-child(4) a { transition-delay: .12s; }
.menu-open .mnav__list li:nth-child(5) a { transition-delay: .16s; }
.menu-open .mnav__list li:nth-child(6) a { transition-delay: .2s; }
.mnav__sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.mnav__sub a { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.mnav__foot { margin-top: auto; display: grid; gap: 6px; color: var(--muted); padding-top: 22px; }
.mnav__foot a { color: var(--ink); font-weight: 700; font-size: 18px; }

/* --------------------------------------------------------------------------
   Секції
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(70px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.sec-head--left { margin-left: 0; text-align: left; justify-items: start; }
.sec-head .lead { max-width: 620px; }

.dots-bg { position: absolute; inset: 0; pointer-events: none; }
.dots-bg canvas { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(140px, 14vw, 190px) 0 clamp(60px, 7vw, 90px);
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 42%; width: min(900px, 120vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 1060px; margin: 0 auto; display: grid; justify-items: center; }
.hero .pill { margin-bottom: 28px; }
.hero .h1 { max-width: 16ch; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }

.trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  margin-top: 44px; font-size: 15px; color: var(--muted);
}
.trust__avatars { display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid var(--line); }
.trust__avatars span { display: flex; }
.trust__avatars em {
  width: 34px; height: 34px; margin-left: -8px; border-radius: 50%;
  display: grid; place-items: center; font: 700 13px var(--ff-d); font-style: normal;
  background: var(--accent-soft); color: var(--accent); border: 2px solid var(--bg);
}
.trust__avatars em:first-child { margin-left: 0; }
.trust__avatars div { text-align: left; line-height: 1.3; }
.trust__avatars b { display: block; color: var(--accent); letter-spacing: 2px; font-size: 13px; }
.trust__item { display: inline-flex; align-items: center; gap: 6px; }
.trust__item svg { width: 15px; height: 15px; color: var(--accent); }

.hstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(50px, 6vw, 80px); width: 100%; max-width: 900px; }
.hstat b { display: block; font: 800 clamp(34px, 4vw, 54px)/1 var(--ff-d); letter-spacing: -.03em; color: var(--accent); }
.hstat > span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 700 clamp(18px, 2vw, 26px)/1 var(--ff-d); letter-spacing: -.01em; white-space: nowrap; }
.marquee__item svg { width: 14px; height: 14px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Пакети
   -------------------------------------------------------------------------- */

.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; margin: 0 auto; }
.pack {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pack--hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.pack__badge { position: absolute; top: -13px; left: clamp(26px, 3vw, 40px); padding: 6px 12px; border-radius: 8px; background: var(--accent); color: #fff; font: 700 12px var(--ff-d); letter-spacing: .06em; text-transform: uppercase; }
.pack__name { font: 800 14px var(--ff-d); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.pack__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pack__price { font: 800 clamp(48px, 5vw, 64px)/1 var(--ff-d); letter-spacing: -.035em; }
.pack__price small { font: 600 16px var(--ff); letter-spacing: 0; color: var(--muted); }
.pack__term { text-align: right; }
.pack__term b { display: block; font: 800 24px/1 var(--ff-d); }
.pack__term span { font-size: 13px; color: var(--muted); }
.pack__desc { color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pack__list { display: grid; gap: 11px; margin-bottom: 30px; }
.pack__list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.pack__list li::before { content: "▸"; color: var(--accent); flex-shrink: 0; }
.pack .btn { margin-top: auto; }
.packs__note { text-align: center; margin-top: 30px; color: var(--muted); }
.packs__note a { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Переваги
   -------------------------------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, transform .5s var(--ease); }
.feature:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature__ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Послуги (картки)
   -------------------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.chip { height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; transition: background-color .25s, color .25s, border-color .25s; }
.chip sup { font-size: 11px; margin-left: 3px; opacity: .55; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; min-height: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; isolation: isolate;
  transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; z-index: -1;
  border-radius: 50%; background: var(--accent-soft); transform: scale(0); transition: transform .7s var(--ease);
}
.svc:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.svc:hover::after { transform: scale(1); }
.svc.is-hidden { display: none; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.svc__n { font: 800 30px/1 var(--ff-d); color: var(--accent); letter-spacing: -.02em; }
.svc__ico { color: var(--muted); transition: color .3s, transform .5s var(--ease); }
.svc__ico svg { width: 26px; height: 26px; }
.svc:hover .svc__ico { color: var(--accent); transform: rotate(-8deg) scale(1.1); }
.svc__new { font: 700 11px var(--ff-d); letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: var(--accent); color: #fff; margin-left: 8px; vertical-align: middle; }
.svc h3 { font: 700 19px/1.3 var(--ff-d); letter-spacing: -.01em; margin-bottom: 10px; }
.svc h3 span { color: var(--accent); white-space: nowrap; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.svc .link-more { margin-top: auto; }
.svc--cta { background: var(--block); color: var(--on-block); border-color: var(--block-line); justify-content: center; }
.svc--cta p { color: rgba(255, 255, 255, .65); }
.svc--cta:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Процес
   -------------------------------------------------------------------------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step__n { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.step__n b { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font: 800 18px var(--ff-d); }
.step__n span { font-size: 13px; font-weight: 600; color: var(--muted); }
.step h3 { font: 700 20px/1.25 var(--ff-d); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.steps__line { position: absolute; left: 50px; right: 50px; top: 50px; height: 1px; background: var(--line); z-index: -1; }

/* --------------------------------------------------------------------------
   Мокапи сайтів
   -------------------------------------------------------------------------- */

.mock {
  --m-bg: #f6f1ea; --m-ink: #1b1712; --m-acc: #c86b3c; --m-soft: #e8ddd0;
  position: relative; overflow: hidden; background: var(--m-bg); color: var(--m-ink);
  font-family: var(--ff); display: flex; flex-direction: column; container-type: inline-size;
}
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 3.2cqw 4cqw; }
.mock__bar i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: currentColor; opacity: .18; }
.mock__nav { display: flex; align-items: center; justify-content: space-between; padding: 0 6cqw 3cqw; font-size: 3cqw; font-weight: 800; }
.mock__nav span { display: flex; gap: 3cqw; }
.mock__nav span i { width: 7cqw; height: 1.1cqw; border-radius: 2px; background: currentColor; opacity: .25; }
.mock__nav em { font-style: normal; font-size: 2.2cqw; padding: 1.4cqw 3cqw; border-radius: 1cqw; background: var(--m-acc); color: #fff; }
.mock__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqw; padding: 3cqw 6cqw; flex: 1; }
.mock__h { font: 800 6.4cqw/1 var(--ff-d); letter-spacing: -.04em; margin-bottom: 3cqw; }
.mock__p { display: grid; gap: 1.3cqw; margin-bottom: 4cqw; }
.mock__p i { height: 1.1cqw; border-radius: 2px; background: currentColor; opacity: .18; }
.mock__p i:last-child { width: 70%; }
.mock__b { display: inline-block; font-size: 2.3cqw; font-weight: 700; padding: 1.8cqw 3.6cqw; border-radius: 1cqw; background: var(--m-ink); color: var(--m-bg); }
.mock__img { border-radius: 2.4cqw; background: var(--m-soft); position: relative; overflow: hidden; min-height: 30cqw; }
.mock__img::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--m-acc); right: -12%; bottom: -18%; }
.mock__img::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; left: 14%; top: 16%; border-radius: 1.6cqw; background: var(--m-ink); opacity: .9; transform: rotate(-10deg); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; padding: 0 6cqw 5cqw; }
.mock__row i { height: 12cqw; border-radius: 2cqw; background: var(--m-soft); }
.mock--b .mock__hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.mock--b .mock__h { font-size: 7.6cqw; max-width: 80%; }
.mock--b .mock__p { width: 60%; }
.mock--b .mock__img { display: none; }
.mock--b .mock__row i:nth-child(2) { background: var(--m-acc); }
.mock--c .mock__hero { grid-template-columns: 1fr 1.2fr; }
.mock--c .mock__img::before { border-radius: 2cqw; width: 45%; right: 8%; bottom: 10%; transform: rotate(12deg); }
.mock--c .mock__img::after { border-radius: 50%; }
.mock--c .mock__row { grid-template-columns: repeat(4, 1fr); }
.mock--shop .mock__row { grid-template-columns: repeat(4, 1fr); }
.mock--shop .mock__row i { height: 16cqw; position: relative; }
.mock--shop .mock__row i::after { content: ""; position: absolute; left: 20%; right: 20%; top: 18%; bottom: 30%; border-radius: 50%; background: var(--m-acc); opacity: .7; }
.mock--app { align-items: center; justify-content: center; background: var(--m-soft); }
.mock__phone { width: 36cqw; aspect-ratio: 9 / 18; border-radius: 6cqw; background: var(--m-bg); border: 1.4cqw solid var(--m-ink); padding: 5cqw 3cqw; display: flex; flex-direction: column; gap: 2.4cqw; box-shadow: 0 4cqw 8cqw -4cqw rgba(0,0,0,.4); position: relative; transform: rotate(-4deg); }
.mock__phone b { font: 800 4.6cqw/1 var(--ff-d); }
.mock__phone i { display: block; height: 7cqw; border-radius: 2cqw; background: var(--m-soft); }
.mock__phone i:nth-of-type(2) { background: var(--m-acc); height: 14cqw; }
.mock__phone em { margin-top: auto; height: 6cqw; border-radius: 100px; background: var(--m-ink); }
.mock__phone2 { position: absolute; width: 30cqw; aspect-ratio: 9/18; border-radius: 5cqw; background: var(--m-acc); right: 12cqw; top: 22cqw; transform: rotate(10deg); opacity: .9; }
.mock--tg { background: #17212b; color: #e7eef5; --m-soft: #242f3d; }
.mock__chat { flex: 1; display: flex; flex-direction: column; gap: 2.4cqw; padding: 4cqw 8cqw; justify-content: flex-end; }
.mock__msg { max-width: 62%; padding: 2.4cqw 3.4cqw; border-radius: 3cqw 3cqw 3cqw .8cqw; background: var(--m-soft); font-size: 2.8cqw; line-height: 1.35; }
.mock__msg--me { align-self: flex-end; background: #2b5278; border-radius: 3cqw 3cqw .8cqw 3cqw; }
.mock__kb { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; max-width: 62%; }
.mock__kb span { text-align: center; font-size: 2.4cqw; padding: 2cqw; border-radius: 1.6cqw; background: rgba(255,255,255,.08); }

/* Сайт за $150 */
.offer150 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.offer150__btns { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.offer150__shots { position: relative; min-height: 460px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.offer150__shots img { position: absolute; width: 74%; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); border: 1px solid var(--line); transition: transform .9s var(--ease); }
.offer150__shots img:nth-child(1) { left: 5%; top: 8%; transform: rotate(-4deg); }
.offer150__shots img:nth-child(2) { right: 4%; top: 26%; transform: rotate(3deg); z-index: 1; }
.offer150__shots img:nth-child(3) { left: 12%; top: 50%; transform: rotate(-1deg); z-index: 2; }
.offer150__shots:hover img:nth-child(1) { transform: rotate(-7deg) translate(-10px, -8px); }
.offer150__shots:hover img:nth-child(2) { transform: rotate(6deg) translate(10px, -4px); }
.offer150__shots:hover img:nth-child(3) { transform: rotate(0) translateY(-10px); }
.offer150__cap { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 14px var(--ff-d); }
.offer150__cap svg { width: 15px; height: 15px; }

/* Портфоліо */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.work__frame img { position: absolute; left: 6%; top: 7%; width: 88%; height: auto; border-radius: 8px 8px 0 0; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); transition: transform 1s var(--ease); }
.work:hover .work__frame img { transform: translateY(-3%) scale(1.02); }
.work__view { position: absolute; right: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 13px var(--ff-d); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .5s var(--ease); }
.work__view svg { width: 13px; height: 13px; }
.work:hover .work__view { opacity: 1; transform: none; }
.work__desc { color: var(--muted); font-size: 15px; margin: 6px 0 12px; padding-inline: 2px; }
.work .link-more { padding-inline: 2px; margin-top: auto; }
.work:hover .work__meta h3 { color: var(--accent); }
.work { display: flex; flex-direction: column; }
.works > .work:last-child:nth-child(3n+1) { grid-column: 2; }
.work__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.work__frame .mock { position: absolute; inset: 7% 7% 0; border-radius: 10px 10px 0 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); transition: transform .9s var(--ease); }
.work:hover .work__frame .mock { transform: translateY(-3%) scale(1.02); }
.work__frame .mock.mock--app { inset: 0; border-radius: 0; box-shadow: none; }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 2px 0; }
.work__meta h3 { font: 700 19px/1.3 var(--ff-d); }
.work__meta span { color: var(--muted); font-size: 14px; text-align: right; }
.work.is-hidden { display: none; }

/* --------------------------------------------------------------------------
   Таблиці
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 700 13px var(--ff-d); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp thead th.is-us { color: #fff; background: var(--accent); }
.cmp td.is-us { background: var(--accent-soft); font-weight: 700; }
.cmp td:first-child { font-weight: 600; }
.cmp a:hover { color: var(--accent); }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes::before { content: "✓"; color: var(--accent); font-weight: 800; }
.no { color: var(--muted); }
.no::before { content: "—"; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.acc { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.acc__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s; }
.acc__item.is-open { border-color: var(--accent); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; text-align: left; font: 700 clamp(16px, 1.3vw, 18px)/1.35 var(--ff-d); }
.acc__plus { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); transition: background-color .3s, transform .5s var(--ease); }
.acc__plus::before, .acc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.acc__plus::after { transform: rotate(90deg); }
.acc__item.is-open .acc__plus { background: var(--accent); color: #fff; transform: rotate(180deg); }
.acc__item.is-open .acc__plus::after { transform: rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 24px 22px; color: var(--muted); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }

/* --------------------------------------------------------------------------
   CTA + форма
   -------------------------------------------------------------------------- */

.cta {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r) + 6px); background: var(--block); color: var(--on-block);
  border: 1px solid var(--block-line);
  padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 70px);
}
.cta::before { content: ""; position: absolute; left: -20%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 31, 31, .22), transparent); pointer-events: none; }
.cta > * { position: relative; }
.cta .h2 { margin: 16px 0 18px; }
.cta .lead { color: rgba(255, 255, 255, .65); }
.cta__contacts { display: grid; gap: 4px; margin-top: 34px; }
.cta__contacts small { color: rgba(255, 255, 255, .5); font-size: 14px; margin-bottom: 8px; }
.cta__contacts a { padding-block: 6px; font: 700 clamp(18px, 1.8vw, 24px)/1.35 var(--ff-d); width: fit-content; transition: color .2s; }
.cta__contacts a:hover { color: var(--accent); }

.form { position: relative; display: grid; gap: 12px; align-content: start; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; height: 58px; padding: 22px 18px 8px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05); color: inherit; outline: none; appearance: none;
  transition: border-color .25s, background-color .25s;
}
.field textarea { height: 110px; resize: vertical; padding-top: 28px; }
.field select { cursor: pointer; }
.field select option { color: #0a0a0a; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: rgba(255, 255, 255, .5); pointer-events: none; transition: top .3s var(--ease), font-size .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: 9px; font-size: 12px; }
.field--select::after { content: ""; position: absolute; right: 22px; top: 25px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5; pointer-events: none; }
.field.is-error input { border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__foot { display: grid; gap: 12px; margin-top: 4px; }
.form__foot small a { text-decoration: underline; text-underline-offset: 2px; }
.form__foot small { font-size: 13px; color: rgba(255, 255, 255, .45); line-height: 1.4; }
.form__ok {
  position: absolute; inset: -6px; z-index: 2; border-radius: 16px;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px;
  background: var(--block); opacity: 0; visibility: hidden; transform: scale(.97);
  transition: opacity .35s, transform .5s var(--ease), visibility .35s;
}
.form__ok i { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; }
.form__ok i svg { width: 28px; height: 28px; color: #fff; }
.form__ok h3 { font: 800 26px var(--ff-d); }
.form__ok p { color: rgba(255, 255, 255, .6); max-width: 30ch; }
.form.is-sent .form__ok { opacity: 1; visibility: visible; transform: none; }

.form--light .field input, .form--light .field textarea, .form--light .field select { background: var(--surface); border-color: var(--line); }
.form--light .field input:focus, .form--light .field textarea:focus, .form--light .field select:focus { border-color: var(--accent); }
.form--light .field label, .form--light .form__foot small { color: var(--muted); }
.form--light .form__ok { background: var(--bg); }
.form--light .form__ok p { color: var(--muted); }

/* Модалка */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__box {
  position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r);
  background: #0e0e0e; color: #fff; border: 1px solid #262626;
  opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .35s, transform .6s var(--ease);
}
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box .h3 { margin: 12px 0 8px; font-size: 26px; }
.modal__box > p { color: rgba(255, 255, 255, .6); margin-bottom: 24px; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; transition: transform .4s var(--ease), background-color .25s; }
.modal__close:hover { transform: rotate(90deg); background: var(--accent); }
.modal__close svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Page hero (внутрішні сторінки)
   -------------------------------------------------------------------------- */

.page-hero { position: relative; overflow: hidden; padding: clamp(130px, 13vw, 170px) 0 clamp(40px, 5vw, 70px); text-align: center; }
.page-hero::after { content: ""; position: absolute; left: 50%; top: 30%; width: min(800px, 120vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
.page-hero .h1 { max-width: 20ch; }
.page-hero .lead { max-width: 660px; }
.page-hero--left { text-align: left; }
.page-hero--left .container { justify-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.page-hero--left .crumbs { justify-content: flex-start; }
.crumbs a:hover { color: var(--accent); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; width: 100%; }
.fact { padding: 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.fact span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 8px; }
.fact b { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--ff-d); letter-spacing: -.02em; }
.fact--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.fact--accent span { color: rgba(255, 255, 255, .8); }

.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px 60px; align-items: end; width: 100%; }
.page-hero__side { display: grid; gap: 24px; justify-items: start; }

/* включено */
.incl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.incl li { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; align-content: start; transition: border-color .3s; }
.incl li:hover { border-color: var(--accent); }
.incl li b { font: 800 22px var(--ff-d); color: var(--accent); }
.incl li h3 { font: 700 18px/1.3 var(--ff-d); }
.incl li p { color: var(--muted); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.tag { padding: 12px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; transition: border-color .25s, color .25s, transform .4s var(--ease); }
.tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tier--hit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier__hit { position: absolute; top: -12px; left: 30px; font: 700 12px var(--ff-d); padding: 5px 10px; border-radius: 7px; background: var(--accent); color: #fff; }
.tier h3 { font: 800 14px var(--ff-d); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; }
.tier__price { font: 800 clamp(34px, 3vw, 44px)/1 var(--ff-d); letter-spacing: -.03em; margin-bottom: 8px; }
.tier__price small { font: 600 15px var(--ff); color: var(--muted); letter-spacing: 0; }
.tier__note { font-size: 14px; color: var(--muted); margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tier ul { display: grid; gap: 10px; margin-bottom: 30px; }
.tier li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.tier li::before { content: "▸"; color: var(--accent); flex-shrink: 0; }
.tier .btn { margin-top: auto; }

/* Контакти */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); }
.c-list { display: grid; gap: 12px; align-content: start; }
.c-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.c-item span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.c-item b { font: 700 clamp(17px, 1.6vw, 21px)/1.3 var(--ff-d); }
.c-item i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; transition: background-color .3s, color .3s; }
.c-item i svg { width: 18px; height: 18px; }
a.c-item:hover { border-color: var(--accent); transform: translateX(4px); }
a.c-item:hover i { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Блог
   -------------------------------------------------------------------------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s, transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.post.is-hidden { display: none; }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 28px; min-height: 300px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.post__meta b { color: var(--accent); font-weight: 600; }
.post h3 { font: 700 19px/1.35 var(--ff-d); letter-spacing: -.01em; margin-bottom: 10px; transition: color .25s; }
.post:hover h3 { color: var(--accent); }
.post p { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.post .link-more { margin-top: auto; }

.post--featured { grid-column: 1 / -1; }
.post--featured .post__body { padding: clamp(28px, 4vw, 52px); min-height: 0; }
.post--featured h3, .post--featured p { max-width: 780px; }
.post .post__meta { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.post--featured h3 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; margin-bottom: 16px; }
.post--featured p { font-size: 17px; }

.cover {
  --c: #0a0a0a;
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--c); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px;
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000);
  mask-image: linear-gradient(120deg, transparent 30%, #000);
}
.cover__cat { position: relative; align-self: flex-start; font: 700 11px var(--ff-d); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.cover__big { position: relative; font: 800 clamp(26px, 2.6vw, 38px)/1.02 var(--ff-d); letter-spacing: -.03em; max-width: 12ch; transition: transform .7s var(--ease); }
.cover__big em { font-style: normal; color: #ff3b3b; }
.cover__ico { position: absolute; right: -10px; bottom: -14px; width: 46%; color: rgba(255, 255, 255, .08); transition: transform .9s var(--ease); }
.cover__ico svg { width: 100%; height: auto; stroke-width: 1; }
.post:hover .cover__ico { transform: rotate(-8deg) scale(1.06); }
.post:hover .cover__big { transform: translateY(-4px); }
.post--featured .cover__big { font-size: clamp(34px, 4vw, 58px); }

/* стаття */
.article-hero { padding: clamp(120px, 12vw, 160px) 0 clamp(30px, 4vw, 50px); }
.article-hero .crumbs { justify-content: flex-start; margin-bottom: 22px; }
.article-hero .post__meta { font-size: 14px; margin-bottom: 16px; }
.article-hero .h1 { font-size: clamp(30px, 4vw, 52px); max-width: 22ch; }
.article-hero .lead { margin-top: 20px; max-width: 70ch; }
.article-cover { border-radius: var(--r); aspect-ratio: 21 / 8; margin-bottom: clamp(36px, 5vw, 60px); padding: clamp(24px, 4vw, 44px); }
.article-cover .cover__big { font-size: clamp(30px, 5vw, 70px); max-width: 14ch; }
.article-cover .cover__ico { width: 30%; }

.article > * { min-width: 0; }
.article { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.toc { position: sticky; top: 110px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc .col-title { margin: 0 0 12px; font: 700 12px var(--ff-d); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px 7px 12px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-color: var(--accent); }

.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 800 clamp(24px, 2.4vw, 32px)/1.2 var(--ff-d); letter-spacing: -.02em; color: var(--ink); margin-top: 2em; scroll-margin-top: 110px; }
.prose h3 { font: 700 20px/1.3 var(--ff-d); color: var(--ink); margin-top: 1.6em; }
.prose p { margin-block: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 800 13px var(--ff-d); }
.prose .table-wrap { font-size: 15px; line-height: 1.5; }
.prose .cmp { min-width: 540px; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-weight: 500; color: var(--ink); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; border-radius: 16px; background: var(--block); color: var(--on-block); border: 1px solid var(--block-line); margin-block: 2em !important; }
.callout b { display: block; font: 800 20px/1.3 var(--ff-d); margin-bottom: 4px; }
.callout span { color: rgba(255, 255, 255, .65); font-size: 15px; line-height: 1.5; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 130px var(--gut) 60px; }
.nf b { display: block; font: 800 clamp(110px, 22vw, 260px)/.85 var(--ff-d); letter-spacing: -.06em; }
.nf b span { color: var(--accent); display: inline-block; animation: wob 3s var(--ease-2) infinite; }
@keyframes wob { 50% { transform: rotate(-12deg) translateY(-4%); } }

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.footer { padding: clamp(60px, 7vw, 90px) 0 28px; border-top: 1px solid var(--line); margin-top: clamp(30px, 5vw, 60px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: clamp(50px, 6vw, 80px); }
.footer .col-title { line-height: 24px; }
.footer__hours { color: var(--muted); font-size: 14px; }
.footer__brand p { color: var(--muted); max-width: 32ch; margin-bottom: 24px; }
.footer__brand { padding-top: 2px; }
.footer .col-title { margin: 0 0 16px; font: 700 12px var(--ff-d); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { font-weight: 500; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__logo { display: block; color: var(--ink); opacity: .9; }
.footer__logo svg { width: 100%; height: auto; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__bottom a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.is-in { opacity: 1; transform: none; }
.js .rv-scale { opacity: 0; transform: scale(.96); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.rv-scale.is-in { opacity: 1; transform: none; }
.js .hero-in > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.is-ready .hero-in > * { opacity: 1; transform: none; }
.is-ready .hero-in > :nth-child(2) { transition-delay: .08s; }
.is-ready .hero-in > :nth-child(3) { transition-delay: .16s; }
.is-ready .hero-in > :nth-child(4) { transition-delay: .24s; }
.is-ready .hero-in > :nth-child(5) { transition-delay: .32s; }
.is-ready .hero-in > :nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .rv, .rv-scale, .hero-in > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .svc-grid, .posts, .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .article { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 900px) {
  .packs, .cta, .contacts, .page-hero__grid, .post--featured, .offer150 { grid-template-columns: 1fr; }
  .offer150__shots { min-height: 0; aspect-ratio: 4 / 3.4; }
  .hstats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .tiers, .incl { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works > .work:last-child:nth-child(3n+1) { grid-column: auto; }
  .trust__avatars { border-right: 0; padding-right: 0; width: 100%; justify-content: center; }
  .article-cover { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .header__bar { height: 64px; }
  .logo svg { height: 18px; }
  .hero { padding-top: 110px; }
  .hero__cta .btn { width: 100%; }
  .svc-grid, .posts, .features, .steps, .facts, .works { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .pack__term { text-align: left; }
  .prose { font-size: 16.5px; }
  .callout .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Перегляд кейса у вбудованому вікні
   -------------------------------------------------------------------------- */

.case { position: fixed; inset: 0; z-index: 105; display: grid; place-items: center; padding: clamp(10px, 2vw, 28px); visibility: hidden; }
.case.is-open { visibility: visible; }
.case__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.case.is-open .case__bg { opacity: 1; }
.case__box {
  position: relative; display: flex; flex-direction: column;
  width: min(1240px, 100%); height: min(88vh, 900px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .35s, transform .6s var(--ease);
}
.case.is-open .case__box { opacity: 1; transform: none; }
.case__bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.case__dots { display: flex; gap: 6px; }
.case__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.case__dots i:first-child { background: var(--accent); }
.case__title { font: 700 15px var(--ff-d); }
.case__open { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.case__open svg { width: 14px; height: 14px; }
.case__close { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: background-color .25s, color .25s, transform .4s var(--ease); }
.case__close:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
.case__close svg { width: 14px; height: 14px; }
.case__frame { flex: 1; background: var(--bg-2); }
.case__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .case__box { height: 92vh; }
  .case__open { font-size: 0; gap: 0; }
  .case__open svg { width: 18px; height: 18px; }
}
