/* ==========================================================================
   studio — стилі
   ========================================================================== */

:root {
  --bg: #f2f0ec;
  --bg-soft: #eae7e1;
  --surface: #f8f7f4;
  --ink: #121211;
  --ink-2: #47463f;
  --mute: #77756e;
  --line: rgba(18, 18, 17, 0.12);

  --dark: #0e0e0d;
  --dark-2: #181816;
  --on-dark: #f2f0ec;
  --on-dark-mute: rgba(242, 240, 236, 0.58);
  --line-dark: rgba(242, 240, 236, 0.14);

  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
  --gutter: clamp(20px, 4.6vw, 64px);
  --maxw: 1360px;
  --section-y: clamp(64px, 9vw, 128px);
  --r-s: 6px;
  --r-m: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible,
.site-footer :focus-visible,
.cta-bar :focus-visible { outline-color: var(--on-dark); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Типографіка ---------- */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.display { font: 400 clamp(2.5rem, 5.4vw, 4.9rem) / 1.04 var(--font-head); letter-spacing: -0.035em; }
.display b { font-weight: 600; }
.display--md { font-size: clamp(2.2rem, 4.4vw, 4rem); }
.h2 { font: 400 clamp(2rem, 3.8vw, 3.4rem) / 1.08 var(--font-head); letter-spacing: -0.03em; }
.h2--md { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.h2--sm { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.h3 { font: 500 clamp(1.25rem, 1.7vw, 1.5rem) / 1.2 var(--font-head); letter-spacing: -0.02em; }
.lead { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.5; color: var(--ink-2); }
.note { margin-top: 32px; font-size: 14px; color: var(--mute); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  height: 52px; padding: 0 28px; border-radius: 999px; white-space: nowrap;
  font: 500 14px/1 var(--font); letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .icon { font-size: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a28; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; }
.btn--block { width: 100%; height: 54px; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.6em; font-size: 14px; font-weight: 500; transition: opacity 0.2s; }
.link-arrow .icon { font-size: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s var(--ease); }
.round--dark { background: var(--ink); color: #fff; }
.round--dark:hover { background: #2d2d2a; }
.round--outline { border: 1px solid var(--line); background: transparent; }
.round--outline:hover { border-color: var(--ink); }
.round:disabled { opacity: 0.35; cursor: default; }

/* ---------- Хедер ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(242, 240, 236, 0.94);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.logo { font: 300 clamp(26px, 6vw, 34px)/1 var(--font-head); letter-spacing: -0.03em; display: inline-block; white-space: nowrap; }
.logo__mark { height: 0.72em; width: auto; margin-right: 0.03em; overflow: visible; }
.logo__mark { filter: drop-shadow(0 0 0.12em rgba(224, 180, 106, 0.45)); transition: filter 0.4s var(--ease); }
.logo__edge, .logo__face { stroke-width: 22; stroke-linejoin: round; }
.logo__edge { fill: url(#logo-edge); stroke: url(#logo-edge); transform: translate(16px, 24px); }
.logo__face { fill: url(#logo-face); stroke: url(#logo-face); }
.site-footer .logo__face { fill: url(#logo-face-light); stroke: url(#logo-face-light); }
.logo__plate { transition: transform 0.45s var(--ease); }
.logo:hover .logo__mark { filter: drop-shadow(0 0 0.22em rgba(224, 180, 106, 0.75)); }
.logo:hover .logo__plate:nth-of-type(1) { transform: translate(-14px, -10px); }
.logo:hover .logo__plate:nth-of-type(3) { transform: translate(14px, -18px); }
/* Збирання знака при завантаженні: пластини прилітають з різних боків і клацають у «W» */
.site-header .logo__plate { transform-box: fill-box; transform-origin: center; animation: logo-assemble 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.15) backwards; }
.site-header .logo__plate:nth-of-type(1) { --from: translate(-320px, -260px) rotate(-75deg) scale(0.6); animation-delay: 0.08s; }
.site-header .logo__plate:nth-of-type(2) { --from: translate(40px, 420px) rotate(120deg) scale(0.5); animation-delay: 0.16s; }
.site-header .logo__plate:nth-of-type(3) { --from: translate(360px, -300px) rotate(160deg) scale(0.4); animation-delay: 0.24s; }
.site-header .logo__mark { animation: logo-flash 0.7s ease-out 0.75s backwards; }
.site-header .logo__text { display: inline-block; animation: logo-text 0.5s var(--ease) 0.65s backwards; }
@keyframes logo-assemble {
  0% { opacity: 0; transform: var(--from); }
  35% { opacity: 1; }
  78% { transform: translate(0, 0) rotate(0) scale(1.08); }
  100% { opacity: 1; transform: none; }
}
@keyframes logo-flash {
  0% { filter: drop-shadow(0 0 0.12em rgba(224, 180, 106, 0.45)); }
  30% { filter: drop-shadow(0 0 0.4em rgba(240, 196, 120, 1)); }
  100% { filter: drop-shadow(0 0 0.12em rgba(224, 180, 106, 0.45)); }
}
@keyframes logo-text { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-0.25em); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo__plate, .logo__mark { transition: none; }
  .site-header .logo__plate, .site-header .logo__mark, .site-header .logo__text { animation: none; }
}
.logo__text b { font-weight: 700; }
.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: clamp(20px, 2.8vw, 40px); font-size: 14px; }
.nav a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink-2); transition: color 0.2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; font-size: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: inline-flex; }

/* ---------- Hero (головна) ---------- */
.hero { position: relative; min-height: max(620px, 100svh); display: flex; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0 0 0 36%; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(242, 240, 236, 0.85) 12%, rgba(242, 240, 236, 0) 52%); }

/* ---------- Hero: телефон із живим чат-ботом ---------- */
.hero__media--phone { display: grid; place-items: center; padding-top: var(--header-h); }
.hero__media--phone::before, .hero__media--phone::after { display: none; }
.hphone { position: relative; translate: 10% 0; rotate: -3deg; animation: hphone-float 7s ease-in-out infinite; }
.hphone::before { content: ""; position: absolute; inset: -18% -45%; z-index: -1; background: radial-gradient(closest-side, rgba(224, 180, 106, 0.32), rgba(224, 180, 106, 0.08) 60%, transparent 75%); }
.hphone__device { width: 300px; height: 620px; padding: 11px; border-radius: 50px; background: linear-gradient(145deg, #2c2b28, #121211 45%); box-shadow: inset 0 0 0 1.5px #3b3a36, 0 60px 90px -45px rgba(18, 18, 17, 0.6), 0 30px 60px -30px rgba(184, 132, 62, 0.4); }
.hphone__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 40px; overflow: hidden; background: #f4f1eb; font-family: var(--font); color: var(--ink); }
.hphone__status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 28px; font: 600 14px/1 var(--font); flex: none; }
.hphone__island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 99px; background: #0b0b0a; }
.hphone__sys { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.hphone__sys i { width: 3px; border-radius: 1px; background: var(--ink); }
.hphone__sys i:nth-child(1) { height: 5px; } .hphone__sys i:nth-child(2) { height: 8px; } .hphone__sys i:nth-child(3) { height: 11px; }
.hphone__head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 12px; border-bottom: 1px solid rgba(18, 18, 17, 0.07); background: rgba(255, 255, 255, 0.6); flex: none; }
.hphone__ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); }
.hphone__ava svg { width: 24px; }
.hphone__who { display: grid; gap: 1px; }
.hphone__who b { font-size: 14.5px; font-weight: 600; }
.hphone__who small { font-size: 12px; color: #2f9e61; }
.hphone__who small.is-typing { color: #8a6326; }
.hphone__msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 12px 6px; overflow: hidden; }
.hmsg { max-width: 84%; padding: 9px 12px; border-radius: 17px; font-size: 13.5px; line-height: 1.4; animation: hmsg-in 0.38s var(--ease) both; }
.hmsg--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(18, 18, 17, 0.06); }
.hmsg--me { align-self: flex-end; background: var(--ink); color: #f2f0ec; border-bottom-right-radius: 6px; }
.hmsg--contact { display: flex; align-items: center; gap: 8px; }
.hmsg--contact svg { color: #e0b46a; font-size: 15px; }
.hmsg--typing { display: flex; gap: 4px; padding: 12px 14px; }
.hmsg--typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9b5ac; animation: htyping 1s infinite; }
.hmsg--typing i:nth-child(2) { animation-delay: 0.15s; } .hmsg--typing i:nth-child(3) { animation-delay: 0.3s; }
.hchips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; animation: hmsg-in 0.38s var(--ease) both; }
.hchip { padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(201, 149, 76, 0.6); background: #fff; color: #8a6326; font-size: 12.5px; font-weight: 500; transition: background 0.25s, color 0.25s, transform 0.25s var(--ease); }
.hchip.is-picked { background: #c9954c; border-color: #c9954c; color: #fff; transform: scale(0.95); }
.hphone__msgs.is-clearing > * { opacity: 0; transform: translateY(-10px); transition: opacity 0.4s, transform 0.4s; }
.hphone__input { display: flex; align-items: center; justify-content: space-between; height: 42px; margin: 6px 10px 16px; padding: 0 5px 0 16px; border-radius: 99px; background: #fff; color: var(--mute); font-size: 13px; flex: none; }
.hphone__input i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #f2f0ec; font-size: 14px; font-style: normal; }
.hphone__crm { position: absolute; left: -88px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -24px rgba(18, 18, 17, 0.45); rotate: 3deg; opacity: 0; transform: translateY(16px) scale(0.94); transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
.hphone__crm.is-in { opacity: 1; transform: none; }
.hphone__crm-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #f3d39a, #c9954c); color: var(--ink); font-size: 18px; }
.hphone__crm-text { display: grid; gap: 2px; }
.hphone__crm-text b { font-size: 14px; font-weight: 600; }
.hphone__crm-text small { font-size: 12px; color: var(--mute); }
.hphone__badge { position: absolute; right: -58px; top: 92px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--ink); color: #f3d39a; font-size: 12.5px; font-weight: 500; rotate: 3deg; box-shadow: 0 18px 36px -18px rgba(18, 18, 17, 0.6); }
.hphone__badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ccf7e; box-shadow: 0 0 0 3px rgba(60, 207, 126, 0.25); }
@keyframes hmsg-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes htyping { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes hphone-float { 0%, 100% { translate: 10% 0; } 50% { translate: 10% -10px; } }
@media (max-height: 880px) and (min-width: 861px) { .hphone__device { zoom: 0.8; } }
@media (max-height: 720px) and (min-width: 861px) { .hphone__device { zoom: 0.7; } }
@media (prefers-reduced-motion: reduce) { .hphone, .hmsg, .hchips, .hmsg--typing i { animation: none; } .hphone__crm { transition: none; } }
.hero__inner { display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 4vw, 56px); padding-top: calc(var(--header-h) + clamp(20px, 3vw, 40px)); padding-bottom: clamp(24px, 3vw, 40px); }
.hero__copy .lead { margin-top: 28px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 40px; }
.hero .eyebrow { margin-bottom: 24px; }

.stats { display: flex; flex-wrap: wrap; gap: 20px 0; }
.stats li { padding: 0 clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); display: grid; gap: 6px; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { font: 500 clamp(1.4rem, 2.2vw, 2rem) / 1 var(--font-head); letter-spacing: -0.025em; }
.stats span { font-size: 12px; color: var(--mute); line-height: 1.35; }
.stats--compact { margin-top: 40px; }
.stats--compact li { padding-inline: clamp(14px, 2vw, 28px); }

/* ---------- Секції ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--top-flush { padding-top: 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark-mute); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.section__head--center { align-items: flex-start; }
.section__head--center .link-arrow { margin-top: 8px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section--dark .link-arrow { color: var(--on-dark); }
.section__head .link-arrow { padding-bottom: 8px; }

/* Плитки послуг */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-s); aspect-ratio: 1.3 / 1; display: block; isolation: isolate; background: var(--dark-2); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 14, 13, 0.62) 0%, rgba(14, 14, 13, 0.08) 45%, rgba(14, 14, 13, 0.25) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile__num { position: absolute; left: 22px; top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.tile__title { position: absolute; left: 22px; right: 22px; top: 46px; font: 500 clamp(1.05rem, 1.35vw, 1.3rem) / 1.2 var(--font-head); letter-spacing: -0.015em; color: #fff; }
.tile__go { position: absolute; left: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); font-size: 18px; transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s; }
.tile:hover .tile__go { transform: translateX(6px); background: #fff; color: var(--ink); }

/* Кроки */
.steps-section { background: var(--surface); }
.steps-section__grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 2.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.steps-section__intro .h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.steps-section__note { margin-top: 32px; font-size: 14px; color: var(--mute); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); min-height: 340px; transition: border-color 0.25s, transform 0.4s var(--ease), box-shadow 0.4s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(18, 18, 17, 0.35); border-color: rgba(18, 18, 17, 0.25); }
.step__num { font-size: 13px; color: var(--mute); }
.step__title { margin: 14px 0 22px; font: 500 clamp(1.15rem, 1.6vw, 1.45rem) / 1.2 var(--font-head); letter-spacing: -0.02em; }
.step__go { margin-top: auto; padding-top: 18px; font-size: 20px; width: fit-content; transition: transform 0.25s var(--ease); }
.step:hover .step__go { transform: translateX(6px); }
.step__go::after { content: ""; position: absolute; inset: 0; }

.mini { position: relative; border-radius: 4px; overflow: hidden; height: 112px; background: #fff; border: 1px solid var(--line); }
.mini--brief { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.mini--brief b { font-size: 11px; font-weight: 600; }
.mini--brief i { display: block; height: 6px; border-radius: 3px; background: var(--bg-soft); }
.mini--brief i:nth-of-type(2) { width: 60%; }
.mini__bubble { position: absolute; right: 12px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; }
.mini--photo { border: 0; background: var(--dark); }
.mini--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.mini--site { padding: 8px; display: grid; gap: 6px; grid-template-rows: auto 1fr; }
.mini__bar { display: flex; gap: 4px; }
.mini__bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.mini__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; min-height: 0; }
.mini__grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.mini__grid img:first-child { grid-row: span 2; }

/* Блок для державних */
.split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: clamp(460px, 48vw, 700px); background: var(--bg); }
.split__media { position: relative; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); }
.split__body .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.feats { display: flex; flex-wrap: wrap; gap: 24px 0; margin-bottom: clamp(32px, 4vw, 48px); }
.feats li { display: grid; gap: 14px; align-content: start; padding: 0 clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink-2); min-width: 120px; }
.feats li:first-child { padding-left: 0; border-left: 0; }
.feats .icon { font-size: 26px; color: var(--ink); stroke-width: 1.25; }
.feats--row { margin: 40px 0 36px; }
.feats--row li:first-child { padding-left: 0; }

/* Кейси */
.cases { display: grid; gap: clamp(20px, 2vw, 28px) 16px; }
.cases--home { grid-template-columns: repeat(4, 1fr); }
.cases--page { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.case { display: grid; gap: 14px; align-content: start; cursor: pointer; }
.case__img { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.case:hover .case__img img { transform: scale(1.05); }
.case__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case__title { font: 500 1rem/1.3 var(--font-head); letter-spacing: -0.01em; }
.case__arrow { display: grid; place-items: center; font-size: 18px; flex: none; transition: transform 0.3s var(--ease); }
.case:hover .case__arrow { transform: translateX(5px); }
.case__meta { font-size: 12.5px; color: var(--mute); margin-top: -8px; }
.case__meta i { font-style: normal; margin-inline: 4px; }
.section--dark .case__meta { color: var(--on-dark-mute); }
.cases--page .case__img { aspect-ratio: 16 / 10; }
.cases--page .case__title { font-size: 1.1rem; }

.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.4); }
.chip-btn { height: 38px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.chip-btn:hover { color: var(--ink); }
.chip-btn.is-active { background: var(--ink); color: #fff; }
.empty { padding: 48px 0; color: var(--mute); }
.case.is-hiding { opacity: 0; transform: translateY(8px); }

/* CTA з зображенням */
.cta-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); }
.cta-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; z-index: -2; }
.cta-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(242, 240, 236, 0.96) 0%, rgba(242, 240, 236, 0.85) 30%, rgba(242, 240, 236, 0) 62%); }
.cta-hero__inner { display: flex; align-items: center; gap: 32px; min-height: clamp(320px, 30vw, 440px); padding-block: 56px; }
.cta-hero .eyebrow { margin-bottom: 22px; }
.cta-hero .btn { margin-top: 32px; }

/* Темна смуга CTA */
.cta-bar { background: var(--dark); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.cta-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(28px, 3.4vw, 44px); }
.cta-bar__text { font: 400 clamp(1.3rem, 2vw, 1.75rem) / 1.2 var(--font-head); letter-spacing: -0.02em; }

/* ---------- Футер ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); padding-top: clamp(48px, 5vw, 72px); overflow: hidden; }
.site-footer__bg { position: absolute; inset: 0; z-index: -1; background: url("../img/dark-stone.jpg") center bottom / cover; opacity: 0.55; }
.site-footer__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--dark) 20%, rgba(14, 14, 13, 0.5) 100%); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 32px; align-items: start; }
.footer__brand p { margin: 20px 0 24px; color: var(--on-dark-mute); font-size: 14px; line-height: 1.5; }
.footer__social { display: flex; gap: 14px; font-size: 18px; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); transition: background-color 0.25s, color 0.25s; }
.footer__social a:hover { background: var(--on-dark); color: var(--ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; }
.footer__nav a { color: var(--on-dark-mute); transition: color 0.2s; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__contact { display: grid; gap: 14px; justify-items: end; font-size: 14px; text-align: right; }
.footer__contact > a:first-child { font-weight: 500; }
.footer__contact .link-arrow { color: var(--on-dark); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 72px); padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-mute); }
.footer__bottom a:hover { color: var(--on-dark); }

/* ---------- Внутрішні сторінки ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 72px)) 0 clamp(40px, 5vw, 72px); }
.page-hero__inner { position: relative; }
.page-hero__inner--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-hero__note { font-size: 14px; color: var(--mute); line-height: 1.5; text-align: left; }
.page-hero__note b { font-weight: 500; color: var(--ink); }
.page-hero--media { min-height: clamp(520px, 62vh, 700px); display: flex; align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero--media .page-hero__inner { width: 100%; }
.page-hero__media { position: absolute; inset: 0 0 0 34%; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(242, 240, 236, 0.8) 14%, rgba(242, 240, 236, 0) 55%); }
.page-hero__copy { max-width: 560px; }
.crumb { font-size: 12.5px; color: var(--mute); margin-bottom: 28px; display: flex; gap: 6px; }
.crumb a:hover { color: var(--ink); }
.page-hero--light .page-hero__media img { object-position: 50% 50%; }

/* Приклади / карусель */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-s); position: relative; outline-offset: 4px; overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel__track.is-animating, .carousel__track.is-dragging { scroll-snap-type: none; }
.carousel__track.is-dragging { cursor: grabbing; }
.carousel__track img { -webkit-user-drag: none; pointer-events: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__ctrl { display: flex; align-items: center; gap: 12px; }
.carousel__count { font-size: 14px; color: var(--mute); margin-right: 8px; font-variant-numeric: tabular-nums; }
.slide { position: relative; flex: 0 0 min(84%, 1040px); contain: layout paint; scroll-snap-align: start; aspect-ratio: 16 / 8; min-height: 320px; border-radius: var(--r-s); overflow: hidden; color: #fff; isolation: isolate; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide__shade { position: absolute; inset: 0; z-index: -1; }
.slide__shade--blue { background: linear-gradient(100deg, rgba(8, 28, 68, 0.94) 0%, rgba(10, 36, 86, 0.78) 45%, rgba(10, 36, 86, 0.25) 100%); }
.slide__shade--dark { background: linear-gradient(100deg, rgba(14, 14, 13, 0.92) 0%, rgba(14, 14, 13, 0.7) 45%, rgba(14, 14, 13, 0.2) 100%); }
.slide__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 2vw, 24px) clamp(18px, 3vw, 36px); font-size: 12px; }
.slide__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.slide__nav { display: flex; gap: 20px; opacity: 0.8; }
.slide__nav i { font-style: normal; }
.slide__pill { padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; }
.slide__body { position: absolute; left: clamp(18px, 3.4vw, 44px); bottom: clamp(18px, 3vw, 40px); right: 20px; }
.slide__body h3 { font: 400 clamp(1.7rem, 3.4vw, 3rem) / 1.08 var(--font-head); letter-spacing: -0.03em; margin-bottom: clamp(16px, 2vw, 28px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); font-size: 12px; }
.chips--light li { border-color: var(--line); color: var(--ink-2); }

.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.also__item { display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }
.also__item img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: 4px; transition: transform 0.8s var(--ease); }
.also__item { overflow: hidden; }
.also__item:hover img { transform: scale(1.04); }
.also__item span { display: block; transition: color 0.2s; }
.also__item:hover span { color: var(--ink); }
.also__item img { transform-origin: center; }
.also__item { isolation: isolate; }
.also__item > img { margin-bottom: 0; }

/* Про нас */
.principles { padding-block: clamp(48px, 6vw, 88px); }
.principles .h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.principles__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.principles__list li { display: grid; gap: 14px; align-content: start; padding: 4px clamp(18px, 2.4vw, 36px); border-left: 1px solid var(--line-dark); }
.principles__list li:first-child { padding-left: 0; border-left: 0; }
.principles__list .icon { font-size: 28px; stroke-width: 1.25; margin-bottom: 10px; }
.principles__list h3 { font: 500 1.05rem/1.3 var(--font-head); letter-spacing: -0.01em; }
.principles__list p { font-size: 14px; line-height: 1.55; color: var(--on-dark-mute); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(28px, 3vw, 44px); }
.trust li { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 24px 12px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.trust .icon { font-size: 40px; color: var(--ink); stroke-width: 1.1; }

/* Процес */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.flow__step { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); scroll-margin-top: calc(var(--header-h) + 24px); }
.flow__step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.flow__img { margin-top: auto; padding-top: 12px; }
.flow__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.flow__img--dark img { filter: brightness(0.9); }
.flow__arrow { display: grid; place-items: center; font-size: 22px; color: var(--mute); }
.faq-wrap > * { max-width: 880px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font: 500 1.05rem/1.35 var(--font-head); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 15px; max-width: 70ch; }

/* Тарифи */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.4); }
.tab { height: 38px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plans:not([hidden]) { animation: fade-up 0.45s var(--ease) both; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.25s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(18, 18, 17, 0.4); border-color: rgba(18, 18, 17, 0.25); }
.plan__name { font: 500 1.35rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.plan__kind { font-size: 13.5px; color: var(--mute); }
.plan__price { margin-top: 22px; font: 500 clamp(1.6rem, 2.3vw, 2.1rem) / 1.05 var(--font-head); letter-spacing: -0.03em; }
.plan__term { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.plan__term .icon { font-size: 16px; color: var(--mute); }
.plan__kind { margin-bottom: 0; }
.checks { margin-top: 12px; }
.checks { display: grid; gap: 12px; margin-bottom: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { font-size: 16px; margin-top: 3px; color: var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Контакти */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(32px, 5vw, 72px)) 0 clamp(64px, 8vw, 112px); min-height: 100svh; display: flex; align-items: center; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; opacity: 0.55; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242, 240, 236, 0.35) 0%, var(--bg) 85%), linear-gradient(0deg, rgba(242, 240, 236, 0) 0%, var(--bg) 100%); }
.contact__grid { display: grid; grid-template-columns: 1fr minmax(340px, 480px); gap: clamp(32px, 6vw, 112px); align-items: center; }
.contact__list { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.contact__list li { display: flex; gap: 18px; align-items: center; }
.contact__list .icon { font-size: 26px; stroke-width: 1.25; color: var(--ink-2); }
.contact__list a { font-size: 1.05rem; font-weight: 500; transition: opacity 0.2s; }
.contact__list a:hover { opacity: 0.65; }
.contact__list small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.form-card { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--r-m); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 70px -40px rgba(18, 18, 17, 0.45); scroll-margin-top: calc(var(--header-h) + 24px); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14.5px; transition: border-color 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #a5a39c; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(18, 18, 17, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 17, 0.08); }
.field [aria-invalid="true"] { border-color: #b4372b; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 55, 43, 0.14); }
.field__error { font-size: 12.5px; color: #b4372b; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; display: block; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #a5a39c; }
.select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 16px; color: var(--mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 12px; color: var(--mute); text-align: center; }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-done { display: grid; gap: 14px; justify-items: start; padding-block: 12px; }
.form-done:focus { outline: none; }
.form-done__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; }
.form-done p { color: var(--ink-2); margin-bottom: 8px; }

/* 404 */
.notfound { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound__bg { position: absolute; inset: 0; z-index: -1; }
.notfound__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.notfound__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(242, 240, 236, 0.88) 32%, rgba(242, 240, 236, 0) 70%); }
.notfound__inner { display: grid; justify-items: start; gap: 18px; }
.notfound__code { font: 300 clamp(5rem, 14vw, 10rem) / 0.9 var(--font-head); letter-spacing: -0.05em; margin-bottom: 8px; }
.notfound .btn { margin-top: 12px; }

/* Текстові сторінки */
.prose > * { max-width: 760px; }
.prose h2 { font: 500 1.3rem/1.3 var(--font-head); letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* Модальне вікно кейсу */
.modal { border: 0; padding: 0; width: min(920px, calc(100% - 32px)); max-height: calc(100svh - 32px); border-radius: var(--r-m); background: var(--bg); color: var(--ink); overflow: auto; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.modal::backdrop { background: rgba(14, 14, 13, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(242, 240, 236, 0.9); }
.modal__img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3vw, 40px); padding-top: clamp(48px, 4vw, 56px); }
.modal__meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.modal__desc { color: var(--ink-2); font-size: 15px; }
.modal__tags { margin-bottom: 12px; }

/* ---------- Анімації появи ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .tiles, .cases--home { grid-template-columns: repeat(2, 1fr); }
  .svc-cards { grid-template-columns: 1fr; }
  .steps-section__grid { grid-template-columns: 1fr; }
  .steps-section__intro .h2 br { display: none; }
  .cases--page { grid-template-columns: repeat(2, 1fr); }
  .principles__list { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .principles__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__nav { grid-column: 1 / -1; order: 3; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); padding: 4px 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .header__cta { display: none; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; left: 0; transform: none;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 28px;
    background: var(--bg); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
    max-height: calc(100svh - var(--header-h)); overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 24px; }
  body.menu-open .site-header { background: var(--bg); }

  .hero { min-height: 0; display: block; }
  .hero__inner { padding-bottom: 0; gap: 36px; }
  .hero__media { position: relative; inset: auto; order: 3; height: 340px; margin-top: 24px; }
  .hero__media--phone { height: auto; padding: 8px 0 56px; }
  .hphone { translate: 0 0; animation: none; }
  .hphone__device { zoom: 0.8; }
  .hphone__crm { left: -20px; bottom: -40px; }
  .hphone__badge { right: -12px; top: -18px; }
  .hero { display: flex; flex-direction: column; }
  .hero__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(242, 240, 236, 0) 40%); }
  .hero__media img { object-position: 65% 50%; }
  .stats li { padding-inline: 18px; }

  .split { grid-template-columns: 1fr; }
  .split__media { height: 340px; }
  .cta-hero::after { background: linear-gradient(180deg, rgba(242, 240, 236, 0.95) 0%, rgba(242, 240, 236, 0.7) 60%, rgba(242, 240, 236, 0.35) 100%); }
  .cta-bar__inner { flex-direction: column; align-items: flex-start; }

  .page-hero--media { display: block; min-height: 0; padding-bottom: 0; }
  .page-hero--media .page-hero__inner { padding-bottom: 28px; }
  .page-hero__media { position: relative; inset: auto; height: 300px; order: 2; }
  .page-hero--media { display: flex; flex-direction: column; }
  .page-hero__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(242, 240, 236, 0) 35%); }
  .page-hero__inner--split { flex-direction: column; align-items: flex-start; }

  .slide { flex-basis: 92%; aspect-ratio: auto; min-height: 340px; }
  .slide__nav { display: none; }
  .also { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .trust { grid-template-columns: repeat(2, 1fr); }

  .contact { min-height: 0; align-items: flex-start; }
  .contact__grid { grid-template-columns: 1fr; }
  .notfound__bg::after { background: linear-gradient(180deg, rgba(242, 240, 236, 0.92) 0%, rgba(242, 240, 236, 0.75) 100%); }
  .modal__inner { grid-template-columns: 1fr; }
  .modal__img { min-height: 220px; max-height: 280px; }
}

@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 11; }
  .cases--home, .cases--page { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { gap: 12px; }
  .stats { gap: 16px 0; }
  .stats li { padding-inline: 14px; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles__list { grid-template-columns: 1fr; }
  .principles__list li { padding-left: 0; border-left: 0; }
  .feats { gap: 20px 0; }
  .feats li { min-width: 0; padding-inline: 14px; }
  .feats--row li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact { justify-items: start; text-align: left; }
  .filters, .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; border-radius: 999px; scrollbar-width: none; }
  .filters::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .chip-btn, .tab { flex: none; }
  .carousel__ctrl { margin-top: 4px; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Підказки каруселі */
.carousel__hint { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-size: 13px; color: var(--ink-2); transition: opacity 0.4s, visibility 0.4s; }
.carousel__hint .icon { animation: nudge 1.4s var(--ease) infinite; }
.carousel__hint.is-gone { opacity: 0; visibility: hidden; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.carousel__edge { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #fff; color: var(--ink); box-shadow: 0 8px 28px -8px rgba(0, 0, 0, 0.45); transition: opacity 0.25s, transform 0.25s var(--ease), background-color 0.2s, color 0.2s; }
.carousel__edge:hover { background: var(--ink); color: #fff; }
.carousel__edge--next { right: 14px; }
.carousel__edge--prev { left: 14px; }
.carousel__edge:disabled { opacity: 0; pointer-events: none; transform: scale(0.8); }
.carousel__edge--next:not(:disabled) .icon { animation: nudge 1.6s var(--ease) infinite; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width 0.35s var(--ease), background-color 0.25s; }
.carousel__dot.is-active { width: 28px; background: var(--ink); }
.carousel::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 72px; z-index: 2; pointer-events: none; border-radius: 0 var(--r-s) var(--r-s) 0; background: linear-gradient(90deg, rgba(242, 240, 236, 0), rgba(242, 240, 236, 0.9)); transition: opacity 0.3s; }
.carousel.at-end::after { opacity: 0; }
@media (max-width: 860px) {
  .carousel__edge { width: 44px; height: 44px; margin-top: -22px; }
  .carousel__edge--next { right: 8px; } .carousel__edge--prev { left: 8px; }
}
@media (hover: none) { .carousel__edge { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel__hint .icon, .carousel__edge .icon { animation: none !important; } }

/* Світлий градієнт під навігацією поверх фото */
.hero__media::before, .page-hero__media::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; background: linear-gradient(180deg, rgba(242, 240, 236, 0.9), rgba(242, 240, 236, 0)); pointer-events: none; }
.trust { margin-bottom: 8px; }

/* Підписи біля головних кнопок */
.cta-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cta-bar__note { margin-top: 6px; font-size: 13px; color: var(--on-dark-mute); }
.steps-section__more { margin-top: 18px; }

/* ---------- Бриф ---------- */
.brief { border: 0; padding: 0; margin: auto; width: min(720px, calc(100% - 32px)); max-height: calc(100svh - 32px); border-radius: var(--r-m); background: var(--bg); color: var(--ink); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.brief::backdrop { background: rgba(14, 14, 13, 0.62); }
.brief[open] { animation: modal-in 0.35s var(--ease); display: block; }
.brief__panel { display: flex; flex-direction: column; max-height: calc(100svh - 32px); }
.brief__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 14px clamp(20px, 3vw, 36px); font-size: 13px; color: var(--mute); }
.brief__bar { height: 3px; background: var(--line); }
.brief__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.45s var(--ease); }
.brief__form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.brief__body { overflow: auto; padding: clamp(22px, 3vw, 36px); display: grid; gap: 26px; align-content: start; flex: 1; }
.brief__intro h2 { outline: none; }
.brief__intro p { margin-top: 8px; color: var(--mute); font-size: 14.5px; }
.brief__chip { display: inline-block; margin-top: 12px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; }
.brief__error { padding: 0 clamp(22px, 3vw, 36px); min-height: 0; color: #b4372b; font-size: 13.5px; }
.brief__error:empty { display: none; }
.brief__error a { text-decoration: underline; }
.brief__foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(22px, 3vw, 36px) clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); }
.brief__foot .btn:only-of-type, .brief__foot [data-next] { margin-left: auto; }
.brief__foot [data-back][hidden] + [data-next] { margin-left: auto; }
.brief__done { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 48px); }
.brief__done:focus { outline: none; }
.brief__done p { color: var(--ink-2); margin-bottom: 8px; }

.bf { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.bf__legend { padding: 0; }
.bf__label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.opts--compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opt { position: relative; display: block; height: 100%; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__body { position: relative; display: flex; align-items: center; gap: 14px; height: 100%; min-height: 72px; padding: 16px 46px 16px 16px; border: 1px solid rgba(18, 18, 17, 0.08); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(18, 18, 17, 0.04), 0 8px 20px -14px rgba(18, 18, 17, 0.22); transition: border-color 0.2s, box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.opt:hover .opt__body { border-color: rgba(18, 18, 17, 0.16); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(18, 18, 17, 0.04), 0 16px 30px -16px rgba(18, 18, 17, 0.32); }
.opt input:checked + .opt__body { border-color: var(--ink); transform: none; box-shadow: 0 0 0 1px var(--ink), 0 14px 30px -18px rgba(18, 18, 17, 0.4); }
.opt input:focus-visible + .opt__body { outline: 2px solid var(--ink); outline-offset: 3px; }
.opt__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(224, 180, 106, 0.16); color: #8a6326; font-size: 18px; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.opt:hover .opt__icon { transform: scale(1.06); }
.opt input:checked + .opt__body .opt__icon { background: linear-gradient(135deg, #f3d39a, #c9954c); color: var(--ink); box-shadow: 0 6px 14px -6px rgba(184, 132, 62, 0.7); }
.opt__text { display: grid; gap: 3px; font-size: 15px; line-height: 1.3; }
.opt__text b { font-weight: 600; letter-spacing: -0.005em; }
.opt__text small { color: var(--mute); font-size: 12.5px; line-height: 1.4; }
.opt__tick { position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #f3d39a; font-size: 13px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.25s var(--ease); }
.opt input:checked + .opt__body .opt__tick { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .opt__body, .opt__icon { transition: none; } .opt:hover .opt__body, .opt:hover .opt__icon { transform: none; } }

@media (max-width: 600px) {
  .brief { width: 100%; max-width: none; height: 100svh; max-height: none; border-radius: 0; margin: 0; }
  .brief__panel { height: 100svh; max-height: none; }
  .opts { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .brief__done { align-content: center; min-height: 60svh; }
}


/* ---------- Випадне меню «Послуги» ---------- */
.nav__group { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__toggle { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; color: var(--ink-2); transition: transform 0.25s var(--ease), color 0.2s; }
.nav__toggle:hover { color: var(--ink); }
.nav__group.is-open .nav__toggle, .nav__group:hover .nav__toggle { transform: rotate(180deg); }
.nav__menu { position: absolute; left: -16px; top: calc(100% + 10px); min-width: 270px; padding: 8px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -24px rgba(18, 18, 17, 0.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; z-index: 5; }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu, .nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav .nav__menu a { padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.nav .nav__menu a:hover { background: var(--bg-soft); color: var(--ink); }
.nav .nav__menu a::after { display: none !important; }

/* ---------- Автоматизація та CRM ---------- */
.page-hero .lead { margin-top: 20px; max-width: 46ch; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); scroll-margin-top: calc(var(--header-h) + 24px); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(18, 18, 17, 0.4); border-color: rgba(18, 18, 17, 0.25); }
.svc-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; }
.svc-card > p { color: var(--ink-2); font-size: 14.5px; }
.svc-card .checks { margin: 6px 0 24px; padding-top: 18px; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--on-dark); border-radius: var(--r-m); }
.callout p { margin-top: 10px; color: var(--on-dark-mute); max-width: 62ch; font-size: 15px; }
.callout .btn--dark { background: var(--on-dark); color: var(--ink); }
.callout .btn--dark:hover { background: #fff; }
.callout--soft { margin-top: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 20px 24px; }
.callout--soft p { color: var(--mute); margin-top: 4px; font-size: 14px; }
.callout--soft b { font-weight: 500; }
.callout--soft .btn { flex: none; }

@media (max-width: 860px) {
  .nav__group { display: block; }
  .nav__toggle { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 0 0 8px 14px; background: none; border: 0; box-shadow: none; }
  .nav__menu::before { display: none; }
  .nav .nav__menu a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav .nav__menu a:hover { background: none; }
  .callout { flex-direction: column; align-items: flex-start; }
}

/* ---------- Автоматизація на головній ---------- */
.auto-home { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-y); background: var(--dark); color: var(--on-dark); }
.auto-home__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.55; }
.auto-home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 14, 13, 0.94) 0%, rgba(14, 14, 13, 0.7) 55%, rgba(14, 14, 13, 0.55) 100%); }
.auto-home__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.auto-home .eyebrow { color: var(--on-dark-mute); }
.auto-home .lead { margin-top: 24px; color: var(--on-dark-mute); max-width: 52ch; }
.auto-home__list { display: grid; gap: 18px; margin: clamp(28px, 3vw, 40px) 0; }
.auto-home__list li { display: flex; gap: 16px; align-items: flex-start; font-size: 14px; color: var(--on-dark-mute); line-height: 1.45; }
.auto-home__list .icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); stroke-width: 1.4; }
.auto-home__list b { display: block; font-weight: 500; font-size: 15px; color: var(--on-dark); margin-bottom: 2px; }
.auto-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.auto-home .link-arrow { color: var(--on-dark); }

.auto-feed { background: rgba(24, 24, 22, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: clamp(20px, 2.4vw, 32px); }
.auto-feed__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); font-size: 12.5px; color: var(--on-dark-mute); }
.auto-feed__live { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.auto-feed__live i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 0 rgba(95, 211, 141, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 141, 0.5); } 70% { box-shadow: 0 0 0 9px rgba(95, 211, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 141, 0); } }
.auto-feed__foot { padding-top: 16px; border-top: 1px solid var(--line-dark); font: 400 1.15rem/1.3 var(--font-head); letter-spacing: -0.02em; }
.auto-flow { display: grid; padding-block: 20px 6px; }
.auto-flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-bottom: 22px; }
.auto-flow li:last-child { padding-bottom: 12px; }
.auto-flow li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(242, 240, 236, 0.35), rgba(242, 240, 236, 0.08)); }
.auto-flow li:last-child::before { display: none; }
.auto-flow__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(242, 240, 236, 0.06); }
.auto-flow__ico .icon { font-size: 19px; stroke-width: 1.4; }
.auto-flow li:last-child .auto-flow__ico { background: #5fd38d; border-color: #5fd38d; color: #0e0e0d; }
.auto-flow p { display: grid; gap: 3px; align-content: center; font-size: 14.5px; }
.auto-flow p b { font-weight: 500; }
.auto-flow p span { color: var(--on-dark-mute); font-size: 13px; line-height: 1.4; }
.js .auto-flow li { opacity: 0; transform: translateX(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i) * 180ms + 300ms); }
.js .auto-feed.is-in .auto-flow li { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .auto-home__grid { grid-template-columns: 1fr; }
  .auto-home::after { background: linear-gradient(180deg, rgba(14, 14, 13, 0.9), rgba(14, 14, 13, 0.7)); }
}
@media (prefers-reduced-motion: reduce) {
  .js .auto-flow li { opacity: 1; transform: none; }
  .auto-feed__live i { animation: none; }
}

