:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-hover: #243044;
  --text: #e8edf4;
  --text-muted: #9aa8bc;
  --accent: #4f9cf9;
  --accent-soft: rgba(79, 156, 249, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}

.card:hover {
  background: var(--surface-hover);
  border-color: rgba(79, 156, 249, 0.3);
  text-decoration: none;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.doc h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.doc section {
  margin-bottom: 2rem;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.doc p {
  margin: 0 0 0.75rem;
}

.doc ul {
  margin: 0.5rem 0 0;
  padding-right: 1.25rem;
  padding-left: 0;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc li::marker {
  color: var(--accent);
}

.notice {
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 156, 249, 0.25);
  border-radius: 12px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.required {
  color: #f87171;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(79, 156, 249, 0.5);
}

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

.form-field--checkbox {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-label input {
  width: auto;
  margin-top: 0.35rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  text-decoration: none;
}

.success-panel {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 12px;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border-radius: 50%;
}

.success-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.success-panel p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.success-panel .reference {
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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