*,
*::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: 862px;
  }
}

.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: 0;
  background: #05070f;
}

/* Ред: гора отляво | форма (среда) | гора отдясно */
.signup__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: min(100%, calc(52rem * 1.15 + 12rem));
  margin: 0 auto;
}

.signup__side {
  flex: 0 0 clamp(28px, 9vw, 72px);
  align-self: stretch;
  background-repeat: no-repeat;
  background-size: cover;
}

.signup__side--left {
  background-position: right center;
}

.signup__side--right {
  background-position: left center;
}

/* +15% спрямо предишната max ширина (52rem → ~59.8rem) */
.signup__inner {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 718px;
  margin: 0;
  padding: clamp(2.25rem, 4vw, 2.75rem) clamp(1.1rem, 3vw, 1.85rem) clamp(1.5rem, 3.5vw, 2rem);
  border-radius: 0;
  container-type: inline-size;
  container-name: signup;
  background: #f7f9f9;
  border: 1px solid rgba(31, 122, 69, 0.18);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.signup__bell {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #2a8c52 0%, #1f7a45 55%, #155e34 100%);
  box-shadow:
    0 8px 20px rgba(21, 94, 52, 0.45),
    0 0 0 5px rgba(247, 250, 247, 0.97);
}

.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(31, 122, 69, 0.12);
  color: #155e34;
  border: 1px solid rgba(31, 122, 69, 0.35);
}

.signup__flash--err {
  background: rgba(214, 38, 18, 0.1);
  color: #a31c0f;
  border: 1px solid rgba(214, 38, 18, 0.3);
}

.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-green {
  color: #1f7a45;
  font-weight: 800;
}

.signup__title-red {
  color: #d62612;
  font-weight: 900;
  font-size: 1em;
  text-shadow: 0 0 18px rgba(214, 38, 18, 0.18);
}

@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: #44524a;
}

@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: #1f7a45;
}

@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: #1f7a45;
  pointer-events: none;
}

.signup__input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 10px;
  border: 1px solid rgba(31, 122, 69, 0.2);
  background: #eef1ee;
  color: #14241b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup__input::placeholder {
  color: #5d6f64;
  font-weight: 500;
}

.signup__input:focus {
  outline: none;
  border-color: rgba(31, 122, 69, 0.65);
  box-shadow: 0 0 0 3px rgba(31, 122, 69, 0.18);
}

.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, #2a8c52 0%, #1f7a45 50%, #155e34 100%);
  box-shadow:
    0 8px 22px rgba(21, 94, 52, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);
  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: #5d6f64;
  text-align: center;
}

.signup__privacy-icon {
  display: flex;
  color: #1f7a45;
}
