/* Основной контейнер формы */
.footer__form {
  position: relative;
  width: 100%;
}

.footer__form-bg {
  background-image: url(/upload/footer__form-bg.png);
  background-size: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.footer__form-man {
  position: absolute;
  right: 0;
  bottom: 0;
  object-fit: contain;
  height: 100%;
  z-index: 2;
}

.footer__form-content {
  display: flex;
  flex-direction: column;
  z-index: 3;
  padding: 40px;
  max-width: 760px;
  width: 100%;
  height: 100%;
  position: relative;
}

.footer__form-title {
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  font-family: Manrope;
  margin: 0 0 10px 0;
  line-height: 100%;
}

.footer__form-text {
  color: #FFFFFFB2;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  margin: 0 0 30px 0;
}

/* Форма */
.footer__form-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-bottom: 20px;
}

.footer__form-row {
  display: flex;
  gap: 10px;
}

.footer__form-input-box {
  max-width: calc(50% - 5px);
  width: 100%;
  height: 49px;
  position: relative;
}

.footer__form-row input {
  max-width: 100%;
  width: 100%;
  height: 100%;
  outline: none;
  border: 2px solid transparent;
  position: relative;
  border-radius: 8px;
  background: #FFFFFF66;
  padding: 14px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  transition: all .4s;
}

.footer__form-input-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(140.25deg, #FFFFFF 13.18%, rgba(255, 255, 255, 0) 28.73%, rgba(255, 255, 255, 0) 75.37%, #FFFFFF 90.92%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.footer__form-row input:focus {
  border: 2px solid #fff;
}

/* Незаполненное обязательное поле при попытке отправки */
.footer__form-input-box.is-invalid input {
  border-color: #FF5A5A;
}

.footer__form-row input::placeholder {
  color: #FFFFFFB2;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
}

/* Кастомный селект */
.footer__form-input-box--select {
  max-width: calc(50% - 5px);
}

.footer__form-select {
  position: relative;
  width: 100%;
  height: 100%;
}

.footer__form-select-trigger {
  width: 100%;
  height: 100%;
  background: #FFFFFF66;
  border-radius: 8px;
  padding: 14px 20px 14px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all .4s;
  border: 2px solid transparent;
  gap: 10px;
}

.footer__form-select-trigger::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  margin: auto;
  background-image: url(/upload/form_loc.png);
  background-size: contain;
  width: 16px;
  height: 16px;
}

.footer__form-input-box--select::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(140.25deg, #FFFFFF 13.18%, rgba(255, 255, 255, 0) 28.73%, rgba(255, 255, 255, 0) 75.37%, #FFFFFF 90.92%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.footer__form-select-trigger:hover {
  background: #FFFFFF80;
}

.footer__form-select-trigger.is-active {
  border: 2px solid #fff;
  border-radius: 8px 8px 0 0;
}

.footer__form-select-placeholder {
  color: #FFFFFFB2;
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__form-select-placeholder.is-selected {
  color: #fff;
}

.footer__form-select-arrow {
  flex-shrink: 0;
  transition: transform .3s ease;
}

.footer__form-select-arrow.is-open {
  transform: rotate(180deg);
}

/* Выпадающий список */
.footer__form-select-dropdown {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #fff;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 10;
}

.footer__form-select-dropdown.is-open {
  max-height: 245px;
  opacity: 1;
  visibility: visible;
}

.footer__form-select-options {
  max-height: 245px;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #064A69 #F5F7FB;
}

/* Кастомный скроллбар для WebKit (Chrome, Safari, Edge) */
.footer__form-select-options::-webkit-scrollbar {
  width: 6px;
}

.footer__form-select-options::-webkit-scrollbar-track {
  background: #F5F7FB;
  border-radius: 8px;
}

.footer__form-select-options::-webkit-scrollbar-thumb {
  background: #064A69;
  border-radius: 8px;
}

.footer__form-select-options::-webkit-scrollbar-thumb:hover {
  background: #053a52;
}

.footer__form-select-option {
  padding: 8px 14px;
  color: #2B2B2B;
  font-size: 18px;
  font-weight: 500;
  line-height: 100%;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .4s;
}

.footer__form-select-option:hover,
.footer__form-select-option.is-selected {
  background: #F5F7FB;
  color: #064A69;
  border-radius: 8px;
}

.footer__form-row--agree {
  margin-top: 10px;
  align-items: center;
}

.footer__form-row--agree div,
.footer__form-row--agree label,
.footer__form-row--agree button {
  max-width: calc(50% - 5px);
}

/* Кастомный чекбокс согласия */
.footer__form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.footer__form-agreement input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.footer__form-agreement-box {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid #F5F7FB;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .2s, border-color .2s;
}

.footer__form-agreement-check {
  opacity: 0;
  transition: opacity .15s;
}

.footer__form-agreement input:checked+.footer__form-agreement-box {
  background: #77B94C;
  border-color: #77B94C;
}

.footer__form-agreement input:checked+.footer__form-agreement-box .footer__form-agreement-check {
  opacity: 1;
}

/* Подсветка, если попытались отправить без галочки */
.footer__form-agreement.is-invalid .footer__form-agreement-box {
  border-color: #FF5A5A;
}

.footer__form-agreement-text {
  color: #FFFFFFB2;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
}

.footer__form-agreement-text a {
  color: #FFFFFFB2;
  text-decoration: underline;
  transition: color .3s ease;
}

.footer__form-agreement-text a:hover {
  color: #fff;
}

/* Кнопка отправки */
.footer__form-submit {
  width: 100%;
  height: 49px;
  background: #77B94C;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s ease;
  padding: 14px 20px;
}

.footer__form-submit:hover {
  background: #053a52;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 74, 105, 0.4);
}

.footer__form-submit:active {
  transform: translateY(0);
}

/* Маска телефона (класс, не id - таких форм на странице может быть несколько) */
.footer__form-phone-input {
  letter-spacing: 0.5px;
}

/* Подсветка невыбранного города при попытке отправки */
.footer__form-select.is-invalid .footer__form-select-trigger {
  border-color: #FF5A5A;
}

/* honeypot - скрыт от людей, но остаётся в разметке для ботов */
.footer__form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Плашка "для розничной покупки" */
.footer__form-retail {
  max-width: 100%;
  width: 100%;
  border-radius: 8px;
  background: #FFFFFF33;
  padding: 8px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer__form-retail-icon {
  object-fit: contain;
  width: 40px;
  height: 40px;
}

.footer__form-retail-text-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__form-retail-text-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 100%;
  font-family: 'Manrope';
}

.footer__form-retail-text-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: #FFFFFFB2;
  line-height: 130%;
}

.footer__form-retail-btn {
  flex: 0 0 auto;
  border-radius: 8px;
  background: #179BD7;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 22px;
  transition: background .3s;
}

.footer__form-retail-btn:hover {
  color: #fff;
  background: #064A69;
}

/* Адаптивность */
@media screen and (max-width: 1280px) {
  .footer__form-man {
    max-width: 380px;
    height: auto;
  }
}

@media screen and (max-width: 1024px) {
  .footer__form-man {
    display: none;
  }

  .footer__form-content {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .footer__form-retail {
    flex-wrap: wrap;
  }

  .footer__form-retail-btn {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }

  .footer__form-row--agree label,
  .footer__form-row--agree button {
    max-width: 100%;
  }

  .footer__form-retail-icon {
    max-width: 40px;
  }

  .footer__form-retail-text-box {
    max-width: 85%;
  }

  .footer__form {
    min-height: auto;
  }

  .footer__form-content {
    padding: 25px;
    max-width: 100%;
  }

  .footer__form-title {
    font-size: 24px;
  }

  .footer__form-row {
    flex-direction: column;
  }

  .footer__form-input-box,
  .footer__form-input-box--select {
    max-width: 100%;
  }

  .footer__form-man {
    display: none;
  }

  .footer__form-bg {
    min-height: auto;
  }

}

@media screen and (max-width: 480px) {
  .footer__form-content {
    padding: 20px;
  }

  .footer__form-title {
    font-size: 20px;
  }

  .footer__form-text {
    font-size: 14px;
  }
}

@media screen and (max-width: 450px) {
  .footer__form-retail-text-title {
    font-size: 16px;
  }

  .footer__form-retail-text-subtitle {
    font-size: 14px;
  }

  .footer__form-retail {
    align-items: flex-start;
  }

  .footer__form-retail-text-box {
    max-width: 78%;
  }

  .footer__form-content {
    padding: 20px 10px;
  }
}

  .akula {
    width: 100%;
    height: 440px;
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    position: relative;
    background: url(/upload/akula__bg.png);
    gap: 40px;
    padding: 0 60px;
    justify-content: center;
  }

  .akula__img {
    position: absolute;
    right: 0;
    top: 0;
    object-fit: contain;
    z-index: 2;
  }

  .akula__text-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
    font-family: Manrope;
  }

  .akula__top {
    font-family: inherit;
    /* уточнить название шрифта */
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
  }

  .akula__mid {
    font-family: inherit;
    font-weight: 700;
    font-size: 70px;
    line-height: 1;
    text-transform: uppercase;
    color: #35AAE7;
    text-shadow: 0 0 6px rgba(92, 189, 233, 0.6), 0 0 14px rgba(92, 189, 233, 0.35);
    margin: 0;
  }

  .akula__bot {
    font-family: inherit;
    /* уточнить название шрифта */
    font-weight: 500;
    font-size: 20px;
    /* высота букв в SVG ~17.5px → капхайт/0.72 */
    line-height: 1.3;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow:
      0 0 6px #5CBDE9,
      0 0 12px #5CBDE9;
    margin: 0;
  }

  .akula__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 249px;
    height: 56px;
    border-radius: 8px;
    z-index: 3;
  }

  .akula__btn span {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
  }

  .akula__btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  @media screen and (max-width: 900px) {
    .akula {
      padding: 0 20px;
    }

    .akula__mid {
      font-size: 50px;
    }

    .akula__bot {
      font-size: 18px;
    }
  }

  @media screen and (max-width: 700px) {
    .akula {
      padding: 40px 10px;
      justify-content: flex-start;
      background-size: cover;
      height: 525px;
      gap: 20px;
      max-width: 100%;
    }

    .akula__img {
      top: auto;
      bottom: 0;
    }

    .akula__top {
      font-size: 20px;
    }

    .akula__mid {
      font-size: 40px;
    }

    .akula__bot {
      font-size: 14px;
    }
  }

  @media screen and (max-width: 550px) {
    .akula__mid {
      font-size: 42px;
    }

    .akula__text-box {
      gap: 10px;
    }

    .akula__bot {
      font-size: 12px;
      font-weight: 400;
    }

    .akula {
      height: 420px;
    }

    .akula__btn {
      width: 100%;
    }
  }

  @media screen and (max-width: 450px) {
    .akula__mid {
      font-size: 36px;
    }
  }

  @media screen and (max-width: 400px) {
    .akula__mid {
      font-size: 34px;
    }
  }