/* Стабильная раскладка до и после инициализации скриптов шаблона. */
.rd-navbar-wrap {
  min-height: 56px;
}

.site-brand-name {
  display: inline-block;
  max-width: 330px;
  color: #2b2e35;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
}

.page-foot .site-brand-name {
  color: #fff;
  font-size: 21px;
}

.footer-legal-links {
  margin-top: 8px;
  font-size: 13px;
}

.footer-legal-links,
.footer-legal-links a {
  color: #fff;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus {
  color: #c9554d;
}

/* Форма подгружается через AJAX: резервируем её место заранее. */
[data-uf-inline] {
  min-height: 245px;
}

/* Новые фотографии имеют пропорции, отличные от старых макетов. */
.site-photo {
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
}

.site-photo--hero {
  width: 472px;
  height: 620px;
  object-fit: contain;
  object-position: center bottom;
}

.site-photo-frame--hero {
  width: 472px;
  height: 620px;
  max-width: 100%;
  overflow: hidden;
  background: #f1f2f7;
}

.site-photo--about {
  width: 342px;
  height: 338px;
  object-position: center 28%;
}

.site-photo--quote {
  width: 400px;
  height: 250px;
  object-position: center 32%;
}

.site-photo--benefits {
  width: 570px;
  height: 478px;
  object-position: 72% center;
}

.site-photo--faq {
  width: 569px;
  height: 472px;
  object-fit: contain;
  background: #f1f2f7;
}

.site-photo--article {
  width: 472px;
  height: 500px;
  object-position: center 25%;
}

.site-photo--mirrored {
  transform: scaleX(-1);
}

/* Единственный эксперт: симметричная композиция и портрет без увеличения лица. */
.site-expert-row {
  text-align: center;
}

.site-expert-row .thumbnail-variant-2-wrap,
.site-expert-row .block-wrap-1 {
  margin-right: auto;
  margin-left: auto;
}

.site-expert-photo-frame {
  height: 410px;
  overflow: hidden;
  background: #f1f2f7;
}

.site-expert-row .thumbnail-variant-2 {
  width: 100%;
  height: 410px;
  min-height: 410px;
  margin-right: 0;
  margin-left: 0;
}

.site-expert-row .thumbnail-variant-2 .site-expert-photo {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.site-expert-row .block-wrap-1 p {
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 992px) {
  .rd-navbar-wrap {
    min-height: 130px;
  }

  .rd-navbar-default.rd-navbar-static .rd-navbar-group {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .box-cart {
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .site-brand-name {
    max-width: 235px;
    font-size: 14px;
  }

  .rd-navbar-default.rd-navbar-static .rd-navbar-nav {
    margin-right: 20px;
  }
}

@media (max-width: 991px) {
  .rd-navbar-fixed .site-brand-name {
    max-width: calc(100vw - 125px);
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 575px) {
  [data-uf-inline] {
    min-height: 390px;
  }

  .page-foot .site-brand-name {
    font-size: 18px;
  }

  .site-expert-row .thumbnail-variant-2,
  .site-expert-photo-frame {
    height: 320px;
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-navbar-wrap,
  .rd-navbar,
  .owl-height {
    transition: none !important;
  }
}
