/* ===== Tokens ===== */
:root {
  --bg-black: #050505;
  --bg-dark: #0a0a0a;
  --text-white: #ffffff;
  --text-muted: #858585;
  --text-gray: #a5a5a5;
  --orange: #ff6a00;
  --orange-bright: #ff5a00;
  --orange-deep: #ff4d00;
  --orange-light: #ff7200;
  --orange-accent: #ff7a00;
  --max: 520px;
  --btn-radius: 18px;
  --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;
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-white);
  background: var(--bg-black);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Full-screen page ===== */
.page {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-black);
  background-image: url("assets/hero-bg.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, transparent 28%, rgba(5, 5, 5, 0.5) 100%),
    radial-gradient(ellipse 90% 60% at 50% 50%, transparent 18%, rgba(5, 5, 5, 0.3) 100%),
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.98) 0%,
      rgba(5, 5, 5, 0.94) 22%,
      rgba(5, 5, 5, 0.82) 38%,
      rgba(5, 5, 5, 0.55) 52%,
      rgba(5, 5, 5, 0.35) 62%,
      rgba(5, 5, 5, 0.4) 75%,
      rgba(5, 5, 5, 0.58) 100%
    );
}

/* ===== Layout shell ===== */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    max(20px, var(--safe-top))
    clamp(16px, 4vw, 22px)
    max(20px, calc(16px + var(--safe-bottom)));
}

/* ===== Top badge ===== */
.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 30px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 106, 0, 0.55);
  margin-bottom: clamp(18px, 4.5vw, 24px);
  flex-shrink: 0;
}

.top-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 4px rgba(255, 106, 0, 0.8),
    0 0 10px rgba(255, 106, 0, 0.55);
  flex-shrink: 0;
  animation: badge-dot-pulse 2s ease-in-out infinite;
}

@keyframes badge-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 4px rgba(255, 106, 0, 0.8),
      0 0 10px rgba(255, 106, 0, 0.55);
  }

  50% {
    transform: scale(1.2);
    box-shadow:
      0 0 6px rgba(255, 106, 0, 1),
      0 0 14px rgba(255, 106, 0, 0.85),
      0 0 22px rgba(255, 106, 0, 0.45);
  }
}

.top-badge__text {
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-gray);
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 6px);
  width: 100%;
  text-align: center;
  margin-bottom: clamp(12px, 3vw, 16px);
}

.hero__title-line {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Anton", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 11vw, 62px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.hero__title-line--white {
  color: var(--text-white);
}

.hero__title-line--orange {
  color: var(--orange);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(255, 106, 0, 0.25);
}

.hero__subtitle {
  width: 100%;
  text-align: center;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: clamp(18px, 4.5vw, 24px);
}

/* ===== Actions ===== */
.actions {
  width: min(100%, 92%);
  flex-shrink: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 3.2vw, 16px);
  width: 100%;
  margin: 0 auto;
}

/* ===== CTA buttons ===== */
.cta {
  position: relative;
  display: grid;
  grid-template-columns: clamp(44px, 11.5vw, 50px) 1fr clamp(44px, 11.5vw, 50px);
  align-items: center;
  width: 100%;
  min-height: clamp(72px, 19vw, 82px);
  padding: 10px clamp(14px, 4vw, 18px);
  border-radius: var(--btn-radius);
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta:active {
  transform: scale(0.985);
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 106, 0, 0.75);
  outline-offset: 3px;
}

.cta__icon-wrap {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 11.5vw, 50px);
  height: clamp(44px, 11.5vw, 50px);
  border-radius: 50%;
}

.cta__icon-wrap--dark {
  background: #050505;
}

.cta__icon-wrap--orange {
  background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange-light) 100%);
}

.cta__icon {
  width: clamp(22px, 5.8vw, 26px);
  height: clamp(22px, 5.8vw, 26px);
}

.cta__text {
  grid-column: 2;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  justify-self: center;
  padding: 0;
}

/* Primary — Подать заявку */
.cta--primary {
  background: linear-gradient(90deg, var(--orange-deep) 0%, var(--orange-light) 100%);
  color: #050505;
  box-shadow:
    0 8px 28px rgba(255, 77, 0, 0.35),
    0 2px 8px rgba(255, 114, 0, 0.2);
}

.cta--primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 10px 32px rgba(255, 77, 0, 0.45),
    0 4px 12px rgba(255, 114, 0, 0.28);
}

/* Secondary — Написать менеджеру */
.cta--secondary {
  background: rgba(5, 5, 5, 0.82);
  color: var(--text-white);
  border: 1.5px solid var(--orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cta--secondary .cta__text {
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cta--secondary:hover {
  background: rgba(10, 10, 10, 0.92);
  border-color: var(--orange-light);
}

/* ===== Support line ===== */
.support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(14px, 3.5vw, 18px);
  padding-bottom: 2px;
}

.support__icon {
  flex-shrink: 0;
  width: clamp(15px, 4vw, 18px);
  height: clamp(15px, 4vw, 18px);
  color: var(--orange);
}

.support__text {
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }

  .top-badge__dot {
    animation: none;
  }
}

/* ===== Small screens ===== */
@media (max-width: 430px) {
  .hero__title-line {
    font-size: clamp(34px, 10.5vw, 48px);
  }
}

@media (max-width: 360px) {
  .hero__title-line {
    font-size: clamp(32px, 10vw, 42px);
  }

  .cta__text {
    font-size: 14px;
  }
}

/* ===== Desktop — keep mobile composition centered ===== */
@media (min-width: 768px) {
  .page {
    align-items: center;
  }

  .shell {
    padding-top: max(28px, var(--safe-top));
    padding-bottom: max(28px, calc(20px + var(--safe-bottom)));
  }

  .hero__subtitle {
    font-size: 22px;
  }
}
