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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #252525;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --text: #f0f0f0;
  --text-muted: #888;
  --error: #f87171;
  --radius: 12px;
}

html {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 48px;
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 180px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  display: block;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-wrap {
  position: relative;
}

input[type="tel"] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.05rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.5px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="tel"]::placeholder {
  color: #444;
}

input[type="tel"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

button {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  letter-spacing: 0.3px;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.error {
  color: var(--error);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  width: 100%;
  line-height: 1.4;
}

.privacy-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.45;
  opacity: 0.7;
}

/* FAQ */
.faq {
  width: 100%;
  max-width: 420px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-title {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 4px;
  opacity: 0.6;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: unset;
  border-radius: 0;
  letter-spacing: 0;
  transition: color 0.2s;
}

.faq-q:hover:not(:disabled) {
  background: none;
  color: var(--accent);
}

.faq-q:active:not(:disabled) {
  transform: none;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.825rem;
  line-height: 1.55;
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-a.open {
  max-height: 200px;
  padding: 0 16px 14px;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px 24px;
    gap: 18px;
  }

  .logo {
    width: 150px;
  }

  .faq-q {
    font-size: 0.82rem;
    padding: 12px 14px;
  }

  .faq-a {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 22px 16px 20px;
    gap: 14px;
  }

  .logo {
    width: 120px;
  }

  button {
    font-size: 0.9rem;
    min-height: 46px;
  }
}
