/* ===== Tokens ===== */
:root {
  --bg-dark: #050508;
  --text-light: #f1f1f1;
  --blue: #145cff;
  --purple: #7b2cff;
  --pink: #ff237a;
  --gradient-title: linear-gradient(165deg, #145cff 0%, #7b2cff 52%, #ff237a 100%);
  --gradient-btn: linear-gradient(90deg, #075fff 0%, #5b25ff 50%, #d82d91 100%);
  --gradient-border: linear-gradient(90deg, #075fff 0%, #5b25ff 50%, #d82d91 100%);
  --max: 460px;
  --btn-radius: 22px;
  --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: "Montserrat", "Arial Black", Impact, system-ui, sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  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;
  overflow: hidden;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-dark);
  background-image: url("assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: cover;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(2, 4, 12, 0.9) 0%,
      rgba(2, 4, 12, 0.45) 22%,
      rgba(2, 4, 12, 0.12) 48%,
      rgba(2, 4, 12, 0.5) 72%,
      rgba(2, 4, 12, 0.92) 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;
  padding:
    max(16px, var(--safe-top))
    clamp(16px, 4.5vw, 22px)
    max(18px, calc(14px + var(--safe-bottom)));
}

/* ===== Hero ===== */
.hero {
  flex-shrink: 0;
  padding-top: clamp(48px, 11vw, 68px);
  padding-left: clamp(2px, 1vw, 8px);
  overflow: visible;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0;
  overflow: visible;
  padding-top: 0.04em;
}

.hero__title-line {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(68px, 21.5vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: visible;
  padding-top: 0.06em;
  filter: drop-shadow(0 2px 18px rgba(20, 92, 255, 0.22));
}

.hero__badge-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: clamp(12px, 3vw, 18px);
}

.hero__subtitle {
  display: inline-block;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: clamp(7px, 2vw, 9px) clamp(16px, 4.5vw, 22px);
  border-radius: 999px;
  background:
    linear-gradient(rgba(5, 8, 20, 0.55), rgba(5, 8, 20, 0.55)) padding-box,
    var(--gradient-border) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(123, 44, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ===== Spacer — keeps scene visible between hero and CTAs ===== */
.spacer {
  flex: 1 1 auto;
  min-height: clamp(16px, 4vh, 32px);
  max-height: clamp(64px, 15vh, 110px);
}

/* ===== Actions block ===== */
.actions {
  flex-shrink: 0;
  width: 100%;
  margin-top: clamp(185px, 29vh, 205px);
  margin-bottom: clamp(48px, 11vh, 72px);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 4vw, 18px);
  width: min(100%, 92vw);
  margin: 0 auto;
}

/* ===== CTA buttons ===== */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3.5vw, 16px);
  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, 255, 255, 0.65);
  outline-offset: 3px;
}

.cta__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(45px, 12vw, 52px);
  height: clamp(45px, 12vw, 52px);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
}

.cta__icon {
  width: clamp(22px, 6vw, 26px);
  height: clamp(22px, 6vw, 26px);
}

.cta__text {
  flex: 1;
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
  padding-right: clamp(45px, 12vw, 52px);
}

/* Primary — Посмотреть предложения */
.cta--primary {
  background: var(--gradient-btn);
  color: #0a0a12;
  box-shadow:
    0 8px 28px rgba(7, 95, 255, 0.38),
    0 2px 8px rgba(216, 45, 145, 0.22);
}

.cta--primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 10px 32px rgba(7, 95, 255, 0.48),
    0 4px 12px rgba(216, 45, 145, 0.28);
}

/* Secondary — Оставить заявку */
.cta--secondary {
  background:
    linear-gradient(rgba(5, 5, 10, 0.72), rgba(5, 5, 10, 0.72)) padding-box,
    var(--gradient-border) border-box;
  color: #fff;
  border: 1.5px solid transparent;
}

.cta--secondary:hover {
  background:
    linear-gradient(rgba(8, 8, 16, 0.84), rgba(8, 8, 16, 0.84)) padding-box,
    var(--gradient-border) border-box;
}

/* ===== Safety line ===== */
.safety {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-bottom: 2px;
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.safety__icon {
  flex-shrink: 0;
  width: clamp(14px, 3.8vw, 17px);
  height: clamp(14px, 3.8vw, 17px);
  color: var(--blue);
}

.safety__text {
  display: inline;
}

.safety__blue {
  color: var(--blue);
}

.safety__dash {
  color: #8a8a96;
  font-weight: 600;
}

.safety__accent {
  background: linear-gradient(90deg, #7b2cff 0%, #ff237a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* ===== Small screens ===== */
@media (max-width: 430px) {
  .page__bg {
    background-position: center 40%;
  }
}

@media (max-width: 359px) {
  .hero__title-line {
    font-size: clamp(58px, 19vw, 68px);
  }

  .cta__text {
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .safety {
    font-size: 9.5px;
    gap: 6px;
  }
}

/* ===== Desktop — keep mobile composition centered ===== */
@media (min-width: 768px) {
  .page {
    align-items: center;
  }

  .page__bg {
    background-position: center 44%;
    background-size: cover;
  }

  .shell {
    padding-top: max(24px, var(--safe-top));
    padding-bottom: max(28px, calc(20px + var(--safe-bottom)));
  }

  .hero {
    padding-top: 56px;
  }

  .hero__title-line {
    font-size: 96px;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .actions {
    margin-top: 115px;
    margin-bottom: 56px;
  }
}
