/* ============ Tokens ============ */
:root {
  --primary: hsl(205 70% 40%);
  --primary-600: hsl(205 72% 34%);
  --primary-300: hsl(201 80% 62%);
  --accent: hsl(196 31% 46%);
  --cyan: hsl(190 85% 55%);
  --fg: hsl(211 28% 15%);
  --muted-fg: hsl(207 14% 43%);
  --bg: hsl(0 0% 98%);
  --white: #fff;
  --muted: hsl(204 54% 95%);
  --secondary: hsl(202 76% 94%);
  --border: hsl(210 17% 84%);
  --dark: #1b2533;
  --dark-2: #222e3e;

  --radius: 6px;
  --shadow-lg: 0 30px 60px -20px hsl(205 60% 30% / .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ============ Scroll progress ============ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(210 40% 98% / .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid hsl(210 17% 84% / .6);
  transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px hsl(211 40% 20% / .35); background: hsl(0 0% 100% / .88); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .18em; font-size: 19px; }
.logo img { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo--light { color: #fff; font-size: 17px; }
.logo--light img { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 40px; font-weight: 500; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--primary); }
.nav__cta { color: var(--primary); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.nav__cta svg { transition: transform .3s var(--ease); }
.nav__cta:hover svg { transform: translate(3px, -3px); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__inner { height: 66px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 16px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 40px -30px hsl(211 40% 20% / .4);
    clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--muted); }
  .nav a::after { display: none; }
  .nav__cta { border-bottom: 0 !important; }
}

/* ============ Language switcher ============ */
.nav { margin-left: auto; }
.lang { position: relative; margin-left: 32px; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: hsl(0 0% 100% / .6);
  color: var(--fg); font-weight: 700; font-size: 13px; letter-spacing: .04em;
  transition: border-color .3s, background .3s;
}
.lang__btn:hover, .lang.is-open .lang__btn { border-color: var(--primary); background: #fff; }
.lang__btn > svg:first-child { color: var(--primary); }
.lang__chev { transition: transform .3s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 50px -20px hsl(211 50% 20% / .45);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.lang__menu a b { width: 28px; font-size: 12px; letter-spacing: .05em; color: var(--muted-fg); }
.lang__menu a:hover { background: var(--muted); color: var(--primary); }
.lang__menu a[aria-current="true"] { background: var(--secondary); color: var(--primary); font-weight: 700; }
.lang__menu a[aria-current="true"] b { color: var(--primary); }
@media (max-width: 1080px) {
  .lang { margin-left: auto; margin-right: 6px; }
}

@media (min-width: 1081px) and (max-width: 1240px) {
  .nav { gap: 24px; font-size: 14px; }
  .lang { margin-left: 20px; }
}

/* ============ Typography ============ */
.h2 {
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.045em;
  font-weight: 700; margin: 0;
}
.h2--sm { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; }
.lead { color: var(--muted-fg); font-size: 17px; line-height: 1.75; margin: 22px 0 0; max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: hsl(205 70% 40% / .08); border: 1px solid hsl(205 70% 40% / .18);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }
.dot--live { background: #22c55e; box-shadow: 0 0 0 0 #22c55e88; animation: ping 1.8s infinite; }

.gradient-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 10%, var(--cyan) 50%, var(--primary) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.gradient-text--light { background-image: linear-gradient(100deg, #fff 10%, var(--primary-300) 50%, #fff 90%); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 22px; border-radius: var(--radius); font-weight: 700; font-size: 15px;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 12px 24px -12px hsl(205 70% 40% / .8); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, hsl(0 0% 100% / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--primary-600); box-shadow: 0 18px 30px -12px hsl(205 70% 40% / .9); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn svg { transition: transform .3s var(--ease); }
.btn--primary:hover svg:last-child { transform: translateX(4px); }
.btn--ghost { color: #fff; border-color: hsl(0 0% 100% / .35); }
.btn--ghost:hover { border-color: #fff; background: hsl(0 0% 100% / .06); }

.link-arrow { color: var(--primary); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, hsl(210 40% 98%) 0%, hsl(204 70% 96%) 60%, hsl(202 76% 94%) 100%);
  padding: 88px 0 150px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; background: hsl(201 80% 75%); top: -180px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.blob--2 { width: 420px; height: 420px; background: hsl(190 80% 80%); bottom: -160px; left: -140px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(hsl(205 70% 40% / .06) 1px, transparent 1px),
    linear-gradient(90deg, hsl(205 70% 40% / .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
}
#bubbles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__title {
  font-size: clamp(44px, 6.3vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 700; margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
.hero__lead { color: var(--muted-fg); font-size: 18px; line-height: 1.75; margin: 28px 0 0; max-width: 540px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 40px; }

.hero__media { position: relative; }
.hero__frame {
  position: relative; border-radius: 4px 72px 4px 4px; overflow: hidden;
  box-shadow: var(--shadow-lg); transform-style: preserve-3d; transition: transform .5s var(--ease);
  aspect-ratio: 4 / 3;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.hero__frame:hover img { transform: scale(1.1); }
.hero__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), hsl(0 0% 100% / .25), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.hero__frame:hover .hero__shine { opacity: 1; }

.float-card {
  position: absolute; background: hsl(0 0% 100% / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsl(0 0% 100% / .9); border-radius: 14px;
  box-shadow: 0 20px 40px -18px hsl(211 50% 20% / .45);
  padding: 14px 16px; font-size: 13px; animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted-fg); font-size: 12px; }
.float-card--iq { left: -36px; bottom: 40px; width: 170px; }
.float-card--3d { right: -20px; top: -24px; display: flex; gap: 12px; align-items: center; animation-delay: -3s; }
.float-card--3d b { display: block; font-size: 14px; }
.cube { color: var(--primary); animation: spin 10s linear infinite; }
.spark { width: 100%; height: 36px; margin: 6px 0 2px; }
.spark path { stroke: var(--primary); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 3.5s ease-in-out infinite; }

.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 1.8s infinite; }

.waves { position: absolute; left: 0; bottom: -1px; width: 100%; height: 110px; overflow: visible; }
.wave { will-change: transform; transform-box: fill-box; }
.wave--1 { fill: hsl(201 80% 62% / .18); animation: wave 14s linear infinite; }
.wave--2 { fill: hsl(205 70% 40% / .12); animation: wave 10s linear infinite reverse; }
.wave--3 { fill: #fff; animation: wave 18s linear infinite; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 120px; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .float-card--iq { left: 12px; bottom: -28px; }
  .float-card--3d { right: 12px; top: -22px; }
}

/* ============ Ticker ============ */
.ticker { overflow: hidden; border-block: 1px solid var(--border); background: #fff; padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: hsl(211 28% 15% / .22);
  padding: 0 0 0 36px; display: inline-flex; align-items: center; white-space: nowrap;
  transition: color .3s;
}
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-300); margin-left: 36px; }
.ticker span:hover { color: var(--primary); }

/* ============ Sections ============ */
.section { padding: 120px 0; position: relative; }
.section--muted { background: hsl(210 40% 95%); }
.section--blue { background: linear-gradient(180deg, hsl(204 64% 93%), hsl(202 70% 91%)); overflow: hidden; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.section__sub { color: var(--muted-fg); max-width: 400px; margin: 0; font-size: 16px; }
@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
}

/* ============ Cards ============ */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.card {
  position: relative; padding: 28px 26px 34px; min-height: 220px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #fff; overflow: hidden; isolation: isolate;
  transition: background .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), hsl(201 80% 62% / .16), transparent 60%);
}
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 46px; height: 46px; padding: 10px; color: var(--primary);
  background: var(--secondary); border-radius: 12px; margin-bottom: 26px;
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.card:hover .card__icon { transform: translateY(-4px) rotate(-6deg); background: var(--primary); color: #fff; }
.card__num {
  position: absolute; top: 22px; right: 24px; font-weight: 800; font-size: 13px;
  color: hsl(211 28% 15% / .18); letter-spacing: .05em; transition: color .3s;
}
.card:hover .card__num { color: var(--primary); }
.card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 700; }
.card p { margin: 0; color: var(--muted-fg); font-size: 14px; line-height: 1.65; }
.card--feature {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: 36px 34px; color: #fff; background: var(--dark);
}
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card--feature::before {
  opacity: 1; z-index: -1;
  background: linear-gradient(180deg, hsl(211 50% 12% / .15) 0%, hsl(211 50% 12% / .55) 45%, hsl(211 55% 10% / .94) 100%);
}
.card--feature:hover .card__bg { transform: scale(1.06); }
.card--feature .card__icon { background: hsl(0 0% 100% / .15); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card--feature:hover .card__icon { background: var(--primary); }
.card--feature h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.1; }
.card--feature p { color: hsl(210 25% 85%); font-size: 16px; max-width: 460px; }
.card--feature .card__num { color: hsl(0 0% 100% / .5); }
.card--feature:hover .card__num { color: #fff; }
.card__badge {
  position: absolute; top: 22px; left: 34px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--primary); color: #fff;
  box-shadow: 0 0 0 0 hsl(201 80% 62% / .6); animation: halo 2.6s infinite;
}
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--primary-300); }
.card__link svg { transition: transform .3s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }
@keyframes halo { 0% { box-shadow: 0 0 0 0 hsl(201 80% 62% / .6); } 80%, 100% { box-shadow: 0 0 0 12px hsl(201 80% 62% / 0); } }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } .card--feature { grid-row: span 1; min-height: 400px; } }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card--feature { grid-column: auto; min-height: 420px; padding: 28px 22px; }
  .card__badge { left: 22px; }
}

/* ============ Split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split--center { align-items: center; grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) { .split, .split--center { grid-template-columns: 1fr; gap: 48px; } }

/* ============ Why SONMAR ============ */
.why { background: linear-gradient(180deg, #fff, hsl(210 40% 97%)); overflow: hidden; }
.why__statement {
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.04em; font-weight: 700;
  margin: 0; max-width: 1040px;
}
.why__statement .mark {
  background: linear-gradient(transparent 62%, hsl(201 80% 62% / .35) 62%);
  background-size: 0% 100%; background-repeat: no-repeat;
  transition: background-size 1.2s var(--ease) .4s;
}
.why__statement.is-in .mark { background-size: 100% 100%; }
.why .lead { max-width: 680px; }

.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; }
.flow__line { position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--border); }
.flow__line span {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .2s linear;
}
.flow__line::after {
  content: ""; position: absolute; left: calc(var(--p, 0) * 100% - 6px); top: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 6px hsl(190 85% 55% / .2), 0 0 18px var(--cyan);
  transition: left .2s linear;
}
.pillar { position: relative; }
.pillar__icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: #fff; color: var(--primary); border: 1px solid var(--border);
  box-shadow: 0 12px 30px -16px hsl(205 60% 30% / .45);
  transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s;
}
.pillar__icon svg { width: 28px; height: 28px; }
.pillar:hover .pillar__icon { transform: translateY(-6px) rotate(-6deg); background: var(--primary); color: #fff; border-color: var(--primary); }
.pillar__num { display: block; margin: 26px 0 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; color: var(--primary); }
.pillar h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.pillar p { margin: 0; color: var(--muted-fg); font-size: 15px; line-height: 1.7; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .flow__line { display: none; }
}
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; } }

/* ============ Paths (clients / dealers) ============ */
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  padding: 44px 40px 40px; border-radius: 20px; background: hsl(204 54% 96%); border: 1px solid hsl(205 50% 88%);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.path:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px hsl(205 60% 30% / .45); }
.path h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.035em; margin: 18px 0 16px; font-weight: 700; }
.path p { margin: 0; color: var(--muted-fg); font-size: 16px; line-height: 1.7; }
.path .btn { margin-top: auto; }
.path__tag {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid hsl(205 70% 40% / .2);
}
.ticks { list-style: none; padding: 0; margin: 26px 0 36px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; font-size: 15px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.path--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.path--dark p { color: hsl(210 20% 78%); }
.path--dark .path__tag { background: hsl(205 70% 40% / .25); border-color: hsl(201 80% 62% / .4); color: var(--primary-300); }
.path--dark .ticks li::before { background-color: var(--cyan); }
.path__glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: -200px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(201 80% 55% / .45), transparent); animation: drift 14s ease-in-out infinite alternate;
}
.btn--light { background: #fff; color: var(--dark); box-shadow: 0 12px 24px -12px #0008; }
.btn--light:hover { background: hsl(202 76% 94%); }
.btn--light:hover svg:last-child { transform: translateX(4px); }
.paths__grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.paths__grid--3 .path { padding: 36px 30px 32px; }
.paths__grid--3 .path h3 { font-size: clamp(24px, 2.1vw, 29px); }
.path__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.path__num { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.04em; color: hsl(205 70% 40% / .14); transition: color .4s, transform .5s var(--ease); }
.path:hover .path__num { color: hsl(205 70% 40% / .35); transform: translateY(-4px); }
.path--dark .path__num, .path--blue .path__num { color: hsl(0 0% 100% / .14); }
.path--dark:hover .path__num, .path--blue:hover .path__num { color: hsl(0 0% 100% / .35); }
.path--blue { background: linear-gradient(150deg, var(--primary) 0%, hsl(205 75% 30%) 100%); border-color: var(--primary); color: #fff; }
.path--blue p { color: hsl(205 60% 90%); }
.path--blue .path__tag { background: hsl(0 0% 100% / .14); border-color: hsl(0 0% 100% / .3); color: #fff; }
.path--blue .ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6aa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.path--blue .path__glow { background: radial-gradient(closest-side, hsl(190 85% 60% / .45), transparent); left: -220px; right: auto; top: auto; bottom: -260px; }
@media (max-width: 1100px) { .paths__grid--3 { grid-template-columns: 1fr; } .paths__grid--3 .path h3 { font-size: 28px; } }
@media (max-width: 900px) { .paths__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .path { padding: 32px 22px 28px; border-radius: 16px; } }

/* ============ Automation ============ */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 0; }
.chips li {
  background: hsl(0 0% 100% / .7); border: 1px solid hsl(205 70% 40% / .18); color: var(--fg);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .3s var(--ease), background .3s;
}
.chips li:hover { transform: translateY(-2px); background: #fff; }
.device { position: relative; }
.device img { position: relative; background: #fff; box-shadow: var(--shadow-lg); border-radius: 6px; transition: transform .6s var(--ease); }
.device:hover img { transform: translateY(-6px); }
.device__glow {
  position: absolute; inset: 10% -5%; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(201 80% 62% / .55), transparent);
  filter: blur(30px); animation: pulse 5s ease-in-out infinite;
}
.device__badge {
  position: absolute; right: 18px; top: -18px; display: flex; align-items: center; gap: 12px;
  background: var(--dark); color: #fff; border-radius: 999px; padding: 10px 16px;
  box-shadow: 0 14px 30px -12px hsl(211 50% 15% / .6); animation: bob 5s ease-in-out infinite;
}
.eq { width: 28px; height: 14px; }
.eq rect { fill: var(--primary-300); stroke: none; transform-origin: bottom; transform-box: fill-box; animation: eq 1s ease-in-out infinite alternate; }
.eq rect:nth-child(2) { animation-delay: -.3s; }
.eq rect:nth-child(3) { animation-delay: -.6s; }
.eq rect:nth-child(4) { animation-delay: -.15s; }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 16px; align-items: start; }
.gallery__item {
  position: relative; padding: 0; border: 0; background: var(--muted); overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 3; cursor: zoom-in;
}
.gallery__item:nth-child(2) { margin-top: 28px; }
.gallery__item:nth-child(3) { margin-top: 56px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, hsl(211 50% 12% / .55));
  opacity: 0; transition: opacity .5s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__zoom {
  position: absolute; z-index: 1; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--primary);
  transform: scale(.4); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { transform: scale(1); opacity: 1; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:nth-child(n) { margin-top: 0; }
}

/* ============ Contacts ============ */
.contacts { position: relative; background: var(--dark); color: #fff; padding: 150px 0 0; overflow: hidden; }
.contacts__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; }
.contacts__wave path { fill: #fff; }
.contacts__glow {
  position: absolute; width: 700px; height: 700px; left: -250px; top: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(205 70% 40% / .35), transparent); pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}
.contacts .split { position: relative; align-items: center; }
.contacts .lead { color: hsl(210 20% 78%); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; align-items: center; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0;
  color: hsl(210 20% 70%); font-size: 13px; padding: 8px 4px; transition: color .3s;
}
.copy:hover { color: #fff; }

.requisites { margin: 0; border-top: 1px solid hsl(0 0% 100% / .14); }
.requisites div {
  display: grid; grid-template-columns: 144px 1fr; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid hsl(0 0% 100% / .14); transition: padding .4s var(--ease), background .4s;
}
.requisites div:hover { padding-left: 12px; background: linear-gradient(90deg, hsl(0 0% 100% / .05), transparent); }
.requisites dt { color: hsl(210 15% 62%); font-size: 14px; }
.requisites dd { margin: 0; font-weight: 500; }
@media (max-width: 480px) { .requisites div { grid-template-columns: 1fr; gap: 2px; } }

.footer {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 96px; padding-top: 28px; padding-bottom: 32px;
}
.footer::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: hsl(0 0% 100% / .14); }
@media (max-width: 600px) { .footer::before { left: 16px; right: 16px; } }
.footer small { color: hsl(210 15% 62%); font-size: 13px; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; color: hsl(210 20% 78%); font-size: 14px; transition: color .3s; }
.footer__up:hover { color: #fff; }
.footer__up svg { transition: transform .3s var(--ease); }
.footer__up:hover svg { transform: translateY(-3px); }

/* ============ Lightbox / toast ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: hsl(211 40% 8% / .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: min(1200px, 100%); border-radius: 6px; box-shadow: 0 30px 80px #0008; animation: zoom .4s var(--ease); }
.lightbox button { position: absolute; background: hsl(0 0% 100% / .1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; transition: background .3s; }
.lightbox button:hover { background: hsl(0 0% 100% / .22); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 210; transform: translate(-50%, 20px);
  background: var(--fg); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { animation: appear 1s var(--ease) forwards; animation-delay: var(--d, 0s); transition: none; }

/* ============ Keyframes ============ */
@keyframes rise { to { transform: translateY(0); } }
@keyframes appear { to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotateY(360deg); } }
@keyframes draw { 0% { stroke-dashoffset: 220; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -220; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #22c55e99; } 80%, 100% { box-shadow: 0 0 0 8px #22c55e00; } }
@keyframes pulse { 50% { opacity: .6; transform: scale(.95); } }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { transform: scale(.92); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  #bubbles { display: none; }
}
