:root {
  --bg: oklch(12% .022 55);
  --bg-soft: oklch(15% .026 55);
  --panel: oklch(18% .025 52 / .78);
  --panel-solid: oklch(17% .022 52);
  --line: oklch(42% .035 55 / .32);
  --line-strong: oklch(55% .08 48 / .5);
  --text: oklch(94% .015 70);
  --muted: oklch(72% .025 70);
  --dim: oklch(58% .02 70);
  --orange: oklch(72% .19 48);
  --orange-strong: oklch(67% .22 42);
  --green: oklch(78% .18 145);
  --shadow: 0 24px 90px oklch(8% .02 40 / .48);
  --radius: 8px;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 15%, oklch(62% .18 45 / .15), transparent 28%),
    radial-gradient(circle at 78% 32%, oklch(72% .15 90 / .08), transparent 30%),
    linear-gradient(180deg, oklch(14% .026 55), var(--bg));
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
em { color: var(--orange); font-style: normal; }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
p { margin: 0; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(75% .02 70 / .08) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(75% .02 70 / .08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0 68%, transparent 100%);
}
.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(75px);
  opacity: .12;
}
.ambient-one { left: -160px; top: 120px; background: var(--orange); }
.ambient-two { right: -180px; top: 420px; background: oklch(66% .1 120); }

/* Viewer pages: drop expensive blurs — they fight WebGL on desktop Chrome/Firefox */
body.threejs-page .ambient,
body.model-threejs-page .ambient,
body.threejs-page .page-grid,
body.model-threejs-page .page-grid {
  display: none;
}
body.threejs-page .site-header,
body.model-threejs-page .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: oklch(11% .018 55);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 96px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: oklch(11% .018 55 / .78);
  backdrop-filter: blur(18px);
}
.logo, .footer-brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 7px;
  color: var(--orange);
  font: 700 14px/1 var(--font-mono);
  box-shadow: 0 0 28px oklch(72% .19 48 / .18);
}
.logo-copy, .footer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.logo-copy b, .footer-brand b { font-size: 15px; letter-spacing: -.01em; }
.logo-copy small, .footer-brand small, .section-number, .eyebrow {
  color: var(--muted);
  font: 600 11px/1.4 var(--font-mono);
  text-transform: lowercase;
}
.desktop-nav { display: flex; gap: clamp(22px, 3vw, 46px); margin: auto; }
.desktop-nav a, .phone-link, .back-link {
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
  transition: color .2s;
}
.desktop-nav a:hover, .phone-link:hover, .back-link:hover { color: var(--orange); }
.desktop-nav a[aria-current="page"] { color: var(--orange); }
.phone-link--static,
.phone-link--static:hover {
  cursor: default;
  color: var(--muted);
}
.header-actions { display: flex; align-items: center; gap: 18px; }

.button {
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: oklch(20% .026 55 / .48);
  color: var(--text);
  font: 600 12px/1 var(--font-mono);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--orange); }
.button-small { min-height: 36px; padding: 0 14px; }
.button-primary {
  color: oklch(13% .02 55);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 34px oklch(72% .19 48 / .2);
}
.button-primary:hover { background: var(--orange-strong); }
.button-ghost { background: transparent; }
.button svg, .text-link svg { width: 15px; height: 15px; }
.menu-toggle, .menu-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  place-items: center;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 760px;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: 112px clamp(18px, 7vw, 128px) 64px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -4;
  filter: saturate(.85) contrast(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, oklch(10% .02 55 / .94), oklch(12% .02 55 / .78) 46%, oklch(12% .02 55 / .36)),
    linear-gradient(180deg, transparent 40%, var(--bg));
}
.hero-content {
  min-width: 0;
  max-width: min(780px, 100%);
}
.eyebrow { margin-bottom: 22px; color: var(--orange); }
h1 {
  max-width: 850px;
  font-size: clamp(28px, 4vw, 59px);
  line-height: .92;
  font-weight: 800;
  letter-spacing: -.04em;
}
.hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hero-content > p {
  max-width: 610px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
  margin-top: 54px;
}
.hero-facts div, .process-step, .project-card, .service-row, .filter-button {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.hero-facts div { padding: 16px; border-radius: var(--radius); }
.hero-facts b { display: block; color: var(--orange); font: 700 24px/1 var(--font-mono); }
.hero-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.terminal-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: oklch(10% .018 55 / .8);
  box-shadow: var(--shadow), 0 0 55px oklch(72% .19 48 / .12);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.terminal-top {
  min-height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: oklch(18% .024 55 / .72);
}
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.terminal-top span:nth-child(2) { background: oklch(72% .13 84); }
.terminal-top span:nth-child(3) { background: var(--green); }
.terminal-top b {
  margin-left: auto;
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
}
.terminal-body { padding: 22px; font: 500 14px/1.8 var(--font-mono); }
.terminal-body p { color: var(--text); }
.terminal-body span, .terminal-body i { color: var(--orange); font-style: normal; }
.terminal-ok { color: var(--green) !important; }

.strip {
  display: flex;
  gap: 10px;
  padding: 0 clamp(18px, 7vw, 128px) 80px;
  flex-wrap: wrap;
}
.strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  font: 500 12px/1 var(--font-mono);
}

.section { padding: 96px clamp(18px, 7vw, 128px); }
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: 46px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading.compact { align-items: center; }
.section-heading h2, .estimate h2 {
  margin-top: 14px;
  font-size: clamp(20px, 2.5vw, 38px);
  line-height: 1;
  letter-spacing: -.04em;
}
.section-heading p, .estimate-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--orange);
  font: 600 12px/1.2 var(--font-mono);
}

.service-list { display: grid; gap: 10px; }
.service-row {
  min-height: 110px;
  padding: 22px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 46px 1fr 120px 24px;
  gap: 18px;
  align-items: center;
  transition: transform .2s, border-color .2s;
}
.service-row:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.service-row > span, .process-step > span { color: var(--orange); font: 700 13px/1 var(--font-mono); }
.service-row h3, .process-step h3 { font-size: 13px; letter-spacing: -.03em; }
.service-row p, .process-step p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.service-row strong { color: var(--muted); font: 600 12px/1 var(--font-mono); }
.service-row svg, .process-step svg { color: var(--orange); }

.proof {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  padding: 0 clamp(18px, 7vw, 128px) 96px;
}
.proof-image, .project-card { border-radius: var(--radius); overflow: hidden; }
.proof-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.proof-copy { align-self: center; }

.projects { padding-top: 0; }
.project-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 300px 300px;
  gap: 14px;
}
.project-large { grid-row: 1 / 3; }
.project-card { position: relative; min-height: 280px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.project-card:hover img { transform: scale(1.025); }
.project-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(10% .018 55 / .78);
  backdrop-filter: blur(14px);
}
.project-meta span { font-weight: 700; }
.project-meta b { color: var(--orange); font: 600 12px/1 var(--font-mono); }
.project-text {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-text span { color: var(--orange); font: 600 12px/1 var(--font-mono); }
.project-text p { font-size: 26px; line-height: 1.18; letter-spacing: -.03em; }
.project-text b { color: var(--muted); font: 600 12px/1 var(--font-mono); }

.process { padding-top: 0; }
.process-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.process-step { min-height: 230px; padding: 22px; border-radius: var(--radius); }
.process-step svg { width: 26px; height: 26px; margin: 42px 0 28px; }

.estimate {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  padding: 0 clamp(18px, 7vw, 128px) 110px;
}
.estimate-copy {
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.estimate-copy > p { margin: 24px 0 34px; max-width: 460px; }
.estimate-contact {
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.estimate-contact span { color: var(--muted); font: 600 11px/1 var(--font-mono); }
.estimate-contact a { font-size: 23px; font-weight: 800; }
.calculator { padding: 28px; }
.calc-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
}
.calc-top em { color: var(--orange); }
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.type-grid input { position: absolute; opacity: 0; pointer-events: none; }
.type-grid span {
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  cursor: pointer;
  font: 600 12px/1 var(--font-mono);
  transition: .2s;
}
.type-grid svg { width: 22px; height: 22px; }
.type-grid input:checked + span { color: var(--bg); background: var(--orange); border-color: var(--orange); }
.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dimension-grid label, .contact-grid label, .request-form label {
  color: var(--muted);
  font: 600 12px/1.3 var(--font-mono);
}
.dimension-grid input, .contact-grid input, .request-form input {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  color: var(--text);
  background: oklch(11% .018 55 / .82);
}
.dimension-grid input:focus, .contact-grid input:focus, .request-form input:focus { border-color: var(--orange); }
.lead-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status.is-error { color: #ff8f7a; }
.calc-result {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.calc-result span { color: var(--muted); font: 600 12px/1 var(--font-mono); }
.calc-result strong { color: var(--orange); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; }
.calc-result small { grid-column: 1 / 3; color: var(--dim); font-size: 12px; }
.button-wide { width: 100%; }
.form-status { min-height: 18px; margin: 12px 0 0; color: var(--green); font: 500 12px/1.4 var(--font-mono); }
.form-status.is-error { color: oklch(72% .16 25); }

/* Auth — Linear/Vercel-style centered panel */
.auth-page {
  min-height: calc(100vh - 72px);
  padding: 120px clamp(18px, 5vw, 96px) 80px;
  display: grid;
  place-items: start center;
}
.auth-panel {
  width: min(400px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: oklch(14% .018 55 / .92);
  box-shadow: 0 24px 60px oklch(0% 0 0 / .35);
  color-scheme: dark;
}
.auth-panel h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -.045em;
  line-height: 1.1;
}
.auth-lead {
  margin: -6px 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.auth-vk-btn {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid oklch(55% .12 255);
  border-radius: 10px;
  background: oklch(42% .14 255);
  color: #fff;
  font: 650 14px/1 var(--font-ui);
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.auth-vk-btn:hover {
  background: oklch(48% .15 255);
  border-color: oklch(62% .12 255);
  transform: translateY(-1px);
}
.auth-vk-btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--dim);
  font: 600 11px/1 var(--font-mono);
  text-transform: lowercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-form {
  display: grid;
  gap: 14px;
  margin: 0;
}
.auth-form[hidden] { display: none !important; }
.auth-field {
  display: grid;
  gap: 7px;
}
.auth-field label {
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
}
.auth-field input,
.auth-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(11% .016 55);
  color: var(--text);
  font: 500 14px/1.4 var(--font-ui);
  appearance: none;
  -webkit-appearance: none;
}
.auth-field textarea {
  padding: 12px 14px;
  line-height: 1.4;
}
.auth-field input::placeholder,
.auth-field textarea::placeholder { color: var(--dim); }
.auth-field input:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px oklch(70% .16 55 / .18);
}
.auth-switch {
  margin: 2px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-switch-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--orange);
  font: 650 13px/1.4 var(--font-ui);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch-btn:hover { color: var(--orange-strong); }
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.account-profile { display: grid; gap: 16px; }
.account-avatar-wrap img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.account-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}
.account-meta > div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.account-meta dt {
  color: var(--dim);
  font: 600 11px/1 var(--font-mono);
}
.account-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* Admin */
.admin-page, .crm-page {
  padding: 100px clamp(16px, 4vw, 48px) 48px;
}
.admin-head, .crm-head { margin-bottom: 18px; max-width: 720px; }
.admin-users {
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.admin-user-body { display: grid; gap: 14px; }
.admin-user-meta { display: grid; gap: 4px; }
.admin-user-meta strong { font-size: 16px; }
.admin-user-meta small { color: var(--muted); font: 500 12px/1.4 var(--font-mono); }
.admin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font: 600 10px/1.4 var(--font-mono);
  vertical-align: middle;
}
.admin-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.admin-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font: 600 12px/1.3 var(--font-mono);
  cursor: pointer;
}
.admin-toggle input { width: 18px; height: 18px; accent-color: var(--orange); }
.admin-toggle:has(input:checked) {
  border-color: var(--orange);
  color: var(--text);
}
.field-hint { color: var(--dim); font: 500 11px/1.4 var(--font-mono); margin: 0; }

/* CRM kanban */
.crm-body { overflow-x: hidden; }
.crm-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 18px;
  min-height: calc(100vh - 180px);
  align-items: stretch;
  -webkit-overflow-scrolling: touch;
}
.crm-column {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: oklch(14% .018 55 / .92);
  border-top: 3px solid var(--stage-color, var(--orange));
  transition: box-shadow .15s, border-color .15s;
}
.crm-column.is-drop-target,
.crm-column.is-snap-target {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.crm-column.is-col-dragging {
  opacity: .9;
  z-index: 6;
  box-shadow: 0 16px 40px oklch(0% 0 0 / .4);
}
.crm-column.is-resizing { user-select: none; }
.crm-column-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 8px;
}
.crm-col-handle {
  border: 0;
  background: transparent;
  color: var(--dim);
  cursor: grab;
  touch-action: none;
  font-size: 14px;
  line-height: 1;
  padding: 4px 2px;
}
.crm-col-handle:active { cursor: grabbing; }
.crm-col-title {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 700 14px/1.2 var(--font-ui);
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
}
.crm-col-title:hover { background: oklch(20% .02 55); }
.crm-add { min-width: 36px; padding: 0 10px; }
.crm-column-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 12px;
  flex: 1;
  min-height: 120px;
}
.crm-col-resize {
  position: absolute;
  top: 0;
  right: -4px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 2;
}
.crm-add-column {
  flex: 0 0 140px;
  align-self: flex-start;
  min-height: 48px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: 650 13px/1 var(--font-mono);
  cursor: pointer;
}
.crm-add-column:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.crm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 28px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(11% .016 55);
  cursor: grab;
  touch-action: none;
  user-select: none;
  min-height: 0;
}
.crm-card.is-dragging {
  opacity: .85;
  z-index: 5;
  cursor: grabbing;
  box-shadow: 0 12px 30px oklch(0% 0 0 / .35);
}
.crm-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}
.crm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.crm-amount {
  margin-top: 0 !important;
  color: var(--orange) !important;
  font: 650 12px/1.3 var(--font-mono);
}
.crm-note {
  margin: 0 !important;
  color: var(--dim) !important;
  font: 500 12px/1.35 var(--font-ui) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
#crmFieldNote {
  resize: vertical;
  min-height: 72px;
}
.crm-card-meta {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: right;
  color: var(--dim);
  font: 500 9px/1.2 var(--font-mono) !important;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  position: static;
  grid-column: auto;
}
.crm-card-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.crm-card-del:hover { color: var(--text); background: oklch(20% .02 55); }
.crm-col-del {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.crm-col-del:hover {
  color: var(--text);
  background: oklch(20% .02 55);
}
.button-danger {
  background: oklch(55% .18 25) !important;
  border-color: oklch(55% .18 25) !important;
  color: #fff !important;
}
.button-danger:hover {
  background: oklch(48% .18 25) !important;
}


.crm-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}
.crm-modal-root:not([hidden]) { pointer-events: auto; }
.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(8% .02 55 / .55);
}
.crm-modal {
  position: absolute;
  width: min(400px, calc(100vw - 24px));
  z-index: 1;
  box-shadow: 0 24px 60px oklch(0% 0 0 / .45);
}
.crm-modal .auth-actions { justify-content: flex-end; }

/* legacy aliases kept for account.html if needed */
.auth-card { width: min(440px, 100%); }
.auth-body { display: grid; gap: 14px; }
.account-title {
  max-width: none;
  margin: 0 0 4px;
  color: var(--orange);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-body .account-title {
  max-width: none;
  margin: 0 0 4px;
  color: var(--orange);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}
.auth-vk { text-align: center; }
.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 4px 0 0;
  color: var(--dim);
  font: 600 11px/1 var(--font-mono);
}
.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-tabs { display: none; }

footer {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 26px;
  padding: 42px clamp(18px, 7vw, 128px) 26px;
  border-top: 1px solid var(--line);
  background: oklch(9% .016 55);
}
footer > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
footer span { color: var(--dim); font: 600 11px/1 var(--font-mono); }
footer a, footer p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 500 11px/1 var(--font-mono);
}
.mobile-menu { display: none; }

@media (max-width: 1360px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 920px;
  }
  .hero-terminal { max-width: 560px; }
}

@media (max-width: 1100px) {
  .desktop-nav, .header-actions .button, .header-actions .phone-link { display: none; }
  .site-header { justify-content: space-between; }
  .menu-toggle { display: grid; }
  .section-heading, .estimate, .proof { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 86px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-soft);
    transform: translateX(100%);
    transition: transform .25s, visibility .25s;
    visibility: hidden;
  }
  .mobile-menu.open { transform: translateX(0); visibility: visible; }
  .mobile-menu .menu-close { display: grid; position: absolute; top: 14px; right: 14px; z-index: 1; }
  .mobile-menu > a:not(.phone-link) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    letter-spacing: -.04em;
  }
  .mobile-menu > a[aria-current="page"] { color: var(--orange); }
  .mobile-menu .phone-link { margin-top: auto; color: var(--orange); font-size: 14px; }
}

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 14px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-copy b { font-size: 14px; }
  .logo-copy small { font-size: 10px; }
  .hero {
    min-height: 820px;
    padding: 104px 16px 46px;
    gap: 28px;
  }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, oklch(10% .018 55 / .9), oklch(12% .018 55 / .72)); }
  h1 { font-size: clamp(24px, 7.5vw, 34px); }
  .hero-content > p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-facts { grid-template-columns: 1fr; margin-top: 28px; }
  .terminal-body { font-size: 12px; padding: 16px; }
  .strip, .section, .proof, .estimate { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { gap: 18px; margin-bottom: 28px; }
  .section-heading h2, .estimate h2 { font-size: clamp(18px, 6vw, 26px); }
  .service-row { grid-template-columns: 34px 1fr 22px; padding: 18px; }
  .service-row strong { display: none; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: 380px 250px 260px; }
  .project-large { grid-row: auto; }
  .project-meta { flex-direction: column; }
  .process-line, .type-grid, .dimension-grid, .contact-grid { grid-template-columns: 1fr; }
  .estimate { padding-bottom: 80px; }
  .calculator { padding: 18px; }
  .calc-result { grid-template-columns: 1fr; }
  .calc-result small { grid-column: auto; }
  footer { grid-template-columns: 1fr; padding: 34px 16px 22px; }
  .copyright { grid-column: auto; }
  .mobile-menu { padding: 86px 20px 28px; }
  .mobile-menu > a:not(.phone-link) { font-size: 30px; }
}

/* Vacancies */
.vacancies-page { padding: 110px clamp(18px, 5vw, 96px) 72px; }
.vacancies-hero {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: 42px;
}
.vacancies-hero h1 { font-size: clamp(36px, 6vw, 58px); letter-spacing: -.04em; line-height: 1.02; }
.vacancies-hero p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 54ch; }
.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.vacancy-card { display: flex; flex-direction: column; min-height: 100%; }
.vacancy-card .terminal-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.vacancy-card h2 {
  font-size: 22px;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font: 600 12px/1.4 var(--font-mono);
}
.vacancy-meta span { color: var(--orange); }
.vacancy-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.vacancy-card li + li { margin-top: 4px; }
.vacancy-card .button { margin-top: auto; align-self: flex-start; }
.vacancy-card.is-applying .vacancy-open-btn { display: none; }

.vacancy-apply {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.vacancy-apply[hidden] { display: none !important; }
.vacancy-apply label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
}
.vacancy-apply input,
.vacancy-apply textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(14% .02 55 / .85);
  color: var(--text);
  font: 500 14px/1.4 var(--font-ui);
  appearance: none;
  -webkit-appearance: none;
}
.vacancy-apply textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}
.vacancy-apply input[type="file"] {
  min-height: 0;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted);
}
.vacancy-apply input:focus,
.vacancy-apply textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.vacancy-apply .field-hint {
  color: var(--dim);
  font: 500 11px/1.4 var(--font-mono);
}
.vacancy-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.vacancy-apply-actions .button { margin-top: 0; }

@media (max-width: 860px) {
  .vacancy-grid { grid-template-columns: 1fr; }
  .vacancies-page { padding-top: 92px; }
}
