/* GloryPixel — performance agency landing */
:root {
  --bg: #0A0A0A;
  --bg-2: #0E0E0E;
  --surface: #131313;
  --line: #1F1F1F;
  --line-2: #2A2A2A;
  --text: #F5F2EC;
  --muted: #7A7A75;
  --dim: #4A4A47;
  --accent: #00E08A;
  --accent-dim: #008C56;
  --accent-glow: rgba(0, 224, 138, 0.18);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1440px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html { overflow-x: clip; }
body {
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
}
/* Запобігаємо horizontal-overflow від glow-blob у будь-якій секції */
section, .section, header, footer, main { overflow-x: clip; }
img, video, canvas, iframe, embed, object { max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #0A0A0A; }

/* layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--line);
}
.section-head .index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 8px;
}
.section-head .index .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 16px var(--accent-glow);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-head h2 em {
  font-style: normal;
  color: var(--muted);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.logo .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.logo .accent-dot {
  color: var(--accent);
  margin-left: 1px;
}
.logo:hover .accent {
  text-shadow: 0 0 24px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 32px var(--accent-glow);
}
.nav-cta .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s infinite;
}
.nav-cta:hover .pulse { background: var(--bg); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,224,138,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(0,224,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,224,138,0); }
}

/* HERO */
.hero {
  position: relative;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 30%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.hero-3d-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;
}
.hero .container.hero-grid { position: relative; z-index: 2; }
.hero h1, .hero-sub, .hero-actions, .hero-tag { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-tag .live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
}
.hero-tag .live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.hero h1 .out {
  color: var(--muted);
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-sub p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 520px;
  color: #C8C5BE;
}
.hero-sub .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero-sub .meta .row {
  display: flex; gap: 12px; align-items: baseline;
}
.hero-sub .meta .label { color: var(--dim); }
.hero-sub .meta .val { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 48px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* MARQUEE */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 40s linear infinite;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  align-items: center;
}
.marquee-track .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee-track .muted { color: var(--muted); }
.marquee-track em { font-style: italic; color: var(--accent); font-weight: 400; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* live metrics ticker */
.ticker {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ticker-cell {
  padding: 24px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.ticker-cell:last-child { border-right: 0; }
.ticker-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-cell .label .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  animation: pulse 1.8s infinite;
}
.ticker-cell .val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ticker-cell .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* SERVICES */
.services {
  padding: 0 0 32px;
}
.svc-list {
  border-top: 1px solid var(--line);
}
.svc {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px 1fr 1.5fr 1fr 80px;
  align-items: center;
  padding: 32px var(--gutter);
  gap: 24px;
  cursor: pointer;
  transition: background .3s ease;
  position: relative;
}
.svc:hover { background: var(--surface); }
.svc::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .35s ease;
}
.svc:hover::before { width: 4px; }
.svc .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.svc h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color .3s ease;
}
.svc:hover h3 { color: var(--accent); }
.svc p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 420px;
}
.svc .tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.svc .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.svc .arrow-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--muted);
  transition: all .3s ease;
}
.svc:hover .arrow-cell { color: var(--accent); transform: translate(4px, -4px); }

/* CASES */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.case {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: background .3s ease;
}
.case:nth-child(2n) { border-right: 0; }
.case:hover { background: var(--bg-2); }
.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-head .industry { color: var(--text); }
.case-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.case-metrics .m {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-metrics .big {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.case-metrics .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.case-bar {
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.case-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: var(--w, 60%);
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.case-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}

/* PROCESS */
.process {
  padding-bottom: 64px;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 40px var(--gutter);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  min-height: 320px;
  transition: background .3s ease;
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--surface); }
.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.step .ico {
  margin-top: auto;
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  transition: all .3s ease;
}
.step:hover .ico { border-color: var(--accent); color: var(--accent); }

/* CLIENTS */
.clients {
  padding: 0;
  border-top: 1px solid var(--line);
}
.clients-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.clients-head h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.clients-head .count {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logos-marquee {
  overflow: hidden;
  padding: 36px 0;
}
.logos-track {
  display: flex;
  gap: 80px;
  width: max-content;
  align-items: center;
  animation: scroll 50s linear infinite;
}
.logos-track .logo-item {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logos-track .logo-item:hover { color: var(--text); }
.logos-track .sep {
  width: 6px; height: 6px; background: var(--dim); border-radius: 50%;
}

/* CTA / CONTACT */
.cta {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta .section-head { border-bottom: 0; padding-bottom: 80px; }
.cta .cta-grid > .form { margin-top: 28px; }
.cta::before {
  content: "";
  position: absolute;
  bottom: -200px; left: 50%;
  width: 1200px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  transform: translateX(-50%);
  filter: blur(60px);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  position: relative;
  align-items: start;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cta h2 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.cta h2 .out { color: var(--muted); }

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line-2);
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}

/* CTA-форма (футер головної) — стиль як у модалці */
.cta .form {
  background: linear-gradient(155deg, #0F1413 0%, #0A0F0E 70%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 40px 40px 32px;
  display: block;
  position: relative;
  overflow: hidden;
}
.cta .form::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.cta .form::after {
  content: ""; position: absolute;
  bottom: -100px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,224,138,0.10), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.cta .form > * { position: relative; z-index: 1; }
.cta .form .fluentform_wrapper_1,
.cta .form .fluentform,
.cta .form .fluentform form,
.cta .form .fluentform fieldset { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
.cta .form .ff-errors-in-stack:empty { display: none !important; }
.cta .form .ff_screen_reader_title { height: 0 !important; }
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.field:last-of-type { border-bottom: 0; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  padding: 0;
  resize: none;
  font-weight: 500;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.field-row .field { border-right: 1px solid var(--line); }
.field-row .field:last-child { border-right: 0; }

.form-submit {
  padding: 20px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .25s ease;
}
.form-submit:hover { background: var(--text); }

.contact-info {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.contact-info .group { display: flex; flex-direction: column; gap: 8px; }
.contact-info .group .lbl { font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: 0.08em; }
.contact-info .group .val { color: var(--text); font-size: 15px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 0 var(--gutter) 24px;
  position: relative;
}

/* Mobile-only contact card — invisible on desktop */
.footer-mobile-card { display: none; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.footer-top .footer-big {
  flex: 1 1 auto;
  line-height: 0.85;
}
.footer-top .footer-col {
  flex: 0 0 auto;
  min-width: 160px;
}
.footer-big {
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.85;
}
.footer-big .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer-col a { color: var(--text); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.all { color: var(--accent); margin-top: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

.footer-col .footer-contact {
  display: flex; flex-direction: column; gap: 2px;
}
.footer-col .footer-contact .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col .footer-contact .val { color: var(--text); }
.footer-col .footer-contact:hover .val { color: var(--accent); }

.footer-socials {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 32px;
  align-items: center;
}
.footer-socials .h {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.footer-socials-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: all .25s ease;
}
.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.footer-social .arr { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .right { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--accent); }

/* utility — reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* =============================================================
   MOBILE BURGER + OVERLAY MENU
   ============================================================= */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
  z-index: 110;
}
.nav-burger:hover { border-color: var(--accent); box-shadow: 0 0 24px var(--accent-glow); }
.nav-burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px;
  background: var(--text);
  transition: transform .35s cubic-bezier(0.68,-0.55,0.27,1.55), opacity .25s ease, background .25s ease, top .35s ease;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.is-open { border-color: var(--accent); }
.nav-burger.is-open span { background: var(--accent); }
.nav-burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.nav-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(10, 15, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-overlay-bg::before,
.nav-overlay-bg::after {
  content: ""; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.nav-overlay-bg::before { top: -200px; right: -200px; }
.nav-overlay-bg::after  { bottom: -200px; left: -200px; opacity: 0.5; }

.nav-overlay-close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(0, 224, 138, 0.08);
  cursor: pointer;
  z-index: 5;
  transition: background .25s ease, box-shadow .25s ease, transform .3s ease;
}
.nav-overlay-close:hover { background: var(--accent); box-shadow: 0 0 32px var(--accent-glow); transform: rotate(90deg); }
.nav-overlay-close span {
  position: absolute; top: 50%; left: 50%;
  width: 18px; height: 1.5px;
  background: var(--accent);
  transition: background .25s ease;
}
.nav-overlay-close:hover span { background: var(--bg); }
.nav-overlay-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-overlay-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-overlay-inner {
  position: relative; z-index: 4;
  height: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--gutter) 64px;
  display: flex; flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1) .1s, opacity .4s ease .1s;
}
.nav-overlay.is-open .nav-overlay-inner { transform: translateY(0); opacity: 1; }

.nav-overlay-phone {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(0, 224, 138, 0.03);
}
.nav-overlay-phone .lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-overlay-phone .lbl .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s infinite;
}
.nav-overlay-phone .phone {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.nav-overlay-phone .phone:hover { color: var(--accent); }
.nav-overlay-phone .hours {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}

.nav-overlay-cta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav-overlay-cta:hover { background: #00f598; box-shadow: 0 0 40px var(--accent-glow); }
.nav-overlay-cta .arr { font-family: var(--font-mono); font-size: 18px; }

.nav-overlay-nav { display: flex; flex-direction: column; gap: 0; }
.nav-overlay-h {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.nav-overlay-h .line { width: 28px; height: 1px; background: var(--muted); }
.nav-overlay-nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  color: var(--text);
  transition: color .25s ease, padding-left .3s ease;
  position: relative;
}
.nav-overlay-nav a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s ease;
}
.nav-overlay-nav a:hover::before { width: 24px; }
.nav-overlay-nav a:hover { padding-left: 36px; color: var(--accent); }
.nav-overlay-nav a.is-active { color: var(--accent); padding-left: 36px; }
.nav-overlay-nav a.is-active::before { width: 24px; }
.nav-overlay-nav .name {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-overlay-nav .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.nav-overlay-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 8px;
}
.nav-overlay-meta a {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .25s ease;
}
.nav-overlay-meta a:hover { border-color: var(--accent); }
.nav-overlay-meta .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.nav-overlay-meta .v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.nav-overlay-meta a:hover .v { color: var(--accent); }

/* Stagger reveal — кожен elemnt з'являється з delay */
.nav-overlay.is-open .nav-overlay-phone { animation: nav-fade-in .55s cubic-bezier(0.16, 1, 0.3, 1) .15s both; }
.nav-overlay.is-open .nav-overlay-cta   { animation: nav-fade-in .55s cubic-bezier(0.16, 1, 0.3, 1) .22s both; }
.nav-overlay.is-open .nav-overlay-nav   { animation: nav-fade-in .55s cubic-bezier(0.16, 1, 0.3, 1) .28s both; }
.nav-overlay.is-open .nav-overlay-meta  { animation: nav-fade-in .55s cubic-bezier(0.16, 1, 0.3, 1) .42s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(2) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .30s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(3) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .35s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(4) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .40s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(5) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .45s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(6) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .50s both; }
.nav-overlay.is-open .nav-overlay-nav a:nth-child(7) { animation: nav-fade-in .5s cubic-bezier(0.16, 1, 0.3, 1) .55s both; }
@keyframes nav-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Lock scroll коли overlay відкритий */
html.nav-locked, html.nav-locked body,
html.modal-locked, html.modal-locked body { overflow: hidden; }

/* =============================================================
   GP MODAL (форма заявки)
   ============================================================= */
.gp-modal {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.gp-modal.is-open { opacity: 1; pointer-events: auto; }
.gp-modal-bg {
  position: absolute; inset: 0;
  background: rgba(5, 10, 9, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gp-modal-dialog {
  position: relative;
  z-index: 2;
  max-width: 540px;
  width: 100%;
  height: auto;                          /* природна висота — НЕ flex stretch */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: linear-gradient(155deg, #0F1413 0%, #0A0F0E 70%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 32px 36px 22px;
  /* Прибрали flex column + gap — давало штучний нижній простір через
     min-height: auto у flex-chain. Тепер simple block layout з margin
     на child elements. */
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), opacity .35s ease;
}

/* Розділювач між блоками всередині модалки — замість flex gap. */
.gp-modal-dialog > .gp-modal-head { margin-bottom: 22px; }
.gp-modal-dialog > .gp-modal-form { margin-bottom: 0; }

/* Захист від min-height: auto в усьому FluentForm chain всередині модалки. */
.gp-modal-form,
.gp-modal-form > div,
.gp-modal .fluentform_wrapper_1,
.gp-modal .fluentform,
.gp-modal .fluentform form,
.gp-modal .fluentform fieldset { min-height: 0 !important; height: auto !important; }
.gp-modal-dialog,
.gp-modal-dialog * { box-sizing: border-box; }
.gp-modal-form,
.gp-modal-form .fluentform,
.gp-modal-form .ff-el-group { max-width: 100%; }
/* Кастомний тонший scrollbar — щоб не виглядав як "трактор" */
.gp-modal-dialog::-webkit-scrollbar { width: 6px; }
.gp-modal-dialog::-webkit-scrollbar-track { background: transparent; }
.gp-modal-dialog::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}
.gp-modal-dialog::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.gp-modal-dialog { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gp-modal.is-open .gp-modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.gp-modal-dialog::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.gp-modal-dialog::after {
  content: ""; position: absolute;
  bottom: -100px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,224,138,0.10), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}

.gp-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  transition: all .25s ease, transform .3s ease;
}
.gp-modal-close:hover {
  border-color: var(--accent);
  background: rgba(0,224,138,0.08);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: rotate(90deg);
}
.gp-modal-close span {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 1.5px;
  background: var(--text);
  transition: background .25s ease;
}
.gp-modal-close:hover span { background: var(--accent); }
.gp-modal-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.gp-modal-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.gp-modal-head { }
.gp-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.gp-modal-eyebrow .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s infinite;
}
.gp-modal-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 12px;
}
.gp-modal-h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.gp-modal-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.gp-modal-form { position: relative; z-index: 1; }
.gp-modal-side {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 20, 19, 0.5);
  align-self: start;
  position: relative; z-index: 1;
}
.gp-modal-side .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.gp-modal-channel {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .25s ease, background .25s ease;
}
.gp-modal-channel:hover { border-color: var(--accent); background: rgba(0,224,138,0.04); }
.gp-modal-channel .ch-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.gp-modal-channel .ch-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.gp-modal-channel:hover .ch-val { color: var(--accent); }
.gp-modal-channel .arr { color: var(--accent); font-family: var(--font-mono); font-size: 14px; }

@media (max-width: 640px) {
  .gp-modal-dialog {
    padding: 32px 20px 28px;
    margin: 2vh auto;
    max-height: 96vh;
    gap: 20px;
  }
  .gp-modal-h2 { font-size: clamp(24px, 6vw, 32px); }
  .gp-modal-lead { font-size: 14px; }
  .gp-modal-close { top: 14px; right: 14px; width: 36px; height: 36px; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .hero { padding: 24px 0 48px; }
  .hero h1 { font-size: clamp(56px, 11vw, 120px); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 var(--gutter); }
  .hero-3d-canvas { opacity: 0.4; }
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 16px;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-block; }

  .section-head { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 40px; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker-cell:nth-child(2) { border-right: 0; }
  .svc { grid-template-columns: 40px 1fr 40px; gap: 12px; padding: 24px var(--gutter); }
  .svc p, .svc .tags { display: none; }
  .cases-grid { grid-template-columns: 1fr; }
  .case { border-right: 0 !important; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
  .step:nth-child(odd) { border-right: 1px solid var(--line); }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .hero { padding: 16px 0 40px; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: clamp(48px, 12vw, 80px); line-height: 0.95; }
  .hero-tag { flex-wrap: wrap; gap: 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-sub .meta { grid-template-columns: 1fr; gap: 12px; }
  .marquee { font-size: 14px; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .step { min-height: 180px; }
  .step:nth-child(odd) { border-right: 0 !important; }
}

@media (max-width: 560px) {
  .ticker { grid-template-columns: 1fr; }
  .ticker-cell { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .ticker-cell:last-child { border-bottom: 0; }

  /* Headings global safety */
  h1, h2, h3 { overflow-wrap: break-word; word-wrap: break-word; }
  .cta h2 { font-size: clamp(40px, 11vw, 72px) !important; line-height: 0.95 !important; }
  .clients-head { flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px var(--gutter); }
  .clients-head h3 { font-size: 28px; line-height: 1.1; }
  .logos-track .logo-item { font-size: 24px; }
  .logos-track { gap: 48px; }

  /* CTA form padding compact на мобільному */
  .cta .form { padding: 28px 24px 24px; border-radius: 16px; }
  .cta .cta-grid > .form { margin-top: 16px; }
  .cta .section-head { padding-bottom: 48px; }
  .contact-info { gap: 24px; margin-top: 32px; }
  .contact-info .group .val { font-size: 14px; word-break: break-word; overflow-wrap: anywhere; }
}

/* =============================================================
   FOOTER — MOBILE
   ============================================================= */
@media (max-width: 768px) {
  .footer { padding-top: 0; }

  .footer-mobile-card {
    display: flex; flex-direction: column; gap: 16px;
    margin: 32px 0 0;
    padding: 28px 24px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(0,224,138,0.06), rgba(0,224,138,0) 60%),
      rgba(15, 20, 19, 0.5);
    position: relative;
    overflow: hidden;
  }
  .footer-mobile-card::before {
    content: ""; position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
  }
  .footer-mobile-card .lbl {
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent);
    display: inline-flex; align-items: center; gap: 8px;
    position: relative; z-index: 1;
  }
  .footer-mobile-card .lbl .dot {
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent);
    animation: pulse 1.8s infinite;
  }
  .footer-mobile-card .phone {
    font-family: var(--font-display);
    font-size: clamp(28px, 9vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    position: relative; z-index: 1;
  }
  .footer-mobile-cta {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    position: relative; z-index: 1;
  }
  .footer-mobile-cta:hover { background: #00f598; box-shadow: 0 0 32px var(--accent-glow); }
  .footer-mobile-cta .arr { font-family: var(--font-mono); font-size: 16px; }
  .footer-mobile-channels {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: relative; z-index: 1;
  }
  .footer-mobile-channels a {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s ease;
  }
  .footer-mobile-channels a:hover { border-color: var(--accent); }
  .footer-mobile-channels .ch-lbl {
    font-family: var(--font-mono);
    font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
  }
  .footer-mobile-channels .ch-val {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    word-break: break-all;
  }
  .footer-mobile-channels a:hover .ch-val { color: var(--accent); }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .footer-big {
    font-size: clamp(56px, 18vw, 90px);
  }
  .footer-col {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .footer-socials {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .footer-social {
    font-size: 12px;
    padding: 12px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
  }
  .footer-bottom .right { gap: 16px; }
}
