    :root {
      --bg:      oklch(99% 0.002 240);
      --surface: oklch(100% 0 0);
      --fg:      oklch(16% 0.014 250);
      --muted:   oklch(50% 0.016 250);
      --border:  oklch(88% 0.007 250);
      --accent:  oklch(52% 0.23 255);
      --danger:  oklch(52% 0.16 25);

      --wire-l:  oklch(60.8% 0.209 27);
      --wire-n:  oklch(52.2% 0.177 256);
      --wire-pe: oklch(52% 0.177 142);
      --wire-pe-bright: oklch(94.4% 0.221 119);

      --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
      --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);

      --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
      --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
      --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;

      --fs-h1: clamp(40px, 5.2vw, 66px);
      --fs-h2: clamp(30px, 3.6vw, 44px);
      --fs-h3: 22px;
      --fs-lead: 19px;
      --fs-body: 16px;
      --fs-meta: 13px;

      --gap-xs: 8px;
      --gap-sm: 12px;
      --gap-md: 20px;
      --gap-lg: 32px;
      --gap-xl: 56px;
      --gap-2xl: 96px;
      --container: 1120px;
      --gutter: 32px;

      --radius: 10px;
      --radius-lg: 16px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: var(--fs-body);
      line-height: 1.55;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; }
    p { text-wrap: pretty; }
    h1, h2, h3, h4 { text-wrap: balance; }

    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    section[id] { scroll-margin-top: 88px; }

    .container {
      max-width: var(--container);
      margin-inline: auto;
      padding-inline: var(--gutter);
    }
    .section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
    .section + .section { border-top: 1px solid var(--border); }
    .stack { display: flex; flex-direction: column; }
    .stack > * + * { margin-top: var(--gap-md); }
    .row { display: flex; align-items: center; gap: var(--gap-md); }
    .row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
    .grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
    .grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
    @media (max-width: 920px) {
      .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    }

    .h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
    .h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
    .h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
    .lead   { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
    .eyebrow {
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin: 0 0 var(--gap-md);
    }
    .meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
    .num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

    .topnav {
      position: sticky; top: 0; z-index: 10;
      background: color-mix(in oklch, var(--bg) 92%, transparent);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
    .topnav .logo { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 9px; }
    .topnav .logo svg { width: 15px; height: 15px; transition: color 0.2s ease; }
    .topnav .logo:hover svg { color: #ffd700; filter: drop-shadow(0 0 6px rgba(255,215,0,0.8)); }
    .topnav nav { display: flex; gap: var(--gap-lg); }
    .topnav nav a { font-size: 14px; color: var(--muted); }
    .topnav nav a:hover { color: var(--fg); }
    @media (max-width: 920px) { .topnav nav { display: none; } }
    .pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
    .pagefoot .row-between { flex-wrap: wrap; gap: var(--gap-md); }

    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 11px 20px;
      border-radius: var(--radius);
      border: 1px solid transparent;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: -0.005em;
      transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
    }
    .btn svg { width: 16px; height: 16px; }
    .btn:active { transform: translateY(1px); }
    .btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); box-shadow: 0 1px 2px color-mix(in oklch, var(--accent) 30%, transparent); }
    .btn-primary:hover { background: color-mix(in oklch, var(--accent) 86%, black); box-shadow: 0 10px 24px -8px color-mix(in oklch, var(--accent) 60%, transparent); }
    .btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
    .btn-secondary:hover { border-color: var(--fg); }
    .btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
    .btn-ghost:hover { color: var(--accent); }
    .btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
    .btn-arrow:hover::after { transform: translateX(2px); }

    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      padding: 28px;
    }
    .card-flat { background: transparent; border: 0; padding: 0; }
    .card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); padding: 24px 0 0; border-radius: 0; }

    .feature .feature-mark {
      width: 36px; height: 36px;
      display: grid; place-items: center;
      border: 1px solid var(--border);
      border-radius: 10px;
      color: var(--fg);
      margin-bottom: var(--gap-md);
    }
    .feature .feature-mark svg { width: 18px; height: 18px; }
    .feature:hover .feature-mark { border-color: var(--accent); color: var(--accent); }
    .feature h3 { margin-bottom: 6px; }
    .feature p  { margin: 0; color: var(--muted); font-size: 15px; }

    .stat .stat-num { font-family: var(--font-display); font-size: clamp(56px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.04em; color: var(--accent); font-weight: 600; }
    .stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 24ch; }
    .stat .stat-unit  { font-size: 0.5em; opacity: 0.7; margin-left: 2px; }

    .quote { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.32; letter-spacing: -0.01em; max-width: 28ch; }
    .quote-author { color: var(--muted); font-size: 14px; margin-top: var(--gap-md); }
    .quote-mark   { font-family: var(--font-display); font-size: 140px; line-height: 0.7; color: var(--accent); opacity: 0.18; margin-bottom: -28px; }

    .pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 10px;
      background: var(--accent-soft);
      color: var(--accent);
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .tag {
      display: inline-flex; align-items: center;
      padding: 4px 10px;
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 12px;
    }

    .field { display: flex; flex-direction: column; gap: 6px; }
    .field label { font-size: 13px; color: var(--muted); }
    .input, .textarea {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      color: var(--fg);
      font: inherit;
      font-size: 15px;
    }
    .input:focus, .textarea:focus {
      outline: 2px solid var(--accent-soft);
      border-color: var(--accent);
    }
    .textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
    .field .error-msg { display: none; color: var(--danger); font-size: 13px; margin: 0; }
    .field.invalid .error-msg { display: block; }
    .field.invalid .input { border-color: var(--danger); }
    .field.invalid .input:focus { outline-color: color-mix(in oklch, var(--danger) 28%, transparent); border-color: var(--danger); }

    .ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
    .ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
    .ds-table tbody tr:hover { background: var(--fg-soft); }
    .ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

    .ph-img {
      background: linear-gradient(135deg, var(--accent-soft), var(--fg-soft)), var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      aspect-ratio: 16 / 10;
      display: grid; place-items: center;
      color: var(--muted);
      font-family: var(--font-mono);
      font-size: 12px;
      letter-spacing: 0.04em;
    }
    .ph-img.square    { aspect-ratio: 1 / 1; }
    .ph-img.portrait  { aspect-ratio: 3 / 4; }
    .ph-img.wide      { aspect-ratio: 16 / 9; }

    .rule  { border: 0; border-top: 1px solid var(--border); margin: 0; }
    .rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }

    .hero          { padding-block: clamp(64px, 9vw, 128px); }
    .hero-center   { text-align: center; max-width: 32ch; margin-inline: auto; }
    .hero h1       { margin-bottom: var(--gap-md); }
    .hero .lead    { margin-bottom: var(--gap-lg); }
    .hero-cta      { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
    .hero-center .hero-cta { justify-content: center; }
    .hero-split    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
    @media (max-width: 920px) { .hero-split { grid-template-columns: 1fr; } }

    .hero-facts {
      display: flex; flex-wrap: wrap; gap: 10px 26px;
      margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
    }
    .hero-facts span {
      font-family: var(--font-mono); font-size: 12px; color: var(--muted);
      display: inline-flex; align-items: center; gap: 9px;
    }
    .hero-facts span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.75; }

    .wire-key { display: inline-flex; align-items: center; gap: 14px; }
    .wire-key span {
      font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
      display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
    }
    .wire-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
    .wire-key .key-pe i { background: linear-gradient(135deg, var(--wire-pe-bright) 0 50%, var(--wire-pe) 50% 100%); border: 1px solid color-mix(in oklch, var(--wire-pe) 45%, transparent); }

    .log-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: var(--gap-lg); padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; }
    .log-row > * { min-width: 0; }
    .log-row .meta { color: var(--muted); }
    .log-row .num { color: var(--accent); font-weight: 600; }
    .log-row h3 { font-size: 19px; }
    .log-row .pull { text-align: right; }

    .sv-panel  { fill: color-mix(in oklch, var(--accent) 7%, var(--surface)); }
    .sv-frame  { stroke: color-mix(in oklch, var(--fg) 30%, transparent); stroke-width: 1.5; }
    .sv-module { fill: var(--surface); stroke: color-mix(in oklch, var(--fg) 42%, transparent); stroke-width: 1.3; }
    .sv-wire   { stroke: color-mix(in oklch, var(--fg) 60%, transparent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .sv-wire-l { stroke: var(--wire-l); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .sv-wire-n { stroke: var(--wire-n); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .sv-wire-pe { stroke: var(--wire-pe); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
    .sv-wire-pe-stripe { stroke: var(--wire-pe-bright); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 6; }
    .sv-bus    { stroke: color-mix(in oklch, var(--accent) 82%, var(--fg)); stroke-width: 2.5; fill: none; }
    .sv-rail   { fill: color-mix(in oklch, var(--fg) 20%, transparent); }
    .sv-dim    { stroke: color-mix(in oklch, var(--fg) 20%, transparent); stroke-width: 1; fill: none; }
    .sv-dot    { fill: var(--fg); opacity: 0.5; }
    .sv-handle { stroke: color-mix(in oklch, var(--fg) 60%, transparent); stroke-width: 2.5; fill: none; }
    .sv-screw  { fill: var(--fg); opacity: 0.22; }
    .sv-label  { font-family: var(--font-mono); font-size: 12px; fill: var(--muted); }
    .sv-letter { font-family: var(--font-mono); font-size: 12px; fill: color-mix(in oklch, var(--accent) 88%, var(--fg)); opacity: 0.95; }
    .sv-letter-l { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--wire-l); }
    .sv-letter-n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--wire-n); }
    .sv-letter-pe { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--wire-pe); }
/* ===== Site-specific additions ===== */

.muted { color: var(--muted); }

/* Lead form */
.hp-wrap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.req { color: var(--danger); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.check-row { display: flex; align-items: center; }
select.input { appearance: auto; }
.field .error-msg { margin: 2px 0 0; }
.lead-success { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 4px; }
.lead-success svg { width: 28px; height: 28px; stroke: var(--fg); }

/* Work cards */
.work-card { padding: 0; overflow: hidden; display: block; }
.work-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.work-card .work-card-body { padding: 18px 22px; }
.work-card .work-card-body h3 { font-size: 18px; margin-bottom: 4px; }
.work-card .work-card-body p { margin: 0; color: var(--muted); font-size: 14px; }

/* Service cards */
.service-card h3 { margin-bottom: 8px; }
.service-card .service-desc { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.service-card .service-price { color: var(--accent); font-family: var(--font-mono); font-weight: 600; margin-top: 12px; }

/* Review cards */
.review-stars { color: var(--border); letter-spacing: 2px; margin-bottom: 10px; }
.review-stars .star.filled { color: var(--accent); }
.review-text { font-size: 15px; color: var(--fg); }
.review-author { font-weight: 600; font-size: 14px; margin-top: 14px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.pagination-current { color: var(--muted); font-size: 14px; }

/* Filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag.active, .chip.active { background: var(--accent); color: var(--surface); border-color: var(--accent); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Subpage head */
.page-head { padding-block: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: 16px; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap-2xl); align-items: start; }
@media (max-width: 920px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-item a.num { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.map-wrap { margin: var(--gap-xl) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.map-view { position: relative; }
.map-view iframe { width: 100%; height: 400px; border: 0; display: block; pointer-events: none; }
.map-shield { position: absolute; inset: 0; z-index: 1; cursor: default; }
.map-caption { padding: 14px 0; border-top: 1px solid var(--border); font-size: var(--fs-meta); color: var(--muted); }
.map-caption .container {
  display: flex; flex-wrap: wrap; gap: 8px var(--gap-md); justify-content: space-between; align-items: baseline;
}
.map-caption a { color: var(--accent); }
.map-caption a:hover { text-decoration: underline; }

/* Карта во всю ширину страницы */
.map-section { padding-block: 0; }
.map-full { margin: 0; border-radius: 0; border: 0; }
.map-full iframe { height: clamp(340px, 56vh, 620px); }

/* Work detail */
.work-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap-2xl); align-items: start; margin-top: var(--gap-xl); }
@media (max-width: 920px) { .work-detail { grid-template-columns: 1fr; } }
.work-gallery { display: grid; gap: 12px; }
.work-gallery img { border-radius: var(--radius-lg); border: 1px solid var(--border); }
/* Multi-select services */
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin: 0; padding: 0; }
.checkbox-group > div { display: flex; }
.checkbox-group label { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; color: var(--fg); }
.checkbox-group input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
@media (max-width: 560px) { .checkbox-group { grid-template-columns: 1fr; } }


