/* ==========================================================================
   Section: Hero
   Figma node: 604:3756 (desktop), 604:299 (mobile)
   Desktop: 1600x740 from y=128
   Mobile: 360x871 from y=100
   ========================================================================== */

.section-hero {
  position: relative;
  background-color: var(--color-bg);
}

/* ---- Background & Photo ---- */

.section-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-hero__photo {
  position: absolute;
  top: -26px;
  right: 0;
  width: 772px;
  height: 825px;
}

.section-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.section-hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 182px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

/* ---- Container & Content ---- */

.section-hero__container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 40px;
}

.section-hero__content {
  max-width: 790px;
}

/* ---- Title ---- */

.section-hero__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: var(--fw-h2);
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 60px; /* 246 - (80 + 106) */
}

/* ---- Form Block ---- */

.section-hero__form-block {
  max-width: 750px;
}

.section-hero__form-heading {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  font-weight: var(--fw-h4);
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* ---- Tabs ---- */

.section-hero__form-tabs {
  display: grid;
  grid-template-columns: 493px 1fr;
  gap: var(--gap-md);
  margin-bottom: 12px;
}

.section-hero__tab {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-sm);
  color: var(--color-primary);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.section-hero__tab--active {
  opacity: 1;
}

.section-hero__tab:hover {
  opacity: 1;
}

/* ---- Forms Container ---- */

.section-hero__forms {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

/* ---- Site Form ---- */

.section-hero__form-site {
  position: relative;
  width: 493px;
  min-height: 284px;
  overflow: hidden;
}

.section-hero__form-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.section-hero__form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
}

.section-hero__inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-hero__field {
  border-bottom: 1px solid rgba(224, 231, 235, 0.4);
}

.section-hero__input {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding-block: 12px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
}

.section-hero__input::placeholder {
  color: var(--color-white);
  opacity: 1;
}

.section-hero__select {
  appearance: none;
  cursor: pointer;
}

.section-hero__field--select {
  position: relative;
}

.section-hero__field--select::after {
  content: '\2193';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: var(--fs-body);
  pointer-events: none;
}

.section-hero__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding-inline: 24px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-body-bold);
  line-height: var(--lh-body);
  border: none;
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.section-hero__submit:hover {
  opacity: 0.9;
}

.section-hero__submit-mobile {
  display: none;
}

/* ---- Telegram Block (desktop) ---- */

.section-hero__form-tg {
  position: relative;
  width: 237px;
  min-height: 284px;
  overflow: hidden;
}

.section-hero__tg-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.section-hero__tg-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 46.5px;
}

.section-hero__qr {
  width: 144px;
  height: 144px;
  background-color: var(--color-white);
  padding: 8px;
}

.section-hero__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-hero__tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 40px;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-body-bold);
  line-height: var(--lh-body);
  transition: opacity var(--duration-fast) var(--ease-default);
}

.section-hero__tg-btn:hover {
  opacity: 0.9;
}

/* ---- Telegram Mobile Button ---- */

.section-hero__tg-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid var(--color-white);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-body-bold);
  line-height: var(--lh-sm);
  transition: opacity var(--duration-fast) var(--ease-default);
}

.section-hero__tg-mobile:hover {
  opacity: 0.8;
}

/* ---- Consent ---- */

.section-hero__consent {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
}

.section-hero__checkbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.section-hero__checkbox input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.section-hero__checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-primary);
  border-radius: 3px;
  transition: background-color var(--duration-fast) var(--ease-default);
}

.section-hero__checkbox input:checked + .section-hero__checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.section-hero__checkbox input:checked + .section-hero__checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.section-hero__consent-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-sm);
  font-style: italic;
  color: var(--color-primary);
}

.section-hero__consent-text a {
  font-weight: var(--fw-body-bold);
  font-style: italic;
  text-decoration: underline;
  text-decoration-style: wavy;
}

/* ---- Scroll Arrow ---- */

.section-hero__scroll {
  position: absolute;
  right: var(--container-padding);
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  transition: color var(--duration-fast) var(--ease-default);
}

.section-hero__scroll:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1199px) {
  .section-hero__photo {
    top: 0;
    right: -60px;
    width: 420px;
    height: 460px;
    opacity: 0.3;
  }

  .section-hero__content {
    max-width: 100%;
  }

  .section-hero__title {
    margin-bottom: 40px;
  }

  .section-hero__form-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .section-hero__form-site {
    width: 100%;
  }

  .section-hero__form-tg {
    display: none;
  }

  .section-hero__scroll {
    display: none;
  }
}

/* ==========================================================================
   Mobile — 360px
   Figma node: 604:299
   ========================================================================== */

@media (max-width: 767px) {
  .section-hero__bg {
    height: 380px;
  }

  .section-hero__photo {
    top: 20px;
    right: -40px;
    width: 320px;
    height: 350px;
    opacity: 1;
  }

  .section-hero__gradient {
    height: 100px;
  }

  .section-hero__container {
    padding-top: var(--gap-lg);
    padding-bottom: 0;
  }

  .section-hero__content {
    max-width: 100%;
  }

  .section-hero__title {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    letter-spacing: var(--ls-h3);
    margin-bottom: 160px;
  }

  .section-hero__form-block {
    max-width: 100%;
  }

  /* Heading moves inside the blue form block */
  .section-hero__form-heading {
    font-size: 18px;
    letter-spacing: -0.36px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 24px;
    margin-bottom: 0;
  }

  .section-hero__form-tabs {
    display: none;
  }

  .section-hero__forms {
    flex-direction: column;
    gap: 0;
  }

  .section-hero__form-site {
    width: 100%;
  }

  .section-hero__form-bg {
    display: none;
  }

  .section-hero__form {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 0 24px 24px;
    gap: 20px;
  }

  .section-hero__input {
    font-size: var(--fs-sm);
  }

  .section-hero__input::placeholder {
    font-size: var(--fs-sm);
  }

  .section-hero__submit {
    font-size: var(--fs-sm);
  }

  .section-hero__submit-desktop {
    display: none;
  }

  .section-hero__submit-mobile {
    display: inline;
  }

  .section-hero__form-tg {
    display: none;
  }

  .section-hero__tg-mobile {
    display: flex;
  }

  .section-hero__consent {
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .section-hero__scroll {
    display: none;
  }
}
