/* Баннер пилота: платформа в разработке + CTA «Научить платформу» */

.aspro-pilot-banner {
  position: relative;
  z-index: 20;
  margin: 0 auto;
  max-width: min(1440px, calc(100vw - 32px));
  padding: 12px 16px 0;
}

.aspro-pilot-banner.is-dismissed {
  display: none !important;
}

.aspro-pilot-banner.is-collapsed .aspro-pilot-banner__body,
.aspro-pilot-banner.is-collapsed .aspro-pilot-banner__actions {
  display: none;
}

.aspro-pilot-banner.is-collapsed .aspro-pilot-banner__inner {
  padding: 10px 14px;
}

.aspro-pilot-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(237, 91, 43, 0.35);
  background: linear-gradient(135deg, rgba(237, 91, 43, 0.12), rgba(15, 23, 42, 0.85));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.aspro-pilot-banner__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color--accent-hex, #ed5b2b);
  border-radius: 999px;
}

.aspro-pilot-banner__body {
  flex: 1 1 240px;
  min-width: 0;
}

.aspro-pilot-banner__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.aspro-pilot-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.88;
}

.aspro-pilot-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.aspro-pilot-banner__cta {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: var(--color--accent-hex, #ed5b2b);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.aspro-pilot-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(237, 91, 43, 0.35);
}

.aspro-pilot-banner__ghost {
  padding: 8px 12px;
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.75;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
}

.aspro-pilot-banner__ghost:hover {
  opacity: 1;
}

/* Haze / app context */
.haze-shell .aspro-pilot-banner {
  padding: 0 20px 12px;
  max-width: none;
}

.haze-shell .aspro-pilot-banner__inner {
  background: linear-gradient(135deg, rgba(237, 91, 43, 0.1), rgba(30, 41, 59, 0.9));
  border-color: rgba(237, 91, 43, 0.28);
}

.haze-shell .aspro-pilot-banner__title {
  color: var(--haze-text, #e8edf4);
}

.haze-shell .aspro-pilot-banner__text {
  color: var(--haze-muted, #94a3b8);
}

/* Modal */
.aspro-pilot-modal[hidden] {
  display: none !important;
}

.aspro-pilot-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.aspro-pilot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.aspro-pilot-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 22px 18px;
  border-radius: 16px;
  border: 1px solid rgba(237, 91, 43, 0.3);
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.aspro-pilot-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  line-height: 1;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
}

.aspro-pilot-modal__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

.aspro-pilot-modal__lead {
  margin: 0 0 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
}

.aspro-pilot-modal__field {
  margin-bottom: 12px;
}

.aspro-pilot-modal__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.aspro-pilot-modal__input,
.aspro-pilot-modal__select,
.aspro-pilot-modal__textarea {
  width: 100%;
  padding: 9px 11px;
  font-size: 0.875rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}

.aspro-pilot-modal__textarea {
  min-height: 120px;
  resize: vertical;
}

.aspro-pilot-modal__input:focus,
.aspro-pilot-modal__select:focus,
.aspro-pilot-modal__textarea:focus {
  outline: none;
  border-color: #ed5b2b;
  box-shadow: 0 0 0 2px rgba(237, 91, 43, 0.2);
}

.aspro-pilot-modal__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 12px 0;
}

.aspro-pilot-modal__check a {
  color: #67e8f9;
}

.aspro-pilot-modal__err {
  font-size: 0.8rem;
  color: #f87171;
  margin: 0 0 8px;
}

.aspro-pilot-modal__ok {
  font-size: 0.85rem;
  color: #6ee7b7;
  margin: 0 0 8px;
}

.aspro-pilot-modal__submit {
  width: 100%;
  padding: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  background: #ed5b2b;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.aspro-pilot-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .aspro-pilot-banner__inner {
    flex-direction: column;
  }
  .aspro-pilot-banner__actions {
    width: 100%;
  }
  .aspro-pilot-banner__cta {
    flex: 1;
    text-align: center;
  }
}
