/* ===== Tokens ===== */
:root {
  --bg: #0d0d0f;
  --bg-glow: #1a1a22;
  --surface: #16161a;
  --surface-border: rgba(255, 255, 255, 0.07);
  --text: #f0f0f5;
  --text-muted: #8a8a96;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --secondary-bg: #1e1e24;
  --secondary-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  --radius-card: 20px;
  --max: 400px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--bg-glow) 0%, transparent 70%),
    var(--bg);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    calc(150px + var(--safe-top))
    20px
    max(24px, calc(20px + var(--safe-bottom)));
}

.shell {
  width: 100%;
  max-width: var(--max);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--surface-border);
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 480ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cta--primary {
    animation: none !important;
  }
}

/* CTA stack */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.cta {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta__row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cta__text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary — Оставить заявку */
.cta--primary {
  min-height: 58px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  animation: soft-pulse 2.8s ease-in-out infinite;
}

.cta--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 28px var(--accent-glow);
}

/* Secondary — Написать менеджеру */
.cta--secondary {
  min-height: 58px;
  background: var(--secondary-bg);
  color: var(--text);
  border: 1px solid var(--secondary-border);
}

.cta--secondary .cta__icon {
  color: var(--accent);
}

.cta--secondary:hover {
  background: #252530;
  border-color: rgba(255, 255, 255, 0.18);
}

@keyframes soft-pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px var(--accent-glow);
  }
  50% {
    box-shadow: 0 4px 32px rgba(59, 130, 246, 0.4);
  }
}

@media (min-width: 768px) {
  .card {
    padding: 24px;
  }

  .cta__text {
    font-size: 18px;
  }
}
