:root {
  --bg1: #0f172a;
  --bg2: #1f2937;
  --card: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.14);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent1: #8b5cf6;
  --accent2: #22d3ee;
  --shadow: 0 20px 70px rgba(0,0,0,0.35);
  --success: rgba(16,185,129,0.22);
  --danger: rgba(239,68,68,0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.20), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(34,211,238,0.18), transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

body {
  overflow-x: hidden;
  position: relative;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
}

.bg {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.30;
  pointer-events: none;
}

.bg-a {
  left: -120px;
  top: -120px;
  background: #8b5cf6;
}

.bg-b {
  right: -120px;
  bottom: -120px;
  background: #22d3ee;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.card {
  width: 100%;
  max-width: 1080px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid var(--stroke);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.langSwitcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.langBtn {
  min-width: 52px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.langBtn:hover {
  transform: translateY(-1px);
}

.langBtn.active {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: white;
  border-color: transparent;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.form {
  margin-top: 28px;
}

.inputRow {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
}

.inputRow input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  font-size: 17px;
}

.inputRow input::placeholder {
  color: #94a3b8;
}

.inputRow button {
  min-width: 170px;
  height: 60px;
  padding: 0 28px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  transition: transform .15s ease, opacity .15s ease;
}

.inputRow button:hover { transform: translateY(-1px); }
.inputRow button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  line-height: 1.5;
  font-size: 15px;
}

.status.success { background: var(--success); }
.status.error { background: var(--danger); }
.hidden { display: none; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.feature {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.featureTitle {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.featureText {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.seoBlock {
  margin-top: 34px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
}

.seoBlock p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.seoList {
  margin: 0 0 24px 20px;
  padding: 0;
  color: var(--muted);
}

.seoList li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.footer {
  margin-top: 26px;
  padding-top: 8px;
}

.servicesMiniBlock {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.servicesMiniLabel {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.servicesMiniLink {
  color: #c4b5fd;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: opacity .15s ease, transform .15s ease;
}

.servicesMiniLink:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .topBar {
    align-items: flex-start;
  }

  .badge,
  .langSwitcher {
    margin-bottom: 12px;
  }

  .inputRow {
    flex-direction: column;
  }

  .inputRow button {
    width: 100%;
    min-width: 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .lead,
  .seoBlock p,
  .seoList li {
    font-size: 16px;
  }

  h2 {
    font-size: 24px;
  }

  .seoBlock {
    padding: 20px;
  }

  .servicesMiniBlock {
    width: 100%;
  }
}
