@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1d4ed8;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --success-soft: #dcfce7;

  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-elevated: #fafafa;
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);

  --text-primary: #141414;
  --text-secondary: #6b6b6b;
  --text-muted: #9b9b9b;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-page: 24px;
  --space-gutter: 20px;

  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-elevated: #282828;
    --border: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --text-primary: #ededed;
    --text-secondary: #8c8c8c;
    --text-muted: #5c5c5c;

    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

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

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),
    radial-gradient(circle at 8% 96%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 36%),
    var(--bg);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", "Avenir Next", "Helvetica Neue", sans-serif;
  line-height: 1.4;
}

.wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.wrapper.wide {
  max-width: 760px;
}

body.centered-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-page) 16px;
}

body.scrolled-page {
  padding: var(--space-page) 16px 64px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.logo-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 26px;
}

.site-header .logo {
  margin-bottom: 0;
  justify-content: flex-start;
}

.card,
.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card {
  padding: 34px 28px;
  text-align: center;
}

.section {
  padding: 20px;
  margin-bottom: 12px;
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  background: var(--accent-light);
}

.badge-success {
  background: var(--success-soft);
}

.badge-warning {
  background: var(--danger-soft);
}

h1 {
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.78rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-subtitle,
.subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.page-subtitle {
  margin-bottom: 26px;
}

.subtitle {
  margin-bottom: 24px;
}

.btn,
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
  margin-bottom: 12px;
}

.btn:hover,
.contact-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.btn:active,
.contact-btn:active {
  transform: translateY(0);
}

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

.btn-link {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.muted-note,
.status,
.legal-note,
.footer,
.fallback {
  color: var(--text-muted);
}

.legal-note,
.status {
  font-size: 13px;
  line-height: 1.55;
}

.muted-note-tight {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
}

.footer a,
.legal-note a,

.accent-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.section a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}



.footer a {
  margin: 0 8px;
  font-weight: 400;
}

.footer a:hover,
.legal-note a:hover,
/* .section a:hover, */
.accent-link:hover {
  text-decoration: underline;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.tab-btn {
  border: 0;
  border-radius: calc(var(--radius-md) - 4px);
  padding: 9px 18px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.section h2 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fefefe;
}

.section p,
.section li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.section ul {
  padding-left: 18px;
}

.field {
  text-align: left;
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface-elevated);
  outline: none;
}

.field input:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-error {
  margin-bottom: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border-radius: 999px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .section {
    padding: 18px;
  }

  .tabs {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }
}