:root {
  --bg: #0e0f10;
  --surface: #17191b;
  --text: #f2f0ec;
  --muted: #9ea2a7;
  --line: rgba(255, 255, 255, .1);
  --light: #f2f0ec;
  --dark: #0e0f10;
  --font: "Inter Tight", system-ui, sans-serif;
  --g: 8px;          /* поле навколо рамки hero */
  --in: 20px;        /* внутрішній відступ рамки */
  --edge: calc(var(--g) + var(--in)); /* спільна ліва/права лінія сторінки */
  --ease: cubic-bezier(.77, 0, .18, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 999px; }

/* ---------- елементи ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: background .3s, transform .3s var(--out);
}
.pill--light { background: var(--light); color: var(--dark); }
.pill--light:hover { background: #fff; transform: translateY(-1px); }
.pill--sm { height: 44px; padding: 0 20px; font-size: 15px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; letter-spacing: -.01em;
}
.link::after { content: "→"; transition: transform .3s var(--out); }
.link:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero { padding: var(--g); }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--g) * 2);
  border-radius: 22px;
  padding: var(--in);
  display: grid; grid-template-rows: auto 1fr auto; gap: 32px;
  background: #1b1d1f;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 64% 60%;
  filter: grayscale(.85) contrast(1.05) brightness(.72);
  transform: scale(1.06); transition: transform 2.6s var(--out);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(14,15,16,.55) 0%, rgba(14,15,16,0) 30%),
    linear-gradient(0deg, rgba(14,15,16,.85) 0%, rgba(14,15,16,0) 55%),
    linear-gradient(rgba(14,15,16,.32), rgba(14,15,16,.32));
}
/* «ворота»: тонкі ламелі, що від'їжджають */
.hero__gate {
  position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, #1a1c1e, #222528);
  box-shadow: -40px 0 80px rgba(0,0,0,.5);
  transition: transform 1.9s var(--ease);
}
.is-ready .hero__gate { transform: translateX(101%); }
.is-ready .hero__photo { transform: scale(1); }

.header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: .16em; }
.logo__mark { display: grid; gap: 3px; width: 18px; }
.logo__mark i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.nav { display: none; }
.header__right { display: flex; align-items: center; gap: 20px; }
.phone { font-weight: 500; font-size: 15px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.header .pill { display: none; }

.hero__content { align-self: center; max-width: 640px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-size: 15px; color: rgba(242,240,236,.72);
}
.hero__eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hero__title {
  margin: 0; font-weight: 300; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(40px, 11vw, 100px);
}
.hero__lead { margin: 20px 0 0; max-width: 420px; font-size: 17px; color: rgba(242,240,236,.75); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

.hero__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.glass {
  display: none; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; padding-right: 10px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(20,22,24,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: background .3s;
}
.glass:hover { background: rgba(20,22,24,.55); }
.glass img { width: 92px; height: 68px; object-fit: cover; object-position: 75% 70%; border-radius: 13px; filter: grayscale(.85); }
.glass__text { display: grid; gap: 2px; padding-right: 8px; }
.glass__text b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.glass__text span { font-size: 14px; color: rgba(242,240,236,.7); }
.glass__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 16px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 104px; padding: 16px 18px; border-radius: 18px;
  background: var(--light); color: var(--dark);
}
.stat__label { font-size: 14px; line-height: 1.3; color: rgba(14,15,16,.6); }
.stat b { font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -.04em; }

/* поява після «воріт» */
.hero__content > *, .hero__bottom > * { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--out), transform 1.2s var(--out); }
.is-ready .hero__content > *, .is-ready .hero__bottom > * { opacity: 1; transform: none; }
.is-ready .hero__eyebrow { transition-delay: .9s; }
.is-ready .hero__title { transition-delay: 1s; }
.is-ready .hero__lead { transition-delay: 1.12s; }
.is-ready .hero__cta { transition-delay: 1.22s; }
.is-ready .hero__bottom > :nth-child(1) { transition-delay: 1.35s; }
.is-ready .hero__bottom > :nth-child(2) { transition-delay: 1.45s; }

/* ---------- ПОСЛУГИ ---------- */
.services { padding: 88px var(--edge) 96px; max-width: 1440px; margin: 0 auto; }
.services__head { display: grid; gap: 16px; margin-bottom: 32px; }
.services__head h2 { margin: 0; font-weight: 300; font-size: clamp(36px, 9vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
.services__head p { margin: 0; max-width: 400px; color: var(--muted); }

.tabs {
  display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  gap: 4px; padding: 5px; margin-bottom: 20px;
  border-radius: 999px; background: var(--surface);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .3s, color .3s;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--light); color: var(--dark); }

.panel { display: grid; gap: 28px; }
.panel[hidden] { display: none; }
.panel__media { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; background: var(--surface); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.06) brightness(.8); }
.panel__body { display: grid; gap: 20px; align-content: center; }
.panel__body h3 { margin: 0; font-weight: 300; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.panel__body p { margin: 0; color: var(--muted); max-width: 460px; }
.spec { margin: 4px 0 0; }
.spec > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 15px; padding-top: 1px; }
.spec dd { margin: 0; }
.spec > div:first-child dd { font-size: 20px; letter-spacing: -.02em; }
.panel .link { justify-self: start; }

.panel.is-enter .panel__media img { animation: imgIn 1.1s var(--out) both; }
.panel.is-enter .panel__body { animation: fadeUp .8s var(--out) both; }
@keyframes imgIn { from { transform: scale(1.06); opacity: .4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- футер і sticky ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  max-width: 1440px; margin: 0 auto; padding: 28px var(--edge) 104px;
  border-top: 1px solid var(--line); font-size: 15px; color: var(--muted);
}
.footer a { color: var(--text); font-variant-numeric: tabular-nums; }

.sticky-cta {
  position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(23,25,27,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transform: translateY(150%); transition: transform .6s var(--out);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .pill { flex: 1; }
.sticky-cta__call { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.sticky-cta__call svg { width: 20px; height: 20px; }

/* ---------- планшет / десктоп ---------- */
@media (min-width: 900px) {
  :root { --g: 12px; --in: 40px; }
  .hero__frame { border-radius: 28px; min-height: max(640px, calc(100svh - var(--g) * 2)); }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(14,15,16,.5) 0%, rgba(14,15,16,0) 25%),
      linear-gradient(90deg, rgba(14,15,16,.7) 0%, rgba(14,15,16,.25) 50%, rgba(14,15,16,0) 75%),
      linear-gradient(0deg, rgba(14,15,16,.5) 0%, rgba(14,15,16,0) 35%);
  }
  .nav {
    display: flex; gap: 2px; padding: 4px; border-radius: 999px;
    position: absolute; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav a { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 15px; color: rgba(242,240,236,.82); transition: background .3s, color .3s; }
  .nav a:hover { background: rgba(255,255,255,.12); color: var(--text); }
  .header .pill { display: inline-flex; }
  .hero__content { max-width: 920px; }
  .hero__title { font-size: clamp(60px, 6.1vw, 96px); }
  .hero__lead { font-size: 18px; }
  .glass { display: inline-flex; }
  .stats { display: flex; width: auto; gap: 10px; }
  .stat { width: 184px; min-height: 128px; padding: 18px 20px; border-radius: 20px; }
  .stat b { font-size: 40px; }

  .services { padding-top: 140px; padding-bottom: 140px; }
  .services__head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 48px; }
  .services__head p { max-width: 380px; }
  .tabs { margin-bottom: 32px; }
  .panel { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
  .panel__media { aspect-ratio: 5 / 4; border-radius: 24px; }
  .spec > div { grid-template-columns: 120px 1fr; }

  .sticky-cta { display: none; }
  .footer { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
