/* 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;
}

html {
  /* Anchor movement is animated in app.js with a fixed duration so it does
     not vary between browser engines and input devices. */
  scroll-behavior: auto;
  scroll-padding-top: 18px;
}

/* Reveal page sections gently as they enter the viewport. */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 900ms ease-out, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .scroll-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 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 {
  width: min(100% - 32px, 1260px);
  margin: 0 auto;
  border-top: 1px solid #b6b6b63a;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 16px 12px 0;
  color: #b6b6b6;
  font-size: 13px;
  line-height: 1.4;
}

/* Compact, predictable footer layout across desktop, tablet and mobile. */
.footer {
  padding-bottom: 28px;
}

.footer__top {
  padding: 38px 0 24px;
  border-bottom: 0;
}

.footer__top > .container {
  width: min(100% - 32px, 1260px);
  padding-inline: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(240px, 300px);
  align-items: start;
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 24px;
}

.footer__logo-wrapper {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.footer__logo {
  display: block;
  max-width: 190px;
}

.footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-rating-badges,
.footer-badges-grid {
  width: 100%;
}

.footer__sogl {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  line-height: 1.5;
}

.footer__sogl p:first-child,
.footer__sogl p:last-child {
  display: block;
  margin: 0;
}

.footer__sogl p + p {
  margin-top: 12px;
}

.footer__links {
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: flex-end;
}

.footer__links-phone {
  font-size: clamp(20px, 2.1vw, 29px);
}

.footer__links-info {
  margin-bottom: 0;
}

.footer__inform {
  max-width: 960px;
  margin: 26px auto 0;
  padding: 12px 20px;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    column-gap: 32px;
  }

  .footer__links {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 16px 28px;
    text-align: center;
  }

  .footer__links-phone,
  .footer__links-info {
    margin: 0;
  }
}

/* Desktop: use the free horizontal space so the footer does not grow downward. */
@media (min-width: 1101px) {
  .footer__top > .container {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .footer__inner {
    grid-column: 1 / -1;
  }

  .footer__inform {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    margin: 24px 0 0;
  }

  .footer__requisites {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 14px 0 18px;
    text-align: center;
    font-size: 12px;
  }
}

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

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

  .footer__top > .container {
    width: min(100% - 24px, 380px);
  }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer__logo-wrapper {
    align-items: center;
    margin: 0;
  }

  .footer__logo {
    max-width: 165px;
  }

  .footer__logo-text {
    margin-top: 8px;
    font-size: 12px;
  }

  .footer__sogl {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
  }

  .footer__sogl p + p {
    margin-top: 9px;
  }

  .footer__links {
    grid-column: auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .footer__links-phone {
    font-size: clamp(21px, 7vw, 27px);
  }

  .footer__links-info {
    font-size: 14px;
  }

  .footer__requisites {
    flex-direction: column;
    gap: 3px;
    align-items: center;
    text-align: center;
    padding-top: 12px;
    font-size: 11px;
  }

  .footer__inform {
    margin-top: 18px;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.4;
  }
}

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.webp");
  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;
}

/* Review cards match the reference site: a poster in the grid and the real
   portrait video in a dark, centered viewer after a click. */
.review-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  text-align: left;
}

.review-video-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.review-video-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 58px;
  height: 42px;
  border-radius: 12px;
  background: rgba(33, 33, 33, .82);
  transform: translate(-50%, -50%);
  opacity: .04;
  transition: opacity .2s ease, background-color .2s ease;
}

.review-video-trigger::after {
  content: "";
  position: absolute;
  left: calc(50% + 2px);
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translate(-50%, -50%);
  opacity: .04;
  transition: opacity .2s ease;
}

.review-video-trigger:hover::before,
.review-video-trigger:focus-visible::before,
.review-video-trigger:hover::after,
.review-video-trigger:focus-visible::after {
  opacity: 1;
}

.review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 12, 12, .92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
}

.review-video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.review-video-modal__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(86vw, 560px);
  max-width: 100%;
  max-height: 100%;
}

.review-video-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  background: #111;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
  object-fit: contain;
}

.review-video-modal__close {
  position: absolute;
  top: -44px;
  right: -44px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font: 300 28px/1 Arial, sans-serif;
}

.review-video-modal__close:hover,
.review-video-modal__close:focus-visible {
  background: rgba(255, 255, 255, .25);
}

@media (hover: none) {
  .review-video-trigger::before,
  .review-video-trigger::after {
    opacity: .62;
  }
}

@media (max-width: 600px) {
  .review-video-modal {
    padding: 14px;
  }

  .review-video-modal__dialog {
    width: 100%;
  }

  .review-video-modal__video {
    max-height: calc(100vh - 28px);
  }

  .review-video-modal__close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, .55);
  }
}

/* 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;
}

/* Keep the about card contained at tablet and intermediate desktop widths.
   The original grid allowed an auto-sized child and the long heading to
   dictate the row width, which pushed the information column off-screen. */
.about-new,
.about-new > .container,
.about-new__content,
.about-new__content > .container,
.about-new__header,
.about-new__grid,
.about-new__photo,
.about-new__info {
  min-width: 0;
  max-width: 100%;
}

.about-new {
  overflow-x: hidden;
  overflow-x: clip;
}

.about-new__header-title {
  right: 15px;
  max-width: calc(100% - 160px);
  min-width: 0;
  overflow-wrap: break-word;
  z-index: 2;
}

.about-new__grid {
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
}

.about-new__grid > * {
  min-width: 0;
}

.about-new__photo {
  width: 100%;
  min-height: 0;
  height: clamp(320px, 30vw, 440px);
  max-height: none;
}

.about-new__photo-img {
  min-width: 0;
  min-height: 0;
}

.about-new__photo-caption {
  box-sizing: border-box;
  max-width: calc(100% - 32px);
  overflow-wrap: break-word;
}

.about-new__photo-caption-name,
.about-new__photo-caption-text,
.about-new__quote-text,
.about-new__info-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.about-new__quote,
.about-new__quote-text,
.about-new__info-text {
  min-width: 0;
}

@media (max-width: 1024px) {
  .about-new__header-title {
    right: 15px;
    max-width: calc(100% - 55px);
  }

  .about-new__grid {
    grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }

  .about-new__photo {
    height: clamp(300px, 38vw, 400px);
  }
}

/* Give the absolute heading enough room at laptop/tablet widths. The base
   stylesheet used a negative bottom offset, so the following photo could
   paint over the top of the heading on high-DPI windows. */
@media (max-width: 1150px) and (min-width: 961px) {
  .about-new__header {
    padding-bottom: clamp(56px, 7vw, 82px);
    position: relative;
    z-index: 2;
  }

  .about-new__header-title {
    bottom: 0;
  }

  .about-new__content {
    position: relative;
    z-index: 1;
  }
}

/* At tablet widths the two-column version becomes too narrow for the
   portrait caption and long quotation. Stack the columns before that point
   so neither side can cover or push the other off-screen. */
@media (max-width: 960px) {
  .about-new__header {
    padding-bottom: 24px;
  }

  .about-new__header-title {
    position: static;
    max-width: 100%;
    margin-top: -8px;
  }

  .about-new__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .about-new__photo {
    width: min(100%, 720px);
    height: clamp(300px, 44vw, 420px);
    margin-inline: auto;
  }

  .about-new__info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .about-new__header-title {
    max-width: 100%;
  }

  .about-new__photo {
    width: min(100%, 520px);
    height: auto;
    overflow: visible;
    margin-inline: auto;
  }

  /* Keep the caption below the image on phones; an absolute caption can
     cover the portrait when the available width is only a few hundred px. */
  .about-new__photo-img {
    width: 100%;
    height: clamp(240px, 58vw, 380px);
    border-radius: 8px 8px 0 0;
    object-fit: cover;
  }

  .about-new__photo-caption {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0 0 8px 8px;
  }
}

@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;
  }
}
