:root {
  --brand: #ff7a00;
  --brand-dark: #e56d00;
  --accent: #0163aa;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a2430;
  --muted: #5f6b7a;
  --border: rgba(26, 36, 48, 0.1);
  --success: #1f8f4e;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(26, 36, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.8125rem;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card .updated {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

.card h2 {
  margin: 28px 0 10px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.card p,
.card li {
  margin: 0 0 12px;
  color: var(--text);
}

.card ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.card a {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

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

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn:active {
  transform: scale(0.99);
}

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

.success-box {
  padding: 20px;
  border-radius: 14px;
  background: rgba(31, 143, 78, 0.1);
  border: 1px solid rgba(31, 143, 78, 0.25);
  color: var(--success);
}

.success-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

@media (max-width: 640px) {
  .card {
    padding: 22px 18px;
  }

  .card h1 {
    font-size: 1.5rem;
  }
}
