/* Local application behavior and offline fallbacks. */
a[data-disabled-link] {
  cursor: default;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1769aa !important;
  outline-offset: 3px;
}

input::placeholder,
textarea::placeholder {
  color: #595959 !important;
  opacity: 1;
}

.form-row__city .city-dropdown,
.calc-new__forma label input,
select {
  color: #231f20 !important;
}

.lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Removed footer sections that no longer have useful local destinations. */
.footer__obsolete-nav,
.footer__links-email,
.footer__social {
  display: none !important;
}

/* Keep the legal notice as a readable horizontal row in the footer. */
.footer__inner {
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__sogl {
  display: flex;
  flex: 1 1 560px;
  gap: 28px;
  max-width: none !important;
  margin-right: 40px;
  line-height: 1.45;
}

.footer__sogl p:first-child {
  flex: 2 1 0;
}

.footer__sogl p:last-child {
  flex: 1 1 0;
  margin-top: 0 !important;
}

.footer__requisites {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 16px 12px 0;
  color: #b6b6b6;
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .footer__sogl {
    width: 100%;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 576px) {
  .footer__top {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .footer__inner {
    height: auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 14px;
  }

  .footer__sogl {
    display: block;
    flex: none !important;
    width: 100%;
    min-height: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer__sogl p + p {
    margin-top: 10px !important;
  }

  .footer__links {
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .footer__requisites {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
}

body.modal-open {
  overflow: hidden;
}

.yandex-map-section {
  padding: 64px 0;
  background: #fff;
}

.yandex-map-section__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.yandex-map-section__title {
  width: 100%;
  max-width: 868px;
  margin: 0 0 36px;
  text-align: left;
}

.yandex-map-section iframe {
  display: block;
  width: 100% !important;
  max-width: 868px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}

.yandex-map-embed {
  width: 100%;
  max-width: 868px;
  min-height: 588px;
}

@media (max-width: 768px) {
  .yandex-map-section {
    padding: 36px 0;
  }

  .yandex-map-section iframe {
    height: 420px !important;
    border-radius: 14px;
  }

  .yandex-map-embed {
    min-height: 420px;
  }

  .yandex-map-section__title {
    margin-bottom: 24px;
  }
}

.hero .hero__container {
  position: relative;
  min-height: 660px;
  height: auto;
  background-image: url("/assets/fcb/local/templates/generator/assets/images/direct/top-img5.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: auto 100%;
}

.hero .hero__container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff 0%, #fff 45%, rgba(255, 255, 255, .96) 50%, rgba(255, 255, 255, .08) 57%, transparent 62%);
  pointer-events: none;
}

.hero .hero__content {
  position: relative;
  z-index: 2;
  width: min(54%, 680px);
  max-width: 680px;
  padding: 8px 8px 8px 0;
}

.hero .hero__badge {
  margin-bottom: 28px;
}

.hero .hero__title {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 56px);
}

.hero .hero__list {
  max-width: 590px;
  margin-bottom: 28px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 650px;
  margin-top: 18px;
  color: #4f5650;
  font: 500 13px/1.35 Inter, Arial, sans-serif;
}

.hero__proof span {
  position: relative;
  padding-left: 17px;
}

.hero__proof span::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #42ae45;
  font-weight: 800;
}

.hero__proof strong {
  color: #231f20;
  font-weight: 700;
}

.lead-form--compact .form-row__email,
.lead-form--compact .form-row__city {
  display: none !important;
}

.reference-floating-contact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.reference-floating-contact.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 768px) {
  .hero .hero__btn {
    display: block;
    width: 100%;
  }
}

#about {
  scroll-margin-top: 20px;
}

.local-popup-host {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  background: rgba(12, 20, 13, .68);
}

.local-popup-host.is-open {
  display: flex !important;
}

.local-popup-host > .popup {
  display: block !important;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.local-popup-host #universal-popup {
  width: min(100%, 640px);
}

.local-popup-host #universal-popup select#form_dropdown_AMOUNT,
.local-popup-host #universal-popup select#form_dropdown_AMOUNT option {
  color: #231f20 !important;
  -webkit-text-fill-color: #231f20;
  opacity: 1;
}

.debts-off-section select[name="summ"],
.debts-off-section select[name="summ"] option {
  color: #231f20 !important;
  -webkit-text-fill-color: #231f20;
  opacity: 1;
}

.local-popup-host .popup__content {
  position: relative;
}

.local-popup-host .popup__close {
  cursor: pointer;
}

.modal.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal.is-open .modal__container {
  transform: none !important;
}

.lead-form-status {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font: 500 14px/1.35 Inter, Arial, sans-serif;
}

.lead-form-status.is-pending {
  background: #f3f5f3;
  color: #485048;
}

.lead-form-status.is-success {
  background: #eaf8eb;
  color: #24752a;
}

.lead-form-status.is-error {
  background: #fff0f0;
  color: #a52323;
}

button.is-loading,
input.is-loading {
  cursor: wait;
  opacity: .72;
}

.review-video-card {
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.review-video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

/* Keep the Yakubovich and Svetlana poster sharp and fully visible. */
.city-selector.is-open .city-selector__dropdown {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.city-selector__button--static,
.city-selector__button--static:hover {
  cursor: default;
  background: #f3f4f6;
}

.offline-office-map {
  position: relative;
  display: grid;
  min-height: 470px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 35%, rgba(66, 174, 69, .16) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 54%, rgba(66, 174, 69, .16) 0 7px, transparent 8px),
    radial-gradient(circle at 58% 31%, rgba(66, 174, 69, .16) 0 6px, transparent 7px),
    radial-gradient(circle at 76% 52%, rgba(66, 174, 69, .16) 0 5px, transparent 6px),
    linear-gradient(145deg, #f5faf4, #e8f3e6);
}

.offline-office-map::before,
.offline-office-map::after {
  content: "";
  position: absolute;
  width: 75%;
  height: 52%;
  border: 2px solid rgba(66, 174, 69, .15);
  border-radius: 44% 56% 51% 49% / 58% 38% 62% 42%;
  transform: rotate(-7deg);
}

.offline-office-map::after {
  width: 56%;
  height: 36%;
  transform: rotate(8deg);
}

.offline-office-map__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  width: min(520px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid rgba(66, 174, 69, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 50px rgba(33, 86, 35, .12);
  text-align: center;
}

.offline-office-map__content strong {
  color: #1d251e;
  font: 700 clamp(20px, 3vw, 30px)/1.2 Geologica, Arial, sans-serif;
}

.offline-office-map__content span {
  color: #5d685e;
  font: 400 15px/1.45 Inter, Arial, sans-serif;
}

@media (max-width: 600px) {

  .hero .hero__container {
    min-height: 760px;
    padding: 16px;
    background-position: center bottom;
    background-size: 100% auto;
  }

  .hero .hero__container::before {
    display: none;
  }

  .hero .hero__content {
    width: 100%;
    padding: 0;
  }

  .hero .hero__title {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.18;
  }

  .hero .hero__subtitle {
    font-size: 16px;
  }

  .hero .hero__list {
    margin-bottom: 16px;
    padding-left: 0 !important;
  }

  .hero .hero__item {
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero .hero__btn {
    display: block;
    width: 100%;
  }

  .hero__proof {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    font-size: 11px;
  }

  .local-popup-host {
    align-items: flex-start;
    padding: 12px;
  }

  .local-popup-host > .popup {
    max-height: calc(100vh - 24px);
  }

  .offline-office-map {
    min-height: 340px;
  }

  .lead-form-status {
    font-size: 13px;
  }
}
