/* ============================================================
   ATB & PM Engineering Group — Design System
   ============================================================ */

:root {
  /* — Brand palette — */
  --navy-950: #0a1320;
  --navy-900: #0c1929;
  --navy-800: #102539;
  --navy-700: #16314a;
  --anthracite: #1b2530;
  --anthracite-2: #232f3c;

  --ink: #0f1922;
  --ink-2: #2b3a47;
  --muted: #5c6b7a;
  --muted-2: #8190a0;
  --line: #e2e8ef;
  --line-strong: #cdd6e0;

  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --bg-softer: #eef2f6;

  /* — Accent (tweakable) — */
  --accent: #2f80b8;
  --accent-strong: #246596;
  --accent-soft: #e8f1f8;
  --accent-ink: #ffffff;

  /* — Type (tweakable) — */
  --font-head: "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* — Geometry (tweakable) — */
  --radius: 4px;
  --radius-lg: 6px;

  /* — Density (tweakable via [data-density]) — */
  --pad-section: 112px;
  --gap-grid: 24px;

  --maxw: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-density="compact"] { --pad-section: 80px; --gap-grid: 18px; }
[data-density="comfy"]   { --pad-section: 144px; --gap-grid: 32px; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ── Layout primitives ───────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 40px; }
.section { padding-block: var(--pad-section); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: #74b8e6; }
.eyebrow.on-dark::before { background: #74b8e6; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 50px);
  margin-top: 20px;
}
.section-head .lead { color: var(--muted); font-size: 19px; margin-top: 20px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-wa { background: var(--accent); color: #fff; }
.btn-wa:hover { background: var(--accent-strong); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-name span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 6px; transition: color .15s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .22s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.lang {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
}
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 7px 11px; color: var(--muted); font: inherit; transition: background .15s, color .15s;
}
.lang button.active { background: var(--ink); color: #fff; }

.burger { display: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }

/* User-fillable construction photo (drop your own; falls back to placeholder art) */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero-site.jpg');
  background-size: cover;
  background-position: 95% center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,19,32,.94) 0%, rgba(10,19,32,.8) 32%, rgba(10,19,32,.42) 58%, rgba(10,19,32,.12) 100%),
    linear-gradient(0deg, rgba(8,15,24,.55) 0%, rgba(8,15,24,0) 28%);
}
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(10,19,32,.96) 0%, rgba(10,19,32,.82) 42%, rgba(10,19,32,.45) 100%),
    repeating-linear-gradient(135deg, #11202f 0 22px, #0e1b29 22px 44px);
}
.hero-media::after {
  content: "ФОТО ОБЪЕКТА · СТРОИТЕЛЬНАЯ ПЛОЩАДКА";
  position: absolute; right: 28px; bottom: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: rgba(255,255,255,.32);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(116,184,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,184,230,.06) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(96px, 13vw, 168px);
  max-width: 920px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.hero h1 .accent-word { color: #74b8e6; }
.hero-sub {
  margin-top: 30px; max-width: 620px;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.5;
  color: rgba(233,240,247,.84);
}
.hero-cta { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tags {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  color: rgba(233,240,247,.6);
}
.hero-tags span { display: inline-flex; align-items: center; gap: 9px; }
.hero-tags span::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* Hero variants */
[data-hero="split"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(10,19,32,.97) 0%, rgba(10,19,32,.95) 46%, rgba(10,19,32,.35) 70%, rgba(10,19,32,.12) 100%);
}
[data-hero="split"] .hero-inner { max-width: 620px; }
[data-hero="minimal"] .hero { background: var(--bg); color: var(--ink); }
[data-hero="minimal"] .hero-photo,
[data-hero="minimal"] .hero-overlay { display: none; }
[data-hero="minimal"] .hero-grid-lines {
  background-image:
    linear-gradient(rgba(47,128,184,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,128,184,.07) 1px, transparent 1px);
}
[data-hero="minimal"] .hero h1 { color: var(--ink); }
[data-hero="minimal"] .hero h1 .accent-word { color: var(--accent); }
[data-hero="minimal"] .hero-sub { color: var(--muted); }
[data-hero="minimal"] .hero-tags { color: var(--muted); }
[data-hero="minimal"] .btn-ghost.on-dark { color: var(--ink); border-color: var(--line-strong); }
[data-hero="minimal"] .eyebrow.on-dark { color: var(--accent); }
[data-hero="minimal"] .eyebrow.on-dark::before { background: var(--accent); }

/* ── Stats strip ─────────────────────────────────────────── */
.stats { background: var(--navy-800); color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 52px 0;
  border-left: 1px solid rgba(255,255,255,.09);
  padding-left: 32px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(40px, 4.4vw, 58px); line-height: 1; letter-spacing: -0.03em;
  color: #fff;
}
.stat .num em { color: #74b8e6; font-style: normal; }
.stat .lbl { margin-top: 14px; color: rgba(233,240,247,.66); font-size: 15.5px; line-height: 1.4; }

/* ── Services grid ───────────────────────────────────────── */
.services { background: var(--bg-soft); }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid);
}
.svc-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px 30px; position: relative; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  display: flex; flex-direction: column;
}
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,25,34,.28); border-color: var(--line-strong); }
.svc-card:hover::before { width: 100%; }
.svc-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); letter-spacing: 0.1em; }
.svc-icon {
  width: 50px; height: 50px; margin: 18px 0 22px;
  display: grid; place-items: center;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.15; }
.svc-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.svc-more {
  margin-top: 22px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.svc-more .arr { transition: transform .2s var(--ease); }
.svc-card:hover .svc-more .arr { transform: translateX(4px); }

/* ── About ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: var(--ink-2); font-size: 18px; }
.about-copy .lead-p { font-size: 22px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.about-entities { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entity {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px;
  background: var(--bg-soft);
}
.entity-logo { height: 26px; width: auto; display: block; margin-bottom: 14px; }
.entity b { font-family: var(--font-head); font-size: 17px; display: block; }
.entity span { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.about-photo {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15,25,34,.06), rgba(15,25,34,.02)),
    repeating-linear-gradient(45deg, #e6ecf2 0 18px, #dde5ed 18px 36px);
  display: grid; place-items: center; position: relative;
  border: 1px solid var(--line);
}
.about-photo .ph-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--muted-2); text-transform: uppercase;
}

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio { background: var(--navy-900); color: #fff; }
.portfolio .section-head h2 { color: #fff; }
.portfolio .section-head .lead { color: rgba(233,240,247,.66); }
.port-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-grid); }
.port-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.09); background: var(--navy-800);
  transition: transform .25s var(--ease);
}
.port-card:hover { transform: translateY(-4px); }
.port-img {
  aspect-ratio: 16/10; position: relative;
  background: repeating-linear-gradient(135deg, #16314a 0 20px, #102539 20px 40px);
}
.port-img .ph-label {
  position: absolute; left: 18px; bottom: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(255,255,255,.4); text-transform: uppercase;
}
.port-type {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  background: var(--accent); color: #fff; padding: 6px 11px; border-radius: var(--radius);
}
.port-body { padding: 24px 26px 28px; }
.port-body h3 { color: #fff; font-size: 22px; }
.port-meta { margin-top: 12px; display: flex; gap: 20px; flex-wrap: wrap; color: rgba(233,240,247,.6); font-family: var(--font-mono); font-size: 13px; }
.port-meta span { display: inline-flex; gap: 7px; align-items: center; }

/* ── Trust / certificates ────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid); margin-top: 12px; }
.trust-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 16px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.trust-card:hover { border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(15,25,34,.25); }
.trust-badge {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent-strong);
  background: var(--accent-soft); border: 1px solid #d4e6f3;
}
.trust-badge svg { width: 26px; height: 26px; }
.trust-card b { font-family: var(--font-head); font-size: 16px; }
.trust-card span { color: var(--muted); font-size: 14.5px; }

/* ── CTA + form ──────────────────────────────────────────── */
.cta { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); }
.cta .lead { color: rgba(233,240,247,.78); font-size: 19px; margin-top: 20px; max-width: 460px; }
.cta-contacts { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 13px; font-size: 17px; color: rgba(233,240,247,.9); }
.cta-contacts a svg { width: 19px; height: 19px; color: #74b8e6; flex-shrink: 0; }

.form {
  background: #fff; border-radius: var(--radius-lg); padding: 38px 36px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.5);
}
.form .field { display: flex; flex-direction: column; gap: 7px; }
.form label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg-soft); outline: none; transition: border-color .15s, background .15s;
  width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); background: #fff; }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn-primary { justify-content: center; width: 100%; margin-top: 6px; }
.form .consent { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(233,240,247,.7); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px; padding-block: 72px; }
.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; max-width: 280px; color: rgba(233,240,247,.55); }
.footer-col h4 { color: #fff; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 15px; color: rgba(233,240,247,.62); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-entity { margin-bottom: 22px; }
.footer-entity b { color: #fff; font-size: 14.5px; display: block; margin-bottom: 4px; font-family: var(--font-head); }
.footer-entity span { font-size: 13px; line-height: 1.55; color: rgba(233,240,247,.5); font-family: var(--font-mono); }

/* Full legal requisites */
.footer-reqs {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-grid);
}
.req-card {
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: 24px 28px 26px; background: rgba(255,255,255,.02);
}
.req-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.req-logo {
  flex-shrink: 0; background: #fff; border-radius: var(--radius);
  height: 44px; padding: 0 12px; display: inline-flex; align-items: center;
}
.req-logo img { height: 24px; width: auto; display: block; }
.req-head h5 {
  margin: 0; color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.15;
}
.req-head .req-role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: rgba(233,240,247,.5); }
.req-grid { display: grid; grid-template-columns: 88px 1fr; gap: 10px 16px; }
.req-grid .rk {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(233,240,247,.45); padding-top: 1px;
}
.req-grid .rv { font-size: 13.5px; line-height: 1.5; color: rgba(233,240,247,.84); }
.req-grid .rv.code { font-family: var(--font-mono); letter-spacing: 0.02em; color: #fff; }
.req-sign {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.12);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: rgba(233,240,247,.7);
}
.req-sign b { color: #fff; font-family: var(--font-head); font-weight: 600; }
.req-sign .mp { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(233,240,247,.4); }
.footer-map {
  margin-top: 4px; height: 150px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); position: relative;
  background:
    linear-gradient(rgba(116,184,230,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(116,184,230,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--navy-800);
}
.footer-map .pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-100%);
  color: #74b8e6;
}
.footer-map .ph-label { position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: rgba(255,255,255,.35); }
.footer-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-link { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: #74b8e6; }
.map-link:hover { color: #9fcef0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding-block: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(233,240,247,.5);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: rgba(233,240,247,.7); transition: all .18s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ── WhatsApp floating ───────────────────────────────────── */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px color-mix(in oklab, var(--accent) 55%, transparent);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); background: var(--accent-strong); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--accent) 45%, transparent); animation: wa-pulse 2.4s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ── Page hero (interior pages) ──────────────────────────── */
.page-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.page-hero .hero-grid-lines { opacity: .6; }
.page-hero-inner { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 64px); margin-top: 18px; }
.page-hero .lead { color: rgba(233,240,247,.78); font-size: 20px; margin-top: 22px; max-width: 620px; }
.breadcrumb { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: rgba(233,240,247,.5); letter-spacing: 0.05em; }
.breadcrumb a:hover { color: #74b8e6; }

/* ── Services page: process strip ────────────────────────── */
.process { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.process-step { padding: 40px 26px 40px 0; position: relative; }
.process-step + .process-step { padding-left: 26px; border-left: 1px solid var(--line); }
.process-step .pnum { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.process-step b { display: block; font-family: var(--font-head); font-size: 18px; margin-top: 12px; letter-spacing: -0.01em; }
.process-step span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ── Services page: detail rows ──────────────────────────── */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.svc-detail + .svc-detail { margin-top: var(--pad-section); }
.svc-detail.flip .svc-detail-media { order: -1; }
.svc-detail-body .num-tag {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent); letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 12px;
}
.svc-detail-body .num-tag::before { content: ""; width: 30px; height: 1px; background: var(--accent); }
.svc-detail-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 18px; }
.svc-detail-body > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.svc-list { margin-top: 26px; display: grid; gap: 12px; }
.svc-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.svc-list li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.svc-detail-media {
  aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #e6ecf2 0 18px, #dde5ed 18px 36px);
  display: grid; place-items: center;
}
.svc-detail.dark-media .svc-detail-media {
  background: repeating-linear-gradient(135deg, #16314a 0 20px, #102539 20px 40px);
  border-color: rgba(255,255,255,.08);
}
.svc-detail-media .ph-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.svc-detail.dark-media .svc-detail-media .ph-label { color: rgba(255,255,255,.4); }
.svc-detail-media .tag-corner {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  background: var(--accent); color: #fff; padding: 6px 11px; border-radius: var(--radius);
}

@media (max-width: 980px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { border-left: 0 !important; padding: 26px 0 !important; border-bottom: 1px solid var(--line); }
  .svc-detail { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail.flip .svc-detail-media { order: 0; }
  .svc-detail-media { max-width: 520px; aspect-ratio: 16/10; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ── Reveal animation ────────────────────────────────────── */
/* ── Reveal (slide-only — content stays visible even if transition never ticks) */
html.js .reveal { transform: translateY(20px); transition: transform .65s var(--ease); will-change: transform; }
html.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transform: none !important; transition: none; }
  .wa-float::after { animation: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
  .nav, .header-right .lang { display: none; }
  .burger { display: grid; }
}
@media (max-width: 900px) {
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { aspect-ratio: 16/11; max-width: 480px; }
  .port-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 36px 0 36px 26px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 22px; }
  :root { --pad-section: 72px; }
  .svc-grid, .trust-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-reqs { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 76px 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
  .form { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Mobile drawer ───────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(8,15,24,.55); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--bg); padding: 26px 26px 40px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-panel a.dnav { font-family: var(--font-head); font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-panel a.dnav:last-of-type { border-bottom: 0; }
.drawer-lang { margin-top: 22px; }
.icon-btn { appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--ink); padding: 8px; display: grid; place-items: center; }
.burger { appearance: none; background: transparent; border: 0; cursor: pointer; color: var(--ink); padding: 8px; place-items: center; }

/* ── Count-up numbers ────────────────────────────────────── */
.stat .num[data-count],
.stat .num em[data-count] { font-variant-numeric: tabular-nums; }

/* ── Interactive charts ──────────────────────────────────── */
.charts { background: var(--bg); border-bottom: 1px solid var(--line); }
.charts-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: var(--gap-grid); }
.chart-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 30px 24px; background: var(--bg); position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.chart-card:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -24px rgba(15,25,34,.28); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.chart-head .ct { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chart-head .ch3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-top: 8px; }
.chart-head .cv { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.chart-head .cv em { color: var(--accent); font-style: normal; }
.chart-wrap { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* bars */
.cbar { transform-box: fill-box; transform-origin: 50% 100%; }
.cbar-hit { fill: transparent; cursor: pointer; }
.cbar-g .cbar { fill: var(--accent); opacity: .82; transition: opacity .18s; }
.cbar-g:hover .cbar { opacity: 1; }
.cbar-cap { fill: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }
.cbar-val { fill: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 12.5px; opacity: 0; transition: opacity .15s; text-anchor: middle; }
.cbar-g:hover .cbar-val { opacity: 1; }

/* area / line */
.carea { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.chart-card.in .carea { opacity: 1; transform: none; }
.cline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.1s var(--ease); }
.chart-card.in .cline { stroke-dashoffset: 0; }
.cgrid { stroke: var(--line); stroke-width: 1; }
.caxis { fill: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }
.cguide { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cdot { fill: #fff; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transition: opacity .15s; }
.cdot.on { opacity: 1; }

/* tooltip */
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -120%); transition: opacity .12s;
  background: var(--navy-900); color: #fff; border-radius: var(--radius);
  padding: 8px 12px; font-size: 13px; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(8,15,24,.5);
}
.chart-tip b { font-family: var(--font-head); font-weight: 700; }
.chart-tip .ty { font-family: var(--font-mono); font-size: 11px; color: #74b8e6; display: block; }
.chart-tip.on { opacity: 1; }

@media (max-width: 900px) {
  .charts-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .carea { opacity: 1; transform: none; }
  .cline { stroke-dashoffset: 0 !important; }
}
