@font-face {
  font-family: Geist;
  src: url('../fonts/geist-cyrillic-wght-normal-CHSlOQsW.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fafbff;
  --surface: #ffffff;
  --surface-soft: #f5f7fc;
  --border: #e2e5f0;
  --border-strong: #cdd5e5;
  --text: #0c1225;
  --muted: #5b6b8a;
  --subtle: #8898b4;
  --primary: #05227c;
  --primary-bright: #1454d8;
  --primary-soft: #eef3ff;
  --success: #16a34a;
  --error: #dc2626;
  --shadow: 0 20px 55px rgba(5, 34, 124, .08);
  --header: rgba(255, 255, 255, .9);
}

[data-theme="dark"] {
  --bg: #10151e;
  --surface: #171f2d;
  --surface-soft: #1d2737;
  --border: #263348;
  --border-strong: #35445d;
  --text: #f4f4f8;
  --muted: #a0aec5;
  --subtle: #718096;
  --primary: #6d98ed;
  --primary-bright: #4a7de0;
  --primary-soft: rgba(74, 125, 224, .14);
  --success: #4ade80;
  --error: #f87171;
  --shadow: 0 22px 65px rgba(0, 0, 0, .28);
  --header: rgba(16, 21, 30, .9);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(color-mix(in srgb, var(--primary) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 4%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: Geist, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  top: -70px;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 10px; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: var(--header);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1280px, calc(100% - 40px));
  height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; }
.logo { width: auto; height: 34px; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.desktop-nav { margin: auto; display: flex; align-items: center; gap: 8px; }
.desktop-nav a {
  padding: 8px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.desktop-nav a:hover { background: var(--surface-soft); color: var(--text); }
.desktop-nav a.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-soft); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.home-link {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}
.home-link:hover { border-color: var(--primary); color: var(--primary); }
.home-link svg { width: 15px; }

.page-intro {
  position: relative;
  overflow: hidden;
  padding: 50px 20px 36px;
  text-align: center;
}
.intro-content { position: relative; z-index: 1; }
.intro-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.intro-glow-left { top: -300px; left: -220px; background: rgba(74, 125, 224, .12); }
.intro-glow-right { top: -280px; right: -220px; background: rgba(90, 45, 156, .07); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 17%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}
.page-intro h1 {
  margin: 0 0 7px;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.page-intro p { margin: 0; color: var(--muted); font-size: 14px; }

.wizard-section { padding: 0 20px 60px; }
.wizard-card {
  width: min(1000px, 100%);
  min-height: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: var(--shadow);
}

.stepper {
  min-height: 82px;
  margin: 0;
  padding: 0 78px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.step-item button {
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--subtle);
  font-size: 12px;
  cursor: pointer;
}
.step-item button:disabled { cursor: default; }
.step-item b { font-weight: 650; }
.step-number, .step-check {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.step-check { display: none; }
.step-check svg { width: 16px; }
.step-item.active button { color: var(--text); }
.step-item.active .step-number {
  border-color: var(--primary-bright);
  background: var(--primary-bright);
  color: white;
  box-shadow: 0 6px 16px rgba(20, 84, 216, .18);
}
.step-item.completed button { color: var(--muted); }
.step-item.completed .step-number { display: none; }
.step-item.completed .step-check {
  border-color: var(--primary-bright);
  display: grid;
  background: var(--primary-bright);
  color: white;
}
.step-line { height: 1px; background: var(--border-strong); }

.step-panel { min-height: 476px; }
.panel-grid {
  min-height: 394px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .95fr);
  gap: 28px;
}
.panel-main { min-width: 0; }
.panel-main h2, .context-panel > h3 {
  margin: 0 0 19px;
  font-size: 17px;
  letter-spacing: -.015em;
}
.context-panel {
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.category-card:hover {
  border-color: color-mix(in srgb, var(--primary-bright) 55%, var(--border));
  transform: translateY(-2px);
}
.category-card.selected {
  border-color: var(--primary-bright);
  background: var(--primary-soft);
  box-shadow: 0 0 0 1px var(--primary-bright), 0 10px 25px rgba(20, 84, 216, .08);
}
.category-card > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.category-card b { font-size: 14px; }
.category-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.category-icon, .context-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary-bright);
}
.category-icon svg { width: 25px; }
.selected-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--primary-bright);
  color: white;
}
.selected-check svg { width: 13px; }
.category-card.selected .selected-check { display: grid; }
.step-error { min-height: 18px; margin: 8px 0 0; color: var(--error); font-size: 11px; }

.context-panel.empty { display: flex; flex-direction: column; justify-content: center; }
.context-title { display: flex; align-items: center; gap: 14px; }
.context-title h3 { margin: 0; font-size: 17px; }
.context-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; }
.context-icon svg { width: 23px; }
.context-panel > p, .context-title + p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.context-panel > ul {
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.context-panel > ul li, .hint-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.context-panel > ul li::before, .hint-list li::before {
  content: '';
  position: absolute;
  top: .55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-bright) 10%, transparent);
}
.sla-card {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--primary-soft);
  color: var(--muted);
  font-size: 10px;
}
.sla-card svg { width: 23px; flex: 0 0 23px; color: var(--primary-bright); }
.sla-card span { display: grid; gap: 2px; }
.sla-card b { color: var(--primary-bright); font-size: 12px; }

.panel-actions {
  min-height: 82px;
  padding: 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.button {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
}
.button svg { width: 16px; }
.button-secondary { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--primary); color: var(--primary); }
.button-primary {
  min-width: 166px;
  border: 1px solid var(--primary-bright);
  background: linear-gradient(135deg, var(--primary-bright), #1d64ed);
  box-shadow: 0 8px 20px rgba(20, 84, 216, .16);
  color: white;
}
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(20, 84, 216, .22); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }

.field { min-width: 0; margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.field label i { color: var(--error); font-style: normal; }
input, textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  transition: border-color .2s, box-shadow .2s;
}
input { height: 43px; padding: 0 12px; }
textarea { min-height: 112px; padding: 11px 12px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, textarea:focus { border-color: var(--primary-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-bright) 10%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.field-meta { display: flex; justify-content: space-between; gap: 10px; }
.field-meta > span { margin-top: 4px; color: var(--subtle); font-size: 9px; }
.field-error { min-height: 13px; display: block; margin-top: 4px; color: var(--error); font-size: 9px; }

.drop-zone {
  min-height: 64px;
  padding: 10px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  display: flex !important;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--primary-bright); background: var(--primary-soft); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone > span:last-child { display: grid; gap: 4px; }
.drop-zone b { color: var(--text); }
.drop-zone small { color: var(--subtle); font-size: 9px; }
.drop-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: var(--primary-bright); }
.drop-icon svg { width: 24px; }
.file-list { display: grid; gap: 5px; margin-top: 7px; }
.file-item { padding: 7px 9px; border-radius: 8px; display: flex; align-items: center; gap: 8px; background: var(--surface-soft); font-size: 10px; }
.file-item svg { width: 14px; color: var(--primary-bright); }
.file-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item em { margin-left: auto; color: var(--subtle); font-style: normal; }

.summary-category { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.summary-panel .sla-card, .review-panel .sla-card { margin-top: 24px; }
.hint-list { margin-top: 25px; }
.hint-list > b { font-size: 11px; }
.hint-list ul { margin: 13px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.consent-field { position: relative; margin-top: 4px; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; cursor: pointer; }
.consent-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-checkbox { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid var(--border-strong); border-radius: 5px; display: grid; place-items: center; background: var(--surface); }
.custom-checkbox svg { width: 12px; color: white; opacity: 0; }
.consent-field input:checked + .custom-checkbox { border-color: var(--primary-bright); background: var(--primary-bright); }
.consent-field input:checked + .custom-checkbox svg { opacity: 1; }
.consent-field input:focus-visible + .custom-checkbox { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-bright) 12%, transparent); }
.consent-field.invalid .custom-checkbox { border-color: var(--error); }
.consent-field a { color: var(--primary-bright); font-weight: 650; }
.consent-error { margin-left: 28px; }
.review-list { margin: 22px 0 0; display: grid; gap: 11px; }
.review-list div { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 11px; }
.review-list dt { color: var(--text); font-weight: 700; }
.review-list dd { min-width: 0; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.mail-note { margin-top: 24px !important; display: flex; align-items: center; gap: 8px; }
.mail-note svg { width: 16px; flex: 0 0 16px; }

.success-panel { min-height: 560px; }
.completed-stepper {
  min-height: 82px;
  padding: 0 110px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.completed-stepper span { display: flex; align-items: center; gap: 8px; }
.completed-stepper i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-bright); color: white; }
.completed-stepper i svg { width: 15px; }
.completed-stepper > b { height: 1px; background: var(--border-strong); }
.success-content { max-width: 500px; margin: auto; padding: 28px 30px 32px; text-align: center; }
.success-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 9%, transparent); color: var(--success); box-shadow: 0 0 0 8px color-mix(in srgb, var(--success) 3%, transparent); }
.success-icon svg { width: 32px; stroke-width: 2.5; }
.success-label { padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-bright); font-size: 9px; font-weight: 800; }
.success-content h2 { margin: 12px 0 5px; font-size: 25px; }
.success-content > p { margin: 0 auto; max-width: 410px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.ticket-card { margin: 19px auto 14px; padding: 5px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); text-align: left; }
.ticket-card > div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.ticket-card > div:last-child { border-bottom: 0; }
.ticket-card strong { color: var(--text); font-size: 12px; }
.success-note { display: flex; align-items: center; justify-content: center; gap: 8px; }
.success-note svg { width: 15px; }
.success-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .wizard-card { width: min(680px, 100%); }
  .stepper { padding: 0 35px; }
  .panel-grid { grid-template-columns: 1fr; }
  .context-panel { padding: 22px 0 0; border-top: 1px solid var(--border); border-left: 0; }
  .context-panel.empty { min-height: 210px; }
  .success-panel { min-height: auto; }
}

@media (max-width: 640px) {
  .header-inner { width: calc(100% - 24px); height: 58px; }
  .logo { height: 29px; }
  .home-link { width: 38px; min-height: 38px; padding: 0; justify-content: center; }
  .home-link span { display: none; }
  .page-intro { padding: 34px 16px 26px; }
  .page-intro h1 { font-size: 31px; }
  .page-intro p { font-size: 12px; }
  .wizard-section { padding: 0 10px 35px; }
  .wizard-card { border-radius: 15px; }
  .stepper { min-height: 70px; padding: 0 16px; gap: 7px; }
  .step-item button { gap: 5px; }
  .step-item b { font-size: 9px; }
  .step-number, .step-check { width: 26px; height: 26px; }
  .step-line { min-width: 12px; }
  .panel-grid { min-height: 0; padding: 20px 16px; gap: 20px; }
  .category-grid, .contact-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 100px; }
  .context-panel.empty { min-height: 0; }
  .panel-actions { min-height: 72px; padding: 0 16px; }
  .button-primary { min-width: 154px; }
  .drop-zone { align-items: flex-start; }
  .completed-stepper { min-height: 70px; padding: 0 16px; gap: 6px; font-size: 8px; }
  .completed-stepper i { width: 24px; height: 24px; }
  .success-content { padding: 27px 16px 30px; }
  .success-actions { flex-direction: column; }
  .success-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.submit-error {
  flex: 1 1 100%;
  margin: 0;
}
