.menu-item {
  border: 0;
  background: transparent;
  color: #c8d8ea;
  font-size: 0.78rem;
  border-radius: 10px;
  padding: 8px 10px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.menu-item--sos:not(.is-active) {
  color: #f0b0b0;
}

.menu-item.is-active {
  color: #edfff1;
  background: radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.6), rgba(0, 200, 5, 0.3));
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.85), 0 0 15px var(--accent-emerald);
}

/* Самосвечение контура (clip): едва заметный золото → изумруд, не перебивает текст */
.hero-card {
  position: relative;
  margin-bottom: 14px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  background-color: #0a1218;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #fafcff;
}

.hero-card.brand-glow {
  position: relative;
}

.hero-card.brand-glow .hero-copy {
  position: relative;
  z-index: 3;
}

.hero-card .welcome-title {
  color: #ffffff;
}

.hero-card .welcome-lead {
  color: #e6edf5;
}

.hero-card .legal-text {
  color: #dde8f2;
}

.hero-card.home-hub {
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}

.hero-card.home-hub .hero-copy {
  margin-bottom: 0;
}

.hero-card.home-hub .legal-guard {
  margin-bottom: 0;
  position: relative;
  z-index: 3;
}

.home-service-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.service-entry.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background-color: #0a1218;
  color: #fafcff;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.service-entry .welcome-icon,
.service-entry .service-entry-text {
  position: relative;
  z-index: 1;
}

.service-entry:disabled {
  cursor: not-allowed;
}

.service-entry.service-card:not(:disabled):hover {
  box-shadow: 0 0 22px rgba(0, 150, 5, 0.28), 0 0 10px rgba(232, 200, 74, 0.15);
}

.service-entry:not(:disabled):active {
  transform: scale(0.99);
}

.service-entry:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.service-entry-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #eef3f9;
}

.service-entry-desc {
  display: inline;
}

.service-entry .welcome-icon {
  flex-shrink: 0;
}

.hero-copy {
  margin-bottom: 0;
}

.welcome-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fefaf0;
}

.welcome-lead {
  margin: 0 0 14px;
  color: #b8c9dc;
  font-size: 0.88rem;
  line-height: 1.55;
}

.welcome-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.welcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(5, 12, 22, 0.55);
}

.welcome-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--accent-emerald);
  background: rgba(0, 200, 5, 0.12);
  border: 1px solid rgba(0, 200, 5, 0.35);
}

.welcome-icon-gold {
  color: var(--luxury-gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

.welcome-item-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #d2deed;
}

.welcome-accent {
  color: #f0fff3;
  font-weight: 700;
}

.welcome-dash {
  color: rgba(212, 175, 55, 0.75);
  margin: 0 0.15em;
}

.stack {
  display: flex;
  flex-direction: column;
}

.gap-lg {
  gap: 14px;
}



.app-button {
  border: 0;
  border-radius: 16px;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-button:active {
  transform: scale(0.985);
}

.app-button-primary {
  background: linear-gradient(180deg, #14e11b, var(--accent-emerald));
  color: #051108;
  box-shadow: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.app-button-primary.is-phone-ready:not(:disabled) {
  animation: pulse-emerald 1.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.app-button-primary:not(:disabled):hover,
.app-button-primary:not(:disabled):active {
  animation: pulse-emerald 1.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.app-button-primary:not(:disabled):active {
  transform: scale(0.985);
}

.app-button-secondary {
  background: linear-gradient(180deg, #141f29, #111824);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.app-button-secondary:not(:disabled):active {
  box-shadow: 0 0 15px var(--accent-emerald);
}

.legal-guard {
  margin-bottom: 6px;
}

.legal-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--muted);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  padding: 4px 6px;
  background: rgba(16, 24, 32, 0.85);
  min-height: 22px;
  cursor: pointer;
}

.legal-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.legal-box {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.75);
  background: rgba(5, 10, 18, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 11px;
  margin-top: 1px;
}

.legal-checkbox input:checked + .legal-box {
  background: var(--accent-emerald);
  border-color: rgba(212, 175, 55, 0.9);
}

.legal-checkbox input:checked + .legal-box::after {
  content: "✓";
  font-size: 0.55rem;
  line-height: 1;
  color: #041006;
}

.legal-text {
  flex: 1;
}

.link-ghost {
  border: 0;
  padding: 0;
  margin: 0 2px;
  background: none;
  color: var(--accent-emerald);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.guarded-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.guarded-button {
  position: relative;
}

.guarded-button[disabled]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #050910;
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: var(--text);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.guarded-button[disabled]:hover::after {
  opacity: 1;
}

.home-footer {
  margin-top: 10px;
  text-align: center;
}

.footer-link {
  font-size: 0.86rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

/* Пока ни одна модалка не открыта — не оставляем перекрывающий слой (body.modal-open вешает modals.js). */
body:not(.modal-open) .modal {
  display: none !important;
  pointer-events: none !important;
}

.modal.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal.hidden .modal-backdrop,
.modal.hidden .modal-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal.hidden .modal-backdrop {
  pointer-events: none !important;
}

.modal:not(.hidden) .modal-backdrop {
  display: block;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.app-header-tools .icon-button.hidden {
  display: none;
  pointer-events: none;
}

.modal-panel {
  position: relative;
  width: min(480px, 90%);
  max-height: 80vh;
  overflow: visible;
  background: #0b121c;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
}

.modal-body {
  padding: 6px 0 4px;
  flex: 1;
}

.modal-scroll {
  max-height: 46vh;
  overflow-y: auto;
  font-size: 0.86rem;
  color: var(--muted);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 5, 0.65) rgba(16, 24, 32, 0.95);
}

.modal-scroll::-webkit-scrollbar {
  width: 7px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: rgba(8, 14, 22, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.55), rgba(212, 175, 55, 0.4));
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 200, 5, 0.8), rgba(212, 175, 55, 0.55));
}

.modal-scroll p {
  margin: 0 0 10px;
}

.agreement-content {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  line-height: 1.55;
  color: var(--muted);
}

.modal-intro-lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.modal-scroll-compact {
  max-height: 42vh;
}

.overstay-card-modal {
  margin: 0;
}

.modal-footer {
  padding-top: 6px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.progress-wrap {
  margin-bottom: 0;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.flow-title {
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-counter {
  font-size: 0.84rem;
  color: var(--text);
}

.gg-progress-wrapper {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.gg-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--luxury-gold), var(--accent-emerald));
  box-shadow: 0 0 10px var(--glow-emerald);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-container {
  position: relative;
  z-index: 0;
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  animation: step-in 0.28s ease;
}



.step-title {
  margin: 2px 0 6px;
  font-size: var(--fs-normal);
  font-weight: var(--fw-step-label);
  color: var(--color-step-label);
  line-height: 1.2;
}

.step-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.input-step-field {
  margin-bottom: 16px;
}

.input-step-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--luxury-gold);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-step-control::placeholder {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.input-step-control:focus {
  outline: none;
  border-color: var(--accent-emerald);
  border-left-color: var(--luxury-gold);
  box-shadow: 0 0 15px var(--accent-emerald);
}

.input-step-split {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.input-step-field--half {
  flex: 1 1 calc(50% - 6px);
  min-width: min(100%, 140px);
  margin-bottom: 0;
}

.upload-grid.upload-grid--inline {
  flex: 1 1 calc(50% - 6px);
  min-width: min(100%, 140px);
  margin-bottom: 0;
}

/* Мини-блок билета рядом с полем рейса: подпись на −30%, чтобы не ломалась в две строки */
.upload-grid.upload-grid--inline .upload-tag {
  font-size: calc(0.76rem * 0.7);
  padding: 3px 6px;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
}

.date-pick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.date-pick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-pick-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.date-pick-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--luxury-gold);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-pick-select:focus {
  outline: none;
  border-color: var(--accent-emerald);
  border-left-color: var(--luxury-gold);
  box-shadow: 0 0 15px var(--accent-emerald);
}

.date-pick-calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.date-pick-calendar {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--luxury-gold);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  box-sizing: border-box;
  /* Replaced element: нет ::before; акцент — border-left (Safari iOS: appearance + min-height) */
}

.date-pick-calendar:focus {
  outline: none;
  border-color: var(--accent-emerald);
  border-left-color: var(--luxury-gold);
  box-shadow: 0 0 15px var(--accent-emerald);
}

.date-pick-validated.date-pick--invalid .date-pick-select,
.date-pick-validated.date-pick--invalid .date-pick-calendar {
  border-color: rgba(255, 90, 90, 0.85);
  border-left-color: var(--luxury-gold);
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.25);
}

.date-pick-error {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #ff8a8a;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.choice-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  min-height: 52px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.choice-btn:active {
  transform: scale(0.98);
}

.choice-btn.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 15px var(--accent-emerald);
}

.choice-btn.active:hover,
.choice-btn.active:active {
  animation: pulse-emerald 1.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.choice-btn.suggested {
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
}



.upload-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.upload-zone {
  position: relative;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  /* visible: иначе .upload-tooltip над «i» обрезается и hover/тап не видны */
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone-reset {
  flex-shrink: 0;
  position: static;
  z-index: 1;
  padding: 2px 6px;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 100, 100, 0.55);
  background: rgba(40, 12, 12, 0.92);
  color: #ffb4b4;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.upload-zone-reset:hover {
  background: rgba(70, 20, 20, 0.95);
  border-color: rgba(255, 140, 140, 0.75);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.2);
}

.upload-zone-reset:focus-visible {
  outline: 2px solid rgba(255, 120, 120, 0.9);
  outline-offset: 2px;
}

.upload-zone:hover:not(.upload-zone--loading) {
  border-color: rgba(0, 200, 5, 0.35);
}

.upload-zone--loading {
  cursor: wait;
  pointer-events: none;
}

.upload-zone-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-zone-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px 4px 8px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  justify-content: flex-start;
}

.upload-zone-main {
  flex: 1 1 auto;
  min-height: 32px;
  max-height: 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 8px;
}

.upload-zone.has-files .upload-zone-placeholder {
  display: none !important;
}

.upload-zone:not(.has-files) .upload-zone-preview {
  display: none !important;
}

.upload-zone .gg-rebuild-header {
  min-height: 22px;
  gap: 6px;
  margin-bottom: 0;
}

.gg-rebuild-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.upload-zone--loading .upload-zone-body {
  opacity: 0.35;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone-preview {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  max-height: 32px;
  overflow: hidden;
  margin: 0;
}

.upload-zone-preview.is-visible {
  display: flex;
}

.upload-zone .upload-zone-thumb-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
  background: rgba(5, 12, 22, 0.45);
  border: 1px solid var(--line);
  overflow: hidden;
}

.upload-zone .upload-zone-thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 32px;
  max-height: 32px;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  border-radius: 3px;
  border: 0;
  box-shadow: none;
}

.upload-zone .upload-zone-thumb-cell .upload-zone-pdf-wrap {
  transform: scale(1);
}

.upload-zone-pdf-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luxury-gold);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55));
}

.upload-zone-pdf-icon {
  display: block;
}

.gg-rebuild-header {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
  align-items: center !important;
  position: relative;
  z-index: 2;
  gap: 6px;
  min-height: 28px;
  padding-right: 4px !important;
  box-sizing: border-box;
}

.gg-rebuild-title {
  display: block;
  flex: 1;
  min-width: 0;
  font-size: var(--fs-normal);
  font-weight: var(--fw-step-label);
  color: var(--color-step-label);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg-rebuild-header .upload-hint {
  margin-left: auto !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 30;
}

.gg-rebuild-info {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  border: 1px solid var(--luxury-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luxury-gold);
  cursor: pointer;
  flex-shrink: 0 !important;
  box-sizing: border-box;
  padding: 0;
  background: rgba(16, 24, 32, 0.92);
  font-size: 11px !important;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gg-rebuild-info:hover {
  border-color: rgba(255, 220, 130, 0.95);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  background: rgba(0, 200, 5, 0.1);
}

.gg-rebuild-info:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.upload-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-zone-info {
  position: static;
  box-sizing: border-box;
  min-width: 24px;
  min-height: 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.95);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(16, 24, 32, 0.95));
  color: #f5e6b8;
  font-size: 11px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition:
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.2s ease,
    border-color 0.2s ease;
}

.upload-zone-info:hover {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.38), rgba(0, 200, 5, 0.12));
  border-color: rgba(255, 220, 130, 0.95);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.55),
    0 0 18px rgba(212, 175, 55, 0.35);
}

.upload-zone-info:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

/* SOS: инструкция и успех — «i» на ~40% меньше базового .upload-zone-info (40px → 24px) */
.upload-zone-info.sos-thai-info-btn {
  min-width: 24px !important;
  min-height: 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-width: 1px;
  font-size: 11px !important;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.32);
}

.upload-zone-info.sos-thai-info-btn:hover {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.55),
    0 0 12px rgba(212, 175, 55, 0.28);
}

.upload-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: min(300px, calc(100vw - 48px));
  max-height: min(240px, 42vh);
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-deep-blue);
  border: 1px solid var(--luxury-gold);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 200, 5, 0.12);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #d2deed;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-hint:hover .upload-tooltip,
.upload-hint:focus-within .upload-tooltip,
.upload-tooltip.is-pinned {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.upload-tooltip.is-pinned {
  z-index: 600;
}

@media (max-width: 520px) {
  .upload-tooltip {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
    width: auto;
    max-height: min(200px, 30vh);
    z-index: 500;
  }

  .upload-tooltip.is-pinned {
    z-index: 999 !important;
  }
}

.upload-zone-laser-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(5, 10, 18, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-zone-laser-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.upload-zone-laser-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(0, 200, 5, 0.35) 0%, var(--accent-emerald) 50%, rgba(93, 255, 122, 0.85) 100%);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}

.upload-zone-laser-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 20%,
    #c8ffe0 45%,
    var(--accent-emerald) 55%,
    rgba(255, 255, 255, 0.9) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.65),
    0 0 20px var(--accent-emerald);
  animation: upload-laser-sweep 1.35s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  pointer-events: none;
  display: none;
}

.upload-zone-laser-overlay.is-active .upload-zone-laser-scan {
  display: block;
}

.upload-tag {
  font-size: 0.76rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  align-self: flex-start;
}

.summary-box {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: 0;
}

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

.step-actions {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.step-actions .app-button {
  flex: 1;
}

.subtle-note {
  font-size: 0.84rem;
  color: #c6d5e7;
  background: var(--danger-soft);
  border: 1px solid rgba(255, 120, 120, 0.32);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.overstay-info {
  display: grid;
  gap: 10px;
}

.overstay-card {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 10px;
  background: rgba(16, 24, 32, 0.72);
}

.overstay-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #f3f7ff;
}

.overstay-list {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.gold-number {
  color: var(--luxury-gold);
  font-weight: 700;
}

.tier-select-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(16, 24, 32, 0.75);
  color: #d2deed;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tier-card:hover {
  border-color: rgba(0, 200, 5, 0.55);
  background: rgba(0, 200, 5, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 5, 0.2);
}

.tier-card:active {
  transform: scale(0.99);
}

.tier-card:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.tier-card-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #f3f7ff;
}

.tier-card-detail {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.tier-card-detail .gold-number {
  color: var(--luxury-gold);
  font-weight: 700;
}

.tier-card-active {
  border-color: rgba(0, 200, 5, 0.85);
  background: rgba(0, 200, 5, 0.1);
  box-shadow: 0 0 15px var(--accent-emerald);
}

.tier-law-row {
  margin-top: 8px;
}

.risk-grid {
  display: grid;
  gap: 8px;
}

.risk-row {
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  padding: 8px;
  font-size: 0.82rem;
}

.risk-row.active-risk {
  border-color: rgba(0, 200, 5, 0.8);
  background: rgba(0, 200, 5, 0.08);
}

.cta-grid {
  display: grid;
  gap: 8px;
}

.disclaimer {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #9eaec2;
}

.law-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.sos-cta-button {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sos-instruction-lead {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}

.sos-instruction-lead #sosInstructionBodyText {
  flex: 1;
  min-width: 0;
}

.sos-instruction-lead .sos-inline-hint.upload-hint {
  margin-left: 0;
  flex-shrink: 0;
}

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

@media (min-width: 520px) {
  body {
    padding: 24px;
  }

  .hero-card {
    display: block;
    min-height: auto;
    padding: 18px;
  }

  .hero-copy {
    margin-bottom: 0;
    max-width: 100%;
  }

  .welcome-title {
    font-size: 1.5rem;
  }
}
