/* Ospan Trade — main stylesheet */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand book */
  --navy: #151b26;
  --steel: #a8b7be;
  --sky: #e4eefa;
  --white: #ffffff;
  /* Derived */
  --ink: var(--navy);
  --ink-2: #4b5666;
  --ink-3: #7a8794;
  --bg: var(--white);
  --bg-soft: #f4f8fd;
  --line: rgba(21, 27, 38, .1);
  --line-strong: rgba(21, 27, 38, .18);
  --glow: #4a86d4;
  --wa: #25d366;
  --danger: #c2413b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 150px);
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(21, 27, 38, .04), 0 12px 40px -12px rgba(21, 27, 38, .12);
  --shadow-lg: 0 30px 80px -20px rgba(21, 27, 38, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-weight: 360; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 110vh) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: .01em;
  white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 30px -10px rgba(21, 27, 38, .5); }
.btn--primary:hover { background: #253043; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(.95); }
.btn:disabled { opacity: .6; pointer-events: none; }

.link-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--navy); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: gap .25s var(--ease), border-color .25s; }
.link-btn .icon { width: 16px; height: 16px; }
.link-btn:hover { gap: 12px; border-color: var(--navy); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .3s, box-shadow .3s, transform .35s var(--ease); }
.header.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo { flex: none; width: 190px; color: var(--navy); }
.header__logo svg { width: 100%; height: auto; }
.nav { flex: 1; }
.nav__list { display: flex; gap: 26px; justify-content: center; }
.nav__link { font-size: 15px; font-weight: 420; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { font-weight: 500; font-size: 15px; white-space: nowrap; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(21, 27, 38, .05); }
.lang__item { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px; color: var(--ink-3); transition: background .2s, color .2s; }
.lang__item.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(21, 27, 38, .12); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; background: rgba(21, 27, 38, .05); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 3D scene layer ---------- */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .2s linear; }
.scene__canvas { width: 100%; height: 100%; display: block; }
main, .footer { position: relative; z-index: 1; }
.stage { position: relative; }
.stage__fallback { display: none; width: 100%; height: 100%; object-fit: contain; }
.no-webgl .stage__fallback { display: block; }

/* ---------- Decorative spheres (brand motif) ---------- */
.sphere { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, rgba(228, 238, 250, .9) 35%, rgba(168, 183, 190, .35) 70%, rgba(168, 183, 190, 0) 72%);
  box-shadow: inset -30px -40px 80px rgba(168, 183, 190, .25), inset 20px 20px 60px rgba(255, 255, 255, .9);
}
.sphere::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(168, 183, 190, .35); }
.sphere--steps { width: 620px; aspect-ratio: 1; left: -260px; top: 10%; opacity: .7; }
.sphere--contact { width: 760px; aspect-ratio: 1; right: -300px; bottom: -200px; opacity: .8; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 80px; overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero__content { max-width: 620px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow__num { font-variant-numeric: tabular-nums; color: var(--navy); padding-right: 12px; border-right: 1px solid var(--line-strong); }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 6px rgba(74, 134, 212, .15); }
.hero__title { margin-top: 24px; font-size: clamp(40px, 5.2vw, 80px); hyphens: manual; overflow-wrap: break-word; line-height: 1.02; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.hero__subtitle { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 540px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cities { margin-top: 36px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.hero__cities .icon { width: 16px; height: 16px; }
.hero__stage { height: min(78vh, 760px); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--navy); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.stats { position: relative; padding: 0 0 20px; }
.stats__list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); }
.stat { padding: 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__label { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section-y) 0; isolation: isolate; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head__main { max-width: 820px; }
.sec-title { margin-top: 20px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.sec-lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 680px; }
.sec-head__cta { flex: none; }
.sub-title { margin: clamp(56px, 7vw, 96px) 0 28px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- About ---------- */
.about { background: #fff; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about__point { padding-top: 24px; border-top: 1px solid var(--navy); font-size: 17px; color: var(--ink-2); }
.about__idx { display: block; font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid transparent; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.value:hover { background: #fff; border-color: var(--line); transform: translateY(-3px); }
.value__title { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.value__title::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 18px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0, var(--sky) 45%, var(--steel) 100%); box-shadow: inset -3px -4px 8px rgba(21, 27, 38, .12); }
.value__text { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ---------- Services: interactive building model (model.js) ---------- */
.services { padding-bottom: calc(var(--section-y) * .7); }
/* Each system has its own colour in the model; --c is set per element by the sys-* class */
.model, .hero-model { --m-cctv: #1F7FE8; --m-access: #7F5BEA; --m-fire: #E5323D; --m-evac: #E8871A; --m-scs: #14A882; --m-alarm: #E040A8; }
.model .sys-cctv, .hero-model .sys-cctv { --c: var(--m-cctv); } .model .sys-access, .hero-model .sys-access { --c: var(--m-access); } .model .sys-fire, .hero-model .sys-fire { --c: var(--m-fire); }
.model .sys-evac, .hero-model .sys-evac { --c: var(--m-evac); } .model .sys-scs, .hero-model .sys-scs { --c: var(--m-scs); } .model .sys-alarm, .hero-model .sys-alarm { --c: var(--m-alarm); }
.model { display: grid; grid-template-columns: minmax(0, 1fr); }
.model-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--navy)); flex: none; }

.model__stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; height: clamp(560px, 80vh, 820px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 80% at 35% 100%, #fff 0%, var(--bg-soft) 50%, var(--sky) 100%); }
.model__view { position: relative; min-width: 0; }
.model__view canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.model__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.model__loader { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ink-3); }
/* Floor scale: a thin column of round buttons at the left edge, like in a lift */
.model__floors { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.model-fl { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: background .2s, color .2s, opacity .2s; }
.model-fl svg { width: 17px; height: 17px; }
.model-fl:hover { background: var(--line); color: var(--ink); }
.model-fl.is-empty { opacity: .35; }
.model-fl[aria-pressed="true"] { background: var(--navy); color: var(--bg); opacity: 1; }
.model-fl--whole { margin-bottom: 4px; }
.model__tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); background: var(--bg); color: var(--ink); border: 1px solid var(--c, var(--line)); box-shadow: var(--shadow); padding: 7px 11px; border-radius: 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.model__tip small { display: block; font-size: 11px; color: var(--ink-3); }
.model__hint { position: absolute; left: 64px; bottom: 14px; font-size: 12px; color: var(--ink-3); pointer-events: none; }

/* Panel: only the list of systems */
.model__panel { overflow: auto; background: color-mix(in srgb, var(--bg) 88%, transparent); border-left: 1px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.model-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.model-systems { display: grid; gap: 2px; }
.model-sys { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 12px; font-size: 16px; line-height: 1.3; color: var(--ink-2); transition: background .2s, color .2s; }
.model-sys__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, transparent); box-shadow: inset 0 0 0 1.5px var(--c, var(--ink-3)); transition: transform .2s; }
.model-sys:hover { background: color-mix(in srgb, var(--c, var(--navy)) 8%, transparent); color: var(--ink); }
.model-sys.is-current { background: color-mix(in srgb, var(--c, var(--navy)) 13%, transparent); color: var(--ink); font-weight: 500; }
.model-sys.is-current .model-sys__dot { transform: scale(1.25); }
.model-picked { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); font-size: 15px; font-weight: 500; color: var(--ink); }
.model-picked span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.model-back { align-self: flex-start; font-size: 14px; color: var(--ink-3); padding-left: 12px; }
.model-back:hover { color: var(--ink); }
.model-cta { margin-top: auto; align-self: stretch; white-space: normal; height: auto; min-height: 48px; padding: 12px 20px; line-height: 1.3; }
/* Hero: light version of the model (no controls); caption shows the system currently lit */
.hero-model { position: relative; cursor: pointer; }
/* soft fade at the edges: the ground plate is wider than the stage and would otherwise be cut by a hard rectangle */
.hero-model canvas { display: block; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.hero-model__cap { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Server-rendered service cards: shown until the model starts, and instead of it without WebGL */
.model-card { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.model-card:last-child { border-bottom: 0; }
.model-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--navy); }
.model-card__icon .icon { width: 22px; height: 22px; }
.model-card__title { font-size: 18px; font-weight: 500; line-height: 1.25; }
.model-card__text { color: var(--ink-2); font-size: 15px; }
.model-card .link-btn { justify-self: start; }
/* Without JS or WebGL: picture + full list of services, no controls */
html:not(.js) .model__stage, .model.is-static .model__stage { height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
html:not(.js) .model__fallback, .model.is-static .model__fallback { display: block; position: static; height: auto; }
html:not(.js) .model__loader, .model.is-static .model__loader, html:not(.js) .model__hint, .model.is-static .model__hint { display: none; }
.more-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.mini-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.mini-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.mini-card__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); }
.mini-card__title { font-size: 17px; font-weight: 500; line-height: 1.3; }
.mini-card__text { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* ---------- Steps / timeline ---------- */
.steps { background: var(--bg-soft); overflow: clip; }
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-strong); }
.timeline__item { position: relative; padding: 0 20px 0 0; }
.timeline__num { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .3s, color .3s; }
.timeline__item:hover .timeline__num { background: var(--navy); color: #fff; }
.timeline__title { margin-top: 26px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.timeline__text { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Industries ---------- */
.ind { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.ind__tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.ind__tab { text-align: left; padding: 13px 18px; border-radius: 12px; font-size: 15.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.ind__tab:hover { background: var(--bg-soft); color: var(--navy); }
.ind__tab.is-active { background: var(--navy); color: #fff; }
.ind__panel { padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--bg-soft); min-height: 100%; animation: fade-in .45s var(--ease); }
.ind__title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.ind__cols { margin: 32px 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.ind__label { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.check-list { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.check-list li { display: flex; gap: 12px; }
.check-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--glow); }
.check-list--muted li { color: var(--ink-2); padding-left: 16px; position: relative; }
.check-list--muted li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 450; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.projects__grid[data-collapsed="true"] .project.is-extra { display: none; }
.project.is-filtered { display: none; }
.project__btn { width: 100%; text-align: left; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.project__btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project__btn:hover .project__media img { transform: scale(1.05); }
.project__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.project__city { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.project__city .icon { width: 14px; height: 14px; }
.project__title { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.project__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.fact b { color: var(--navy); font-weight: 600; }
.project__more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.project__more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.project__btn:hover .project__more .icon { transform: rotate(90deg); }
.projects__more { display: flex; justify-content: center; margin-top: 36px; }
.others { margin-top: clamp(56px, 7vw, 90px); padding-top: 32px; border-top: 1px solid var(--line); }
.others__title { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; }
.others__list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 420; letter-spacing: -.01em; }
.others__list li { color: var(--ink-2); }

/* ---------- Geography ---------- */
.geo { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.geo__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.geo .sec-head { display: block; margin-bottom: 32px; }
.geo .sec-head__cta { margin-top: 28px; }
.geo__cities { display: flex; flex-wrap: wrap; gap: 8px; }
.geo__cities li { font-size: 14px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.geo__cities li.is-main { background: var(--navy); color: #fff; border-color: var(--navy); }
.geo__map { margin: 0; }
.geo__map svg { width: 100%; height: auto; overflow: visible; }
.geo__shape { fill: rgba(228, 238, 250, .8); stroke: var(--steel); stroke-width: 1; stroke-linejoin: round; }
.geo__dots { opacity: .55; }
.geo__link { fill: none; stroke: var(--glow); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.geo__dot { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.geo__city.is-main .geo__dot { fill: var(--navy); }
.geo__pulse { fill: var(--glow); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; animation-delay: var(--d); }
.geo__city text { font-size: 11px; font-weight: 450; fill: var(--ink-2); paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; }
.geo__city.is-main text { font-weight: 600; fill: var(--navy); font-size: 12.5px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(4.5); opacity: 0; } }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why-card { background: #fff; padding: clamp(28px, 3vw, 40px); transition: background .3s; }
.why-card:hover { background: var(--bg-soft); }
.why-card__num { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.why-card__title { margin-top: 36px; font-size: 21px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.why-card__text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.compare { position: relative; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare__col { padding: clamp(28px, 3vw, 40px); }
.compare__col--us { background: var(--navy); color: #fff; }
.compare__col--us .icon { color: #8fb8ea; }
.compare__title { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; margin-bottom: 22px; }
.compare__title .mark { width: 40px; height: auto; }
.compare__col ul { display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; }
.compare__col li { display: flex; gap: 12px; }
.compare__col li .icon { width: 18px; height: 18px; margin-top: 3px; }
.compare__col:not(.compare__col--us) { color: var(--ink-2); background: var(--bg-soft); }
.compare__vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--navy); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Brands marquee ---------- */
.brands { overflow: clip; }
.marquee { display: flex; flex-direction: column; gap: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__track { display: flex; gap: 18px; padding-right: 18px; }
.brand { width: 190px; height: 96px; flex: none; display: grid; place-items: center; padding: 22px 28px; border-radius: 18px; background: var(--bg-soft); border: 1px solid transparent; transition: background .3s, border-color .3s; }
.brand img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; opacity: .7; transition: opacity .3s; }
.brand:hover { background: #fff; border-color: var(--line); }
.brand:hover img { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Certificates ---------- */
.certs { background: var(--bg-soft); }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert__btn { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.cert__media { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cert__media img { max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 20px -8px rgba(21, 27, 38, .25); }
.cert__btn:hover .cert__media { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cert__title { font-size: 15px; font-weight: 450; line-height: 1.4; }

/* ---------- Maintenance ---------- */
.maint__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.maint-card { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.maint-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--sky) 60%, rgba(168, 183, 190, .4)); opacity: .7; transition: transform .6s var(--ease); }
.maint-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.maint-card:hover::after { transform: scale(1.25); }
.maint-card__icon { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: #fff; }
.maint-card__icon .icon { width: 24px; height: 24px; }
.maint-card__title { position: relative; z-index: 1; margin-top: 28px; font-size: 19px; font-weight: 500; }
.maint-card__text { position: relative; z-index: 1; margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* ---------- Contact & forms ---------- */
.contact { overflow: clip; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .sec-head { display: block; }
.contact__list { display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--ink-3); }
.contact__phones { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.contact__list a { font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact__list a:hover { border-color: var(--navy); }
.form.card { padding: clamp(24px, 3.5vw, 40px); }
.form__body { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-soft); border: 1px solid transparent; border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151b26' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(74, 134, 212, .12); }
.field.has-error input { border-color: var(--danger); background: #fff; }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; color: var(--ink-2); text-align: center; }
.form__status.is-error { color: var(--danger); }
.form__success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0; }
.form__success h3 { font-size: 24px; font-weight: 500; }
.form__success p { color: var(--ink-2); max-width: 380px; }
.form__success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); }
.form__success-icon .icon { width: 30px; height: 30px; }

/* ---------- Modals ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(21, 27, 38, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal[open]::backdrop { animation: fade .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__box { position: relative; width: 460px; max-width: 100%; max-height: calc(100dvh - 32px); overflow: auto; padding: 40px 36px 32px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); transition: background .2s; }
.modal__close:hover { background: var(--sky); }
.modal__title { font-size: 28px; font-weight: 500; letter-spacing: -.02em; padding-right: 40px; }
.modal__lead { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.modal__box--project { width: 1040px; padding: 0; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.pm__media { background: var(--sky); min-height: 100%; }
.pm__media img { width: 100%; height: 100%; object-fit: cover; max-height: calc(100dvh - 32px); }
.pm__body { padding: 44px 40px 36px; overflow: auto; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pd__city { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); }
.pd__city .icon { width: 16px; height: 16px; }
.pd__title { margin-top: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; padding-right: 30px; }
.pd__facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.pd__facts li { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 14px; background: var(--bg-soft); min-width: 120px; }
.pd__facts b { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.pd__facts span { font-size: 13px; color: var(--ink-2); }
.pd__block { margin-top: 22px; }
.pd__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.pd__block p:not(.pd__label) { font-size: 15.5px; color: var(--ink-2); }
.modal__box--cert { width: 760px; padding: 24px; text-align: center; }
.modal__box--cert img { max-height: calc(100dvh - 160px); margin: 0 auto; border-radius: 8px; }
.cert-modal__title { margin-top: 14px; font-size: 15px; color: var(--ink-2); padding: 0 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: clamp(64px, 8vw, 100px) 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 48px; padding-bottom: 56px; }
.footer__logo { display: block; width: 230px; color: #fff; }
.footer__tagline { margin: 24px 0 28px; max-width: 360px; color: rgba(255, 255, 255, .6); }
.footer__title { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 22px; }
.footer__contacts { display: flex; flex-direction: column; gap: 16px; }
.footer__contacts li { display: flex; flex-direction: column; gap: 2px; }
.footer__label { font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.footer__contacts a { color: #fff; font-weight: 450; }
.footer__contacts a:hover, .footer__nav a:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 4px; }
.footer__map { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; }
.footer__map .icon { width: 16px; height: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.lang--footer { background: rgba(255, 255, 255, .08); }
.lang--footer .lang__item { color: rgba(255, 255, 255, .6); }
.lang--footer .lang__item.is-active { background: #fff; color: var(--navy); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .75); }
.footer__top .icon { width: 16px; height: 16px; }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 18px; }
  .header__phone { display: none; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .timeline::before { display: none; }
  .certs__grid, .maint__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__list { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .header__logo { width: 160px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); padding: 32px var(--gutter);
    display: flex; flex-direction: column; gap: 32px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow: auto; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header:has(.nav.is-open) { background: #fff; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; font-size: 26px; font-weight: 450; color: var(--navy); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__mobile-extra { display: block; }
  .nav__phone { display: block; font-size: 22px; font-weight: 500; padding: 4px 0; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); padding-bottom: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__stage { height: 62vw; min-height: 300px; max-height: 520px; }
  .hero__scroll { display: none; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about__grid { grid-template-columns: 1fr; gap: 0; }
  .about__point { padding: 20px 0 24px; }
  .values { grid-template-columns: repeat(2, 1fr); }

  .model__stage, html:not(.js) .model__stage, .model.is-static .model__stage { grid-template-columns: minmax(0, 1fr); height: auto; }
  .model__view { height: clamp(420px, 70vh, 600px); }
  html:not(.js) .model__view, .model.is-static .model__view { height: auto; }
  .model__panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .model__floors { left: 10px; }
  .model-fl { width: 30px; height: 30px; }
  .model__hint { left: 56px; right: 16px; }
  .model-systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-sys { font-size: 15px; padding: 10px; }

  .ind { grid-template-columns: 1fr; }
  .ind__tabs { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ind__tabs::-webkit-scrollbar { display: none; }
  .ind__tab { flex: none; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
  .ind__tab.is-active { border-color: var(--navy); }
  .ind__cols { grid-template-columns: 1fr; gap: 28px; }

  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .geo__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { top: auto; bottom: auto; position: relative; left: auto; transform: none; margin: -27px auto; grid-row: 2; }
  .compare__col:last-child { grid-row: 3; padding-top: 44px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .modal__box--project { grid-template-columns: 1fr; overflow: auto; }
  .pm__media { min-height: 0; }
  .pm__media img { height: auto; aspect-ratio: 4 / 3; max-height: 42vh; }
  .pm__body { max-height: none; overflow: visible; padding: 32px 24px 28px; }
}

@media (max-width: 640px) {
  .header__inner { gap: 12px; }
  .header__logo { width: 138px; }
  .header__actions { gap: 8px; }
  .hero__title { font-size: clamp(36px, 11vw, 48px); }
  .hero__actions .btn { width: 100%; }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 16px; }
  .stat:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
  .values, .why__grid, .certs__grid, .maint__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline__item { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding: 0 0 28px; }
  .timeline__item::before { content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 1px; background: var(--line-strong); }
  .timeline__item:last-child::before { display: none; }
  .timeline__num { grid-row: span 2; }
  .timeline__title { margin-top: 10px; }
  .projects__grid { grid-template-columns: 1fr; }
  .brand { width: 150px; height: 80px; padding: 18px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; }
  .modal__box { padding: 36px 20px 24px; border-radius: 22px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Theme toggle (header) ---------- */
.theme-toggle { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(21, 27, 38, .05); transition: background .2s, color .2s; }
.theme-toggle:hover { color: var(--ink); background: rgba(21, 27, 38, .09); }
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle__moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
html[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(60deg) scale(.6); }
html[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

/* ---------- Dark theme (switch in the header; light stays the default) ----------
   --navy turns light: it is the main text and accent colour. Elements that use it as a background get dark text. */
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #E9EFF5;
  --ink-2: #B4C1CE;
  --ink-3: #8797A8;
  --bg: #0B121B;
  --bg-soft: #111B27;
  --sky: #1A2939;
  --card: #121D2A;
  --line: rgba(233, 239, 245, .1);
  --line-strong: rgba(233, 239, 245, .2);
  --glow: #5E9BEA;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --m-cctv: #3D9BFF; --m-access: #A07CFF; --m-fire: #FF4B55; --m-evac: #FFA63D; --m-scs: #2FD6A6; --m-alarm: #FF5FC8;
}
html[data-theme="dark"] .model, html[data-theme="dark"] .hero-model { --m-cctv: #3D9BFF; --m-access: #A07CFF; --m-fire: #FF4B55; --m-evac: #FFA63D; --m-scs: #2FD6A6; --m-alarm: #FF5FC8; }
html[data-theme="dark"] body { background: linear-gradient(180deg, #0E1823 0, var(--bg) 110vh) no-repeat, var(--bg); }
/* light accents on dark: text on them becomes dark */
html[data-theme="dark"] .btn--primary, html[data-theme="dark"] .skip-link, html[data-theme="dark"] .chip.is-active, html[data-theme="dark"] .ind__tab.is-active,
html[data-theme="dark"] .geo__cities li.is-main, html[data-theme="dark"] .timeline__item:hover .timeline__num, html[data-theme="dark"] .maint-card__icon { color: var(--bg); }
html[data-theme="dark"] .btn--primary { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .btn--primary:hover { background: #fff; }
html[data-theme="dark"] .btn--ghost { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .btn--light { background: var(--navy); color: var(--bg); }
/* header */
html[data-theme="dark"] .header.is-scrolled { background: rgba(11, 18, 27, .82); }
html[data-theme="dark"] .lang, html[data-theme="dark"] .burger, html[data-theme="dark"] .theme-toggle { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .lang__item.is-active { background: var(--navy); color: var(--bg); box-shadow: none; }
@media (max-width: 980px) { html[data-theme="dark"] .nav { background: rgba(11, 18, 27, .97); } }
html[data-theme="dark"] .header:has(.nav.is-open) { background: var(--bg); }
/* surfaces that were white */
html[data-theme="dark"] .card, html[data-theme="dark"] .mini-card, html[data-theme="dark"] .project__btn, html[data-theme="dark"] .why-card, html[data-theme="dark"] .maint-card,
html[data-theme="dark"] .timeline__num, html[data-theme="dark"] .geo__cities li, html[data-theme="dark"] .compare__vs, html[data-theme="dark"] .modal__box, html[data-theme="dark"] .value:hover { background: var(--card); }
html[data-theme="dark"] .about { background: var(--bg); }
html[data-theme="dark"] .stats__list { background: rgba(17, 27, 39, .7); }
html[data-theme="dark"] .geo, html[data-theme="dark"] .contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
html[data-theme="dark"] .why-card:hover { background: var(--bg-soft); }
html[data-theme="dark"] .compare__col--us { background: #18283A; color: var(--navy); }
html[data-theme="dark"] .compare__col--us .icon { color: #8fb8ea; }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus, html[data-theme="dark"] .field textarea:focus, html[data-theme="dark"] .field.has-error input { background: var(--card); }
html[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9EFF5' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .modal::backdrop { background: rgba(0, 0, 0, .6); }
/* brand logos are dark artwork: keep them on light tiles */
html[data-theme="dark"] .brand { background: rgba(233, 239, 245, .9); }
html[data-theme="dark"] .brand:hover { background: #fff; }
html[data-theme="dark"] .cert__media { background: rgba(233, 239, 245, .92); }
/* brand spheres: dimmed glass */
html[data-theme="dark"] .sphere { opacity: .05; }
html[data-theme="dark"] .maint-card::after { background: radial-gradient(circle at 30% 30%, #2A3B4F, var(--sky) 60%, rgba(168, 183, 190, .1)); opacity: .6; }
html[data-theme="dark"] .value__title::before { background: radial-gradient(circle at 32% 30%, #5d7186 0, #2a3b4f 45%, #16222f 100%); box-shadow: none; }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background-color: rgba(255, 255, 255, .05); border-color: var(--line); }
/* map */
html[data-theme="dark"] .geo__cities li.is-main { background: var(--navy); }
html[data-theme="dark"] .geo__shape { fill: rgba(26, 41, 57, .8); stroke: #4A5D70; }
html[data-theme="dark"] .geo__dot { fill: var(--bg); }
html[data-theme="dark"] .geo__city text { stroke: rgba(11, 18, 27, .9); }
/* footer stays the darkest surface */
html[data-theme="dark"] .footer { background: #070C12; }
html[data-theme="dark"] .lang--footer .lang__item.is-active { background: #fff; color: #151b26; }
/* model block */
html[data-theme="dark"] .model__stage { border-color: #1c2a3a; background: radial-gradient(120% 80% at 35% 100%, #16283B 0%, #0D1824 50%, #080F18 100%); }
html[data-theme="dark"] .model__panel { background: #0E1824; }
html[data-theme="dark"] .model__floors { background: rgba(8, 15, 24, .7); }
