/*
 * support.css — страница «Поддержка» (/support): шапка и карточка с формой.
 * Поля .field — как в форме записи на /about (about.css), чтобы формы на сайте выглядели одинаково.
 */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

.support {
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 64px) 24px 96px;
}

/* ===== Шапка ===== */

.support__header {
  margin-bottom: 36px;
  text-align: center;
}

.support__label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.support__title {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
}

.support__lead {
  margin: 0;
  color: var(--muted, #c7cad1);
  font-size: 17px;
  line-height: 1.6;
}

/* ===== Карточка ===== */

.support__card {
  padding: 32px;
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(165, 180, 252, 0.08), transparent 70%),
    var(--surface, #181b22);
  border: 1px solid var(--border, #2f3542);
  border-radius: 20px;
}

.support__error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger, #fca5a5);
  font-size: 14px;
}

/* ===== Поля ===== */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft, #d1d5db);
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-sunken, #12141a);
  border: 1px solid var(--border, #2f3542);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field select option {
  background: var(--surface-sunken, #12141a);
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7280;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(165, 180, 252, 0.15);
}

.field .is-invalid {
  border-color: var(--danger, #fca5a5);
}

.field__hint {
  margin: 8px 0 0;
  color: #8b909a;
  font-size: 13px;
  line-height: 1.5;
}

.field__error {
  margin: 8px 0 0;
  color: var(--danger, #fca5a5);
  font-size: 13px;
}

/* Ловушка для ботов — убрана с экрана, но не display:none (некоторые боты такое пропускают) */
.support__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Кнопка ===== */

.support__submit {
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(165, 180, 252, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(165, 180, 252, 0.45);
}

.support__consent {
  margin: 14px 0 0;
  color: #8b909a;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.support__consent a,
.support__link {
  color: var(--accent);
}

.support__submit:focus-visible,
.support a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Успех ===== */

.support__success {
  padding: 16px 0;
  text-align: center;
}

.support__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(165, 180, 252, 0.15);
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
}

.support__success h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
}

.support__success p {
  margin: 0 0 22px;
  color: #c7cad1;
  line-height: 1.6;
}

.support__link {
  font-weight: 600;
  text-decoration: none;
}

/* ===== Мобильный ===== */

@media (max-width: 600px) {
  .support {
    padding: calc(var(--nav-height) + 40px) 16px 72px;
  }

  .support__card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support__submit,
  .field input,
  .field select,
  .field textarea {
    transition: none;
  }

  .support__submit:hover {
    transform: none;
  }
}
