:root {
  --blue: #1B7AD6;
  --blue-hi: #4C9BEA;
  --orange: #F5862C;
  --orange-hi: #FFA35A;
  --bg-rgb: 11, 14, 19;
  --field-rgb: 8, 10, 14;
  --panel-rgb: 20, 24, 31;
  --shadow: rgba(0, 0, 0, 0.5);
  --err: #FF8A7A;
  --graphite: #0B0E13;
  --steel: #1A1F27;
  --panel: rgba(var(--panel-rgb), 0.78);
  --line: rgba(150, 162, 178, 0.18);
  --ice: #F3F5F8;
  --head: #F3F5F8;
  --lead: #C9CFD8;
  --body: #B3BBC6;
  --nav: #D6DBE2;
  --muted: #8A93A0;
  --halo: 0 1px 2px rgb(var(--bg-rgb)), 0 0 18px rgba(var(--bg-rgb), 0.9), 0 8px 28px rgba(var(--bg-rgb), 0.75);
  --header-h: 84px;
}
/* Day theme: muted steel-blue surfaces with the same blue and orange accents, no plain white */
:root[data-theme="light"] {
  color-scheme: light;
  --bg-rgb: 206, 215, 226;
  --field-rgb: 236, 240, 245;
  --panel-rgb: 222, 229, 237;
  --shadow: rgba(25, 40, 62, 0.22);
  --err: #B5382A;
  --blue-hi: #155DB5;
  --orange-hi: #C85A0C;
  --graphite: #CDD6E1;
  --steel: #BCC7D4;
  --panel: rgba(var(--panel-rgb), 0.8);
  --line: rgba(25, 40, 62, 0.16);
  --ice: #0E1621;
  --head: #0E1621;
  --lead: #2C3848;
  --body: #3A4657;
  --nav: #1A2330;
  --muted: #5B6676;
  --halo: 0 0 14px rgba(var(--bg-rgb), 0.9), 0 0 30px rgba(var(--bg-rgb), 0.7);
}
:root { color-scheme: dark; }
:root[data-theme="light"] {
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(245, 134, 44, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 60% at 95% 35%, rgba(27, 122, 214, 0.2), transparent 70%),
    linear-gradient(180deg, #D4DDE8 0%, #C3CEDB 100%);
  background-attachment: fixed;
}
[data-theme="light"] body { background: transparent; }
[data-theme="light"] #scene { filter: invert(1) hue-rotate(180deg) saturate(1.2) contrast(0.7) brightness(1.08); mix-blend-mode: multiply; opacity: 0.8; }
[data-theme="light"] .panel { box-shadow: 0 8px 26px rgba(25, 40, 62, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
html, body { margin: 0; padding: 0; background: var(--graphite); }
html.theme-anim, html.theme-anim * { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important; }

/* Theme switch */
.theme {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--field-rgb), 0.55);
  color: var(--nav);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme:hover { color: var(--orange-hi); border-color: rgba(245, 134, 44, 0.5); }
.theme svg { width: 18px; height: 18px; }
.theme .moon, [data-theme="light"] .theme .sun { display: none; }
[data-theme="light"] .theme .moon { display: block; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  min-height: 100%;
  color: var(--body);
  font-family: "Noto Sans Armenian", "Noto Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
}
#scene {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
main { position: relative; z-index: 1; }
a { color: inherit; }
img { max-width: 100%; }
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.center { text-align: center; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0));
}
.header.scrolled {
  background: rgba(var(--bg-rgb), 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  flex: none;
  display: block;
  width: 78px;
  height: 68px;
  text-decoration: none;
}
.logo-stage {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.logo-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(126, 200, 255, 0.35));
}
.logo-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}
.logo-draw {
  fill: none;
  stroke: #86B3FF;
  stroke-width: 21;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.logo-spark { filter: drop-shadow(0 0 10px rgba(255, 163, 90, 0.9)); }
/* Without JS or with reduced motion the logo stays static. Timings match LOGO_DRAW in tools/build.mjs. */
.js .logo:not(.static) .logo-final { opacity: 0; }
.logo.play .logo-svg { opacity: 1; }
.logo.play .logo-final { animation: logo-fade 1s 2.2s ease forwards; }
.logo.play .logo-draw { animation: logo-fade-out 0.6s 3.2s ease forwards; }
@keyframes logo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-fade-out { to { opacity: 0; } }
[data-theme="light"] .logo-stage { filter: brightness(0.42) saturate(2.4); }
[data-theme="light"] .logo-spark { filter: drop-shadow(0 0 8px rgba(245, 134, 44, 0.8)) brightness(2.2); }

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--nav);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li.open > button {
  color: var(--orange-hi);
  background: rgba(245, 134, 44, 0.08);
}
.menu > li > a.active { color: var(--orange-hi); }
.caret { width: 10px; height: 10px; transition: transform 0.2s ease; }
.menu > li.open .caret { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: min(760px, 92vw);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  background: rgba(var(--panel-rgb), 0.97);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.menu > li.open .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.mega a:hover { background: rgba(245, 134, 44, 0.08); }
.mega a.active { background: rgba(27, 122, 214, 0.14); }
.mega strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--head);
  line-height: 1.3;
}
.mega small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--head);
  text-decoration: none;
  white-space: nowrap;
}
.phone:hover { color: var(--orange-hi); }
.lang {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: rgba(var(--field-rgb), 0.55);
  border: 1px solid var(--line);
}
.lang a {
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang a:hover { color: var(--orange-hi); }
.lang a.active { background: var(--blue); color: #fff; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--steel);
  color: var(--head);
  cursor: pointer;
}

/* Icons */
.ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(27, 122, 214, 0.14);
  box-shadow: inset 0 0 0 1px rgba(27, 122, 214, 0.32);
  color: var(--blue-hi);
}
.ico svg { width: 22px; height: 22px; }
.ico.orange {
  background: rgba(245, 134, 44, 0.14);
  box-shadow: inset 0 0 0 1px rgba(245, 134, 44, 0.35);
  color: var(--orange-hi);
}
.ico.lg { width: 56px; height: 56px; border-radius: 16px; }
.ico.lg svg { width: 30px; height: 30px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  color: #16110B;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(245, 134, 44, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(245, 134, 44, 0.45);
}
.btn.ghost {
  background: rgba(var(--panel-rgb), 0.6);
  color: var(--head);
  border: 1px solid rgba(150, 162, 178, 0.35);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--orange); color: var(--orange-hi); }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sections */
section { padding: 80px 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.hover-lift:hover { border-color: rgba(245, 134, 44, 0.45); transform: translateY(-3px); }
.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 28px 32px 24px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-hi);
}
h1, h2, h3 { color: var(--head); font-weight: 700; }
h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
}
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
p { margin: 0; }
.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--lead);
}
.section-head .lead { margin: 0 auto; max-width: 40em; }
.rule {
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  margin: 0 0 18px;
}
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.tile { padding: 24px 22px; text-align: left; }
.tile .ico { margin-bottom: 14px; }
.tile p { font-size: 15px; line-height: 1.5; }

/* Home hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 0 72px;
  box-sizing: border-box;
}
.hero-copy {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  padding: 32px 28px 16px;
  position: relative;
  isolation: isolate;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -90px -160px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--bg-rgb), 0.72), rgba(var(--bg-rgb), 0.42) 55%, rgba(var(--bg-rgb), 0) 100%);
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 18em;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.2;
  text-shadow: var(--halo);
}
.hero p {
  margin: 0 auto 28px;
  max-width: 36em;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.5;
  color: var(--lead);
  text-shadow: 0 1px 2px rgb(var(--bg-rgb)), 0 0 14px rgba(var(--bg-rgb), 0.85);
}

/* Hero intro: typed title, then the lead rises word by word, then the buttons */
.js .hero-anim h1, .js .hero-anim p, .js .hero-anim .btns {
  opacity: 0;
  animation: hero-show 0.6s 6s forwards;
}
.hero-anim.play h1, .hero-anim.play p { opacity: 1; animation: none; }
.hero-anim.play .btns { animation: none; }
.hero-anim .tw { opacity: 0; }
.hero-anim .tw.on { opacity: 1; animation: tw-in 0.18s ease-out; }
.hero-anim.static .tw { opacity: 1; animation: none; }
.tw-caret {
  position: relative;
  display: inline-block;
  width: 0;
  height: 1em;
  vertical-align: -0.12em;
}
.tw-caret::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--orange-hi);
  box-shadow: 0 0 10px rgba(245, 134, 44, 0.8);
}
.tw-caret.done::after { animation: caret-blink 0.5s step-end 2, caret-out 0.3s 1s forwards; }
.hero-anim .rw {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
}
.hero-anim.typed .rw {
  animation: word-rise 0.7s calc(var(--i) * 28ms) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-anim.typed .btns {
  animation: word-rise 0.8s calc(var(--words, 30) * 28ms + 0.25s) cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-anim.static .rw, .hero-anim.static .btns { opacity: 1; transform: none; filter: none; animation: none; }
@keyframes tw-in {
  from { opacity: 0; color: var(--orange-hi); text-shadow: 0 0 18px rgba(255, 163, 90, 0.9); }
  to { opacity: 1; }
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }
@keyframes word-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hero-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-anim h1, .js .hero-anim p, .js .hero-anim .btns { opacity: 1; animation: none; }
}
/* Industry tiles on home */
.ind-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ind-grid > .ind-card { flex: 0 1 calc((100% - 72px) / 5); min-width: 0; box-sizing: border-box; }
@media (max-width: 1080px) { .ind-grid > .ind-card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .ind-grid > .ind-card { flex-basis: 100%; } }
.ind-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  text-decoration: none;
  text-align: left;
}
.ind-card h3 { margin: 4px 0 0; font-size: clamp(15px, 1.3vw, 17px); overflow-wrap: anywhere; hyphens: manual; }
.ind-card p { font-size: 14px; line-height: 1.5; flex: 1; }
.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-hi);
  background: rgba(27, 122, 214, 0.12);
  border: 1px solid rgba(27, 122, 214, 0.3);
}
.badge.orange {
  color: var(--orange-hi);
  background: rgba(245, 134, 44, 0.12);
  border-color: rgba(245, 134, 44, 0.32);
}
.more {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-hi);
}

/* About */
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.about-copy, .contact-copy { padding: 36px 34px; }
.media {
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--graphite) center / cover no-repeat;
  border: 1px solid var(--line);
}

/* Product cards */
.prod-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.prod {
  position: relative;
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  text-align: left;
  overflow: hidden;
}
.prod::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.prod:hover::before { opacity: 1; }
.prod-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.prod-top .badge { align-self: center; text-align: right; }
.prod h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.prod p { margin: 0; font-size: 14px; line-height: 1.55; }
.prod-feats { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; flex: 1; align-content: start; }
.prod-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--head); }
.prod-feats svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--orange-hi); }
.prod-links { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.chip {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12.5px;
  text-decoration: none;
  color: var(--body);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--orange-hi); border-color: rgba(245, 134, 44, 0.5); }
.prod-links .more { text-decoration: none; padding: 5px 0; }
@media (max-width: 1080px) { .prod { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .prod { flex-basis: 100%; } }

/* Industry page hero */
.page-hero { padding: calc(var(--header-h) + 56px) 0 48px; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-hi); }
.page-hero-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.page-hero-copy { padding: 36px 34px; }
.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.2;
}
.page-hero .lead { margin-bottom: 26px; font-size: 17px; }
.page-hero .btns { justify-content: flex-start; }
.facts { padding: 28px; display: grid; gap: 14px; align-content: center; }
.fact { display: flex; gap: 14px; align-items: center; }
.fact b { display: block; color: var(--head); font-size: 15px; }
.fact span { font-size: 13px; color: var(--muted); }

/* Sub nav on industry page */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  padding: 10px 0;
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav);
  text-decoration: none;
}
.subnav a:hover, .subnav a.active { background: rgba(245, 134, 44, 0.12); color: var(--orange-hi); }

/* Solution block */
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.solution .panel { padding: 30px; text-align: left; display: flex; flex-direction: column; }
.own {
  margin-top: auto;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(245, 134, 44, 0.5);
  background: rgba(245, 134, 44, 0.07);
}
.solution .checklist { margin-bottom: 22px; }
.own b { display: block; color: var(--head); font-size: 15px; }
.own p { margin: 4px 0 8px; font-size: 14px; line-height: 1.5; }
.own-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-hi);
  text-decoration: none;
}
.own-link:hover { text-decoration: underline; }
.ask.flash { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 134, 44, 0.25); }
.checklist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 134, 44, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='%23F5862C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; text-align: left; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, var(--orange-hi), var(--blue-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { font-size: 14px; line-height: 1.5; }
.step.accent { border-color: rgba(245, 134, 44, 0.45); }
.step-badge { position: absolute; top: 24px; right: 18px; }

/* Cases */
.case { padding: 26px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case h3 { margin: 0; }
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.case-result {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.case-result div {
  flex: 1 1 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 134, 44, 0.08);
}
.case-result b { display: block; font-size: 20px; color: var(--orange-hi); line-height: 1.2; }
.case-result span { font-size: 12px; color: var(--muted); }
.case-result .text-only { display: flex; align-items: center; }
.case-result .text-only span { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--orange-hi); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; text-align: left; }
.calc-form { padding: 28px; display: grid; gap: 18px; }
.calc-fields { display: grid; gap: 18px; }
.tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
  background: rgba(var(--field-rgb), 0.6);
  border: 1px solid var(--line);
  justify-self: start;
}
.tabs button {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--nav);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button.active { background: var(--blue); color: #fff; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--head); }
.field small { font-size: 12px; color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row output {
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--orange-hi);
  background: rgba(245, 134, 44, 0.1);
}
input[type="range"] { flex: 1; accent-color: var(--orange); }
.stepper { display: flex; align-items: center; gap: 6px; max-width: 180px; }
.stepper button {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(150, 162, 178, 0.3);
  background: var(--steel);
  color: var(--head);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stepper button:hover { border-color: var(--orange); color: var(--orange-hi); }
.stepper input {
  width: 100%;
  min-width: 0;
  padding: 6px 4px;
  text-align: center;
  font-weight: 700;
  color: var(--orange-hi);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(150, 162, 178, 0.3);
  background: rgba(var(--field-rgb), 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.opt input:checked + span {
  border-color: var(--orange);
  background: rgba(245, 134, 44, 0.14);
  color: var(--orange-hi);
}
.opt input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.calc-result {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(160deg, rgba(27, 122, 214, 0.16), rgba(var(--panel-rgb), 0.85) 55%);
}
.calc-sum b {
  display: block;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  color: var(--head);
}
.calc-sum span { font-size: 13px; color: var(--muted); }
.calc-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.calc-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(245, 134, 44, 0.4);
}
.calc-result .btn { margin-top: auto; }
.calc-result [hidden] { display: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; text-align: left; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  position: relative;
  font-weight: 600;
  color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--orange-hi);
  background: rgba(245, 134, 44, 0.12);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "-"; }
.faq details[open] { border-color: rgba(245, 134, 44, 0.4); }
.faq details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; }
.ask { padding: 28px; display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 70px); }

/* Forms */
form.panel { padding: 28px; display: grid; gap: 12px; }
.lead-form { width: min(680px, 100%); margin: 0 auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, textarea, select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(150, 162, 178, 0.3);
  background: rgba(var(--field-rgb), 0.5);
  color: var(--ice);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select option { background: var(--steel); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 134, 44, 0.18);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 102px; resize: vertical; }
label { font-size: 13px; color: var(--lead); }
.ok, .err { display: none; margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.ok { color: var(--orange-hi); }
.err { color: var(--err); }
.err a { color: var(--head); }
.ok.show, .err.show { display: block; }
.consent { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--body); }
.consent a:hover { color: var(--orange-hi); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.calc-request { display: grid; gap: 12px; margin-top: auto; }
.calc-request .calc-note { margin: 0; }

/* Contacts */
.soc { display: flex; gap: 10px; margin-top: 22px; }
.soc a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--steel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--head);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-copy .soc a[href] { color: var(--head); }
.contact-copy .soc a[href]:hover { background: var(--orange); border-color: var(--orange); color: #16110B; }
.contact-copy a[href^="tel"] { color: var(--orange-hi); text-decoration: none; }
.map {
  border: 1px solid var(--line);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 20px;
  filter: grayscale(0.7) contrast(1.05) brightness(0.92);
}

/* CTA band */
.cta-band {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: linear-gradient(120deg, rgba(245, 134, 44, 0.16), rgba(27, 122, 214, 0.16));
}
.cta-band h2 { margin: 0 0 6px; }

/* Floating WhatsApp */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(245, 134, 44, 0.45);
  transition: transform 0.2s ease;
}
.fab:hover { transform: scale(1.06); }
.fab { border: 0; cursor: pointer; }
.fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 700 12px/20px inherit;
  text-align: center;
  box-shadow: 0 0 0 2px rgb(var(--bg-rgb));
}
.fab-badge[hidden] { display: none; }

/* Site chat, answered from 1C discussions */
.chat {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 31;
  width: min(370px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 130px));
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(var(--panel-rgb), 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px var(--shadow);
  backdrop-filter: blur(14px);
  transform-origin: 100% 100%;
  animation: chat-in 0.22s ease;
}
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  background: linear-gradient(120deg, rgba(245, 134, 44, 0.2), rgba(27, 122, 214, 0.2));
  border-bottom: 1px solid var(--line);
}
.chat-head strong { display: block; color: var(--head); font-size: 15px; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.chat-close {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nav);
  cursor: pointer;
}
.chat-close:hover { background: rgba(var(--field-rgb), 0.8); }
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
}
.chat-msg {
  max-width: 82%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-msg.in {
  align-self: flex-start;
  background: rgba(var(--field-rgb), 0.9);
  color: var(--body);
  border-bottom-left-radius: 4px;
}
.chat-msg.out {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.pending { opacity: 0.6; }
.chat-msg b { display: block; font-size: 12px; color: var(--blue-hi); margin-bottom: 2px; }
.chat-msg time { display: block; font-size: 11px; opacity: 0.65; margin-top: 3px; text-align: right; }
.chat-err {
  display: none;
  margin: 0 14px 8px;
  font-size: 13px;
  color: var(--err);
}
.chat-err.show { display: block; }
.chat-err a { color: inherit; font-weight: 600; }
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  box-sizing: border-box;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--field-rgb), 0.9);
  color: var(--head);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.chat-form textarea:focus { outline: none; border-color: var(--blue); }
.chat-form button {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-hi), var(--orange));
  color: #fff;
  cursor: pointer;
}
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.chat-wa:hover { color: #25D366; }
@media (max-width: 520px) {
  .chat { right: 8px; left: 8px; width: auto; bottom: 86px; height: calc(100vh - 110px); }
}

/* Music toggle */
.sound {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(var(--panel-rgb), 0.85);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sound:hover { border-color: var(--orange); transform: scale(1.05); }
.sound .bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.sound .bars i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--muted);
  transition: background 0.2s ease;
}
.sound.on .bars i { background: var(--orange-hi); animation: eq 0.9s ease-in-out infinite; }
.sound.on .bars i:nth-child(2) { animation-delay: -0.3s; }
.sound.on .bars i:nth-child(3) { animation-delay: -0.6s; }
.sound.on .bars i:nth-child(4) { animation-delay: -0.15s; }
.sound:not(.on)::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(-45deg);
}
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound.on .bars i { animation: none; height: 12px; }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 0 28px;
  background: rgba(var(--bg-rgb), 0.92);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-in {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 32px;
}
.footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--head);
}
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer .cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer a { text-decoration: none; color: var(--body); }
.footer a:hover { color: var(--orange-hi); }
.footer-logo { width: 96px; height: 84px; margin-bottom: 12px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* Legal pages */
.legal { width: min(860px, 100%); margin: 0 auto; padding: 40px 44px; }
.legal h1 { margin: 0 0 8px; }
.legal-date { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.legal .lead { font-size: 16px; }
.legal section { margin-top: 30px; padding: 0; }
.legal h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; color: var(--head); }
.legal p, .legal li { line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.legal-org { display: grid; gap: 8px; margin: 0 0 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; }
.legal-org div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.legal-org dt { color: var(--muted); }
.legal-org dd { margin: 0; color: var(--head); }
@media (max-width: 640px) {
  .legal { padding: 28px 20px; }
  .legal-org div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 1240px) {
  .phone { display: none; }
}
@media (max-width: 1080px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .logo { width: 64px; height: 56px; }
  .header-in { gap: 12px; }
  .header-cta { margin-left: auto; }
  .burger { display: grid; place-items: center; }
  .header-cta .btn { display: none; }
  .menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 40px;
    background: rgba(var(--bg-rgb), 0.98);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .header.menu-open .menu { transform: none; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; font-size: 16px; }
  .mega {
    position: static;
    width: auto;
    grid-template-columns: 1fr;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 4px 0 8px;
  }
  .menu > li.open .mega { display: grid; }
  .g2, .g3, .g4, .g5, .about-grid, .contact-grid, .row, .page-hero-in, .solution, .calc, .faq, .footer-in {
    grid-template-columns: 1fr;
  }
  .ask { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head, .hero-copy { padding-left: 18px; padding-right: 18px; }
  .map { min-height: 280px; }
  .footer-bottom { flex-direction: column; }
}

/* 404 page */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
