/* ==========================================================================
   МеталКеш — стилі
   ========================================================================== */

:root {
  --bg: #0a0b0d;
  --bg-2: #101216;
  --bg-3: #15181d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --text-2: #d6d2c9;
  --muted: #a5a8af;
  --accent: #ff8a3d;
  --accent-2: #ffc35a;
  --accent-3: #e4572e;
  --ink: #1b0f05;
  --grad: linear-gradient(115deg, #ffd27a 0%, #ff9a47 45%, #e4572e 100%);
  --radius: 22px;
  --radius-lg: 28px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  /* сайт тягнеться на всю ширину екрана; обмеження лише для дуже широких моніторів */
  --container: 2000px;
  --gutter: clamp(16px, 4.6vw, 104px);
  color-scheme: dark;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 138, 61, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before {
  /* легка «зернистість» */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 154, 71, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

.data-error {
  position: fixed; inset: 0 0 auto; z-index: 400;
  padding: 16px 20px; background: #8a1414; color: #fff; font-weight: 700; text-align: center;
}

main, .footer { transition: opacity 0.25s ease; }
/* анімовані блоки, що виїжджають збоку, не повинні розширювати сторінку */
html, body, main { overflow-x: clip; }
.is-switching main, .is-switching .footer { opacity: 0.2; }

/* ---------- кнопки ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background-color 0.3s, border-color 0.3s, color 0.3s, translate 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.2em; height: 1.2em; transition: transform 0.35s var(--ease); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary {
  color: var(--ink);
  background: var(--grad);
  box-shadow: 0 12px 32px -12px rgba(255, 138, 61, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease);
}
.btn--primary:hover { translate: 0 -2px; box-shadow: 0 18px 40px -12px rgba(255, 138, 61, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn--primary:hover::after { transform: translateX(130%); }
.btn--ghost {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 154, 71, 0.6); background: rgba(255, 154, 71, 0.08); }
.btn--ghost:hover .icon:last-child { transform: translateX(3px); }
.btn:disabled { cursor: progress; opacity: 0.85; }

/* ---------- логотип ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap;
}
.logo__mark {
  width: 34px; height: 34px; flex: none;
  filter: drop-shadow(0 6px 14px rgba(255, 138, 61, 0.35));
  transition: transform 0.6s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.08); }
.logo__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo--lg { font-size: 1.5rem; }
.logo--lg .logo__mark { width: 44px; height: 44px; }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, -webkit-backdrop-filter 0.35s, backdrop-filter 0.35s;
}
.header.is-scrolled, .menu-open .header {
  background: rgba(10, 11, 13, 0.75);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.nav { display: none; margin-left: auto; gap: 2px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; color: var(--text-2);
  transition: color 0.25s, background-color 0.25s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--grad);
}
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__call { display: none; }

.lang {
  position: relative; display: inline-flex; padding: 3px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
}
.lang__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--grad);
  transform: translateX(calc(var(--lang-i, 0) * 100%));
  transition: transform 0.5s var(--ease);
  box-shadow: 0 4px 14px -4px rgba(255, 138, 61, 0.7);
}
.lang__btn {
  position: relative; z-index: 1; min-width: 42px; padding: 6px 10px;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted);
  transition: color 0.3s;
}
.lang__btn[aria-pressed="true"] { color: var(--ink); }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--text); }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 12px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(10, 11, 13, 0.94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: grid; gap: 4px; }
.mobile-menu__nav a {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.6rem);
  padding: 8px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.mobile-menu__nav a:hover { color: var(--accent-2); }
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu__phones { display: grid; gap: 10px; }
.menu-open body { overflow: hidden; }

@media (max-width: 400px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .lang__btn { min-width: 36px; padding: 6px 8px; }
  .burger { width: 42px; height: 42px; }
}
@media (min-width: 640px) {
  .header__call { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { margin-left: 12px; }
  .burger { display: none; }

  /* ПК: увесь текст трохи крупніший (17px → 22px залежно від ширини екрана) */
  html { font-size: clamp(106.25%, 0.55vw + 0.625rem, 137.5%); }

  /* ПК: крупніша шапка — логотип, меню, мови, кнопка дзвінка */
  :root { --header-h: 4.6rem; }
  .header__inner { gap: 1.2rem; }
  .logo { font-size: 1.32rem; gap: 0.7rem; }
  .logo__mark { width: 2.5rem; height: 2.5rem; }
  .nav { gap: 0.25rem; }
  .nav a { font-size: 1.04rem; padding: 0.5rem 1rem; }
  .nav a.is-active::after { bottom: 2px; width: 22px; margin-left: -11px; }
  .lang { padding: 4px; }
  .lang__thumb { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); }
  .lang__btn { min-width: 3rem; padding: 0.45rem 0.75rem; font-size: 0.88rem; }
  .header__call { --h: 2.9rem; padding: 0 1.35rem; font-size: 1.02rem; }
}
/* невеликі ноутбуки та iPad горизонтально: у кнопці дзвінка лише іконка, щоб шапка вміщалася */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__call { width: var(--h); padding: 0; }
  .header__call [data-call-label] { display: none; }
  .nav a { padding: 0.5rem 0.8rem; }
}

/* ---------- перший екран ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 80px;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--1 {
  width: 70vmax; height: 70vmax; right: -28vmax; top: -24vmax;
  background: radial-gradient(circle, rgba(255, 122, 44, 0.34), rgba(255, 122, 44, 0.08) 40%, transparent 68%);
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--2 {
  width: 56vmax; height: 56vmax; left: -26vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(120, 140, 255, 0.16), transparent 65%);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 40%, #000 15%, transparent 75%);
}
.hero__layout { display: grid; gap: 28px; align-items: center; }
.hero__content { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255, 154, 71, 0.09); border: 1px solid rgba(255, 154, 71, 0.28);
  color: #ffd7a8; font-weight: 700; font-size: 0.92rem;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #ffb357; animation: pulse 2s ease-out infinite;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(1.8rem, 0.95rem + 3.7vw, 4rem);
  line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .w > span {
  display: inline-block;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.js .hero__title .w > span { transform: translateY(110%) rotate(5deg); transform-origin: left bottom; }
.is-loaded .hero__title .w > span { transform: none; }
.w--hl > span {
  background: linear-gradient(100deg, #ffe2a3 0%, #ff9a47 25%, #ff6a2b 45%, #ffd27a 65%, #ff9a47 85%, #ffe2a3 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.hero__lead {
  margin-top: 22px; max-width: 38rem;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.3rem); color: var(--text-2);
}
.js [data-hero-in] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms + 200ms);
}
.is-loaded [data-hero-in] { opacity: 1; transform: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__cta .btn { flex: 1 1 220px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__value {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1;
  background: linear-gradient(180deg, #fff 20%, #ffc78a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__pre { font-size: 0.5em; font-weight: 600; }
.stat__glyph { color: transparent; }
.stat__label { font-size: 0.9rem; line-height: 1.35; color: var(--muted); }

/* кластер металів */
.hero__visual {
  position: relative; width: min(100%, 560px); margin-inline: auto;
  translate: 0 calc(var(--scroll, 0) * 0.12px);
}
.cluster { --px: 0; --py: 0; position: relative; aspect-ratio: 1 / 0.9; }
.cluster__ring {
  position: absolute; inset: 4% 8%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: spin 90s linear infinite;
}
.cluster__ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: #ffc35a; box-shadow: 0 0 14px 4px rgba(255, 170, 80, 0.7);
}
.cluster__ring--2 { inset: 18% 22%; border-style: solid; border-color: rgba(255, 154, 71, 0.18); animation-duration: 55s; animation-direction: reverse; }
.cluster__ring--2::before { background: #fff; box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.5); }
.cluster__core {
  position: absolute; inset: 18% 20%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 70, 0.42), rgba(255, 110, 40, 0.1) 45%, transparent 70%);
  animation: breathe 6s ease-in-out infinite;
}
.cluster__item {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: translate3d(calc(var(--px) * var(--depth) * 22px), calc(var(--py) * var(--depth) * 22px), 0);
  transition: transform 0.8s var(--ease), opacity 1s var(--ease), scale 1.2s var(--ease);
}
.cluster__item img { width: 100%; height: auto; animation: float 7s ease-in-out infinite; animation-delay: var(--delay); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5)); }
.js .cluster__item { opacity: 0; scale: 0.7; }
.is-loaded .cluster__item { opacity: 1; scale: 1; }
.is-loaded .cluster__item:nth-of-type(2) { transition-delay: 0.35s; }
.is-loaded .cluster__item:nth-of-type(3) { transition-delay: 0.5s; }
.is-loaded .cluster__item:nth-of-type(4) { transition-delay: 0.65s; }
.is-loaded .cluster__item:nth-of-type(5) { transition-delay: 0.8s; }
.is-loaded .cluster__item:nth-of-type(1) { transition-delay: 0.2s; }
.cluster__tag {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(16, 18, 22, 0.72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.94rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite -2s;
}
.cluster__tag b { font-family: var(--font-display); font-weight: 600; color: var(--accent-2); }
.cluster__tag-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; translate: -50% 0;
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent-2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.scroll-hint:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.scroll-hint .icon { width: 22px; height: 22px; animation: bob 2s ease-in-out infinite; }

@media (min-width: 640px) {
  .hero__cta .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .hero__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 3vw, 72px); }
  .hero__visual { width: 100%; }
  .hero__title { font-size: clamp(2.5rem, 0.5rem + 3.2vw, 6rem); line-height: 1.04; }
  .hero__lead { max-width: 44rem; }
}
@media (min-width: 1024px) and (min-height: 880px) {
  .scroll-hint { display: grid; }
}
@media (max-width: 1023px) {
  .hero { min-height: auto; padding-bottom: 56px; }
  .hero__visual { order: -1; width: min(100%, 420px); margin-bottom: -12px; }
}
@media (max-width: 480px) {
  .hero__visual { width: 92%; }
  .cluster__tag { font-size: 0.8rem; padding: 8px 12px; }
}

/* ---------- секції ---------- */
.section { position: relative; padding-block: clamp(72px, 5vw + 48px, 136px); }
.section__head { max-width: 52rem; margin-bottom: clamp(32px, 4vw, 72px); }
.section__head--row { max-width: none; display: grid; gap: 18px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 0.84rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow__num {
  padding: 4px 8px; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255, 195, 90, 0.1); border: 1px solid rgba(255, 195, 90, 0.25);
}
.section__title { font-size: clamp(1.55rem, 0.95rem + 2.3vw, 2.8rem); text-wrap: balance; }
.section__lead { margin-top: 14px; max-width: 40rem; color: var(--text-2); font-size: 1.1rem; }
.section__lead:empty { display: none; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.updated__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse-green 2.4s ease-out infinite; }
@media (min-width: 900px) {
  .section__head--row { grid-template-columns: 1fr minmax(260px, 400px); align-items: end; gap: 40px; }
  .section__head--row .section__lead { margin-top: 0; }
}

/* поява при скролі */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 36px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), translate 0.4s var(--ease), border-color 0.4s;
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translate3d(-44px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(44px, 0, 0); }
.js [data-reveal="none"] { opacity: 1; transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- послуги ---------- */
.services { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 13rem; padding: clamp(22px, 1.8vw, 40px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 154, 71, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.service:hover { border-color: rgba(255, 154, 71, 0.38); translate: 0 -4px; }
.service:hover::before { opacity: 1; }
.service__ghost {
  position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px;
  fill: none; stroke: #fff; stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.045;
  transition: transform 0.8s var(--ease), opacity 0.4s;
}
.service:hover .service__ghost { transform: rotate(-8deg) scale(1.08); opacity: 0.08; }
.service__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.service__icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: auto;
  border-radius: 18px; color: #ffb066;
  background: linear-gradient(145deg, rgba(255, 154, 71, 0.24), rgba(255, 154, 71, 0.04));
  border: 1px solid rgba(255, 154, 71, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 30px -14px rgba(255, 138, 61, 0.6);
}
.service__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.service__title { position: relative; margin-top: 28px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.service__text { position: relative; margin-top: 8px; color: var(--muted); font-size: 1.02rem; }
@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .service { grid-column: span 2; }
  .services--n5 .service:nth-child(-n + 2) { grid-column: span 3; min-height: 240px; }
  .services--n5 .service:nth-child(-n + 2) .service__title { font-size: 1.35rem; }
  .services--n4 .service { grid-column: span 3; }
  .services--n1 .service, .services--n2 .service { grid-column: span 3; }
  .service:last-child:nth-child(odd) { grid-column: span 2; }
  .services--n5 .service:last-child:nth-child(odd), .services--n3 .service:last-child:nth-child(odd) { grid-column: span 2; }
  .services--n1 .service:last-child { grid-column: 1 / -1; }
}

/* ---------- біжучий рядок ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; padding-block: max(28px, 2vw); }
.ticker__band {
  background: var(--grad); color: var(--ink);
  transform: rotate(-2deg) scale(1.06);
  box-shadow: 0 24px 60px -20px rgba(255, 120, 40, 0.55);
}
.ticker__track { display: flex; width: max-content; padding-block: 16px; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  display: inline-flex; align-items: baseline; gap: 10px; padding-inline: 20px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(0.92rem, 0.8rem + 0.5vw, 1.2rem);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.ticker__item b { font-weight: 800; }
.ticker__sep { width: 14px; height: 14px; flex: none; fill: var(--ink); opacity: 0.55; }

/* ---------- ціни ---------- */
.prices { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card { perspective: 1000px; }
.price-card__inner {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; padding: 12px 12px 16px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #16191e, #101216);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.5s;
}
.price-card__inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--glow) 22%, transparent), transparent 50%);
  opacity: 0; transition: opacity 0.4s;
}
.price-card__inner::after {
  /* відблиск, що пробігає при наведенні */
  content: ""; position: absolute; inset: -40% -60%; pointer-events: none; z-index: 2;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.1) 50%, transparent 58%);
  transform: translateX(-60%); transition: transform 1.1s var(--ease);
}
.price-card:hover .price-card__inner {
  border-color: color-mix(in srgb, var(--glow) 50%, transparent);
  box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--glow) 65%, transparent);
}
.price-card:hover .price-card__inner::before { opacity: 1; }
.price-card:hover .price-card__inner::after { transform: translateX(60%); }
.price-card__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px;
  background:
    radial-gradient(58% 58% at 50% 58%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  transform: translateZ(0);
}
.price-card__media img {
  width: 92%; height: auto;
  transition: transform 0.7s var(--ease);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}
.price-card:hover .price-card__media img { transform: translateY(-6px) scale(1.06); }
.price-card__fallback { display: none; width: 40%; height: 40%; fill: var(--glow); opacity: 0.5; }
.price-card__media.is-missing img { display: none; }
.price-card__media.is-missing .price-card__fallback { display: block; }
.price-card__name {
  position: relative; z-index: 3; margin: 14px 4px 0; min-height: 2.6em;
  font-family: var(--font-body); font-weight: 800; letter-spacing: 0;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.2rem); line-height: 1.3;
}
.price-card__price {
  position: relative; z-index: 3; margin: auto 4px 0; padding-top: 12px;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 4px;
  border-top: 1px dashed var(--line-2);
}
.price__from { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.price__num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.05rem); letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 25%, color-mix(in srgb, var(--glow) 75%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price__num--text { font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem); }
.price__unit { font-size: 0.95rem; font-weight: 700; color: var(--text-2); }
.price-card__price--request { flex-direction: column; align-items: flex-start; }
.price__request { font-weight: 800; color: var(--accent-2); font-size: 1rem; line-height: 1.2; }
.price__cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 154, 71, 0.12); border: 1px solid rgba(255, 154, 71, 0.32);
  font-size: 0.9rem; font-weight: 700; color: #ffc27e;
  transition: background-color 0.3s, color 0.3s;
}
.price__cta:hover { background: var(--accent); color: var(--ink); }
.price__cta .icon { width: 15px; height: 15px; }
.prices__note {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 28px; text-align: center; color: var(--text-2); font-weight: 600;
}
.prices__note .icon { color: var(--accent); }
@media (min-width: 720px) {
  .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .price-card__inner { padding: 14px 14px 18px; }
}
@media (min-width: 1100px) {
  .prices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1680px) {
  .prices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
}

/* ---------- переваги ---------- */
.section--band {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255, 154, 71, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0.02) 70%, transparent);
}
.section--band::before, .section--band::after {
  content: ""; position: absolute; left: 50%; width: min(1100px, 90%); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(255, 195, 90, 0.35), transparent);
}
.section--band::before { top: 0; }
.section--band::after { bottom: 0; }
.advantages { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adv {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.adv:hover { border-color: rgba(255, 154, 71, 0.35); translate: 0 -4px; }
.adv__icon {
  position: relative; display: grid; place-items: center;
  width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50%; color: #ffc27e;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), rgba(255, 154, 71, 0.06) 60%), #14161a;
  box-shadow: 0 18px 40px -18px rgba(255, 138, 61, 0.7);
}
.adv__icon::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 55%, #ffd27a 72%, #ff8a3d 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.adv__icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.adv:hover .adv__icon .icon { animation: wiggle 0.8s var(--ease); }
.adv__title { font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.adv__text { margin-top: 8px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
@media (min-width: 640px) {
  .adv { padding: 34px 22px; }
  .adv__icon { width: 88px; height: 88px; }
  .adv__icon .icon { width: 40px; height: 40px; }
  .adv__title { font-size: 1.08rem; }
}
@media (min-width: 1024px) {
  .advantages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .advantages--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advantages--n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- кроки ---------- */
.steps { position: relative; display: grid; gap: 28px; }
.steps::before {
  content: ""; position: absolute; left: 33px; top: 34px; bottom: 34px; width: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.6s var(--ease) 0.2s;
}
.steps.is-in::before { transform: none; }
.step { position: relative; display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; align-items: start; }
.step__head { position: relative; grid-row: span 2; width: 68px; height: 68px; }
.step__num {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  background: #121418; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 8px var(--bg);
}
.step__icon {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: var(--ink);
  box-shadow: 0 0 0 4px var(--bg);
}
.step__icon .icon { width: 17px; height: 17px; stroke-width: 2; }
.step__title { margin-top: 6px; font-size: 1.12rem; line-height: 1.3; }
.step__text { margin-top: 6px; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .steps::before {
    left: 34px; right: 34px; top: 33px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
    transform: scaleX(0); transform-origin: left;
  }
  .step { display: block; }
  .step__head { margin-bottom: 26px; }
  .step__title { font-size: 1.25rem; }
}

/* ---------- заявка ---------- */
.request { display: grid; gap: 36px; }
.request .section__title { font-size: clamp(1.45rem, 0.9rem + 1.8vw, 2.35rem); }
.request__or { margin-top: 28px; font-weight: 700; color: var(--text-2); }
.request__phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.phone-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: border-color 0.3s, translate 0.35s var(--ease), background-color 0.3s;
}
.phone-chip:hover { border-color: rgba(255, 154, 71, 0.55); background: rgba(255, 154, 71, 0.08); translate: 0 -2px; }
.phone-chip__op { width: 32px; height: 32px; flex: none; }
.phone-chip--sm { font-size: 0.88rem; padding: 5px 14px 5px 5px; }
.phone-chip--sm .phone-chip__op { width: 26px; height: 26px; }
.mobile-menu__phones .phone-chip { justify-content: flex-start; font-size: 1.1rem; padding: 10px 20px 10px 10px; }
.mobile-menu__phones .phone-chip__op { width: 38px; height: 38px; }

.request__card {
  position: relative; overflow: hidden;
  padding: clamp(20px, 3.2vw, 38px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.request__card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 195, 90, 0.75), transparent);
}
.request__card::after {
  content: ""; position: absolute; top: -120px; right: -120px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 70%); pointer-events: none;
}
.form { position: relative; z-index: 1; display: grid; gap: 18px; }
.field__label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.98rem; color: var(--text-2); }
.field__req { color: var(--accent); }
.field__control { position: relative; display: flex; align-items: center; }
.field__control .icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; transition: color 0.3s; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px 14px 48px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line-2); border-radius: 16px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.field textarea { min-height: 124px; padding-left: 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6e7279; }
.field input:focus, .field textarea:focus { border-color: rgba(255, 154, 71, 0.75); box-shadow: 0 0 0 4px rgba(255, 154, 71, 0.15); background: rgba(0, 0, 0, 0.38); }
.field__control:focus-within .icon { color: var(--accent); }
.field.is-invalid input { border-color: #ff5f5f; box-shadow: 0 0 0 4px rgba(255, 95, 95, 0.14); }
.field.shake .field__control { animation: shake 0.45s; }
.field__error { margin-top: 6px; font-size: 0.86rem; font-weight: 600; color: #ff8a8a; }
.field__hint { margin-top: 6px; font-size: 0.88rem; color: var(--muted); }
.field.is-invalid .field__hint { display: none; }
.field.is-valid input { border-color: rgba(74, 222, 128, 0.6); }
.field.is-valid .field__control .icon { color: #4ade80; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit .spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(27, 15, 5, 0.25); border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
.form__submit.is-loading .spinner { display: block; }
.form__submit.is-loading .icon { display: none; }
.form__consent { font-size: 0.88rem; color: var(--muted); text-align: center; }
.form__alert {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 95, 95, 0.08); border: 1px solid rgba(255, 95, 95, 0.3); font-size: 0.92rem;
}
.form__alert-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #ffb0b0; }
.form__alert-phones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.form-done { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding: 40px 8px; text-align: center; }
.form-done__check svg { width: 88px; height: 88px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-done__check circle { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; }
.form-done__check path { stroke: var(--accent-2); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-done.is-shown .form-done__check circle { animation: dash 0.8s var(--ease) forwards; }
.form-done.is-shown .form-done__check path { animation: dash 0.5s var(--ease) 0.6s forwards; }
.form-done__title { font-size: 1.5rem; }
.form-done__text { max-width: 26rem; color: var(--text-2); }
@media (min-width: 1024px) {
  .request { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* ---------- контакти ---------- */
.contacts { display: grid; gap: 20px; }
.contacts__card {
  container-type: inline-size;
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.contacts__label { margin-bottom: 10px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contacts__block--row { display: flex; gap: 14px; align-items: flex-start; }
.contacts__block--row .contacts__label { margin-bottom: 4px; }
.contacts__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; color: #ffb066;
  background: rgba(255, 154, 71, 0.1); border: 1px solid rgba(255, 154, 71, 0.25);
}
.contacts__icon .icon { width: 22px; height: 22px; }
.contacts__value { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.phones { display: grid; gap: 10px; }
.phone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px;
  padding: 12px; border-radius: 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line);
}
.phone__op { width: 46px; height: 46px; flex: none; }
.phone__main { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.phone__num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); transition: color 0.25s;
}
.phone__num:hover { color: var(--accent-2); }
.phone__op-name { font-size: 0.9rem; color: var(--muted); }
.phone__msgs { display: flex; gap: 8px; }
.msg {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, translate 0.35s var(--ease);
}
.msg .icon { width: 21px; height: 21px; }
.msg:hover { translate: 0 -2px; color: #fff; }
.msg--viber:hover { background: #7360f2; border-color: #7360f2; }
.msg--telegram:hover { background: #229ed9; border-color: #229ed9; }
.msg--whatsapp:hover { background: #1fb855; border-color: #1fb855; }
@container (max-width: 430px) {
  .phone__msgs { width: 100%; padding-left: 60px; }
}

.map {
  position: relative; overflow: hidden; min-height: 380px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: #1b1e23;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.95) contrast(0.92);
}
.map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 0 90px rgba(10, 11, 13, 0.55);
}
.map__open {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 11, 13, 0.82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 700; font-size: 0.9rem; transition: background-color 0.3s, color 0.3s;
}
.map__open:hover { background: var(--accent); color: var(--ink); }
@media (min-width: 1024px) {
  .contacts { grid-template-columns: minmax(360px, 5fr) 7fr; gap: 24px; }
  .map { min-height: 100%; }
}

/* ---------- підвал ---------- */
.footer {
  position: relative; overflow: hidden; padding-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 154, 71, 0.035));
}
.footer__bigname {
  position: absolute; left: 50%; bottom: 64px; translate: -50% 0;
  font-family: var(--font-display); font-weight: 800; line-height: 0.8; white-space: nowrap;
  font-size: clamp(4rem, 17vw, 15rem); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none; user-select: none;
}
.footer__grid { position: relative; display: grid; gap: 36px; padding-bottom: 56px; }
.footer__tagline { margin-top: 16px; max-width: 22rem; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col a { color: var(--text-2); transition: color 0.25s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__title { margin-bottom: 4px; font-family: var(--font-body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
[data-phones-plain] { display: grid; gap: 10px; }
.footer__phone { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 700; }
.footer__op { width: 24px; height: 24px; }
.footer__muted { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.94rem;
}
.footer__top { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text-2); }
.footer__top:hover { color: var(--accent-2); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ---------- нижня панель: телефони + «Зв'яжіться зі мною» (видно під час прокрутки) ---------- */
.call-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px;
  border-radius: 22px; background: rgba(16, 18, 22, 0.88); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.75);
  transform: translateY(160%); transition: transform 0.55s var(--ease);
}
.show-bar .call-bar { transform: none; }
.menu-open .call-bar { transform: translateY(160%); }
.call-bar__phone {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 10px 6px 6px;
  border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}
.call-bar__phone:hover { border-color: rgba(255, 154, 71, 0.55); background: rgba(255, 154, 71, 0.08); }
.call-bar__op { width: 32px; height: 32px; flex: none; }
.call-bar__phone span { min-width: 0; }
.call-bar__phone small { display: block; font-size: 0.76rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.call-bar__phone b { display: block; font-size: 0.95rem; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-bar__cta {
  grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px; border-radius: 16px;
  background: var(--grad); color: var(--ink); font-weight: 800; font-size: 1rem; white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(255, 138, 61, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.call-bar__cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-130%); animation: bar-shine 5s ease-in-out infinite 2s;
}
.call-bar__cta .icon { width: 1.25em; height: 1.25em; }
@media (max-width: 359px) {
  .call-bar { left: 8px; right: 8px; }
  .call-bar__op { width: 28px; height: 28px; }
  .call-bar__phone { gap: 7px; padding: 5px 8px 5px 5px; }
  .call-bar__phone b { font-size: 0.8125rem; }
}
@media (min-width: 768px) {
  /* компактна «пігулка» по центру внизу */
  .call-bar {
    left: 50%; right: auto; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0;
    display: flex; gap: 8px; padding: 7px; border-radius: 999px;
  }
  .call-bar__phone { border-radius: 999px; padding: 6px 20px 6px 6px; gap: 11px; }
  .call-bar__op { width: 40px; height: 40px; }
  .call-bar__phone b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
  .call-bar__cta { border-radius: 999px; min-height: 54px; padding: 0 26px; font-size: 1.04rem; }
  .call-bar__cta:hover { box-shadow: 0 14px 34px -12px rgba(255, 138, 61, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}
/* щоб панель не перекривала низ сторінки */
.footer__bottom { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .footer__bottom { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* ---------- сторінка 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); text-align: center; }
.notfound__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 12rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { margin: 12px auto 28px; max-width: 28rem; color: var(--text-2); }

/* ---------- анімації ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vmax, 4vmax) scale(1.1); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 179, 87, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(255, 179, 87, 0); } }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg) scale(1.08); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes bar-shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

@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; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero-in], .js .cluster__item, .js .hero__title .w > span { opacity: 1; transform: none; scale: 1; }
  .ticker__track { animation: none; }
}
