:root {
  --bg: #0f0f0f;
  --surface: #1a1528;
  --card: #2d1266;
  --purple: #8527ff;
  --purple-light: #702eff;
  --text: #ffffff;
  --text-muted: #9ca3af;
  --border: #2a2d32;
  --success: #22c55e;
  --success-bg: #0f2917;
  --error: #ff4d4f;
  --radius: 14px;
  --max-width: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(133, 39, 255, 0.22), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--purple-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--purple);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.page-meta {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #d8b4fe;
}

.card p,
.card li {
  margin: 0 0 12px;
  color: #e5e7eb;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.25rem;
}

.lead {
  font-size: 1.05rem;
  color: #d1d5db;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #15171a;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(133, 39, 255, 0.45);
  border-color: var(--purple);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.alert {
  display: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 24px;
}

.alert.is-visible {
  display: block;
}

.alert--success {
  background: var(--success-bg);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.alert--error {
  background: #2a1214;
  border: 1px solid rgba(255, 77, 79, 0.35);
  color: #fecaca;
}

.alert__title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

.alert p {
  margin: 0;
}

.site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
