
@layer base, layout, components, utils;

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@layer base {
  :root {
    --bg: #060b14;
    --bg-2: #0c1524;
    --surface: #111c2e;
    --surface-2: #16243a;
    --line: rgb(255 255 255 / .08);
    --text: #e9eef6;
    --muted: #94a3ba;
    --accent: #f2a900;        /* разметка дороги */
    --accent-2: #d99400;
    --cool: #3aa8ff;
    --ok: #29d391;
    --radius: 10px;
    --shadow: 0 30px 80px -30px rgb(0 0 0 / .7);
    --container: min(1240px, 100% - 40px);
    --ease: cubic-bezier(.2,.8,.2,1);
    color-scheme: dark;
  }
  :root[data-theme="light"] {
    --bg: #f4f6fa; --bg-2: #eaeef5; --surface: #ffffff; --surface-2: #f0f3f8;
    --line: rgb(10 25 50 / .1); --text: #0b1628; --muted: #56657c;
    --shadow: 0 30px 70px -35px rgb(10 30 60 / .35);
    color-scheme: light;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 17px/1.6 "Manrope", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; overflow-x: clip;
    transition: background .4s, color .4s;
  }
  h1, h2, h3, h4 { font-family: "Manrope", sans-serif; font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button, input, textarea, select { font: inherit; color: inherit; }
  ::selection { background: var(--accent); color: #000; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }
}

@layer layout {
  .container { width: var(--container); margin-inline: auto; }
  section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
  .section-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 760px; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px; width: fit-content;
    font: 700 12px/1 "Manrope", system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  }
  .eyebrow::before { content: ""; width: 34px; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 16px); }
  .h2 { font-size: clamp(32px, 4.6vw, 58px); }
  .lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
}

@layer components {
  /* ---------- progress + cursor glow ---------- */
  .progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
  .glow { display: none; position: fixed; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgb(120 160 220 / .05), transparent 60%); translate: -50% -50%; left: -999px; top: -999px;
    transition: left .25s var(--ease), top .25s var(--ease); }
  :root[data-theme="light"] .glow { background: radial-gradient(circle, rgb(255 140 0 / .12), transparent 60%); }

  /* ---------- header ---------- */
  .header { position: fixed; inset: 14px 0 auto; z-index: 50; }
  .nav {
    width: var(--container); margin-inline: auto; display: flex; align-items: center; gap: 24px;
    padding: 10px 10px 10px 22px; border-radius: 6px; border: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(18px) saturate(1.4);
    transition: box-shadow .3s, background .3s;
  }
  .header.scrolled .nav { box-shadow: var(--shadow); background: color-mix(in oklab, var(--bg) 88%, transparent); }
  .logo { display: flex; align-items: center; gap: 12px; font: 800 18px/1 "Manrope", system-ui, sans-serif; letter-spacing: -.02em; flex-shrink: 0; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo small { display: block; font: 600 10px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: .2em; color: var(--muted); margin-top: 4px; }
  @keyframes spin { to { --angle: 360deg; } }
  .menu { display: flex; gap: 4px; margin-left: auto; }
  .menu a { padding: 10px 16px; border-radius: 6px; font-weight: 600; font-size: 15px; color: var(--muted); transition: .25s; }
  .menu a:hover, .menu a.active { color: var(--text); background: var(--surface-2); }
  .nav-tools { display: flex; align-items: center; gap: 8px; }
  .lang { display: flex; padding: 4px; border-radius: 6px; background: var(--surface-2); }
  .lang button { border: 0; background: none; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
  .lang button.on { background: var(--accent); color: #000; }
  .icon-btn { width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: .25s; }
  .icon-btn:hover { border-color: var(--accent); }
  .burger { display: none; }

  /* ---------- buttons ---------- */
  .btn { --b: var(--accent); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px;
    border-radius: 6px; font-weight: 700; border: 0; cursor: pointer; isolation: isolate; overflow: hidden;
    background: var(--b); color: #0a0a0a; transition: transform .3s var(--ease), box-shadow .3s; }
  .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transform: translateX(-101%); transition: transform .45s var(--ease); }
  .btn:hover { box-shadow: none; }
  .btn:hover::after { transform: none; }
  .btn svg { transition: transform .3s; } .btn:hover svg { transform: translateX(4px); }
  .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
  .btn.ghost::after { background: var(--surface-2); }
  .btn.sm { padding: 11px 18px; font-size: 14px; }

  /* ---------- hero ---------- */
  .hero { min-height: 100svh; display: grid; align-items: center; padding-top: 140px; padding-bottom: 60px; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .topo-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: saturate(.6) contrast(1.1); scale: 1.1; }
  .hero-bg::after { content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 30%, transparent 0, var(--bg) 70%), linear-gradient(180deg, transparent 50%, var(--bg)); }
  .grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%); }
  .hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
  .badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    font: 500 12px/1 "JetBrains Mono", monospace; color: var(--muted); background: color-mix(in oklab, var(--bg) 70%, transparent); }
  .badge > span { padding: 10px 14px; border-right: 1px solid var(--line); } .badge > span:last-child { border: 0; }
  .badge b { color: var(--accent); font-weight: 500; }
  .hero h1 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.03em; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero h1 .road { position: relative; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
  .hero h1 .hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lead { margin: 28px 0 40px; max-width: 560px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

  .word-x { display: inline-block; overflow: hidden; vertical-align: bottom; }
  .word > span { display: inline-block; transform: translateY(110%); animation: up .9s var(--ease) forwards; }
  @keyframes up { to { transform: none; } }

  /* road visual */
  .road-card { position: relative; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--surface-2), var(--bg-2)); box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s; }
  .road-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .road-card { cursor: crosshair; border-radius: 10px; background: #0a1220; }
  .cad-draw path, .cad-draw-p { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.65,0,.35,1) .3s forwards; }
  .cad-draw-p { animation-delay: 1.5s; animation-duration: 1.8s; }
  .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s cubic-bezier(.65,0,.35,1) forwards; }
  .fd { opacity: 0; animation: fade 1s ease-out forwards; }
  .cad-fade { opacity: 0; animation: fade .9s ease-out 1.7s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fade { to { opacity: 1; } }
  .cad-tag, .cad-read { position: absolute; font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; color: #94a3ba;
    padding: 8px 10px; border: 1px solid rgb(255 255 255 / .1); background: rgb(10 18 32 / .8); backdrop-filter: blur(8px);
    opacity: 0; animation: fade .8s ease-out 2.2s forwards; }
  .cad-tag span { color: var(--accent); margin-right: 8px; }
  .cad-tag.tl { top: 16px; left: 16px; } .cad-tag.tr { top: 16px; right: 16px; }
  .cad-read { top: 54px; right: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
  .float-chip { display: none; }

  .marquee { margin-top: 70px; border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 90s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee span { font: 600 13px/1 "Manrope", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
  .marquee span::after { content: ""; width: 4px; height: 4px; background: var(--accent); }
  @keyframes scroll { to { transform: translateX(-50%); } }

  .creds { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
  .creds > div { padding: 22px 22px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
  .creds > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
  .creds span { font: 500 11px "JetBrains Mono", monospace; color: var(--accent); }
  .creds b { color: var(--text); font-size: 16px; font-weight: 700; }
  /* ---------- stats ---------- */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
  .stat { background: var(--bg-2); padding: 36px 30px; position: relative; overflow: hidden; transition: background .3s; }
  .stat:hover { background: var(--surface); }
  .stat .num { font: 800 clamp(44px, 5vw, 72px)/1 "Manrope", system-ui, sans-serif; letter-spacing: -.04em; }
  .stat .num sup { font-size: .4em; color: var(--accent); vertical-align: top; margin-left: 4px; }
  .stat p { color: var(--muted); margin-top: 14px; font-size: 15px; }
  .stat::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
  .stat:hover::before { width: 100%; }

  /* ---------- services (bento) ---------- */
  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .svc { grid-column: span 2; position: relative; padding: 34px; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; isolation: isolate;
    transition: transform .4s var(--ease), border-color .3s; }
  .svc.wide { grid-column: span 3; }
  .svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgb(255 180 0 / .14), transparent 50%); }
  .svc:hover { border-color: rgb(255 180 0 / .3); }
  .svc:hover::before { opacity: 1; }
  .svc-ico { width: 60px; height: 60px; border-radius: 8px; display: grid; place-items: center; margin-bottom: auto;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); transition: .4s var(--ease); }
  .svc:hover .svc-ico { background: var(--accent); color: #000; border-color: var(--accent); }
  .svc h3 { font-size: 22px; margin: 36px 0 12px; }
  .svc p { color: var(--muted); font-size: 15px; }
  .svc .n { position: absolute; top: 26px; right: 30px; font: 700 14px "Manrope", system-ui, sans-serif; color: var(--muted); opacity: .6; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .tags span { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

  /* ---------- projects ---------- */
  .filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .chip { padding: 10px 20px; border-radius: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; transition: .25s; }
  .chip:hover { border-color: var(--accent); }
  .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
  .projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .proj { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; cursor: pointer;
    transition: transform .45s var(--ease), opacity .4s, border-color .3s; display: flex; flex-direction: column; }
  .proj:hover { transform: translateY(-3px); border-color: rgb(255 180 0 / .35); }
  .proj.hide { display: none; }
  .proj-visual { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-2); }
  .proj-visual svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }

  .proj-visual .pa { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1); }
  .proj.in .proj-visual .pa { stroke-dashoffset: 0; }
  .proj-num { position: absolute; top: 16px; left: 16px; font: 700 13px "Manrope", system-ui, sans-serif; padding: 8px 12px; border-radius: 12px; background: rgb(0 0 0 / .45); color: #fff; backdrop-filter: blur(6px); }
  .proj-lvl { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 6px; background: var(--accent); color: #000; }
  .proj-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .proj-meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
  .proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .proj h3 { font-size: 18px; line-height: 1.3; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; }
  .proj-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
  .proj-foot .ok { color: var(--ok); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
  .arrow { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; border: 1px solid var(--line); transition: .3s; }
  .proj:hover .arrow { background: var(--accent); color: #000; border-color: var(--accent); }

  /* republic */
  .republic { margin-top: 90px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
  .rlist { display: grid; gap: 12px; }
  .ritem { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 8px;
    background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease); }
  .ritem:hover { border-color: rgb(255 180 0 / .4); }
  .ritem .km { font: 800 26px/1 "Manrope", system-ui, sans-serif; color: var(--accent); min-width: 110px; }
  .ritem .km small { font-size: 13px; color: var(--muted); margin-left: 4px; }
  .ritem h3 { font: 700 16px/1.35 "Manrope", system-ui, sans-serif; }
  .ritem p { font-size: 13px; color: var(--muted); }

  /* ---------- about ---------- */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  .about-photo { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 5/4; border: 1px solid var(--line); background: var(--surface-2); }
  .about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .about-photo:hover img { transform: scale(1.06); }
  .about-photo .stamp { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 22px; border-radius: 8px; background: rgb(7 13 23 / .7); backdrop-filter: blur(14px); color: #fff; font-size: 14px; }
  .about-photo .stamp b { font-family: "Manrope", system-ui, sans-serif; color: var(--accent); }
  .checks { display: grid; gap: 14px; margin: 30px 0; }
  .checks li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
  .checks li::before { content: "✓"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: rgb(41 211 145 / .15); color: var(--ok); }
  .soft { display: flex; flex-wrap: wrap; gap: 10px; }
  .soft span { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }

  .team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 80px; }
  .person { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 18px; align-items: center; transition: .35s var(--ease); }
  .person:hover { border-color: rgb(255 180 0 / .4); }
  .avatar { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font: 500 18px "JetBrains Mono", monospace; color: var(--accent);
    background: var(--surface-2); border: 1px solid var(--line); }
  .person h4 { font: 800 16px/1.3 "Manrope", system-ui, sans-serif; }
  .person p { font-size: 13px; color: var(--muted); margin-top: 4px; }

  /* ---------- process ---------- */
  .process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
  .process-line { position: absolute; top: 35px; left: 5%; right: 5%; height: 1px; border-radius: 0; background: var(--surface-2); overflow: hidden; }
  .process-line i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 18px, var(--accent) 18px 20px, transparent 20px 24px); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease); }
  .step { position: relative; padding-top: 90px; }
  .step .dot { position: absolute; top: 0; left: 0; width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center; font: 500 18px "JetBrains Mono", monospace;
    background: var(--bg-2); border: 1px solid var(--line); transition: .5s var(--ease); }
  .step.lit .dot { color: var(--accent); border-color: var(--accent); }
  .step h3 { font-size: 19px; margin-bottom: 12px; }
  .step p { color: var(--muted); font-size: 15px; }
  .step .norm { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); color: var(--cool); }

  /* ---------- partners ---------- */
  .partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pcol { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .pcol h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; }
  .pcol ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
  .pcol li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-weight: 600; transition: .25s; }
  .pcol li:last-child { border: 0; }
  .pcol li:hover { color: var(--accent); }
  .pcol li small { color: var(--muted); font-weight: 500; }

  /* ---------- licenses ---------- */
  .licenses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .lic { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-items: center; transition: .35s var(--ease); cursor: zoom-in; }
  .lic:hover { border-color: var(--accent); }
  .lic-img { aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -15px rgb(0 0 0 / .5); transition: transform .5s var(--ease); }
  .lic:hover .lic-img { transform: scale(1.02); }
  .lic-img img { width: 100%; height: 100%; object-fit: cover; }
  .lic h3 { font-size: 22px; margin: 10px 0 14px; }
  .lic dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
  .lic dt { color: var(--muted); } .lic dd { margin: 0; font-weight: 700; }

  /* ---------- contacts ---------- */
  .contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; }
  .cbox { padding: clamp(28px, 4vw, 48px); border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
  .cbox.hot { background: linear-gradient(150deg, #1b2a44, #0c1524); color: #fff; position: relative; overflow: hidden; }
  :root[data-theme="light"] .cbox.hot { background: linear-gradient(150deg, #0e2442, #081428); }
  .cbox.hot::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgb(255 180 0 / .1); }
  .cbox.hot .lead { color: #b7c3d6; }
  .clinks { display: grid; gap: 12px; margin-top: 32px; position: relative; z-index: 1; }
  .clink { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 8px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); transition: .3s; }
  .clink:hover { background: rgb(255 180 0 / .08); border-color: rgb(255 180 0 / .5); }
  .clink .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #000; flex-shrink: 0; }
  .clink small { display: block; color: #93a2b8; font-size: 12px; }
  .clink b { font-size: 16px; }
  .offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; position: relative; z-index: 1; }
  .office { padding: 18px; border-radius: 8px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .08); font-size: 14px; }
  .office b { display: block; font-family: "Manrope", system-ui, sans-serif; font-size: 15px; margin-bottom: 6px; color: var(--accent); }
  .office a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

  form { display: grid; gap: 16px; margin-top: 28px; }
  .field { position: relative; }
  .field input, .field textarea, .field select { width: 100%; padding: 24px 18px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical; }
  .field select { appearance: none; padding-top: 24px; cursor: pointer; }
  .field label { position: absolute; left: 19px; top: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transition: .2s var(--ease); }
  .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 180 0 / .12); }
  .field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label, .field select + label { top: 7px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .scope { display: flex; flex-wrap: wrap; gap: 8px; }
  .scope input { display: none; }
  .scope label { padding: 9px 14px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
  .scope input:checked + label { background: var(--accent); color: #000; border-color: var(--accent); }
  .form-note { font-size: 13px; color: var(--muted); }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); padding: 50px 0 34px; }
  .foot { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
  .foot p { color: var(--muted); font-size: 14px; }
  .foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
  .foot nav a:hover { color: var(--accent); }
  .big-word { display: none; font: 800 clamp(60px, 15vw, 220px)/.9 "Manrope", system-ui, sans-serif; letter-spacing: -.05em; text-align: center; margin-top: 40px;
    background: linear-gradient(180deg, var(--surface-2), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

  /* ---------- modal ---------- */
  dialog { border: 0; padding: 0; border-radius: 12px; background: var(--surface); color: var(--text); width: min(760px, 100% - 32px); max-height: 90vh; box-shadow: var(--shadow); }
  dialog::backdrop { background: rgb(2 6 14 / .75); backdrop-filter: blur(8px); }
  dialog[open] { animation: pop .45s var(--ease); }
  @keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }
  .modal-visual { aspect-ratio: 440/275; background: var(--bg-2); }
  .modal-visual svg { width: 100%; height: 100%; }
  .modal-body { padding: 32px; display: grid; gap: 18px; }
  .modal-body h3 { font-size: 26px; }
  .mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .mgrid div { padding: 14px 16px; border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
  .mgrid b { display: block; color: var(--text); font-size: 15px; margin-top: 4px; }
  .close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgb(0 0 0 / .5); color: #fff; border: 0; }
  dialog.lic-modal { width: min(560px, 100% - 32px); background: #fff; }
  dialog.lic-modal img { width: 100%; }

  .toast { position: fixed; left: 50%; bottom: 30px; translate: -50% 150%; padding: 16px 24px; border-radius: 8px; background: var(--ok); color: #002; font-weight: 700; z-index: 200; transition: translate .5s var(--ease); }
  .toast.show { translate: -50% 0; }

  .fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgb(37 211 102 / .6); transition: transform .3s; }
  .fab:hover { transform: translateY(-2px); }
}

@layer components {
  /* --- универсальная «прорисовка» чертежей --- */
  .s { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s cubic-bezier(.65,0,.35,1) var(--t, 0s); }
  .f { opacity: 0; transition: opacity .8s ease-out var(--t, 0s); }
  .in .s { stroke-dashoffset: 0; } .in .f { opacity: 1; }

  /* листы проектов */
  .sheet text { font-family: "JetBrains Mono", monospace; }
  .sheet .scan { opacity: 0; }
  .proj:hover .sheet .scan { animation: scan 1.8s cubic-bezier(.65,0,.35,1); }
  @keyframes scan { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(255px); } }

  /* мини-чертежи в услугах */
  .svc .n { display: none; }
  .svc-dwg { position: absolute; top: 24px; right: 24px; width: 46%; max-width: 200px; color: var(--muted); opacity: .6; transition: color .4s, opacity .4s; pointer-events: none; }
  .svc:hover .svc-dwg { color: var(--accent); opacity: 1; }
  .svc-dwg text { fill: currentColor; stroke: none; font: 500 6px "JetBrains Mono", monospace; }
  .svc-dwg.bim { top: 50%; right: 170px; translate: 0 -50%; width: 170px; }

  /* оси разделов */
  .axis-rule { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); }
  .axis-rule b { width: 30px; height: 30px; flex-shrink: 0; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-weight: 500; }
  .axis-rule i { flex: 1; height: 9px; opacity: .8; transform-origin: left; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.65,0,.35,1) .2s;
    background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 80px) 0 0 / 100% 100%; -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent); }
  .axis-rule.in i { transform: none; }
  .section-head .axis-rule { width: min(1240px, 100vw - 40px); }

  /* разбивочные оси на фоне секций */
  section > .container { position: relative; z-index: 1; }
  .axes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
  .axes-in { width: var(--container); margin-inline: auto; height: 100%; display: flex; justify-content: space-between; }
  .axes-in > div { position: relative; width: 1px; }
  .axes-in i { position: absolute; top: 56px; bottom: 0; left: 0; width: 1px; transform-origin: top; transform: scaleY(0); transition: transform 2.6s cubic-bezier(.65,0,.35,1);
    background: repeating-linear-gradient(180deg, rgb(148 163 186 / .16) 0 16px, transparent 16px 20px, rgb(148 163 186 / .16) 20px 22px, transparent 22px 26px); }
  .axes-in b { position: absolute; top: 24px; left: -13px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgb(148 163 186 / .25); display: grid; place-items: center;
    font: 500 10px "JetBrains Mono", monospace; color: var(--muted); opacity: 0; transition: opacity .6s .2s; background: var(--bg-2); }
  .axes.in i { transform: none; } .axes.in b { opacity: 1; }
  .axes-in > div:nth-child(2) i { transition-delay: .15s } .axes-in > div:nth-child(3) i { transition-delay: .3s } .axes-in > div:nth-child(4) i { transition-delay: .45s } .axes-in > div:nth-child(5) i { transition-delay: .6s }

  /* размерные линии под цифрами */
  .stat .dl { display: block; position: relative; height: 9px; margin-top: 16px; transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65,0,.35,1) .3s;
    background: linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat; opacity: .7; }
  .stat .dl::before, .stat .dl::after { content: ""; position: absolute; top: 0; width: 1px; height: 9px; background: var(--accent); rotate: 45deg; }
  .stat .dl::before { left: 0; } .stat .dl::after { right: 0; }
  .stats.in .dl { transform: none; }
  .stat:nth-child(2) .dl { transition-delay: .45s } .stat:nth-child(3) .dl { transition-delay: .6s } .stat:nth-child(4) .dl { transition-delay: .75s }

  /* ось прокрутки — пикетаж страницы */
  .scroll-axis { position: fixed; left: 34px; top: 120px; bottom: 50px; width: 1px; z-index: 30; pointer-events: none;
    background: repeating-linear-gradient(180deg, var(--line) 0 12px, transparent 12px 16px); }
  .scroll-axis::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 59px, var(--muted) 59px 60px); width: 7px; left: -3px; opacity: .35; }
  .scroll-axis .fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
  .scroll-axis .mk { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border: 1px solid var(--accent); background: var(--bg); rotate: 45deg; }
  .scroll-axis .lb { position: absolute; left: 14px; top: -5px; font: 500 10px "JetBrains Mono", monospace; color: var(--accent); white-space: nowrap; }
  @media (max-width: 1399px) { .scroll-axis { display: none; } }
  @media (min-width: 1400px) { .progress { display: none; } }

  .proj-num { font: 500 11px "JetBrains Mono", monospace !important; background: rgb(6 11 20 / .85) !important; border: 1px solid rgb(255 255 255 / .12); border-radius: 4px !important; }
  .proj-lvl { font: 500 11px "JetBrains Mono", monospace !important; background: rgb(6 11 20 / .85) !important; color: var(--accent) !important; border: 1px solid rgb(242 169 0 / .5); border-radius: 4px !important; }
  @media (max-width: 680px) { .svc-dwg { width: 38%; opacity: .45; } .svc-dwg.bim { display: none; } }
}

@layer components {
  /* --- прелоадер --- */
  .loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); place-items: center; transition: opacity .7s ease, visibility .7s; }
  .loader.done { opacity: 0; visibility: hidden; }
  .ld-in { display: grid; justify-items: center; gap: 18px; width: min(320px, 80vw); }
  .ld-in svg { width: 140px; height: 70px; }
  .ld-in svg path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.65,0,.35,1) forwards; }
  .ld-t { font: 800 15px/1 "Manrope", system-ui, sans-serif; letter-spacing: .32em; }
  .ld-bar { width: 100%; height: 1px; background: var(--line); position: relative; }
  .ld-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: ldbar 1.3s cubic-bezier(.65,0,.35,1) forwards; }
  @keyframes ldbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .ld-s { width: 100%; display: flex; justify-content: space-between; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); }
  .ld-s b { color: var(--accent); font-weight: 500; }
  html.loading .hero * { animation-play-state: paused !important; }

  /* --- верхняя строка шапки --- */
  .topbar { width: var(--container); margin: 0 auto 8px; display: flex; justify-content: space-between; gap: 20px; font: 500 12px "JetBrains Mono", monospace; color: var(--muted);
    height: 22px; align-items: center; overflow: hidden; transition: height .35s, opacity .35s, margin .35s; }
  .topbar a:hover { color: var(--accent); }
  .topbar span + span::before { content: "·"; margin: 0 10px; opacity: .5; }
  .header.scrolled .topbar { height: 0; opacity: 0; margin-bottom: 0; }
  @media (max-width: 1080px) { .topbar { display: none; } }

  /* --- уголки-«метки реза» при наведении --- */
  .proj, .lic, .person, .pcol { position: relative; }
  :is(.svc, .proj, .lic, .person, .pcol)::after { content: ""; position: absolute; inset: 16px; pointer-events: none; opacity: 0; z-index: 3;
    transition: opacity .4s, inset .5s cubic-bezier(.16,1,.3,1);
    --c: var(--accent);
    background:
      linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
      linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat; }
  :is(.svc, .proj, .lic, .person, .pcol):hover::after { opacity: 1; inset: 7px; }

  /* --- география --- */
  .geo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
  .map-wrap { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #0a1220; overflow: hidden; }
  .map-wrap svg { width: 100%; height: auto; display: block; }
  .map-wrap text { font-family: "JetBrains Mono", monospace; }
  .map-city { cursor: pointer; }
  .map-city .ring { transition: r .35s cubic-bezier(.16,1,.3,1), stroke-opacity .35s; }
  .map-city.on .ring, .map-city:hover .ring { r: 13; stroke-opacity: 1; }
  .map-city.on text, .map-city:hover text { fill: #fff; }
  .map-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); }
  .map-legend span { display: inline-flex; align-items: center; gap: 7px; }
  .map-legend i { width: 9px; height: 9px; border: 1px solid var(--accent); display: inline-block; }
  .map-legend i.c { border-radius: 50%; } .map-legend i.r { width: 16px; height: 0; border-width: 1.5px 0 0; }
  .map-tip { position: absolute; pointer-events: none; padding: 10px 12px; border-radius: 6px; border: 1px solid rgb(242 169 0 / .5); background: rgb(6 11 20 / .92);
    font: 500 12px/1.45 "Manrope", system-ui, sans-serif; color: #e9eef6; opacity: 0; transform: translate(-50%, calc(-100% - 16px)); transition: opacity .2s; white-space: nowrap; }
  .map-tip b { display: block; font: 500 11px "JetBrains Mono", monospace; color: var(--accent); margin-bottom: 2px; }
  .cities { display: grid; gap: 10px; }
  .city { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color .3s, background .3s; }
  .city.on, .city:hover { border-color: rgb(242 169 0 / .5); background: var(--surface-2); }
  .city .cn { font: 500 12px "JetBrains Mono", monospace; color: var(--accent); width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; }
  .city h3 { font: 800 16px/1.2 "Manrope", system-ui, sans-serif; } .city p { font-size: 13px; color: var(--muted); margin-top: 2px; }

  /* --- подвал --- */
  footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 70px 0 30px; }
  .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
  .fgrid h5 { margin: 0 0 16px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
  .fgrid a:hover { color: var(--text); }
  .fgrid .about p { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 320px; }
  .req { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
  .req dt { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; padding-top: 2px; } .req dd { margin: 0; }
  .fbottom { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
  @media (max-width: 1080px) { .geo { grid-template-columns: 1fr; } .fgrid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 680px) { .fgrid { grid-template-columns: 1fr; } .map-legend { position: static; padding: 12px 14px; } }
}

@layer components {
  /* заголовки разделов — шторка */
  .js .section-head .h2 { clip-path: inset(0 0 100% 0); transform: translateY(26px); transition: clip-path 1.1s cubic-bezier(.16,1,.3,1) .15s, transform 1.1s cubic-bezier(.16,1,.3,1) .15s; }
  .section-head.in .h2 { clip-path: inset(-10% 0 -15% 0); transform: none; }
  .js .section-head .lead { opacity: 0; transition: opacity 1s ease .45s; } .section-head.in .lead { opacity: 1; }

  /* полоса доверия */
  .creds { border-top: 0; position: relative; }
  .creds::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.65,0,.35,1) .2s; }
  .creds.in::before { transform: none; }
  .js .creds > div { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
  .creds.in > div { opacity: 1; transform: none; }
  .creds > div:nth-child(2) { transition-delay: .12s } .creds > div:nth-child(3) { transition-delay: .24s } .creds > div:nth-child(4) { transition-delay: .36s }

  /* повтор прорисовки */
  .rp .s { transition: none !important; stroke-dashoffset: 1 !important; } .rp .f { transition: none !important; opacity: 0 !important; }

  /* проекты: счётчик и хронология */
  .filters { align-items: center; }
  .pcount { margin-left: auto; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
  .pcount b { color: var(--accent); font-weight: 500; }
  .xtl { margin-top: 60px; padding: 26px 28px 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .tl-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); letter-spacing: .08em; }
  .tl-head b { color: var(--accent); font-weight: 500; }
  .tl-track { position: relative; height: 185px; margin-top: 10px; }
  .tl-line { position: absolute; left: 0; right: 0; top: 135px; height: 1px; background: var(--muted); opacity: .5; transform-origin: left; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.65,0,.35,1); }
  .xtl.in .tl-line { transform: none; }
  .tl-tick { position: absolute; top: 131px; width: 1px; height: 9px; background: var(--muted); opacity: 0; transition: opacity .5s; }
  .tl-tick.y { height: 16px; top: 135px; background: var(--text); }
  .tl-year { position: absolute; top: 157px; font: 500 11px "JetBrains Mono", monospace; color: var(--text); opacity: 0; transition: opacity .6s; }
  .xtl.in .tl-tick, .xtl.in .tl-year { opacity: .6; }
  .tl-m { position: absolute; bottom: 50px; translate: -50% 0; display: grid; justify-items: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1); }
  .xtl.in .tl-m { opacity: 1; transform: none; }
  .tl-m span { font: 500 10px/1.3 "JetBrains Mono", monospace; color: var(--muted); text-align: center; white-space: nowrap; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2); transition: .25s; }
  .tl-m span b { display: block; color: var(--accent); font-weight: 500; }
  .tl-m i { width: 1px; background: var(--accent); opacity: .6; }
  .tl-m em { width: 7px; height: 7px; border: 1px solid var(--accent); background: var(--bg); rotate: 45deg; margin-top: -4px; }
  .tl-m:hover span, .tl-m.on span { border-color: var(--accent); color: var(--text); }
  .proj.hl { border-color: var(--accent); }
  @media (max-width: 680px) { .xtl { padding: 20px 16px; } .tl-m span { font-size: 9px; padding: 3px 4px; } .pcount { width: 100%; margin: 6px 0 0; } }

  /* республиканские объекты — шкала км */
  .kmbar { grid-column: 1 / -1; position: relative; height: 8px; margin-top: 4px;
    background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 22px), linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
  .kmbar i { position: absolute; left: 0; top: 3px; height: 2px; width: calc(var(--w) * 100%); background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.8s cubic-bezier(.65,0,.35,1) .3s; }
  .kmbar i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border: 1px solid var(--accent); background: var(--bg-2); rotate: 45deg; }
  .ritem.in .kmbar i { transform: none; }

  /* фото о компании */
  .about-photo { background: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px) 0 0 / 40px 40px, var(--surface-2); }
  .about-photo img { transform: scale(1.12); transition: transform 2.6s cubic-bezier(.16,1,.3,1); }
  .about-photo.in img { transform: scale(1); }
  .about-photo:hover img { transform: scale(1.03); }
  .ph-ov { position: absolute; inset: 0; pointer-events: none; }
  .ph-ov .br { position: absolute; width: 26px; height: 26px; border: 0 solid var(--accent); opacity: 0; transition: opacity .6s .6s, inset 1.2s cubic-bezier(.16,1,.3,1) .6s; }
  .ph-ov .b1 { top: 40px; left: 40px; border-width: 1px 0 0 1px; } .ph-ov .b2 { top: 40px; right: 40px; border-width: 1px 1px 0 0; }
  .ph-ov .b3 { bottom: 100px; left: 40px; border-width: 0 0 1px 1px; } .ph-ov .b4 { bottom: 100px; right: 40px; border-width: 0 1px 1px 0; }
  .about-photo.in .ph-ov .br { opacity: 1; }
  .about-photo.in .ph-ov .b1 { top: 18px; left: 18px; } .about-photo.in .ph-ov .b2 { top: 18px; right: 18px; }
  .about-photo.in .ph-ov .b3 { bottom: 86px; left: 18px; } .about-photo.in .ph-ov .b4 { bottom: 86px; right: 18px; }
  .ph-ov .xh { position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; translate: -50% -50%; opacity: 0; transition: opacity .8s 1.2s;
    background: linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat; }
  .ph-ov .xh::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--accent); border-radius: 50%; }
  .about-photo.in .ph-ov .xh { opacity: .9; }
  .ph-ov .co { position: absolute; top: 26px; left: 50px; font: 500 11px "JetBrains Mono", monospace; color: #fff; background: rgb(6 11 20 / .7); padding: 6px 9px; border-radius: 4px; opacity: 0; transition: opacity .8s 1.4s; }
  .about-photo.in .ph-ov .co { opacity: 1; }
  .checks li { opacity: 0; transform: translateX(-12px); transition: opacity .7s, transform .7s cubic-bezier(.16,1,.3,1); }
  .in .checks li { opacity: 1; transform: none; }
  .in .checks li:nth-child(1) { transition-delay: .35s } .in .checks li:nth-child(2) { transition-delay: .5s } .in .checks li:nth-child(3) { transition-delay: .65s }
  .soft span { transition: border-color .3s, color .3s; } .soft span:hover { border-color: var(--accent); color: var(--accent); }

  /* этапы */
  .pmk { position: absolute; top: 31px; left: 5%; width: 9px; height: 9px; border: 1px solid var(--accent); background: var(--bg-2); rotate: 45deg; z-index: 2; transition: left 2.2s cubic-bezier(.65,0,.35,1) .2s; }
  .process.go .pmk { left: calc(95% - 9px); }
  .js .step > :not(.dot) { opacity: .2; transform: translateY(8px); transition: opacity .7s, transform .7s cubic-bezier(.16,1,.3,1); }
  .step.lit > :not(.dot) { opacity: 1; transform: none; }
  .step .dot { transition: color .5s, border-color .5s, background .3s; }
  .step:hover .dot { background: rgb(242 169 0 / .08); }
  @media (max-width: 1080px) { .pmk { display: none; } }

  /* партнёры */
  .pcol h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .pcol h3 .pc { font: 500 34px/1 "JetBrains Mono", monospace; color: var(--text); letter-spacing: -.04em; }
  .js .pcol li { opacity: 0; transform: translateX(-10px); transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1), color .25s; transition-delay: calc(var(--i) * 70ms + .3s), calc(var(--i) * 70ms + .3s), 0s; position: relative; }
  .pcol.in li { opacity: 1; transform: none; }
  .pcol li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 14px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
  .pcol li:hover::before { transform: scaleX(1); }

  /* лицензии */
  .lic-img { position: relative; }
  .lic-img::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 14px 2px rgb(242 169 0 / .5); opacity: 0; }
  .lic.in .lic-img::after { animation: licscan 2s cubic-bezier(.65,0,.35,1) .5s; }
  .lic:hover .lic-img::after { animation: licscan 1.6s cubic-bezier(.65,0,.35,1); }
  @keyframes licscan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

  /* контакты */
  .field::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .5s cubic-bezier(.16,1,.3,1); }
  .field:focus-within::after { transform: scaleX(1); }
  .cbox.hot::after { right: -160px; bottom: -160px; width: 440px; height: 440px; border: 0; border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 43px, rgb(242 169 0 / .13) 43px 44px),
      linear-gradient(rgb(242 169 0 / .16), rgb(242 169 0 / .16)) center / 1px 100% no-repeat,
      linear-gradient(rgb(242 169 0 / .16), rgb(242 169 0 / .16)) center / 100% 1px no-repeat;
    transform: scale(.6); opacity: 0; transition: transform 2s cubic-bezier(.16,1,.3,1) .3s, opacity 1.2s .3s; }
  .cbox.hot.in::after { transform: none; opacity: 1; }
  .js .clink { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1), background .3s, border-color .3s; }
  .in .clink { opacity: 1; transform: none; }
  .in .clink:nth-child(1) { transition-delay: .3s, .3s, 0s, 0s } .in .clink:nth-child(2) { transition-delay: .42s, .42s, 0s, 0s } .in .clink:nth-child(3) { transition-delay: .54s, .54s, 0s, 0s }
}

@layer utils {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
  .muted { color: var(--muted); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .burger { display: grid; }
  .menu.open { display: flex; position: absolute; top: 74px; left: 20px; right: 20px; flex-direction: column; padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav { position: relative; }
  .hero-inner, .about-grid, .republic, .contact-wrap { grid-template-columns: 1fr; }
  .road-card { max-width: 480px; aspect-ratio: 4/3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc.wide { grid-column: span 3; }
  .projects, .team, .partners { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .process-line { display: none; }
  .licenses { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr; } .creds > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-tools .btn { display: none; }
  .svc, .svc.wide { grid-column: span 6; min-height: 0; }
  .projects, .team, .partners, .process, .row2, .offices, .mgrid { grid-template-columns: 1fr; }
  .lic { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .lic dl { grid-template-columns: 1fr; gap: 0; } .lic dd { margin-bottom: 6px; }
  .ritem { grid-template-columns: 1fr; gap: 8px; }
  .stat { padding: 26px 20px; }
  .bim-row { grid-template-columns: 1fr !important; gap: 20px !important; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .float-chip { display: none; }
}

/* ================== QazJol — дополнения к утверждённому дизайну ================== */
@layer components {
  .skip { position: absolute; left: -999px; top: 8px; z-index: 400; padding: 10px 16px; background: var(--accent); color: #000; border-radius: 6px; font-weight: 700; }
  .skip:focus { left: 12px; }
  section.alt { background: var(--bg-2); }
  .logo img { height: 40px; width: auto; border-radius: 6px; }
  .lang a { padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--muted); transition: .2s; }
  .lang a:hover { color: var(--text); }
  .lang a.on { background: var(--accent); color: #000; }
  .h3x { font-size: clamp(24px, 2.6vw, 34px); margin: 16px 0 14px; }
  .h5 { margin: 0 0 16px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .muted { color: var(--muted); }
  .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

  /* hero */
  .hero-eyebrow { font: 500 12px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
  .js .hero h1 { animation: h1in 1.2s cubic-bezier(.16,1,.3,1) .15s both; }
  @keyframes h1in { from { clip-path: inset(0 0 100% 0); transform: translateY(30px); } to { clip-path: inset(-10% 0 -20% 0); transform: none; } }
  .hero-bottom { margin-top: 34px; font: 500 12px "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .hero-bottom::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
  .stats-sec { padding-top: 0; }
  .stat p b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

  /* services */
  .svc.full { grid-column: span 6; min-height: 0; }
  .bim-row { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-right: 210px; }
  .bim-row .svc-ico { margin: 0; } .bim-row h3 { margin: 0 0 8px; }
  .svc-dwg.bim { right: 24px; width: 170px; }

  /* projects */
  .reg-link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent); padding: 10px 0; }
  .reg-link svg { transition: transform .3s; } .reg-link:hover svg { transform: translateX(4px); }
  .ptype { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
  .psub { font-size: 14px; color: var(--muted); }
  .proj:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .modal-body .ptype { margin-bottom: -8px; }
  .modal-body .btn { width: fit-content; }

  /* диаграмма по годам */
  .chart { margin-top: 60px; padding: 26px 28px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 2vw, 22px); align-items: end; height: 230px; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(0deg, transparent 0 45px, var(--line) 45px 46px); }
  .bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; text-align: center; }
  .bar .bv { font: 500 13px "JetBrains Mono", monospace; color: var(--text); padding-bottom: 6px; opacity: 0; transition: opacity .6s calc(var(--d) + .9s); }
  .bar .bc { position: relative; height: calc(var(--h) * (100% - 26px)); flex: none; display: flex; flex-direction: column; justify-content: flex-end; transform-origin: bottom; transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(.16,1,.3,1) var(--d); border-radius: 3px 3px 0 0; overflow: hidden; }
  .bar .b2 { flex: calc(1 - var(--h1)); background: repeating-linear-gradient(135deg, rgb(148 163 186 / .45) 0 2px, rgb(148 163 186 / .18) 2px 7px); }
  .bar .b1 { flex: var(--h1); background: var(--accent); }
  .bar .by { position: absolute; bottom: -26px; left: 0; right: 0; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
  .bar:hover .bc { outline: 1px solid var(--accent); outline-offset: 3px; } .bar:hover .by { color: var(--accent); }
  .chart.in .bc { transform: none; } .chart.in .bv { opacity: 1; }
  .chart-foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 40px; font-size: 13px; }
  .chart-foot a { margin-left: auto; color: var(--accent); font-weight: 700; }
  .lg { display: inline-flex; align-items: center; gap: 8px; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
  .lg i { width: 12px; height: 12px; border-radius: 2px; } .lg .l1 { background: var(--accent); } .lg .l2 { background: repeating-linear-gradient(135deg, rgb(148 163 186 / .6) 0 2px, rgb(148 163 186 / .2) 2px 5px); }
  .republic h2 { margin-top: 18px; } .rep-more { margin-top: 18px; font-size: 14px; color: var(--muted); font-style: italic; }
  .ritem h3 { font: 700 16px/1.35 "Manrope", system-ui, sans-serif; letter-spacing: 0; }

  /* галерея */
  .gal-tabs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
  .gal-tabs button { padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; transition: .25s; }
  .gal-tabs button small { font: 500 11px "JetBrains Mono", monospace; color: var(--accent); margin-left: 4px; }
  .gal-tabs button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
  .gal-pane[hidden] { display: none !important; }
  .gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-flow: dense; }
  .gi { position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16/10; cursor: zoom-in; }
  .gal-grid > .gi:nth-child(1), .gal-grid > .gi:nth-child(6) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1), filter .5s; }
  .gi:hover img { transform: scale(1.05); }
  .dwgs .gi { background: #fff; } .dwgs .gi img { object-fit: contain; padding: 8px; }
  .dwgs .gi:hover img { transform: scale(1.03); }
  .gi-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgb(6 11 20 / .85));
    transform: translateY(100%); transition: transform .4s cubic-bezier(.16,1,.3,1); }
  .gi:hover .gi-cap, .gi:focus-visible .gi-cap { transform: none; }
  .gi::before { content: "＋"; position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: rgb(6 11 20 / .7); color: #fff; opacity: 0; transition: opacity .3s; }
  .gi:hover::before { opacity: 1; }

  /* просмотрщик */
  dialog.lightbox { width: min(1400px, 100% - 24px); max-height: calc(100vh - 24px); height: calc(100vh - 24px); background: #070c15; color: #e9eef6; display: none; flex-direction: column; overflow: hidden; }
  dialog.lightbox[open] { display: flex; }
  .lb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgb(255 255 255 / .1); font: 500 12px "JetBrains Mono", monospace; }
  .lb-bar .icon-btn { width: 38px; height: 38px; background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); color: #fff; }
  .lb-cap { flex: 1; color: #94a3ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
  .lb-view { flex: 1; overflow: auto; display: grid; place-items: center; background: repeating-conic-gradient(#0b1220 0 25%, #0d1526 0 50%) 0 0 / 24px 24px; }
  .lb-view img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
  .lb-view img.zoom { max-width: none; max-height: none; width: min(3200px, 260%); cursor: zoom-out; }

  /* география */
  .city { grid-template-columns: 40px 1fr auto; }
  .city h3 { font: 800 16px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: 0; }
  .city-go { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: .25s; }
  .city-go:hover, .city.on .city-go { color: #000; background: var(--accent); border-color: var(--accent); }
  .map-tip span { color: #94a3ba; }

  /* партнёры */
  .pcol li { flex-direction: column; gap: 2px; justify-content: flex-start; }
  .pcol li small { font-size: 12px; }

  /* о компании */
  .ab-lead { margin-top: 20px; }
  .about-grid .axis-rule { width: auto; }
  .ab-cards { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 60px; }
  .ab-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .ab-card h3 { font-size: 20px; margin-bottom: 10px; } .ab-card p { color: var(--muted); font-size: 15px; }
  .ab-card.staff { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
  .staff-n { font: 800 clamp(56px, 6vw, 84px)/1 "Manrope", system-ui, sans-serif; color: var(--accent); letter-spacing: -.04em; min-width: 1.4em; }
  .lead-h { margin-top: 70px; }
  .team { margin-top: 26px; }
  .person .role { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
  .person h3 { font: 800 17px/1.3 "Manrope", system-ui, sans-serif; letter-spacing: 0; }
  .person h3 span { display: block; font-weight: 600; color: var(--muted); font-size: 14px; }

  /* технологии */
  .tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .tcard { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s; }
  .tcard::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.65,0,.35,1) calc(var(--d) + .3s); }
  .tcard.in::before { transform: none; }
  .tcard:hover { border-color: rgb(242 169 0 / .4); }
  .tno { font: 500 13px "JetBrains Mono", monospace; color: var(--accent); }
  .tcard h3 { font-size: 18px; margin: 18px 0 10px; } .tcard p { color: var(--muted); font-size: 14px; }
  .norm { display: inline-block; margin-top: 14px; font: 500 11px "JetBrains Mono", monospace; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); color: var(--cool); }
  .soft-box { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed rgb(242 169 0 / .4); background: color-mix(in oklab, var(--accent) 5%, transparent); }
  .soft-box h3 { font-size: 18px; margin-bottom: 6px; } .soft-box p { color: var(--muted); font-size: 14px; max-width: 560px; }
  .soft span { font-family: "JetBrains Mono", monospace; font-weight: 500; }

  /* лицензии */
  .lic { cursor: default; grid-template-columns: 180px 1fr; }
  .lic-img { cursor: zoom-in; display: block; }
  .lic h3 { margin: 12px 0 6px; }
  .lic-num { font: 500 18px "JetBrains Mono", monospace; color: var(--accent); margin-bottom: 10px; }
  .lic-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
  .lic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .legal-line { margin-top: 26px; display: flex; gap: 24px; flex-wrap: wrap; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }

  /* контакты */
  .ct-h { margin: 16px 0; }
  .ct-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; position: relative; z-index: 1; }
  .cbox.hot .btn.ghost { color: #fff; border-color: rgb(255 255 255 / .2); }
  .btn.wa { background: #25d366; color: #04210f; } .btn.wa::after { background: #1ebe5a; }
  .clink { flex-wrap: wrap; } .clink a b:hover { color: var(--accent); }
  .copy { margin-left: auto; padding: 8px 12px; border-radius: 6px; border: 1px solid rgb(255 255 255 / .18); background: transparent; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
  .copy:hover { border-color: var(--accent); color: var(--accent); }
  .copy-st { width: 100%; font-size: 12px; color: var(--ok); }
  .copy-st:empty { display: none; }
  .office { display: grid; gap: 4px; }
  .office-map { position: relative; border-radius: 6px; overflow: hidden; margin-bottom: 10px; aspect-ratio: 5/3; background: #0a1220; }
  .office-map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: filter .4s, transform .8s; }
  .office-map:hover img { filter: none; transform: scale(1.04); }
  .om-x { position: absolute; inset: 8px; pointer-events: none;
    background: linear-gradient(var(--accent), var(--accent)) top left / 12px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 1px 12px no-repeat,
      linear-gradient(var(--accent), var(--accent)) bottom right / 12px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 1px 12px no-repeat; }
  .office b { margin: 0; } .office .muted { color: #93a2b8; }
  .form-h { font-size: 26px; }
  fieldset { border: 0; padding: 0; margin: 0; } legend { font-size: 13px; font-weight: 700; margin-bottom: 10px; padding: 0; }
  .scope input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .scope input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .field.err input, .field.err textarea { border-color: #ff5a3a; }
  form .btn { justify-content: center; }
  .form-sent { padding: 14px 16px; border-radius: 8px; background: rgb(41 211 145 / .12); color: var(--ok); font-weight: 700; }
  .ft-ig { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); }
  .fbottom a:hover { color: var(--accent); }

  /* реестр */
  .reg-hero { padding-top: 150px; }
  .crumbs { display: flex; gap: 10px; font: 500 12px "JetBrains Mono", monospace; color: var(--muted); margin-bottom: 30px; }
  .crumbs a:hover { color: var(--accent); }
  .reg-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
  .rs { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: .25s; }
  .rs b { font: 500 22px "JetBrains Mono", monospace; color: var(--accent); }
  .rs:hover { border-color: var(--accent); }
  .reg-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
  .reg-filters select, .reg-filters input { padding: 11px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; outline: none; }
  .reg-filters select:focus, .reg-filters input:focus { border-color: var(--accent); }
  .reg-filters input { flex: 1; min-width: 220px; }
  .reg-table { border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: var(--surface); }
  .reg-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
  .reg-table th { text-align: left; padding: 14px 16px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; }
  .reg-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .reg-table tr:last-child td { border-bottom: 0; }
  .reg-table tbody tr { transition: background .2s; } .reg-table tbody tr:hover { background: var(--surface-2); }
  .reg-table .mono { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); white-space: nowrap; }
  .reg-table .nm { font-weight: 600; } .reg-table .concl { color: var(--text); }
  .lvl { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); font: 500 12px "JetBrains Mono", monospace; color: var(--muted); }
  .lvl.l1 { border-color: var(--accent); color: var(--accent); }
  .reg-empty { padding: 30px; text-align: center; color: var(--muted); }
  .reg-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
  .reg-cta { margin-top: 60px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 30px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
  .reg-cta h2 { margin: 0 0 6px; }

  /* 404 */
  .e404 { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
  .e404-in { max-width: 760px; display: grid; gap: 22px; justify-items: start; }
  .e404-code { display: flex; align-items: center; gap: 10px; font: 800 clamp(90px, 18vw, 180px)/1 "Manrope", system-ui, sans-serif; color: var(--text); }
  .e404-code svg { width: .8em; height: .8em; color: var(--muted); animation: spin2 30s linear infinite; }
  @keyframes spin2 { to { rotate: 360deg; } }
  .e404-pk { font: 500 12px "JetBrains Mono", monospace; color: var(--accent); letter-spacing: .1em; }
  .e404 h1 { font-size: clamp(24px, 3.4vw, 36px); }

  /* лоадер — только при первом визите */
  .loader { display: none; }
  html.loading .loader, .loader.done { display: grid; }
}

@media (max-width: 1080px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .bim-row { padding-right: 0; }
  .ab-cards { grid-template-columns: 1fr; }
  .lang { order: -1; }
}
@media (max-width: 680px) {
  .tgrid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid > .gi:nth-child(1), .gal-grid > .gi:nth-child(6) { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .reg-link { margin-left: 0; width: 100%; }
  .bars { height: 180px; }
  .bar .bv { font-size: 11px; }
  .ab-card.staff { grid-template-columns: 1fr; gap: 10px; }
  .lic { grid-template-columns: 1fr; }
  .lic-img { max-width: 200px; }
  .chart { padding: 20px 14px; }
  .chart-foot a { margin-left: 0; }
  .reg-hero { padding-top: 120px; }
  .nav { padding-left: 12px; gap: 10px; }
  .logo img { height: 34px; }
  .lang a { padding: 6px 7px; }
  .cbox { padding: 22px 18px; }
  .copy { margin-left: 60px; }
  dialog.lightbox { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .lb-cap { display: none; }
}
@media (max-width: 1080px) { .hero { min-height: 0; padding-top: 130px; } }
@media (max-width: 680px) { .cad-tag.tr, .cad-read { display: none; } .hero-cta .btn { width: 100%; justify-content: center; } .creds { margin-top: 40px; } }

@layer components { dialog#modal { overflow: auto; } }

/* ================== слайд-шоу «Визуализации и чертежи» ================== */
@layer components {
  .show { --D: 6.5s; }
  .show-stage { position: relative; aspect-ratio: 16/8.2; max-height: 78vh; width: 100%; border-radius: 12px; overflow: hidden; background: #070c15; border: 1px solid var(--line); outline: none; isolation: isolate; user-select: none; touch-action: pan-y; }
  .show-stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
  .show.dwg .show-stage { background: #f4f2ec; }
  .slides { position: absolute; inset: 0; }
  .slide { position: absolute; inset: 0; margin: 0; opacity: 0; z-index: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.15s cubic-bezier(.77,0,.18,1), opacity .4s; cursor: zoom-in; }
  .show-stage[data-dir="-1"] .slide:not(.on):not(.out) { clip-path: inset(0 100% 0 0); }
  .slide.on { opacity: 1; z-index: 2; clip-path: inset(0); }
  .slide.out { opacity: 1; z-index: 1; clip-path: inset(0); }
  .slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
  .show.dwg .slide img { object-fit: contain; padding: clamp(10px, 2.4vw, 34px); }
  .slide.on.kb-a img { animation: kbA calc(var(--D) + 1.5s) linear both; }
  .slide.on.kb-b img { animation: kbB calc(var(--D) + 1.5s) linear both; }
  .show.dwg .slide.on img { animation-name: kbD; }
  .slide.out img { animation-play-state: paused; }
  @keyframes kbA { from { transform: scale(1.04) translate(1%, .6%); } to { transform: scale(1.14) translate(-1.6%, -1%); } }
  @keyframes kbB { from { transform: scale(1.14) translate(-1.4%, .8%); } to { transform: scale(1.04) translate(1%, -.6%); } }
  @keyframes kbD { from { transform: scale(1); } to { transform: scale(1.045); } }
  .show-stage.paused .slide.on img { animation-play-state: paused; }
  /* затемнение для подписей */
  .show-stage::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, rgb(6 11 20 / .55) 0, transparent 22%, transparent 62%, rgb(6 11 20 / .82) 100%); }
  .show.dwg .show-stage::before { background: linear-gradient(180deg, rgb(6 11 20 / .5) 0, transparent 16%, transparent 76%, rgb(6 11 20 / .7) 100%); }
  /* рамка листа */
  .sh-frame { position: absolute; inset: 14px; z-index: 4; pointer-events: none;
    background: linear-gradient(var(--accent), var(--accent)) top left / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 1px 22px no-repeat,
      linear-gradient(var(--accent), var(--accent)) top right / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 1px 22px no-repeat,
      linear-gradient(var(--accent), var(--accent)) bottom left / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 1px 22px no-repeat,
      linear-gradient(var(--accent), var(--accent)) bottom right / 22px 1px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 1px 22px no-repeat; }
  /* линия-«развёртка» при смене слайда */
  .sh-wipe { position: absolute; top: 0; bottom: 0; width: 2px; z-index: 5; pointer-events: none; background: var(--accent); box-shadow: 0 0 18px 3px rgb(242 169 0 / .55); left: 100%; opacity: 0; }
  .show-stage.wiping .sh-wipe { animation: wipeL 1.15s cubic-bezier(.77,0,.18,1); }
  .show-stage.wiping[data-dir="-1"] .sh-wipe { animation-name: wipeR; }
  @keyframes wipeL { 0% { left: 100%; opacity: 1; } 92% { opacity: 1; } 100% { left: 0; opacity: 0; } }
  @keyframes wipeR { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
  /* верх: счётчик и тип */
  .sh-top { position: absolute; top: 26px; left: 30px; right: 30px; z-index: 6; display: flex; align-items: center; gap: 14px; pointer-events: none; color: #e9eef6; font: 500 12px "JetBrains Mono", monospace; letter-spacing: .08em; }
  .sh-n b { font-size: 22px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
  .sh-cat { padding: 5px 9px; border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; background: rgb(6 11 20 / .45); text-transform: uppercase; }
  .sh-cap { position: absolute; left: 30px; bottom: 34px; z-index: 6; max-width: min(640px, 70%); color: #fff; font: 800 clamp(20px, 2.4vw, 32px)/1.15 "Manrope", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: balance; pointer-events: none; text-shadow: 0 2px 20px rgb(0 0 0 / .4); }
  .sh-cap.swap { animation: capIn .9s cubic-bezier(.16,1,.3,1); }
  @keyframes capIn { from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-20% 0 -30% 0); } }
  /* навигация */
  .sh-nav { position: absolute; top: 50%; z-index: 6; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    color: #fff; background: rgb(6 11 20 / .5); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(8px); transition: background .3s, border-color .3s, transform .3s, opacity .3s; opacity: .85; }
  .sh-nav.prev { left: 22px; } .sh-nav.next { right: 22px; }
  .sh-nav:hover { background: var(--accent); color: #000; border-color: var(--accent); opacity: 1; }
  .sh-nav.prev:hover { transform: translateX(-3px); } .sh-nav.next:hover { transform: translateX(3px); }
  .sh-tools { position: absolute; right: 26px; bottom: 30px; z-index: 6; display: flex; gap: 8px; align-items: center; }
  .sh-tools .icon-btn { background: rgb(6 11 20 / .55); border-color: rgb(255 255 255 / .22); color: #fff; backdrop-filter: blur(8px); }
  .sh-tools .icon-btn:hover { border-color: var(--accent); color: var(--accent); }
  .sh-play .i-play { display: none; } .show-stage.paused .sh-play .i-play { display: block; } .show-stage.paused .sh-play .i-pause { display: none; }
  /* прогресс */
  .sh-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; background: rgb(255 255 255 / .12); }
  .sh-prog i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
  /* лента миниатюр */
  .sh-bar { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
  .sh-strip { flex: 1; display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 6px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .sh-strip::-webkit-scrollbar { display: none; }
  .sh-th { position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 16/10; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--surface-2); opacity: .5; filter: grayscale(.6); transition: opacity .35s, filter .35s, border-color .35s, transform .35s; }
  .show.dwg .sh-th { background: #f4f2ec; }
  .sh-th img { width: 100%; height: 100%; object-fit: cover; }
  .show.dwg .sh-th img { object-fit: contain; padding: 4px; }
  .sh-th span { position: absolute; left: 6px; top: 5px; font: 500 10px "JetBrains Mono", monospace; color: #fff; background: rgb(6 11 20 / .7); padding: 2px 5px; border-radius: 3px; }
  .sh-th i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .sh-th:hover { opacity: .85; filter: none; }
  .sh-th.on { opacity: 1; filter: none; border-color: var(--accent); transform: translateY(-2px); }
  .sh-hint { flex: none; font: 500 11px "JetBrains Mono", monospace; color: var(--muted); }
  .gal-tabs { margin-bottom: 18px; }
}
@media (max-width: 900px) { .sh-hint { display: none; } .show-stage { aspect-ratio: 4/3; } }
@media (max-width: 680px) {
  .show-stage { aspect-ratio: 4/3.4; border-radius: 8px; }
  .sh-nav { width: 42px; height: 42px; margin-top: -21px; } .sh-nav.prev { left: 10px; } .sh-nav.next { right: 10px; }
  .sh-top { top: 16px; left: 18px; } .sh-cap { left: 18px; bottom: 74px; max-width: calc(100% - 36px); font-size: 19px; }
  .sh-tools { left: 16px; right: auto; bottom: 18px; }
  .sh-th { width: 96px; }
  .sh-frame { inset: 8px; }
}
@layer components {
  .sh-pdf[hidden] { display: none !important; }
  .show.dwg .sh-n { background: rgb(6 11 20 / .78); padding: 5px 9px; border-radius: 4px; }
  .show.dwg .sh-cat { background: rgb(6 11 20 / .78); }
}
@layer components { .show.dwg .sh-cap { background: rgb(6 11 20 / .8); padding: 10px 14px; border-radius: 6px; font-size: clamp(16px, 1.7vw, 22px); text-shadow: none; } }
@media (max-width: 680px) { .show.dwg .sh-cap { font-size: 14px; padding: 7px 10px; bottom: 76px; } }

/* ================== эффекты переходов слайд-шоу ================== */
@layer components {
  .show-stage { --E: cubic-bezier(.77,0,.18,1); --dir: 1; --mx: 0; --my: 0; --cx: 88%; --cy: 50%; }
  /* параллакс за курсором */
  .slides { transform: translate(calc(var(--mx) * -18px), calc(var(--my) * -12px)) scale(1.035); transition: transform .9s cubic-bezier(.16,1,.3,1); }
  .sh-cap { transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 6px)); transition: transform .9s cubic-bezier(.16,1,.3,1); }
  .sh-top { transform: translate(calc(var(--mx) * 5px), calc(var(--my) * 4px)); transition: transform .9s cubic-bezier(.16,1,.3,1); }
  /* базовое состояние слайдов */
  .slide { clip-path: inset(0); opacity: 0; transform: none; filter: none;
    transition: clip-path 1.2s var(--E), opacity .6s ease, transform 1.4s var(--E), filter 1.3s ease; }
  .slide.prep { transition: none !important; }
  .slide.on { opacity: 1; z-index: 2; clip-path: inset(0); transform: none; filter: none; }
  .slide.out { opacity: 1; z-index: 1; clip-path: inset(0); transform: scale(.92) translateX(calc(var(--dir) * -6%)); filter: brightness(.3) saturate(.5); }
  /* 1. шторка с линией развёртки */
  [data-fx="wipe"] .slide:not(.on):not(.out) { clip-path: inset(0 0 0 100%); transform: translateX(10%); }
  [data-fx="wipe"][data-dir="-1"] .slide:not(.on):not(.out) { clip-path: inset(0 100% 0 0); transform: translateX(-10%); }
  /* 2. раскрытие из центра */
  [data-fx="split"] .slide:not(.on):not(.out) { clip-path: inset(0 50% 0 50%); transform: scale(1.18); }
  [data-fx="split"] .slide.out { transform: scale(.86); }
  /* 3. круг (из стрелки или центра) */
  [data-fx="circle"] .slide:not(.on):not(.out) { clip-path: circle(0% at var(--cx) var(--cy)); transform: scale(1.12); }
  [data-fx="circle"] .slide.on { clip-path: circle(118% at var(--cx) var(--cy)); transition-duration: 1.6s, .6s, 1.6s, 1.3s; }
  [data-fx="circle"] .slide.out { clip-path: circle(118% at var(--cx) var(--cy)); }
  /* 4. диагональ */
  [data-fx="diag"] .slide:not(.on):not(.out) { clip-path: polygon(130% 0, 160% 0, 130% 100%, 100% 100%); transform: translateX(8%) scale(1.06); }
  [data-fx="diag"][data-dir="-1"] .slide:not(.on):not(.out) { clip-path: polygon(-30% 0, 0 0, -30% 100%, -60% 100%); transform: translateX(-8%) scale(1.06); }
  [data-fx="diag"] .slide.on, [data-fx="diag"] .slide.out { clip-path: polygon(-30% 0, 160% 0, 130% 100%, -60% 100%); }
  /* 5. жалюзи — полосы рисует скрипт, слайд проявляется под ними */
  [data-fx="blinds"] .slide.on { transition: opacity .3s ease .85s, transform 1.4s var(--E), filter 1.3s ease; }
  [data-fx="blinds"] .slide:not(.on):not(.out) { opacity: 0; }
  .sh-blinds { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .45s ease; }
  .sh-blinds i { position: absolute; top: 0; bottom: 0; transform: scaleY(0); animation: blindIn .75s cubic-bezier(.77,0,.18,1) forwards; box-shadow: inset -1px 0 0 rgb(0 0 0 / .25); }
  .sh-blinds.fade { opacity: 0; }
  @keyframes blindIn { to { transform: scaleY(1); } }
  /* 6. наезд камеры с размытием */
  [data-fx="zoom"] .slide:not(.on):not(.out) { opacity: 0; transform: scale(1.4); filter: blur(14px) brightness(1.4); }
  [data-fx="zoom"] .slide.on { transition: opacity .9s ease, transform 1.5s cubic-bezier(.16,1,.3,1), filter 1.2s ease; }
  [data-fx="zoom"] .slide.out { opacity: 0; transform: scale(.82); filter: blur(6px) brightness(.4); transition: opacity 1s ease .2s, transform 1.4s var(--E), filter 1.2s; }
  [data-fx="fade"] .slide:not(.on):not(.out) { opacity: 0; }
  /* линия развёртки только для шторки/диагонали */
  .show-stage:not([data-fx="wipe"]):not([data-fx="diag"]) .sh-wipe { display: none; }
  .show-stage.wiping[data-fx="diag"] .sh-wipe { transform: skewX(-17deg); }
  /* вспышка-рамка при смене */
  .show-stage.wiping .sh-frame { animation: frameIn 1.2s cubic-bezier(.16,1,.3,1); }
  @keyframes frameIn { 0% { inset: 34px; opacity: 0; } 100% { inset: 14px; opacity: 1; } }
  /* подпись по словам и счётчик */
  .sh-cap span { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
  .sh-cap i { display: inline-block; font-style: normal; animation: wordUp .9s cubic-bezier(.16,1,.3,1) calc(var(--k) * 70ms + .35s) both; }
  @keyframes wordUp { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
  .sh-n b { display: inline-block; }
  .sh-n b.roll { animation: roll .7s cubic-bezier(.16,1,.3,1); }
  @keyframes roll { from { transform: translateY(70%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
  /* миниатюры */
  .sh-th { transition: opacity .35s, filter .35s, border-color .35s, transform .45s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
  .sh-th.on { transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 24px -10px rgb(242 169 0 / .55); }
  .sh-th img { transition: transform .8s cubic-bezier(.16,1,.3,1); } .sh-th:hover img { transform: scale(1.12); }
  .sh-nav svg { transition: transform .3s; } .sh-nav.next:hover svg { transform: translateX(3px); } .sh-nav.prev:hover svg { transform: translateX(-3px); }
}
@media (prefers-reduced-motion: reduce) { .slides { transform: none; } }

/* ================== современный переход: WebGL + запасной вариант ================== */
@layer components {
  .sh-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: block; cursor: zoom-in; }
  .show-stage.gl-on .slides { visibility: hidden; }
  .sh-wipe { display: none !important; }
  /* без WebGL: параллакс-сдвиг кадров */
  [data-fx="slide"] .slide:not(.on):not(.out) { clip-path: inset(0); opacity: 1; transform: translateX(calc(var(--dir) * 100%)); }
  [data-fx="slide"] .slide.on { transition: transform 1.3s cubic-bezier(.76,0,.24,1), opacity .2s; }
  [data-fx="slide"] .slide.out { transform: translateX(calc(var(--dir) * -32%)) scale(.96); filter: brightness(.35); transition: transform 1.3s cubic-bezier(.76,0,.24,1), filter 1.3s; }
}

/* ================== логотип: две версии под тему ================== */
@layer components {
  .logo img { height: 40px; width: auto; border-radius: 0; }
  .logo .lg-l { display: none; }
  :root[data-theme="light"] .logo .lg-d { display: none; }
  :root[data-theme="light"] .logo .lg-l { display: block; }
  footer .logo img { height: 44px; }
  .e404 .logo img { height: 48px; }
  @media (max-width: 680px) { .logo img { height: 32px; } }
}

/* ================== страницы услуг и «Вопросы и ответы» ================== */
@layer components {
  .svc h3 a { color: inherit; } .svc h3 a:hover { color: var(--accent); }
  .svc-link { display: inline-block; margin-top: 18px; font: 500 12px "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .25s; }
  .svc-link:hover { border-color: var(--accent); }
  .sv-hero { padding-bottom: 70px; }
  .sv-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .sv-top .section-head { margin-bottom: 0; }
  .sv-top .hero-cta { margin-top: 30px; }
  .sv-dwg { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 34px; position: relative; }
  .sv-dwg::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); border-radius: 6px; pointer-events: none; }
  .sv-dwg .svc-dwg { position: static; width: 100%; max-width: none; translate: none; color: var(--accent); opacity: .95; display: block; }
  .sv-facts { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .sv-fact { padding: 22px 22px 0 0; display: grid; gap: 4px; }
  .sv-fact + .sv-fact { padding-left: 22px; border-left: 1px solid var(--line); }
  .sv-fact b { font: 500 34px "JetBrains Mono", monospace; color: var(--accent); }
  .sv-fact span { font-size: 13px; color: var(--muted); }
  .svpage section:not(.reg-hero) { padding: 80px 0; }
  .svpage .h3x { margin: 0 0 30px; }
  .sv-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  .sv-items li { display: flex; gap: 14px; align-items: baseline; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; transition: border-color .25s; }
  .sv-items li:hover { border-color: var(--accent); }
  .sv-items .mono, .sv-other .mono { font: 500 12px "JetBrains Mono", monospace; color: var(--accent); }
  .sv-lead { margin: -10px 0 24px; }
  .sv-reg { margin-top: 26px; }
  .sv-process { margin-top: 10px; }
  .sv-base { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .sv-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .sv-card h3 { font-size: 20px; margin: 4px 0 0; }
  .sv-card .lic-num { font: 500 18px "JetBrains Mono", monospace; color: var(--accent); margin: 0; }
  .sv-card .muted { font-size: 15px; margin: 0; }
  .sv-card .btn { margin-top: auto; }
  .sv-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .sv-other { display: flex; gap: 14px; align-items: baseline; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .25s, transform .25s; }
  .sv-other b { flex: 1; font-weight: 700; }
  .sv-other .arr { color: var(--muted); transition: color .25s, translate .25s; }
  .sv-other:hover { border-color: var(--accent); } .sv-other:hover .arr { color: var(--accent); translate: 4px 0; }
  .faq { max-width: 920px; display: grid; gap: 10px; }
  .faq-i { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .25s; }
  .faq-i[open], .faq-i:hover { border-color: var(--accent); }
  .faq-i summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 24px; font-weight: 700; font-size: 17px; }
  .faq-i summary::-webkit-details-marker { display: none; }
  .faq-i summary i { flex: none; width: 14px; height: 14px; position: relative; }
  .faq-i summary i::before, .faq-i summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent); transition: rotate .3s; }
  .faq-i summary i::after { rotate: 90deg; } .faq-i[open] summary i::after { rotate: 0deg; }
  .faq-i p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 780px; }
  @media (max-width: 900px) { .sv-top { grid-template-columns: 1fr; } .sv-dwg { max-width: 420px; } .sv-base { grid-template-columns: 1fr; } .svpage .process { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 680px) { .sv-facts { grid-template-columns: 1fr; } .sv-fact + .sv-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; } .svpage section:not(.reg-hero) { padding: 56px 0; } .svpage .process { grid-template-columns: 1fr; } .faq-i summary { font-size: 15.5px; padding: 16px 18px; } .faq-i p { padding: 0 18px 18px; } }
}
@layer components { .ld-s { justify-content: center; } .axes-in i { top: 0; } }

/* заголовок раздела в линии разметки: номер + название + линия с засечками */
@layer components {
  .axis-rule { gap: 16px; margin-bottom: 34px; }
  .axis-rule b { width: 38px; height: 38px; font-size: 12px; background: rgb(242 169 0 / .08); transition: background .6s .3s, color .6s .3s, box-shadow .6s .3s; }
  .axis-rule.in b { background: var(--accent); color: #0a0f18; box-shadow: 0 0 0 5px rgb(242 169 0 / .14); }
  .axis-rule .ax-t { margin: 0; flex: none; font: 700 14px "Manrope", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
  .js .axis-rule .ax-t { opacity: 0; translate: -10px 0; transition: opacity .7s .25s, translate .7s cubic-bezier(.16,1,.3,1) .25s; }
  .js .axis-rule.in .ax-t { opacity: 1; translate: none; }
  @media (max-width: 680px) { .axis-rule { gap: 12px; margin-bottom: 24px; } .axis-rule b { width: 32px; height: 32px; font-size: 11px; } .axis-rule .ax-t { font-size: 12px; letter-spacing: .12em; white-space: normal; } }
}
/* слайд-шоу: кнопки «пауза» и «на весь экран» и подсказка по клавишам скрыты (кадр открывается по клику, пауза — при наведении) */
@layer components { .sh-play, .sh-full, .sh-hint { display: none !important; } }

/* первый экран: чертёж вычерчивается вслед за курсором (маски и шаги — в site.js, блок «вычерчивание курсором») */
@layer components {
  #cad.cd #sec .ln, #cad.cd #plan .ln { animation: none; stroke-dashoffset: 0; }
  #cad.cd #sec .fd, #cad.cd #plan .fd { animation: none; opacity: 1; }
  #cad.cd #prof .ln { animation: none; }
  #cad.cd #prof .fd, #cad.cd #ann .fd { animation: none; opacity: 0; transition: opacity .7s ease-out; }
  #cad.cd #prof .fd.on, #cad.cd #ann .fd.on { opacity: 1; }
  #cad.cd #xhair path { stroke-opacity: .5; }
}
@layer components {
  .cping { transform-box: fill-box; transform-origin: center; animation: cping .7s ease-out forwards; }
  @keyframes cping { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
}
