/* ==========================================================================
   Электрикс27 — Хабаровск | Design System
   Стиль: AuthKit ("frosted glass at midnight") × электрик
   Тёмный монохром сине-белый + один янтарный акцент. MOBILE-FIRST.
   Шрифты: Space Grotesk (дисплей) / Inter (текст) / JetBrains Mono (надзаг.)
   ========================================================================== */

:root {
  /* Surfaces */
  --canvas:      #05060f;
  --surface:     #0a0e1a;
  --glass:       rgba(186,214,247,.035);
  --glass-hover: rgba(186,214,247,.06);
  --deep-glass:  rgba(8,11,22,.98);
  --fill:        rgba(199,211,234,.06);
  --fill-strong: rgba(199,211,234,.10);

  /* Hairlines */
  --edge:   rgba(186,215,247,.12);
  --edge-2: rgba(186,215,247,.22);

  /* Text hierarchy (ice → frost → moon → fog) */
  --head:  #e9f2ff;
  --text:  #d1e4fa;
  --muted: #c7d3ea;
  --help:  #96a3ba;

  /* Accent — электрический янтарь (единственный хроматический) */
  --accent:   #f97316;
  --accent-2: #fdba74;
  --on-accent:#170a02;
  --cyan:     #38bdf8;   /* только для свечения/надзаголовков */

  /* Type */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing (base 4) */
  --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px; --s9:88px;

  /* Radius */
  --r-card:16px; --r-btn:999px; --r-badge:6px; --r-input:10px; --r-icon:9999px;

  /* Elevation — inset-свечение + тёмный ореол (не классические тени) */
  --el-card:  inset 0 1px 0 rgba(216,236,248,.08), inset 0 24px 56px rgba(168,216,245,.04), 0 22px 40px rgba(3,6,16,.55);
  --el-modal: inset 0 1px 0 rgba(216,236,248,.20), inset 0 28px 56px rgba(168,216,245,.06), 0 34px 70px rgba(0,0,0,.55);
  --el-hair:  inset 0 0 0 1px var(--edge);

  --container: 1200px;
  --header-h: 66px;

  /* legacy-алиасы (чтобы старые инлайновые var() на страницах не ломались) */
  --color-surface: var(--surface);
  --color-border-soft: var(--edge);
  --color-border: var(--edge-2);
  --color-primary: var(--cyan);
  --color-accent: var(--accent);
  --color-foreground: var(--head);
  --color-text-muted: var(--muted);
  --color-muted: var(--fill);
  --color-on-primary: #fff;
}

/* -------- Reset / base (mobile-first) -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  width: 100%; max-width: 100%; overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--f-display); color: var(--head); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; overflow-wrap: break-word; }
p, li, a, span, label { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(249,115,22,.3); color: #fff; }

/* Ambient blueprint grid поверх всего фона */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(186,215,247,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186,215,247,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
body > * { position: relative; z-index: 1; }

/* -------- Layout -------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s8) 0; }
.section--tight { padding: var(--s7) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--s6); }
.section-head h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: var(--s3); }
.section-head p { color: var(--muted); font-size: 1rem; }

/* -------- Eyebrow (mono caps) -------- */
.eyebrow {
  font-family: var(--f-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s3);
}
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--edge-2));
}
.section-head .eyebrow::after { background: linear-gradient(90deg, var(--edge-2), transparent); }

/* -------- Buttons (pill) -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: 14px 24px; min-height: 48px; border-radius: var(--r-btn); border: 0;
  cursor: pointer; transition: transform .14s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent); box-shadow: 0 10px 30px rgba(249,115,22,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:hover { color: var(--on-accent); box-shadow: 0 14px 38px rgba(249,115,22,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--ghost { background: var(--fill); color: #fff; box-shadow: var(--el-hair); }
.btn--ghost:hover { background: var(--glass-hover); color: #fff; box-shadow: inset 0 0 0 1px var(--edge-2); }
.btn--secondary { background: var(--fill-strong); color: #fff; box-shadow: var(--el-hair); }
.btn--secondary:hover { background: var(--glass-hover); color: #fff; }
.btn--lg { padding: 16px 30px; min-height: 54px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* -------- Header -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,6,15,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--edge);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--head); letter-spacing: -.01em; }
.brand:hover { color: var(--head); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, #12203f, #070c1a);
  display: grid; place-items: center; box-shadow: var(--el-hair), 0 0 20px rgba(56,189,248,.25);
}
.brand-mark .icon { width: 20px; height: 20px; stroke: var(--cyan); }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: none; align-items: center; gap: var(--s5); }
.nav-links a { font-family: var(--f-body); font-weight: 500; color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: var(--s3); }
.nav-phone { display: none; align-items: center; gap: var(--s2); font-family: var(--f-display); font-weight: 600; color: var(--head); white-space: nowrap; }
.nav-phone .icon { width: 17px; height: 17px; color: var(--accent); }
.nav-toggle { display: inline-flex; background: var(--fill); border: 0; box-shadow: var(--el-hair); border-radius: 10px; cursor: pointer; color: var(--head); padding: 9px; }
.theme-toggle { display: none; }

/* -------- Hero -------- */
.hero { position: relative; padding: var(--s8) 0 var(--s7); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 50% -8%, rgba(56,189,248,.16), transparent 70%),
    radial-gradient(40% 45% at 85% 5%, rgba(56,189,248,.12), transparent 70%),
    radial-gradient(45% 50% at 12% 100%, rgba(249,115,22,.14), transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s7); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; margin-bottom: var(--s4);
  background: linear-gradient(180deg, #f2f8ff, #a9c9f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { background: linear-gradient(180deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.1rem; color: var(--muted); margin-bottom: var(--s6); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Chips / trust */
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--fill); box-shadow: var(--el-hair);
  padding: 8px 13px; border-radius: var(--r-btn); font-size: .85rem; font-weight: 500;
  color: var(--muted);
}
.chip .icon { width: 16px; height: 16px; color: var(--cyan); }

/* Glass form card */
.hero-card {
  position: relative; background: var(--deep-glass); border-radius: var(--r-card);
  padding: var(--s6) var(--s5) var(--s5); box-shadow: var(--el-modal);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(56,189,248,.5), transparent 40%, transparent 75%, rgba(249,115,22,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-card h3 { font-size: 1.25rem; margin-bottom: var(--s2); }
.hero-card > p { color: var(--muted); margin-bottom: var(--s5); font-size: .95rem; }
.card-spark { position: absolute; top: -14px; right: 20px; width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(160deg, var(--accent-2), var(--accent)); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(249,115,22,.5); }
.card-spark .icon { width: 22px; height: 22px; stroke: var(--on-accent); stroke-width: 2; }

/* -------- Cards / grids -------- */
.grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
.card {
  position: relative; overflow: hidden;
  background: var(--glass); border-radius: var(--r-card); padding: var(--s5);
  box-shadow: var(--el-hair); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); background: var(--glass-hover); box-shadow: var(--el-card); }
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 54px; height: 54px; border-radius: var(--r-icon); display: grid; place-items: center;
  background: var(--fill); box-shadow: var(--el-hair); color: var(--cyan); margin-bottom: var(--s4);
}
.card-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.card h3 { font-size: 1.12rem; margin-bottom: var(--s2); color: var(--head); }
.card p { color: var(--muted); font-size: .94rem; }
.card .price { display: inline-block; margin-top: var(--s3); font-family: var(--f-display); font-weight: 600; color: var(--accent-2); }
.card .price small { color: var(--help); font-weight: 400; }
.price-list { margin: var(--s3) 0; display: grid; gap: 2px; }
.price-list li { display: flex; justify-content: space-between; gap: var(--s3); font-size: .9rem; color: var(--muted); padding: 6px 0; box-shadow: inset 0 -1px 0 var(--edge); }
.price-list li:last-child { box-shadow: none; }
.price-list li b { color: var(--head); font-family: var(--f-display); font-weight: 500; white-space: nowrap; }

/* -------- Stats -------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.stat { text-align: center; padding: var(--s4); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(1.8rem,7vw,2.6rem); line-height: 1; font-weight: 600;
  background: linear-gradient(180deg,#eaf3ff,var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--help); font-size: .9rem; }
.stats-band { background: var(--glass); border-radius: var(--r-card); padding: var(--s6) var(--s4); box-shadow: var(--el-card); position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 80% 0%, rgba(56,189,248,.14), transparent 70%); pointer-events: none; }
.stats-band .stat { position: relative; }

/* -------- Band (CTA) -------- */
.band {
  position: relative; overflow: hidden;
  background: var(--deep-glass); border-radius: var(--r-card); padding: var(--s7) var(--s5);
  text-align: center; box-shadow: var(--el-modal);
}
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 120%, rgba(249,115,22,.22), transparent 70%), radial-gradient(50% 80% at 50% -20%, rgba(56,189,248,.16), transparent 70%); }
.band > * { position: relative; }
.band h2 { font-size: clamp(1.5rem,5vw,2.1rem); margin-bottom: var(--s3); }
.band p { color: var(--muted); max-width: 540px; margin: 0 auto var(--s5); }

/* -------- Forms -------- */
.field { margin-bottom: var(--s4); text-align: left; }
.field label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: #fff;
  padding: 13px 14px; min-height: 50px; border: 0; border-radius: var(--r-input);
  background: var(--fill); box-shadow: var(--el-hair); transition: box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(199,211,234,.5); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 3px rgba(56,189,248,.18); }
.field .req { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .78rem; color: var(--help); margin-top: var(--s3); }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-msg { margin-top: var(--s3); font-weight: 600; font-size: .92rem; min-height: 20px; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #fb7185; }

/* -------- Footer -------- */
.site-footer { background: var(--surface); box-shadow: inset 0 1px 0 var(--edge); padding: var(--s8) 0 var(--s5); margin-top: var(--s9); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); margin-bottom: var(--s6); }
.footer-grid h4 { font-size: .8rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--help); margin-bottom: var(--s3); }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .95rem; margin-bottom: var(--s2); display: block; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { box-shadow: inset 0 1px 0 var(--edge); padding-top: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); color: var(--help); font-size: .85rem; }
.footer-bottom a { color: var(--help); }
.footer-bottom a:hover { color: var(--muted); }

/* -------- Utilities -------- */
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s6); }
.grad { background: linear-gradient(180deg,#eaf3ff,var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spark-line { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--cyan), var(--accent), transparent); opacity: .4; }
.breadcrumbs { font-size: .85rem; font-family: var(--f-mono); color: var(--help); padding: var(--s5) 0 0; letter-spacing: .04em; }
.breadcrumbs a { color: var(--help); }
.breadcrumbs a:hover { color: var(--muted); }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: var(--s6) 0 var(--s3); }
.prose h3 { font-size: 1.12rem; margin: var(--s5) 0 var(--s2); }
.prose p, .prose li { color: var(--text); margin-bottom: var(--s3); }
.prose ul { padding-left: var(--s5); list-style: disc; }
.prose a { color: var(--cyan); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE — mobile-first: расширяем на планшет/десктоп через min-width
   ========================================================================== */
@media (min-width: 560px) {
  .grid { gap: var(--s5); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero-actions .btn { min-width: auto; }
}
@media (min-width: 720px) {
  .container { padding: 0 var(--s5); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nav-phone { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero { padding: var(--s9) 0 var(--s8); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: var(--s9) 0; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(3rem, 4.4vw, 3.9rem); }
}

/* ===== Мобильное меню — выезжающий drawer ===== */
.mnav { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.mnav[aria-hidden="false"] { visibility: visible; }
.mnav__backdrop { position: absolute; inset: 0; background: rgba(3,5,12,.6); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--dur-move) ease; }
.mnav[aria-hidden="false"] .mnav__backdrop { opacity: 1; }
.mnav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  display: flex; flex-direction: column; gap: var(--s5);
  background: var(--surface); box-shadow: inset 1px 0 0 var(--edge), -24px 0 60px rgba(0,0,0,.55);
  padding: var(--s5) var(--s5) calc(var(--s5) + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform var(--dur-move) ease-out; overflow-y: auto;
}
.mnav[aria-hidden="false"] .mnav__panel { transform: translateX(0); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s4); box-shadow: inset 0 -1px 0 var(--edge); }
.mnav__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--fill); box-shadow: var(--el-hair); color: var(--head); cursor: pointer; }
.mnav__close .icon { width: 22px; height: 22px; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a {
  font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--text);
  padding: var(--s4) 4px; min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: inset 0 -1px 0 var(--edge);
}
.mnav__links a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--help); border-top: 2px solid var(--help); transform: rotate(45deg); opacity: .6; }
.mnav__links a:hover, .mnav__links a:active { color: #fff; }
.mnav__cta { margin-top: auto; display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 900px) { .mnav { display: none; } }

/* ==========================================================================
   ЭТАЛОННЫЕ СОСТОЯНИЯ — по спекам design-system (states-and-variants)
   Приоритет: disabled > loading > active > focus > hover > default
   ========================================================================== */
:root {
  --dur-fast: 150ms; --dur-move: 200ms;
  --opacity-disabled: .5; --ring-w: 2px; --ring-o: 2px; --ring-color: var(--cyan);
  --color-error: #fb7185;
}

/* Единый фокус-ринг: 2px кольцо + 2px отступ фоном (доступность, контраст ≥3:1) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible,
.field input:focus-visible, .field textarea:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--ring-o) var(--canvas), 0 0 0 calc(var(--ring-o) + var(--ring-w)) var(--ring-color);
}

/* Стандартные переходы интерактивных поверхностей */
.btn { transition: transform var(--dur-move) ease-out, background var(--dur-fast) ease-in-out, box-shadow var(--dur-move) ease-out, color var(--dur-fast) ease-in-out; }
a, .card, .chip, .nav-links a, .footer-grid a { transition: color var(--dur-fast) ease-in-out, background var(--dur-fast) ease-in-out, box-shadow var(--dur-move) ease-out, transform var(--dur-move) ease-out; }

/* Кнопки: disabled + loading (spinner) */
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: var(--opacity-disabled); pointer-events: none; cursor: not-allowed; box-shadow: var(--el-hair); }
.btn.is-loading { pointer-events: none; cursor: wait; color: transparent !important; position: relative; }
.btn.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--primary.is-loading::after { border-color: rgba(23,10,2,.35); border-top-color: var(--on-accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Инпуты: hover / focus-within / error / disabled */
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--edge-2); }
.field input:disabled, .field textarea:disabled { opacity: var(--opacity-disabled); cursor: not-allowed; }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 1px var(--color-error); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: inset 0 0 0 1px var(--color-error), 0 0 0 3px rgba(251,113,133,.22); }
.field-error { display: none; margin-top: 6px; font-size: .8rem; color: var(--color-error); align-items: center; gap: 6px; }
.field.has-error .field-error { display: flex; }
.field-error .icon { width: 14px; height: 14px; stroke-width: 2; color: var(--color-error); }
.form-msg.ok::before { content: "✓ "; }

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn.is-loading::after { animation: none; }
}
