/* ═══════════════════════════════════════════════════════════
   ALTRIX — Master Stylesheet
   Fonts: Space Grotesk (display) · Inter (body)
   Palette: #0EA5E9 sky · #0B1B3B navy · #F8FAFC bg
═══════════════════════════════════════════════════════════ */

:root {
  /* ─ Brand colors (matched to logo) ─ */
  --sky:        #38B6E6;
  --sky-dk:     #1E9BCC;
  --sky-lt:     #7DD3FC;
  --sky-pale:   #E0F2FE;
  --navy:       #0A1F44;
  --navy-dk:    #06122A;
  --navy-lt:    #1E335C;
  --navy-soft:  rgba(10,31,68,0.04);

  /* ─ Neutrals ─ */
  --ink:        #0F172A;
  --gray-900:   #1E293B;
  --gray-700:   #334155;
  --gray-500:   #64748B;
  --gray-400:   #94A3B8;
  --gray-300:   #CBD5E1;
  --gray-200:   #E2E8F0;
  --gray-100:   #F1F5F9;
  --gray-50:    #F8FAFC;
  --white:      #FFFFFF;

  /* ─ Status ─ */
  --ok:         #10B981;
  --warn:       #F59E0B;
  --err:        #EF4444;

  /* ─ Layout ─ */
  --container:  1360px;
  --gutter:     32px;
  --radius:     2px;
  --radius-md:  6px;
  --radius-lg:  12px;

  /* ─ Shadows ─ */
  --shadow-sm:  0 1px 2px rgba(11,27,59,0.05);
  --shadow:     0 4px 12px rgba(11,27,59,0.06), 0 1px 3px rgba(11,27,59,0.04);
  --shadow-md:  0 10px 30px rgba(11,27,59,0.08), 0 2px 6px rgba(11,27,59,0.04);
  --shadow-lg:  0 24px 60px rgba(11,27,59,0.12);

  /* ─ Typography ─ */
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 18px; }

p { color: var(--gray-700); }
.lead { font-size: 19px; line-height: 1.6; color: var(--gray-700); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-dk);
  margin-bottom: 16px;
}

.section-title-block { max-width: 780px; margin-bottom: 56px; }
.section-title-block.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Containers ─────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }

/* ── Scroll progress ────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--sky);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY BAR (тонка смуга над хедером)
═══════════════════════════════════════════════════════════ */
.utility-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.utility-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 22px; }
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.utility-licensed { color: var(--sky-lt); font-weight: 500; }
.utility-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.utility-phone:hover { color: var(--sky-lt); }

/* WhatsApp / Telegram in utility bar */
.utility-social {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.utility-social:hover { color: var(--white); }
.utility-social svg { flex-shrink: 0; }

/* Mobile nav social row */
.mnav-social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.mnav-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, color 0.2s;
}
.mnav-social-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.lang-switcher { display: flex; gap: 2px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.lang-active {
  color: var(--white);
  border-color: var(--sky);
  background: rgba(14,165,233,0.12);
}

/* ═══════════════════════════════════════════════════════════
   MAIN HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 96px; width: auto; min-width: 312px; flex-shrink: 0; margin-left: -36px; }

.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--gray-50); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--sky);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dd-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.dd-card:hover { background: var(--gray-50); }
.dd-icon {
  flex: 0 0 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-pale);
  color: var(--sky-dk);
  border-radius: var(--radius-md);
}
.dd-content { display: flex; flex-direction: column; gap: 2px; }
.dd-title { font-weight: 600; font-size: 15px; color: var(--navy); }
.dd-desc  { font-size: 13px; color: var(--gray-500); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto; /* притискає бургер до правого краю */
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: top 0.25s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }

/* Відкритий стан — морфінг у хрестик */
.burger[aria-expanded="true"] span {
  transition: top 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) 0.15s,
              opacity 0.15s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
  background: var(--navy);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-12px);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
  background: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-primary, .btn-secondary, .btn-ghost, .btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn-sm  { padding: 10px 18px; font-size: 13.5px; }
.btn-lg  { padding: 18px 32px; font-size: 15px; }

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14,165,233,0.25);
}
.btn-primary:hover {
  background: var(--sky-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14,165,233,0.35);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.btn-secondary:hover { background: var(--navy-dk); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--gray-300);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-content { padding: 40px 0 100px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-dk);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sky);
}
.hero-title {
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--sky-dk);
  display: inline-block;
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background: var(--sky-pale);
  z-index: -1;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  max-width: 540px;
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* About teaser block (homepage) */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero visual */
.hero-visual {
  position: relative;
  align-self: stretch;
  margin-top: 40px;
}
.hero-image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
}
.hero-img-main {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-lt), var(--navy));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-floating-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--white);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
  border-left: 4px solid var(--sky);
}
.hero-fc-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 6px;
}
.hero-fc-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
}
.hero-fc-desc { font-size: 13px; color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════
   HERO 4-SERVICE CARDS (під hero-секцією)
═══════════════════════════════════════════════════════════ */
.hero-services {
  background: var(--navy);
  margin-top: 80px;
}
.hero-services-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hs-card {
  display: flex;
  flex-direction: column;
  padding: 44px 28px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background 0.3s;
}
.hs-card:last-child { border-right: 0; }
.hs-card:hover { background: rgba(255,255,255,0.04); }
.hs-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--sky);
  transition: height 0.3s;
}
.hs-card:hover::after { height: 3px; }
.hs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(14,165,233,0.15);
  color: var(--sky-lt);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.hs-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--sky-lt);
  margin-bottom: 8px;
}
.hs-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.hs-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin-bottom: 22px;
  flex: 1;
}
.hs-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-lt);
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}
.hs-card:hover .hs-arrow { gap: 14px; }

/* ═══════════════════════════════════════════════════════════
   WHY ALTRIX
═══════════════════════════════════════════════════════════ */
.why-altrix { background: var(--gray-50); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  position: relative;
}
.why-card:hover {
  border-color: var(--sky);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--sky-pale);
  color: var(--sky-dk);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.why-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}
.why-card p { font-size: 14.5px; line-height: 1.6; color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════
   FEATURED PROJECTS / PORTFOLIO
═══════════════════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  aspect-ratio: 4 / 5;
  transition: all 0.3s;
}
.project-card:nth-child(2) { aspect-ratio: 4 / 5; transform: translateY(40px); }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,27,59,0.85) 100%);
  z-index: 1;
}
.project-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: var(--white);
}
.project-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-lt);
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials { background: var(--navy); color: var(--white); }
.testimonials h2 { color: var(--white); }
.testimonials .eyebrow { color: var(--sky-lt); }
.testimonials .lead { color: rgba(255,255,255,0.75); }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.test-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--warn);
}
.test-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
}
.test-name { font-weight: 600; color: var(--white); }
.test-role { font-size: 13px; color: rgba(255,255,255,0.55); }

/* ═══════════════════════════════════════════════════════════
   CTA BIG
═══════════════════════════════════════════════════════════ */
.cta-big {
  background: linear-gradient(135deg, var(--sky-dk), var(--sky));
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-big::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent 60%);
}
.cta-big-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.cta-big h2 {
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 12px;
}
.cta-big p { color: rgba(255,255,255,0.9); font-size: 18px; }
.cta-big-actions { display: flex; gap: 14px; flex-shrink: 0; }
.cta-big .btn-primary {
  background: var(--white);
  color: var(--sky-dk);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-big .btn-primary:hover { background: var(--gray-50); }

/* ═══════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--sky-dk); }
.faq-q .faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: 50%;
  transition: all 0.2s;
}
.faq-item.open .faq-q .faq-icon { background: var(--sky); color: var(--white); transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-600);
}
.faq-item.open .faq-a { display: block; }

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}
.form-control:focus {
  outline: 0;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
}
.form-check input { margin-top: 3px; }

.form-success, .form-error {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-success { background: #ECFDF5; color: #065F46; border-left: 4px solid var(--ok); }
.form-error   { background: #FEF2F2; color: #991B1B; border-left: 4px solid var(--err); }

/* ═══════════════════════════════════════════════════════════
   SUBSCRIBE STRIP (перед футером)
═══════════════════════════════════════════════════════════ */
.subscribe-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 56px 0;
}
.subscribe-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.subscribe-text h3 { font-size: 24px; margin-bottom: 6px; }
.subscribe-text p { color: var(--gray-600); }
.subscribe-form {
  display: flex;
  gap: 8px;
  min-width: 420px;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 15px;
}
.subscribe-form input:focus { outline: 0; border-color: var(--sky); }
.subscribe-msg {
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  min-height: 20px;
  transition: opacity .3s;
}
.subscribe-msg--ok    { color: #34d399; }
.subscribe-msg--error { color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 28px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand { color: rgba(255,255,255,0.7); }
.footer-brand .logo-link { margin-bottom: 16px; }
.footer-brand .logo-img { height: 110px; min-width: 360px; }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--sky-lt);
  margin-bottom: 16px;
}
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sky-lt); }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer-contact-list a { color: rgba(255,255,255,0.85); }
.footer-contact-list a:hover { color: var(--sky-lt); }

.footer-seo {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 28px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-seo a { color: var(--sky-lt); }
.footer-seo strong { color: rgba(255,255,255,0.85); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.65); }
.footer-bottom-links a:hover { color: var(--sky-lt); }

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV / BOTTOM BAR
═══════════════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: auto;
}
.mobile-nav::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56,182,230,0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.mobile-nav.open::before { opacity: 1; }

/* Вміст з'являється з затримкою після відкриття overlay */
.mobile-nav-header,
.mobile-nav-body > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-nav.open .mobile-nav-header { transition-delay: 0.05s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(1)  { transition-delay: 0.10s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(2)  { transition-delay: 0.13s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(3)  { transition-delay: 0.16s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(4)  { transition-delay: 0.19s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(5)  { transition-delay: 0.22s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(6)  { transition-delay: 0.25s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(7)  { transition-delay: 0.28s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(8)  { transition-delay: 0.31s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(9)  { transition-delay: 0.34s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(10) { transition-delay: 0.37s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(11) { transition-delay: 0.40s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(12) { transition-delay: 0.43s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(13) { transition-delay: 0.46s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(14) { transition-delay: 0.49s; opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-body > *:nth-child(15) { transition-delay: 0.52s; opacity: 1; transform: none; }
/* Fallback: будь-який дитячий елемент після 15-го теж показуємо (без чіткої затримки) */
.mobile-nav.open .mobile-nav-body > *:nth-child(n+16) { opacity: 1; transform: none; transition-delay: 0.55s; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav-header img { height: 82px; width: auto; min-width: 264px; flex-shrink: 0; }
.mnav-close {
  padding: 8px;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.mnav-close:hover { transform: rotate(90deg); }
.mobile-nav-body { padding: 24px var(--gutter); }
.mnav-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

/* Language switcher всередині мобільного меню */
.mnav-lang { margin-bottom: 24px; }
.mnav-lang-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.mnav-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.mnav-lang-btn:hover { border-color: var(--sky); color: var(--sky-dk); }
.mnav-lang-btn--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.mnav-lang-btn--active:hover { color: var(--white); }

.mnav-svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mnav-svc:active { transform: scale(0.98); background: var(--gray-50); border-color: var(--sky); }
.mnav-svc > span:first-of-type { flex: 1; }
.mnav-svc .mnav-arr { color: var(--gray-400); transition: transform 0.2s ease; }
.mnav-svc:hover .mnav-arr { transform: translateX(4px); color: var(--sky); }
.mnav-divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.mnav-link {
  display: block;
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mnav-link:hover { color: var(--sky); padding-left: 6px; }
.mnav-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.mnav-cta .btn-primary { width: 100%; }
.mnav-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.2s, border-color 0.2s;
}
.mnav-phone-btn:hover { background: var(--gray-50); border-color: var(--sky); }
.mnav-phone-btn svg { color: var(--sky); flex-shrink: 0; }
.mnav-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--navy);
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 100;
  padding: 8px;
  gap: 6px;
}
.mbb-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--gray-50);
}
.mbb-action.mbb-primary { background: var(--sky); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER (інтер'єрні сторінки)
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(14,165,233,0.12), transparent 60%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(14,165,233,0.08), transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero .eyebrow { color: var(--sky-lt); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px;
}
.page-hero p.lead { color: rgba(255,255,255,0.8); font-size: 20px; }
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
}
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs a:hover { color: var(--sky-lt); }

/* ═══════════════════════════════════════════════════════════
   SERVICE SINGLE
═══════════════════════════════════════════════════════════ */
.svc-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.svc-body h2 { margin-top: 48px; margin-bottom: 20px; }
.svc-body h2:first-child { margin-top: 0; }
.svc-body p { font-size: 16.5px; line-height: 1.75; margin-bottom: 18px; color: var(--gray-700); }
.svc-body ul { margin: 20px 0; padding-left: 0; list-style: none; }
.svc-body ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--gray-700);
}
.svc-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  background: var(--sky-pale);
  border-radius: 50%;
}
.svc-body ul li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--sky-dk);
  border-bottom: 2px solid var(--sky-dk);
  transform: rotate(-45deg);
}

.svc-aside {
  position: sticky;
  top: 110px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.svc-aside h3 { font-size: 22px; margin-bottom: 8px; }
.svc-aside-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--sky-dk);
  margin-bottom: 4px;
}
.svc-aside-price-note { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }
.svc-aside ul { margin: 20px 0 24px; list-style: none; }
.svc-aside ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.svc-aside ul li:last-child { border-bottom: 0; }
.svc-aside ul li svg { flex-shrink: 0; color: var(--ok); margin-top: 4px; }
.svc-aside .btn-primary { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-top: 0; }
  .hero-image-stack { min-height: 420px; }
  .hero-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hs-card:nth-child(2) { border-right: 0; }
  .hs-card { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:nth-child(2) { transform: none; }
  .test-grid { grid-template-columns: 1fr; }
  .svc-content { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
/* Бургер-меню вмикається раніше — на 980px,
   бо на середніх екранах nav з довгими укр. словами + CTA не вміщається */
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  /* Тісніше пакуємо top-bar — інакше довгий телефон з location переноситься */
  .utility-bar { font-size: 12px; padding: 7px 0; }
  .utility-bar-inner { gap: 10px; }
  .utility-left, .utility-right { gap: 12px; }
  .utility-phone, .utility-social, .utility-item { white-space: nowrap; }
  .utility-social { font-size: 11px; }
}

/* На середніх екранах хоронимо "hours" і "licensed", щоб телефон вмістився в один рядок */
@media (max-width: 1100px) {
  .utility-hide-sm { display: none; }
}

/* На малих екранах (≤730px) увесь top-bar ХОВАЄМО.
   Мови, контакти й адреса дублюються у мобільному меню (drawer) та
   у фіксованому mobile-bottom-bar, тому top-bar тут зайвий і займає простір. */
@media (max-width: 730px) {
  .utility-bar { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 0; }
  .hero-content { padding: 0 0 60px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 100%; }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-label { font-size: 10.5px; letter-spacing: 0.05em; }
  .about-teaser-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-services { margin-top: 0; }
  .hero-services-grid { grid-template-columns: 1fr; }
  .hs-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .cta-big-inner { flex-direction: column; text-align: center; }
  .cta-big-actions { width: 100%; flex-direction: column; }
  .cta-big-actions .btn-primary, .cta-big-actions .btn-outline-light { width: 100%; }
  .subscribe-inner { flex-direction: column; text-align: center; }
  .subscribe-form { min-width: 100%; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 70px; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & MICRO-INTERACTIONS — оживлення стилю
═══════════════════════════════════════════════════════════ */

/* ── 1. Глобальна плавна перехід для всіх hoverable elements ── */
a, button, .btn-primary, .btn-secondary, .btn-ghost, .btn-outline-light,
.why-card, .project-card, .test-card, .nav-link, .hs-card, .res-card,
.proj-card, .svc-big-card, .stat-card, .stat-block, .value-card, .license-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}

/* ── 2. Scroll reveal — пункти з [data-reveal] плавно з'являються ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger для сусідніх елементів */
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* Reveal-варіанти */
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="left"].in-view  { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal="zoom"]  { transform: scale(0.92); opacity: 0; }
[data-reveal="zoom"].in-view  { transform: scale(1); opacity: 1; }

/* ── 3. Кнопки з shine-ефектом ── */
.btn-primary, .btn-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.35) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.btn-primary:hover::before, .btn-secondary:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}
.btn-primary:active, .btn-secondary:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* btn-ghost — підкреслювання знизу при ховері */
.btn-ghost {
  position: relative;
  overflow: hidden;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sky);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-ghost:hover::after { width: 100%; left: 0; }
.btn-ghost:hover { transform: translateY(-2px); }

/* ── 4. Cards — m3D-tilt + glow при hover ── */
.why-card, .value-card, .license-card, .svc-big-card, .res-card, .proj-card {
  position: relative;
  will-change: transform;
}
.why-card::before, .value-card::before, .license-card::before, .res-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(56,182,230,0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.why-card:hover::before, .value-card:hover::before, .license-card:hover::before,
.res-card:hover::before {
  opacity: 1;
}
.why-card:hover, .value-card:hover, .license-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(56,182,230,0.18), 0 0 0 1px var(--sky);
}

/* svc-big-card — окремий hover ефект з тінню */
.svc-big-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(10,31,68,0.18), 0 0 0 1px var(--sky);
}

/* res-card з image-zoom ефектом */
.res-card:hover img { transform: scale(1.06); }
.res-card:hover .res-arrow { gap: 14px; }

/* proj-card — image-reveal effect */
.proj-card .proj-img img { transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(10,31,68,0.20);
}

/* ── 5. Hero — floating blob у фоні ── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56,182,230,0.12), transparent 65%);
  pointer-events: none;
  animation: floatBlob 18s ease-in-out infinite;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(20px, -25px) scale(0.95); }
}

/* Hero-title — gradient highlight на <em> */
.hero-title em {
  background: linear-gradient(120deg, var(--sky-dk) 0%, var(--sky) 50%, var(--sky-dk) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 6s linear infinite;
}
.hero-title em::after { display: none; }

@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hero stat-num — count-up через animation reveal */
.hero-stat-num {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-stat:hover .hero-stat-num {
  transform: scale(1.08);
  color: var(--sky-dk);
}

/* Hero floating card — легке "дихання" */
.hero-floating-card {
  animation: floatCard 5s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── 6. 4-service hero strip (.hs-card) — анімація іконки і background-wipe ── */
.hs-card {
  position: relative;
  overflow: hidden;
}
.hs-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56,182,230,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hs-card:hover::before { opacity: 1; }
.hs-card > * { position: relative; z-index: 1; }

.hs-icon { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease; }
.hs-card:hover .hs-icon {
  transform: rotate(-8deg) scale(1.1);
  background: rgba(56,182,230,0.25);
}
.hs-card:hover .hs-title { color: var(--sky-lt); }

/* ── 7. Nav-link — підкреслювання, що з'їжджає знизу ── */
.nav-link {
  position: relative;
}
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::before, .nav-link.active::before {
  width: calc(100% - 28px);
  left: 14px;
}
.nav-link.active::after { display: none; } /* приберу старий індикатор */

/* ── 8. CTA-big — інтерактивний glow за курсором ── */
.cta-big {
  position: relative;
  overflow: hidden;
}
.cta-big::after {
  content: '';
  position: absolute;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.cta-big:hover::after { opacity: 1; }

/* ── 9. FAQ — плавне розкриття з висотою (replace display:none) ── */
.faq-a {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 800px;
  opacity: 1;
  padding: 0 0 24px;
}
.faq-q { transition: color 0.2s ease, padding-left 0.25s ease; }
.faq-item:hover .faq-q { padding-left: 6px; }
.faq-item.open .faq-q { padding-left: 6px; }

/* ── 10. Form-control — плавний фокус glow ── */
.form-control {
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.form-control:focus {
  transform: translateY(-1px);
}

/* ── 11. Status-pill для form-success — fade-in ── */
.form-status:not(:empty) {
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 12. Loading state для submit-кнопок ── */
button[disabled] {
  cursor: wait;
  opacity: 0.7;
  position: relative;
}
button[disabled]::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 13. Footer-col links — слайд при ховері ── */
.footer-col a {
  display: inline-block;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover {
  transform: translateX(4px);
  color: var(--sky-lt);
}

/* ── 14. Dropdown cards (nav.dd-card) — slide + glow ── */
.dd-card { position: relative; overflow: hidden; }
.dd-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sky);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dd-card:hover::before { transform: scaleY(1); }
.dd-card:hover .dd-icon {
  background: var(--sky);
  color: var(--white);
}
.dd-icon { transition: background 0.3s ease, color 0.3s ease; }

/* ── 15. Lang switcher — анімований індикатор ── */
.lang-btn {
  position: relative;
  overflow: hidden;
}
.lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(56,182,230,0.18);
  transform: scale(0);
  border-radius: inherit;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-btn:hover::before { transform: scale(1); }

/* ── 16. Stat-blocks (.stat-block у /about) — hover з blue accent ── */
.stat-block {
  position: relative;
  overflow: hidden;
}
.stat-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, var(--sky-pale), transparent);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-block:hover {
  transform: translateY(-6px);
  border-color: var(--sky);
  box-shadow: 0 20px 40px -12px rgba(56,182,230,0.18);
}
.stat-block:hover::after { height: 100%; }
.stat-block .stat-num, .stat-block .stat-label { position: relative; z-index: 1; }
.stat-block:hover .stat-num { transform: scale(1.05); }
.stat-num { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ── 17. Project-cards — caption slide-up при ховері ── */
.project-card .project-meta {
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .project-meta { transform: translateY(0); }
.project-card::after {
  content: '→';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-12px, 12px) rotate(-45deg);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
}
.project-card:hover::after {
  opacity: 1;
  transform: translate(0, 0) rotate(-45deg);
}

/* ── 18. Testimonials — quote glow ── */
.test-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.test-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(56,182,230,0.4);
}
.test-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--sky);
  opacity: 0.15;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.test-card:hover::before {
  opacity: 0.35;
  transform: scale(1.1);
}

/* ── 19. Page-hero — анімований subtle pattern ── */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(56,182,230,0.06), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(56,182,230,0.08), transparent 50%);
  pointer-events: none;
  animation: bgShift 20s ease-in-out infinite;
}
@keyframes bgShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

/* ── 20. Sticky header — плавний transition стану ── */
.site-header {
  transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

/* ── 21. Subscribe form — hover на кнопці ── */
.subscribe-form button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.subscribe-form button:hover {
  transform: translateX(2px);
  box-shadow: 0 10px 20px -8px rgba(56,182,230,0.5);
}

/* ── 22. Service-aside (sticky) — pulse на ціні ── */
.svc-aside-price {
  position: relative;
  display: inline-block;
}
.svc-aside-price::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--sky);
  border-radius: 2px;
  transform-origin: left;
  animation: pulseBar 3s ease-in-out infinite;
}
@keyframes pulseBar {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.6); opacity: 0.7; }
}

/* ── 23. Smooth gradient borders для секцій ── */
.section + .section,
.section + .cta-big,
.cta-big + .section {
  position: relative;
}

/* ── 24. SVG icons — лагідний hover scale ── */
.btn-primary svg, .btn-secondary svg, .btn-ghost svg, .btn-outline-light svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover svg, .btn-secondary:hover svg,
.btn-ghost:hover svg, .btn-outline-light:hover svg {
  transform: translateX(4px);
}

/* ── 25. Cursor-pointer for everything interactive ── */
.faq-q, .proj-filter, [data-cat] { cursor: pointer; }

/* ── 26. Mobile bottom bar — bounce при ховері ── */
.mbb-action {
  transition: transform 0.2s ease, background 0.2s ease;
}
.mbb-action:active {
  transform: scale(0.94);
}

/* ── 27. Mobile-nav backdrop blur ── */
@supports (backdrop-filter: blur(20px)) {
  .mobile-nav { backdrop-filter: blur(20px); background: rgba(255,255,255,0.96); }
}

/* ── 28. Selection style ── */
::selection {
  background: var(--sky);
  color: var(--white);
}

/* ── 29. Scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 5px;
  border: 2px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--sky); }

/* ── 30. Reduced motion — респект до preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER CTA — адаптивний текст кнопки
═══════════════════════════════════════════════════════════ */
.header-cta { flex-shrink: 0; }
.header-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-text-short { display: none; }

/* На середніх екранах — скорочуємо текст */
@media (max-width: 1280px) {
  .cta-text-long { display: none; }
  .cta-text-short { display: inline; }
}

/* Між 1024 і 1280 теж може бути тісно через довгі мовні фрази —
   зменшимо gap у nav і padding */
@media (max-width: 1200px) {
  .nav-link { padding: 10px 10px; font-size: 14px; }
  .nav-list { gap: 0; }
  .header-inner { gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL-TO-TOP BUTTON
═══════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0s linear 0.35s,
              background 0.25s ease;
  box-shadow: 0 12px 28px -8px rgba(10,31,68,0.4);
  isolation: isolate;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0s linear 0s,
              background 0.25s ease;
}
.scroll-top:hover {
  background: var(--sky);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px -8px rgba(56,182,230,0.5);
}
.scroll-top:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.12s;
}

/* Стрілка всередині */
.scroll-top svg:first-of-type {
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-top:hover svg:first-of-type {
  transform: translateY(-2px);
}

/* Кільце прогресу скролу */
.scroll-top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}
.scroll-top-progress circle {
  stroke: var(--sky);
  opacity: 0.85;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

/* Ripple-pulse при появі */
.scroll-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.scroll-top:hover::before { opacity: 0.15; }

/* На мобільних — піднімаємо вище mobile-bottom-bar */
@media (max-width: 760px) {
  .scroll-top {
    right: 16px;
    bottom: 86px;
    width: 46px;
    height: 46px;
  }
}
/* ═══════════════════════════════════════════════════════════
   PHONE CTA — header, mobile menu, mobile bottom bar
═══════════════════════════════════════════════════════════ */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: var(--sky-pale);
  color: var(--sky-dk);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.header-phone-btn:hover {
  background: var(--sky);
  color: var(--white);
}
.header-phone-btn svg { flex-shrink: 0; }
@media (max-width: 1200px) {
  .header-phone-btn span { display: none; }
  .header-phone-btn { padding: 9px 11px; }
}
@media (max-width: 1024px) {
  /* На мобільному ховаємо весь блок (телефон + Estimate) —
     швидкі контакти вже є в нижньому sticky-барі та в бургер-меню */
  .header-cta { display: none; }
}

/* Mobile menu — call button (full-width, sky) */
.mnav-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--sky-pale);
  color: var(--sky-dk);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.mnav-call-btn:hover {
  background: var(--sky);
  color: var(--white);
}
.mnav-call-btn svg { flex-shrink: 0; }

/* Mobile bottom bar — Call action accent */
.mbb-action.mbb-call {
  color: var(--sky-dk);
}
.mbb-action.mbb-call svg {
  color: var(--sky-dk);
}
