*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #05070f;
  color: #e8eef7;
  line-height: 1.5;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Активна колона: 100% мобилни, 85% десктоп */
.site-active {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .site-active {
    width: 85%;
    max-width: 1200px;
  }
}

.static-band {
  width: 100%;
  line-height: 0;
  background: #02040a;
}

.static-band__img {
  display: block;
  width: 100%;
  height: auto;
}

/*
 * Преливка към формата / футъра: отделни ивици (мост),
 * без псевдоелементи върху new_hero / New_footer — картинките не се пипат.
 */
.sheet-fade {
  display: block;
  width: 100%;
  flex-shrink: 0;
  line-height: 0;
}

.sheet-fade--to-signup {
  height: clamp(48px, 8vh, 120px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 15, 0) 0%,
    rgba(5, 7, 15, 0.2) 38%,
    rgba(5, 7, 15, 0.65) 78%,
    #05070f 100%
  );
}

.sheet-fade--to-footer {
  height: clamp(48px, 8vh, 120px);
  background: linear-gradient(
    to bottom,
    #05070f 0%,
    rgba(5, 7, 15, 0.55) 42%,
    rgba(5, 7, 15, 0.08) 82%,
    rgba(5, 7, 15, 0) 100%
  );
}

.signup {
  padding: clamp(1.75rem, 5vw, 3rem) clamp(0.75rem, 3vw, 1rem);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 55%), #05070f;
}

/* +15% спрямо предишната max ширина (52rem → ~59.8rem) */
.signup__inner {
  width: 100%;
  max-width: min(100%, calc(52rem * 1.15));
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1rem, 2.8vw, 1.65rem);
  border-radius: 14px;
  container-type: inline-size;
  container-name: signup;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow:
    0 0 20px rgba(0, 123, 255, 0.35),
    0 0 48px rgba(59, 130, 246, 0.15),
    0 20px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.signup__flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.signup__flash--ok {
  background: rgba(22, 101, 52, 0.35);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.signup__flash--err {
  background: rgba(127, 29, 29, 0.4);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.signup__title {
  margin: 0 0 0.75rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  font-size: clamp(0.52rem, 2.05vw + 0.32rem, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

@supports (font-size: 1cqi) {
  .signup__title {
    font-size: clamp(0.5rem, 3.45cqi, 1.75rem);
  }
}

.signup__title-white {
  color: #f8fafc;
  font-weight: 800;
}

.signup__title-red {
  color: #d62612;
  font-weight: 900;
  font-size: 1em;
  text-shadow: 0 0 22px rgba(214, 38, 18, 0.45);
}

@media (min-width: 520px) {
  .signup__title {
    letter-spacing: 0.04em;
  }
}

.signup__copy {
  margin: 0 0 1.25rem;
  text-align: center;
}

.signup__copy-line {
  margin: 0;
  font-weight: 500;
  font-size: clamp(0.62rem, 1.1vw + 0.42rem, 0.78rem);
  line-height: 1.48;
  color: #fff;
}

@supports (font-size: 1cqi) {
  .signup__copy-line {
    font-size: clamp(0.58rem, 1.42cqi + 0.06rem, 0.78rem);
  }
}

.signup__copy-line + .signup__copy-line {
  margin-top: 0.35rem;
}

.signup__copy-line--cta {
  margin-top: 0.75rem;
  font-weight: 900;
  font-size: clamp(0.72rem, 1.25vw + 0.5rem, 0.92rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 18px rgba(214, 38, 18, 0.35);
}

@supports (font-size: 1cqi) {
  .signup__copy-line--cta {
    font-size: clamp(0.72rem, 1.55cqi + 0.12rem, 0.92rem);
  }
}

.signup__form {
  margin: 0;
}

/* Макет: поле пълна ширина, под него бутон пълна ширина (винаги вертикално) */
.signup__stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.signup__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.signup__field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.signup__field-icon {
  position: absolute;
  left: 1rem;
  display: flex;
  color: #64748b;
  pointer-events: none;
}

.signup__input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #e8eaef;
  color: #0f172a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup__input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.signup__input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.signup__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem 2.75rem 1rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 900;
  font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(180deg, #e62e1a 0%, #b01e0f 45%, #8a180c 100%);
  box-shadow:
    0 0 24px rgba(214, 38, 18, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.signup__btn-text {
  display: block;
  text-align: center;
}

.signup__btn-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.95;
}

.signup__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.signup__btn:active {
  transform: translateY(0);
}

.signup__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(232, 238, 247, 0.75);
  text-align: center;
}

.signup__privacy-icon {
  display: flex;
  color: rgba(255, 255, 255, 0.85);
}
