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

:root {
  --bg-1: #0a0618;
  --bg-2: #1a0b2e;
  --accent: #b16cff;
  --accent-2: #ff6bcb;
  --text: #ffffff;
  --muted: rgba(255,255,255,.65);
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-1);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Анимированный фон */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(177,108,255,.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255,107,203,.28), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(120,80,255,.30), transparent 50%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  animation: bgShift 18s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { filter: hue-rotate(0deg)   saturate(1); }
  100% { filter: hue-rotate(30deg)  saturate(1.15); }
}

.wrap {
  width: min(960px, 92vw);
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  text-align: center;
}

/* Бренд */
.brand .logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .logo span { opacity: .6; }

/* Герой */
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff, #d8c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 48px;
  max-width: 560px;
  margin-inline: auto;
}

/* Обратный отсчёт */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 720px;
}

.unit {
  padding: 24px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.unit:hover { transform: translateY(-3px); }

.num {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #c9a9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Подписка */
.subscribe {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.subscribe input {
  flex: 1;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.subscribe input::placeholder { color: rgba(255,255,255,.4); }
.subscribe input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.10);
}

.subscribe button {
  padding: 16px 26px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: #12021f;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 30px rgba(177,108,255,.35);
}
.subscribe button:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,203,.45); }
.subscribe button:disabled { opacity: .6; cursor: progress; transform: none; }

.form-msg {
  margin-top: 14px;
  min-height: 1.2em;
  font-size: .9rem;
  color: var(--muted);
}
.form-msg.ok { color: #7dffb0; }
.form-msg.err { color: #ff8a8a; }

/* Футер */
.footer {
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.2); }
.footer a:hover { color: #fff; }
.dot { opacity: .4; }

/* Мобильная адаптация */
@media (max-width: 560px) {
  .countdown { gap: 10px; }
  .unit { padding: 16px 6px; border-radius: 16px; }
  .subscribe { flex-direction: column; }
  .subscribe button { width: 100%; }
}

/* Кнопка «Написать нам» */
.contact-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: #12021f;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(177,108,255,.35);
  transition: transform .15s ease, box-shadow .2s ease;
  margin-bottom: 14px;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,107,203,.45);
}

/* Дублирующая ссылка с адресом под кнопкой */
.contact-mail {
  display: inline-block;
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  transition: color .2s;
}
.contact-mail:hover { color: #fff; }
