/* Design tokens: светлая тема по умолчанию (можно сменить на dark в JS при загрузке) */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --accent: #ff8a00;
  --accent-hover: #ff9d2f;
  --border: rgba(0, 0, 0, 0.06);
  --hover: rgba(0, 0, 0, 0.04);
  --progress-inactive: rgba(0, 0, 0, 0.15);
  --progress-active: #ff8a00;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --header-bg: rgba(255, 255, 255, 0.7);
  --nav-bg: #ffffff;
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --btn-primary-text: #020617;
  --link: #475569;
  --link-hover: #334155;
  --error: #dc2626;
  --avatar-bg: rgba(0, 0, 0, 0.08);
  --avatar-border: rgba(0, 0, 0, 0.1);
  --dropdown-bg: #ffffff;
  --dropdown-hover: rgba(0, 0, 0, 0.04);
  --input-bg: rgba(0, 0, 0, 0.04);
  --input-border: rgba(0, 0, 0, 0.08);
  --wizard-card-bg: rgba(255, 255, 255, 0.85);
  --wizard-card-border: rgba(0, 0, 0, 0.06);
  --option-hover: rgba(0, 0, 0, 0.04);
  --option-selected-bg: rgba(0, 0, 0, 0.06);
  --option-selected-border: rgba(255, 140, 0, 0.4);
  --accent-soft: rgba(255, 138, 0, 0.12);
  --accent-secondary: #38bdf8;
}

[data-theme="dark"] {
  --bg: #0e1828;
  --surface: #151f32;
  --surface-soft: #1c2a42;
  --text-primary: #ffffff;
  --text-secondary: #9aa7bd;
  --accent: #ff8a00;
  --accent-hover: #ff9d2f;
  --border: rgba(255, 255, 255, 0.07);
  --hover: rgba(255, 255, 255, 0.06);
  --progress-inactive: rgba(255, 255, 255, 0.2);
  --progress-active: #ff8a00;
  --bg-gradient: radial-gradient(circle at top, #15243f 0%, #0b1220 100%);
  --header-bg: rgba(14, 24, 40, 0.55);
  --nav-bg: #151f32;
  --nav-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  --btn-primary-text: #020617;
  --link: #94a3b8;
  --link-hover: #cbd5e1;
  --error: #f87171;
  --avatar-bg: rgba(255, 255, 255, 0.1);
  --avatar-border: rgba(255, 255, 255, 0.12);
  --dropdown-bg: #1e2d48;
  --dropdown-hover: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.1);
  --wizard-card-bg: rgba(28, 45, 72, 0.75);
  --wizard-card-border: rgba(255, 255, 255, 0.06);
  --option-hover: rgba(255, 255, 255, 0.05);
  --option-selected-bg: rgba(255, 140, 0, 0.08);
  --option-selected-border: rgba(255, 140, 0, 0.4);
  --accent-soft: rgba(255, 138, 0, 0.18);
  --accent-secondary: #38bdf8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

#root {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background 0.2s ease;
}

.app-header {
  height: 52px;
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-header__left {
  flex: 1;
  min-width: 0;
}

.app-header__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-header__profile {
  position: relative;
  flex-shrink: 0;
}

.app-header__avatar-btn {
  display: block;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.app-header__avatar-btn:hover {
  transform: scale(1.06);
}
.app-header__avatar-btn:hover .app-header__avatar {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}
.app-header__avatar-btn:active .app-header__avatar {
  transform: scale(0.97);
}
.app-header__avatar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app-header__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--avatar-bg);
  border: 2px solid var(--avatar-border);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.app-header__avatar-initials {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.app-header__dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  min-width: 140px;
  padding: 6px 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--nav-shadow);
  z-index: 100;
}
.app-header__dropdown[hidden] {
  display: none;
}
.app-header__dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease-out;
}
.app-header__dropdown-item:hover {
  background: var(--dropdown-hover);
}
.app-header__dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}
.app-header__dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}

.app-content {
  flex: 1;
  padding: 20px 20px 100px;
  overflow-y: auto;
}
.app-content .wizard {
  margin-top: 24px;
}

.screen {
  display: none;
}

.screen--active {
  display: block;
}

.screen-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}
/* Заголовок страницы только в header, в контенте не дублируем */
.app-content .screen-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.requests-view--hidden {
  display: none !important;
}

.my-requests-empty {
  margin-top: 24px;
  padding: 32px 20px;
  text-align: center;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.my-requests-empty__text {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}
.my-requests-empty__hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item__btn {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
.faq-item__btn:hover {
  background: var(--hover);
}
.faq-item__btn::after {
  content: "";
  float: right;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.2s ease-out;
}
.faq-item--open .faq-item__btn::after {
  transform: rotate(180deg);
}
.faq-item__answer {
  padding: 0 16px 14px;
  overflow: hidden;
}
.faq-item__answer p {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.help-role-switcher {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.help-role-switcher__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.help-role-switcher__segmented {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.help-role-switcher__option {
  flex: 1;
  margin: 0;
  cursor: pointer;
  text-align: center;
}
.help-role-switcher__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.help-role-switcher__option span {
  display: block;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.help-role-switcher__option input:checked + span {
  background: var(--accent);
  color: #fff;
}
.help-role-switcher__option:not(:last-child) span {
  border-right: 1px solid var(--border);
}

.wizard {
  margin-top: 24px;
  padding: 18px 16px 14px;
  border-radius: 20px;
  background: var(--wizard-card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--wizard-card-border);
  display: none;
  flex-direction: column;
  min-height: 420px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.wizard[style*="block"] {
  display: flex !important;
}

.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.wizard-step-title {
  font-size: 17px;
  font-weight: 500;
}

.wizard-step-progress {
  font-size: 11px;
  color: var(--text-secondary);
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wizard-progress-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wizard-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--progress-inactive);
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.wizard-progress-dot--filled,
.wizard-progress-dot--current {
  background: var(--progress-active);
}

.wizard-progress-dot--current {
  width: 7px;
  height: 7px;
  margin: -0.5px 0 0 -0.5px;
  box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.3);
}

.wizard-progress-caption {
  display: none;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.wizard-progress-bar {
  display: none;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--progress-inactive);
  overflow: hidden;
}

.wizard-progress-bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.22s ease-out;
}

.wizard-body {
  font-size: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.wizard-field-group {
  margin-bottom: 14px;
}

/* Headcount step: same left alignment as other steps */
.wizard-field-group--headcount .wizard-label {
  margin-bottom: 8px;
}
.wizard-field-group--headcount .stepper {
  width: 210px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.wizard-field-group--headcount .stepper__btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, transform 0.08s ease-out;
}
.wizard-field-group--headcount .stepper__btn:hover {
  background: var(--hover);
}
.wizard-field-group--headcount .stepper__btn:active {
  transform: translateY(1px);
}
.wizard-field-group--headcount .stepper__value {
  min-width: 48px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.wizard-field-group--headcount .stepper-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 12px 0 10px;
}
.wizard-field-group--headcount .stepper-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
}
.wizard-field-group--headcount .stepper-quick__btn {
  width: 44px;
  min-width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.wizard-field-group--headcount .stepper-quick__btn:hover {
  background: var(--hover);
}
.wizard-field-group--headcount .stepper-quick__btn.wizard-quick--active {
  background: var(--option-selected-bg);
  border: 1px solid var(--accent);
  color: var(--text-primary);
}
.wizard-field-group--headcount .wizard-hint {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.stepper__icon {
  font-size: 18px;
  color: var(--text-secondary);
  padding: 6px;
}

.stepper__btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease-out, transform 0.08s ease-out;
}

.stepper__btn:active {
  transform: translateY(1px);
}

.stepper__value {
  min-width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.wizard-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stepper-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.stepper-quick__btn {
  min-width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(20, 28, 44, 0.85);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out;
}
.stepper-quick__btn:hover,
.stepper-quick__btn.wizard-quick--active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Salary step spacing */
.wizard-field-group--salary .wizard-label {
  margin-bottom: 16px;
}
.wizard-field-group--salary .wizard-segmented {
  margin-bottom: 20px;
}

/* Segmented control: Фиксированная | Договорная */
.wizard-segmented {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
}
.wizard-segmented__option {
  flex: 1;
  text-align: center;
  cursor: pointer;
  margin: 0;
}
.wizard-segmented__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wizard-segmented__option span {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: background 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
}
.wizard-segmented__option:first-child span {
  border-right-width: 0;
  border-radius: 10px 0 0 10px;
}
.wizard-segmented__option:last-child span {
  border-radius: 0 10px 10px 0;
}
.wizard-segmented__option input:checked + span {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.salary-row {
  display: block;
  margin-top: 0;
}
.salary-row.wizard-input--hidden {
  display: none;
}
.salary-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 0 14px;
  min-height: 48px;
}
.salary-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.2);
}
.wizard-input--salary {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  border: none !important;
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none !important;
}
.salary-row__suffix {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.salary-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.salary-quick__btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.salary-quick__btn:hover {
  background: var(--hover);
  color: var(--text-primary);
}

.wizard-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wizard-templates__chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.wizard-templates__chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

.wizard-date-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.wizard-date-quick__btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s ease-out, border-color 0.12s ease-out;
}
.wizard-date-quick__btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.wizard-date-quick__btn--selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wizard-date-quick__btn--selected:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.wizard-date-quick__label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Date trigger input (opens calendar popover) */
.wizard-date-trigger {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;
  transition: background 0.12s, border-color 0.12s;
}
.wizard-date-trigger:hover {
  background: var(--hover);
}
.wizard-date-trigger::placeholder {
  color: var(--text-secondary);
}

/* Calendar popover */
.wizard-date-wrap {
  position: relative;
}
.calendar-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  z-index: 100;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  padding: 14px;
  opacity: 0;
  transform: scale(0.95);
  visibility: hidden;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
}
.calendar-popover.is-open {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.wizard-label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wizard-label-row .wizard-label {
  margin-bottom: 0;
}
.wizard-info-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.wizard-info-btn:hover {
  background: var(--hover);
  color: var(--text-primary);
}
.wizard-info-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  z-index: 50;
  max-width: 320px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--option-selected-border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
  box-shadow: var(--nav-shadow);
}
.wizard-info-tooltip[hidden] {
  display: none;
}

.calendar-inline {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  padding: 14px;
  margin-top: 8px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.calendar-month-select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239ca3af'%3E%3Cpath d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.calendar-nav__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.12s;
}
.calendar-nav__btn:hover {
  background: var(--hover);
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  margin: 0 auto;
}
.calendar-day:hover:not(.calendar-day--past):not(.calendar-day--other) {
  background: var(--hover);
}
.calendar-day--selected {
  background: var(--accent);
  color: #fff;
}
.calendar-day--past {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-day--other {
  color: var(--text-secondary);
  opacity: 0.7;
}
.calendar-selected-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.calendar-selected-summary__date {
  color: var(--text-primary);
  font-weight: 500;
}
.calendar-selected-summary__distance {
  margin-top: 2px;
  font-size: 12px;
  color: var(--accent);
}
.calendar-reset-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.calendar-reset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.wizard-date-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.wizard-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-option {
  position: relative;
  font-size: 13px;
  cursor: pointer;
}

.wizard-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-option__card {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wizard-option__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wizard-option__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.wizard-option__text {
  flex: 1;
  min-width: 0;
}
.wizard-option__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wizard-option__desc {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.wizard-option__check {
  font-size: 12px;
  color: var(--accent-secondary);
  opacity: 0;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
}

.wizard-option:hover .wizard-option__card {
  background: var(--option-hover);
}

.wizard-option input[type="radio"]:checked + .wizard-option__card {
  background: var(--option-selected-bg);
  border: 1px solid var(--option-selected-border);
  color: var(--text-primary);
}

.wizard-option input[type="radio"]:checked + .wizard-option__card .wizard-option__check {
  opacity: 1;
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  min-height: 48px;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wizard-textarea {
  min-height: 96px;
  resize: vertical;
}

.wizard-input--hidden {
  display: none;
}

.wizard-summary {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.wizard-summary-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.wizard-summary-row:last-child {
  border-bottom: none;
}

.wizard-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.wizard-summary-value {
  font-size: 13px;
}

.wizard-input:focus,
.wizard-textarea:focus {
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.12);
}

.wizard-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  gap: 16px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.wizard-footer__spacer {
  flex: 1;
}

.wizard-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-btn--primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.35);
}

.wizard-btn--primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.38);
}

.wizard-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.wizard-btn--ghost:hover:not(:disabled) {
  background: var(--hover);
}

.wizard-btn--link {
  background: transparent;
  border: none;
  color: var(--link);
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  text-decoration: none;
}

.wizard-btn--link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.wizard-btn:active:not(:disabled) {
  transform: none;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-error {
  margin-top: 4px;
  font-size: 11px;
  color: var(--error);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: var(--nav-shadow);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bottom-nav__item {
  flex: 1;
  min-width: 0;
  margin: 0 4px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.bottom-nav__item:hover {
  background: var(--hover);
  color: var(--text-primary);
}
.bottom-nav__item:active {
  opacity: 0.9;
}

.bottom-nav__item--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.bottom-nav__item--active:hover {
  background: rgba(255, 140, 0, 0.25);
  color: var(--accent);
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav__label {
  white-space: nowrap;
}

/* Уведомление об успешном создании заявки */
.request-success-toast {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.request-success-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.request-success-toast__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.request-success-toast__icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 20px;
}
.request-success-toast__text {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}
.request-success-toast__hint {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100%;
}
.request-success-toast__actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.request-success-toast__btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}
.request-success-toast__btn:active {
  opacity: 0.9;
}
.request-success-toast__btn--primary {
  background: var(--accent, #f59e0b);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 138, 0, 0.35);
}
.request-success-toast__btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}
.request-success-toast__btn--secondary:hover {
  background: var(--surface-soft);
}

