/* mskfundament.com — дизайн в духе berucottage.ru (шапка + hero) */

/* Старый прелоадер: не блокируем экран на редизайне */
body.mf-redesign .preloader,
body.mf-redesign .js-preloader {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
body.mf-redesign.html-overflow-hidden,
html.html-overflow-hidden:has(body.mf-redesign) {
  overflow: auto !important;
}

:root {
  --bk-gray: #807f7f;
  --bk-black: #282827;
  --bk-white: #f3f3f3;
  --bk-orange: #ff552b;
  --container-pad: 40px;
  --max-w: 1441px;
  --mobile-header-h: 104px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Cookie */
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: transparent;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.cookie-modal[hidden] {
  display: none;
}
.cookie-modal__content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  border-radius: 12px 12px 0 0;
  background: #282827;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.12);
  max-width: 600px;
  margin: 0 16px 24px;
}
.cookie-modal__text {
  font-size: 15px;
  line-height: 1.5;
  font-family: "Montserrat", system-ui, sans-serif;
}
.cookie-modal__text a {
  color: #fff;
  text-decoration: underline;
}
.cookie-modal__btn {
  background: var(--bk-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 15px;
  cursor: pointer;
  font-family: "Montserrat", system-ui, sans-serif;
  white-space: nowrap;
}
.cookie-modal__btn:hover {
  background: #e04a22;
}

/* Buttons */
.btn-dark,
.btn-orange,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: "Montserrat", system-ui, sans-serif;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-dark {
  background: var(--bk-black);
  color: var(--bk-white);
  padding: 8px 12px;
  font-weight: 400;
  font-size: 16px;
}
.btn-dark:hover {
  background: #4a4a47;
  color: var(--bk-white);
}

.btn-orange {
  background: var(--bk-orange);
  color: #fff;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.btn-orange:hover {
  background: #ff7a57;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--bk-black);
  border: 2px solid var(--bk-black);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
}
.btn-outline:hover {
  background: rgba(40, 40, 39, 0.06);
  color: var(--bk-black);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: var(--bk-white);
  border-bottom: 1px solid #fff;
  height: 80px;
  padding: 23px var(--container-pad) 20px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  transition: background 180ms ease, box-shadow 180ms ease;
  font-family: "Montserrat", system-ui, sans-serif;
  box-sizing: border-box;
  overflow: visible;
}

.site-header *,
.site-header *::before,
.site-header *::after,
.mobile-nav *,
.mf-hero *,
.mf-hero *::before,
.mf-hero *::after {
  box-sizing: border-box;
}

.site-header a {
  color: var(--bk-black);
  text-decoration: none;
}

.site-header.is-stuck {
  background: rgb(243 243 243 / 92%);
  box-shadow: 0 1px 0 rgba(40, 40, 39, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.header-burger,
.btn-header-cta-mobile {
  display: none;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-logo img {
  height: 25px;
  width: 145px;
  object-fit: contain;
  object-position: left center;
  display: block;
  max-width: none;
}

.nav-main {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

.nav-main a {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

.nav-main a:hover {
  color: var(--bk-orange);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.32px;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle {
  color: var(--bk-orange);
}

.nav-dropdown__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 40;
  min-width: 280px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #e8e8e4;
  box-shadow: 0 16px 40px rgba(40, 40, 39, 0.12);
}

.nav-dropdown__menu[hidden] {
  display: none !important;
}

.nav-dropdown__link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--bk-black);
  white-space: normal;
  line-height: 1.35;
  text-decoration: none;
}

.nav-dropdown__link:hover {
  background: #f7f7f7;
  color: var(--bk-orange);
}

.nav-dropdown__link:first-child {
  font-weight: 600;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
  padding-bottom: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.social-row a:hover {
  background-color: rgba(74, 74, 71, 0.12);
  transform: translateY(-1px);
}

.social-row img {
  width: 24px;
  height: 24px;
  max-width: none;
  display: block;
}

.phone-num {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  font-family: "Montserrat", system-ui, sans-serif;
}
.mobile-nav[aria-hidden="false"] {
  display: block;
}
.mobile-nav__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(40, 40, 39, 0.45);
  cursor: pointer;
}
.mobile-nav__sheet {
  position: absolute;
  inset: 0;
  background: #fff;
  padding: 28px 24px 40px;
  overflow: auto;
}
.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-nav__close::before,
.mobile-nav__close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: var(--bk-black);
}
.mobile-nav__close::before {
  transform: rotate(45deg);
}
.mobile-nav__close::after {
  transform: rotate(-45deg);
}
.mobile-nav__body {
  padding-top: 40px;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav__links a {
  font-size: 22px;
  font-weight: 600;
  color: var(--bk-black);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.mobile-nav__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__group-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--bk-black);
  text-align: left;
  cursor: pointer;
}

.mobile-nav__group-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
}

.mobile-nav__group.is-open .mobile-nav__group-caret {
  transform: rotate(180deg);
}

.mobile-nav__group-list {
  display: grid;
  gap: 10px;
  padding: 4px 0 8px 12px;
}

.mobile-nav__group-list[hidden] {
  display: none !important;
}

.mobile-nav__group-list a {
  font-size: 16px;
  font-weight: 500;
  color: #5a5a57;
}

.mobile-nav__aside {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(40, 40, 39, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.mobile-nav__socials {
  display: flex;
  gap: 12px;
}
.mobile-nav__soc img {
  width: 24px;
  height: 24px;
  max-width: none;
}
.mobile-nav__phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--bk-black);
  text-decoration: none;
}
.mobile-nav__cta {
  width: 100%;
  max-width: 280px;
  padding: 12px 16px;
}

/* Hero */
.mf-hero {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fafafa;
  color: var(--bk-black);
  padding: 40px 0 56px;
}

.mf-hero__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: stretch;
}

.mf-hero__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bk-black);
}

.mf-hero__lead {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.45;
  color: #4a4a47;
  max-width: 36em;
}

.mf-hero__bullets {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-hero__bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.45;
  color: #3a3a38;
}

.mf-hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bk-orange);
  box-shadow: inset 0 0 0 3px #fff;
  outline: 2px solid var(--bk-orange);
}

.mf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mf-hero__aside {
  min-width: 0;
}

.mf-hero__card {
  position: relative;
  min-height: 552px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(40, 40, 39, 0.16);
}

.mf-hero__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-hero__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(40, 40, 39, 0.72) 0%,
    rgba(40, 40, 39, 0.45) 45%,
    rgba(40, 40, 39, 0.18) 100%
  );
}

.mf-hero__card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 552px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.mf-hero__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mf-hero__chip {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px;
  color: #fff;
}

.mf-hero__chip-title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.mf-hero__chip-text {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

.mf-hero__form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  color: #fff;
}

.mf-hero__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.mf-hero__form-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: #fff !important;
}

.mf-hero__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.mf-hero__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
}
.mf-hero__field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.mf-hero__field input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}

.mf-hero__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.mf-hero__agree input {
  margin-top: 3px;
  flex-shrink: 0;
}
.mf-hero__agree a {
  color: #fff;
  text-decoration: underline;
}

.mf-hero__submit {
  width: 100%;
  background: rgb(255 85 43 / 91%);
  color: #fff !important;
  padding: 12px 16px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.mf-hero__submit:hover {
  background: rgba(255, 122, 87, 0.78);
  color: #fff !important;
}

/* Desktop fixed header spacing */
@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-w);
    margin: 0;
    z-index: 1200;
  }

  .barba-container > .main-content,
  main.main-content {
    padding-top: 80px;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .header-actions .btn-dark {
    display: none;
  }
  .nav-main {
    gap: 10px;
  }
  .nav-main a {
    font-size: 14px;
  }
}

/* Advantages */
.mf-advantages {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-advantages__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-advantages__title {
  margin: 0 auto 16px;
  max-width: 18em;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-advantages__lead {
  margin: 0 auto 36px;
  max-width: 42em;
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-advantages__panel {
  background: #f7f7f7;
  padding: 28px 32px;
}

.mf-advantages__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mf-advantages__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a38;
}

.mf-advantages__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bk-orange);
  box-shadow: inset 0 0 0 3px #fff;
  outline: 2px solid var(--bk-orange);
}

.mf-advantages__list strong {
  color: var(--bk-black);
}

.mf-advantages__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Foundations */
.mf-foundations {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #f7f7f7;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-foundations__container,
.mf-consult__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-foundations__title {
  margin: 0 auto 16px;
  max-width: 20em;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-foundations__lead {
  margin: 0 auto 40px;
  max-width: 48em;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-foundations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mf-fcard {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mf-fcard:hover {
  box-shadow: 0 12px 28px rgba(40, 40, 39, 0.1);
  transform: translateY(-2px);
}

.mf-fcard__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8e8e8;
}

.mf-fcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-fcard__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.mf-fcard__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mf-fcard__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5a5a57;
  flex: 1;
}

.mf-fcard__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #6a6a67;
}

.mf-fcard__meta strong {
  color: var(--bk-black);
}

.mf-fcard__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.mf-fcard__btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

.mf-fcard__more {
  text-align: center;
  font-size: 13px;
  color: var(--bk-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mf-fcard__more:hover {
  color: var(--bk-orange);
}

/* Consult CTA under foundations */
.mf-consult {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
  color: var(--bk-black);
  padding: 0 0 72px;
}

.mf-consult__card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  background: #f7f7f7;
}

.mf-consult__form-col {
  padding: 32px;
}

.mf-consult__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-consult__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-consult__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}

.mf-consult__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  color: var(--bk-black);
}

.mf-consult__field input:focus {
  outline: 2px solid rgba(255, 85, 43, 0.35);
  outline-offset: 1px;
}

.mf-consult__agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: #4a4a47;
}

.mf-consult__agree input {
  margin-top: 3px;
  flex-shrink: 0;
}

.mf-consult__agree a {
  color: var(--bk-black);
  text-decoration: underline;
}

.mf-consult__submit {
  width: 100%;
  margin-top: 4px;
}

.mf-consult__aside {
  position: relative;
  isolation: isolate;
  background-color: #1a1a18;
  background-image: url("/img/fundament/lenta2.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.mf-consult__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.72) 0%, rgba(18, 18, 16, 0.88) 100%);
}

.mf-consult__aside > * {
  position: relative;
  z-index: 1;
}

.mf-consult__aside-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.mf-consult__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-consult__aside-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.mf-consult__aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bk-orange);
}

/* Projects */
.mf-projects {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #f7f7f7;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-projects__container,
.mf-reviews__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-projects__title,
.mf-reviews__title {
  margin: 0 auto 36px;
  max-width: 18em;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mf-pcard {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mf-pcard:hover {
  box-shadow: 0 12px 28px rgba(40, 40, 39, 0.1);
  transform: translateY(-2px);
}

.mf-pcard__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.mf-pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-pcard__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mf-pcard__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mf-pcard__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6a6a67;
  flex: 1;
}

.mf-pcard__btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

.mf-projects__footer {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Reviews */
.mf-reviews {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-reviews__lead {
  margin: -20px auto 28px;
  text-align: center;
  font-size: 16px;
  color: #4a4a47;
}

.mf-reviews__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mf-reviews__track::-webkit-scrollbar {
  height: 6px;
}

.mf-reviews__track::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 3px;
}

.mf-rcard {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: #f7f7f7;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mf-rcard:hover {
  box-shadow: 0 10px 24px rgba(40, 40, 39, 0.1);
  transform: translateY(-2px);
}

.mf-rcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mf-rcard__badge {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #fc3f1d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.mf-rcard__source {
  font-size: 14px;
  font-weight: 600;
}

.mf-rcard__stars {
  color: #f5a623;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.mf-rcard__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a38;
  flex: 1;
}

.mf-rcard__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--bk-orange);
}

.mf-reviews__cta {
  margin-top: 40px;
  text-align: center;
}

.mf-reviews__cta-title {
  margin: 0 auto 20px;
  max-width: 16em;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-reviews__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* About */
.mf-about {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #f7f7f7;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-about__container,
.mf-team__container,
.mf-partners__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-about__top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
}

.mf-about__title,
.mf-team__title,
.mf-partners__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-about__text p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a38;
}

.mf-about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mf-about__stat {
  background: #fff;
  padding: 16px 18px;
}

.mf-about__stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bk-orange);
  line-height: 1.1;
}

.mf-about__stat-label {
  margin-top: 4px;
  font-size: 14px;
  color: #6a6a67;
}

.mf-about__photo {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: #e8e8e8;
}

.mf-about__photo img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mf-about__photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(transparent, rgba(40, 40, 39, 0.85));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mf-about__photo-caption strong {
  font-size: 18px;
}

.mf-about__photo-caption span {
  font-size: 14px;
  opacity: 0.9;
}

.mf-about__subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-about__gallery {
  margin-bottom: 40px;
}

.mf-about__gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mf-about__figure {
  margin: 0;
  background: #fff;
  overflow: hidden;
}

.mf-about__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.mf-about__figure figcaption {
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  color: #4a4a47;
}

.mf-about__note {
  text-align: center;
  font-weight: 500;
  margin: 0 0 40px;
  color: #3a3a38;
}

.mf-about__certs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mf-about__cert {
  background: #fff;
  padding: 18px;
}

.mf-about__cert-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.mf-about__cert-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5a5a57;
}

/* Team */
.mf-team {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-team__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.mf-team__photo {
  overflow: hidden;
  background: #e8e8e8;
  max-width: 560px;
  width: 100%;
  justify-self: start;
}

.mf-team__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 400px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mf-team__content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a38;
}

.mf-team__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-team__list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.4;
}

.mf-team__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bk-orange);
  box-shadow: inset 0 0 0 3px #fff;
  outline: 2px solid var(--bk-orange);
}

.mf-team__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Partners / plants */
.mf-partners {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #f7f7f7;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-partners__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.mf-partners__lead {
  margin: -8px auto 32px;
  max-width: 40em;
  text-align: center;
  font-size: 16px;
  color: #4a4a47;
}

.mf-partners__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mf-plant {
  background: #fff;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.mf-plant:hover {
  box-shadow: 0 10px 24px rgba(40, 40, 39, 0.1);
  transform: translateY(-2px);
}

.mf-plant__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.mf-plant__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-plant__body {
  padding: 12px 14px 16px;
}

.mf-plant__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.mf-plant__addr {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6a6a67;
}

/* Gallery: рабочие моменты / техника */
.mf-gallery {
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
  color: var(--bk-black);
  padding: 72px 0 40px;
}

.mf-gallery__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-gallery__group {
  margin-bottom: 48px;
}

.mf-gallery__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mf-gallery__card {
  background: #f7f7f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mf-gallery__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4e4e4;
}

.mf-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-gallery__caption {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: #3a3a38;
}

.mf-gallery__note {
  margin: 0;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  color: #3a3a38;
}

/* Process */
.mf-process,
.mf-faq,
.mf-guarantees,
.mf-consultation,
.mf-geography {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--bk-black);
  padding: 72px 0;
}

.mf-process { background: #fff; }
.mf-faq { background: #f7f7f7; }
.mf-guarantees { background: #fff; }
.mf-consultation { background: #f7f7f7; }
.mf-geography { background: #fff; }

.mf-process__container,
.mf-faq__container,
.mf-guarantees__container,
.mf-consultation__container,
.mf-geography__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-process__title,
.mf-faq__title,
.mf-guarantees__title,
.mf-consultation__title,
.mf-geography__title {
  margin: 0 auto 16px;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-process__title { margin-bottom: 36px; }

.mf-faq__lead,
.mf-guarantees__lead,
.mf-geography__lead {
  margin: 0 auto 32px;
  max-width: 40em;
  text-align: center;
  font-size: 16px;
  color: #4a4a47;
}

.mf-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mf-step {
  background: #f7f7f7;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  border-top: 3px solid var(--bk-orange);
}

.mf-step__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--bk-orange);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

.mf-step__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mf-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a38;
  flex: 1;
}

.mf-step__note {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #6a6a67;
}

.mf-process__actions,
.mf-faq__cta-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* FAQ */
.mf-faq__list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-faq__item {
  background: #fff;
}

.mf-faq__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.mf-faq__q {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.mf-faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.mf-faq__icon::before,
.mf-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--bk-black);
  transition: transform 180ms ease, opacity 180ms ease;
}

.mf-faq__icon::before {
  left: 0;
  right: 0;
  top: 9px;
  height: 2px;
}

.mf-faq__icon::after {
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
}

.mf-faq__item.is-open .mf-faq__icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

.mf-faq__answer {
  display: none;
  padding: 0 20px 18px;
}

.mf-faq__item.is-open .mf-faq__answer {
  display: block;
}

.mf-faq__answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #4a4a47;
}

.mf-faq__cta {
  margin-top: 40px;
  text-align: center;
}

.mf-faq__cta-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.mf-faq__cta-text {
  margin: 0 auto 18px;
  max-width: 36em;
  font-size: 15px;
  color: #4a4a47;
}

/* Guarantees */
.mf-guarantees__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mf-gcard {
  background: #f7f7f7;
  padding: 22px 20px;
}

.mf-gcard__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mf-gcard__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a47;
}

/* Consultation */
.mf-consultation__card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #fff;
  overflow: hidden;
}

.mf-consultation__form-col,
.mf-consultation__info {
  padding: 32px;
}

.mf-consultation__title {
  text-align: left;
  margin: 0 0 12px;
}

.mf-consultation__lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-consultation__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.mf-consultation__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #6a6a67;
}

.mf-consultation__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--bk-black);
}

.mf-consultation__agree {
  color: #4a4a47;
}

.mf-consultation__submit {
  width: 100%;
}

.mf-consultation__info {
  position: relative;
  isolation: isolate;
  background-color: #1a1a18;
  background-image: url("/img/fundament/monolit3.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.mf-consultation__info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.74) 0%, rgba(18, 18, 16, 0.9) 100%);
}

.mf-consultation__info > * {
  position: relative;
  z-index: 1;
}

.mf-consultation__info-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.mf-consultation__info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mf-consultation__info-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.mf-consultation__info-list strong {
  font-size: 13px;
  opacity: 0.75;
  font-weight: 500;
}

.mf-consultation__info-list a {
  color: #fff;
  text-decoration: none;
}

.mf-consultation__info-list a:hover {
  color: var(--bk-orange);
}

.mf-consultation__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-consultation__msg {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.mf-consultation__msg:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

/* Geography */
.mf-geography__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mf-geography__tag {
  display: inline-flex;
  padding: 10px 14px;
  background: #f7f7f7;
  font-size: 14px;
  font-weight: 500;
}

/* Why us */
.mf-why,
.mf-costs,
.mf-docs {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--bk-black);
  padding: 72px 0;
}
.mf-why { background: #f7f7f7; }
.mf-costs { background: #fff; }
.mf-docs { background: #f7f7f7; }
.mf-land,
.mf-geologist,
.mf-offer {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--bk-black);
  padding: 0 0 72px;
  background: #fff;
}
.mf-geologist { background: #f7f7f7; padding: 72px 0; }
.mf-offer { background: #f7f7f7; padding: 72px 0; }
.mf-land { background: #fff; padding: 72px 0; }

.mf-why__container,
.mf-costs__container,
.mf-land__container,
.mf-geologist__container,
.mf-docs__container,
.mf-offer__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.mf-why__title,
.mf-costs__title,
.mf-docs__title {
  margin: 0 auto 32px;
  text-align: center;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-why__grid,
.mf-costs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mf-why__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mf-why__card,
.mf-costs__card {
  background: #fff;
  padding: 20px;
}

.mf-costs__card {
  background: #f7f7f7;
}

.mf-why__name,
.mf-costs__name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.mf-why__text,
.mf-costs__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-costs__actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Land CTA */
.mf-land__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #f7f7f7;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.mf-land__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-land__lead {
  margin: 0;
  font-size: 15px;
  color: #4a4a47;
  max-width: 36em;
}

.mf-land__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Geologist / Offer */
.mf-geologist__card,
.mf-offer__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #fff;
  overflow: hidden;
}

.mf-geologist__text,
.mf-offer__text,
.mf-geologist__form,
.mf-offer__form {
  padding: 32px;
}

.mf-geologist__title,
.mf-offer__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.mf-geologist__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #4a4a47;
}

.mf-geologist__list,
.mf-offer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-geologist__list li,
.mf-offer__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.4;
}

.mf-geologist__list li::before,
.mf-offer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bk-orange);
}

.mf-offer__note {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-orange);
}

.mf-geologist__form,
.mf-offer__form {
  position: relative;
  isolation: isolate;
  background-color: #1a1a18;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-geologist__form {
  background-image: url("/img/fundament/ushp1.jpg");
}

.mf-offer__form {
  background-image: url("/img/fundament/mono-rebra-vniz2.jpg");
}

.mf-geologist__form::before,
.mf-offer__form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.78) 0%, rgba(18, 18, 16, 0.92) 100%);
}

.mf-geologist__form > *,
.mf-offer__form > * {
  position: relative;
  z-index: 1;
}

.mf-geologist__form-title,
.mf-offer__form-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.mf-geologist__field input,
.mf-offer__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

.mf-geologist__field input::placeholder,
.mf-offer__field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mf-geologist__form .mf-consult__agree,
.mf-offer__form .mf-consult__agree {
  color: rgba(255, 255, 255, 0.9);
}

.mf-geologist__form .mf-consult__agree a,
.mf-offer__form .mf-consult__agree a {
  color: #fff;
}

/* Docs */
.mf-docs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mf-docs__card {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mf-docs__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.mf-docs__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-docs__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.mf-docs__btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

/* Footer Beru-style */
.site-footer {
  background: var(--bk-white);
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--bk-black);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 36px 24px;
  padding: 56px var(--container-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-weight: 400;
  font-size: 18px;
  color: var(--bk-gray);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.footer-col p {
  margin: 0;
  font-size: 15px;
}

.footer-col a {
  color: var(--bk-black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--bk-orange);
}

.footer-link-icon {
  display: inline-block;
  flex-shrink: 0;
  max-width: none;
}

.footer-phone {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.footer-phone a {
  color: inherit;
  text-decoration: none;
}

.footer-logo-band {
  position: relative;
  padding: 0 var(--container-pad) 6px;
  overflow: hidden;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-logo-band img {
  display: block;
  width: 100%;
  height: clamp(70px, 16vw, 220px);
  object-fit: cover;
  object-position: top center;
  clip-path: inset(0 0 29% 0);
}

.copyright {
  position: absolute;
  right: var(--container-pad);
  top: 0;
  font-size: 14px;
  color: var(--bk-black);
  z-index: 1;
  margin: 0;
}

/* Mobile */
@media (max-width: 1023px) {
  :root {
    --container-pad: 20px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 28px var(--container-pad) 16px;
    margin: 0;
    background: rgb(248 248 248);
    transform: none;
  }

  .barba-container > .main-content,
  main.main-content {
    padding-top: var(--mobile-header-h);
  }

  .site-header.is-stuck {
    background: rgba(243, 243, 243, 0.98);
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .header-burger {
    display: flex;
    grid-column: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .header-burger__line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--bk-black);
    border-radius: 1px;
  }

  .header-left {
    grid-column: 2;
    justify-self: center;
    gap: 0;
  }

  .header-left .nav-main {
    display: none;
  }

  .site-logo img {
    width: clamp(90px, 28vw, 145px);
    height: auto;
  }

  .header-actions {
    display: none;
  }

  .btn-header-cta-mobile {
    display: inline-flex;
    grid-column: 3;
    font-size: 13px;
    padding: 8px 10px;
  }

  body.nav-open .site-header {
    display: none !important;
  }

  .mf-hero {
    padding: 28px 0 40px;
  }

  .mf-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mf-hero__title {
    font-size: 28px;
  }

  .mf-hero__lead {
    font-size: 16px;
  }

  .mf-hero__actions {
    flex-direction: column;
  }

  .mf-hero__actions .btn-orange,
  .mf-hero__actions .btn-outline {
    width: 100%;
  }

  .mf-hero__card,
  .mf-hero__card-body {
    min-height: 0;
  }

  .mf-hero__chips {
    grid-template-columns: 1fr;
  }

  .mf-hero__form-row {
    grid-template-columns: 1fr;
  }

  .mf-advantages {
    padding: 48px 0;
  }

  .mf-advantages__title {
    font-size: 24px;
  }

  .mf-advantages__actions {
    flex-direction: column;
  }

  .mf-advantages__actions .btn-orange,
  .mf-advantages__actions .btn-outline {
    width: 100%;
  }

  .mf-foundations,
  .mf-consult {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .mf-foundations__grid {
    grid-template-columns: 1fr;
  }

  .mf-consult__card {
    grid-template-columns: 1fr;
  }

  .mf-consult__form-col,
  .mf-consult__aside {
    padding: 24px 20px;
  }

  .mf-consult__form {
    max-width: none;
  }

  .mf-projects,
  .mf-reviews {
    padding: 48px 0;
  }

  .mf-projects__grid {
    grid-template-columns: 1fr;
  }

  .mf-reviews__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-reviews__cta-actions .btn-orange,
  .mf-reviews__cta-actions .btn-outline {
    width: 100%;
  }

  .mf-about,
  .mf-team,
  .mf-partners {
    padding: 48px 0;
  }

  .mf-about__top,
  .mf-team__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mf-about__photo,
  .mf-about__photo img {
    min-height: 360px;
  }

  .mf-about__gallery-grid,
  .mf-about__certs {
    grid-template-columns: 1fr 1fr;
  }

  .mf-partners__grid {
    grid-template-columns: 1fr;
  }

  .mf-team__actions {
    flex-direction: column;
  }

  .mf-team__actions .btn-orange,
  .mf-team__actions .btn-outline {
    width: 100%;
  }

  .mf-process,
  .mf-faq,
  .mf-guarantees,
  .mf-consultation,
  .mf-geography,
  .mf-gallery,
  .mf-why,
  .mf-costs,
  .mf-docs,
  .mf-land,
  .mf-geologist,
  .mf-offer {
    padding: 48px 0;
  }

  .mf-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mf-why__grid,
  .mf-costs__grid,
  .mf-docs__grid,
  .mf-geologist__card,
  .mf-offer__card {
    grid-template-columns: 1fr;
  }

  .mf-land__card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }

  .mf-land__actions {
    flex-direction: column;
  }

  .mf-land__actions .btn-orange,
  .mf-land__actions .btn-outline {
    width: 100%;
  }

  .footer-grid {
    padding: 40px var(--container-pad);
    gap: 28px 16px;
  }

  .copyright {
    position: static;
    margin-bottom: 12px;
  }

  .mf-process__grid,
  .mf-guarantees__grid,
  .mf-consultation__card {
    grid-template-columns: 1fr;
  }

  .mf-consultation__form-col,
  .mf-consultation__info {
    padding: 24px 20px;
  }

  .mf-consultation__form {
    max-width: none;
  }

  .mf-process__actions,
  .mf-faq__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-process__actions .btn-orange,
  .mf-process__actions .btn-outline,
  .mf-faq__cta-actions .btn-orange,
  .mf-faq__cta-actions .btn-outline {
    width: 100%;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .mf-foundations__grid,
  .mf-projects__grid,
  .mf-partners__grid,
  .mf-gallery__grid,
  .mf-why__grid,
  .mf-costs__grid,
  .mf-process__grid,
  .mf-guarantees__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mf-docs__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) and (max-width: 1280px) {
  .mf-foundations__grid,
  .mf-projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mf-partners__grid,
  .mf-costs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mf-about__gallery-grid,
  .mf-about__certs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .cookie-modal__content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ========== Foundation type page ========== */
.mf-page__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

.mf-page__breadcrumbs {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  padding: 18px 0 0;
  color: #6a6a67;
}

.mf-page__breadcrumbs a {
  color: #6a6a67;
  text-decoration: none;
}

.mf-page__breadcrumbs a:hover {
  color: var(--bk-orange);
}

.mf-page__breadcrumbs span[aria-hidden="true"] {
  margin: 0 8px;
}

.mf-ftype__title {
  margin: 0 0 20px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bk-black);
}

.mf-ftype__title--center {
  text-align: center;
}

.mf-ftype-hero {
  font-family: "Montserrat", system-ui, sans-serif;
  padding: 28px 0 56px;
  color: var(--bk-black);
}

.mf-ftype-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.mf-ftype-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  color: #6a6a67;
}

.mf-ftype-hero__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-ftype-hero__lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a38;
}

.mf-ftype-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.mf-ftype-hero__meta > div {
  background: #f7f7f7;
  padding: 12px 14px;
}

.mf-ftype-hero__meta span {
  display: block;
  font-size: 12px;
  color: #6a6a67;
  margin-bottom: 4px;
}

.mf-ftype-hero__meta strong {
  font-size: 16px;
}

.mf-ftype-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-ftype-hero__media {
  overflow: hidden;
  background: #e8e8e8;
  min-height: 320px;
}

.mf-ftype-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.mf-ftype-about,
.mf-ftype-where,
.mf-ftype-stages,
.mf-ftype-faq {
  font-family: "Montserrat", system-ui, sans-serif;
  padding: 56px 0;
  color: var(--bk-black);
}

.mf-ftype-about { background: #fff; }
.mf-ftype-adv { background: #f7f7f7; padding: 56px 0; font-family: "Montserrat", system-ui, sans-serif; }
.mf-ftype-where { background: #fff; }
.mf-ftype-gallery { background: #f7f7f7; padding: 56px 0; font-family: "Montserrat", system-ui, sans-serif; }
.mf-ftype-stages { background: #fff; }
.mf-ftype-cta { background: #f7f7f7; padding: 56px 0; font-family: "Montserrat", system-ui, sans-serif; }
.mf-ftype-faq { background: #fff; }
.mf-ftype-others { background: #f7f7f7; padding: 56px 0 72px; font-family: "Montserrat", system-ui, sans-serif; }

.mf-ftype-about__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.mf-ftype-about__text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a38;
}

.mf-ftype-about__aside {
  position: relative;
  isolation: isolate;
  background-color: #1a1a18;
  background-image: url("/img/fundament/svai2.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 24px;
  min-height: 260px;
}

.mf-ftype-about__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.74) 0%, rgba(18, 18, 16, 0.9) 100%);
}

.mf-ftype-about__aside > * {
  position: relative;
  z-index: 1;
}

.mf-ftype-about__aside h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: #fff;
}

.mf-ftype-about__aside ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-ftype-about__aside li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.4;
}

.mf-ftype-about__aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bk-orange);
}

.mf-ftype-about__aside .btn-orange {
  width: 100%;
}

.mf-ftype-adv__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.mf-ftype-adv__list li {
  background: #fff;
  padding: 16px 18px 16px 40px;
  position: relative;
  font-size: 15px;
  line-height: 1.4;
}

.mf-ftype-adv__list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.1em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bk-orange);
}

.mf-ftype-where__text {
  margin: 0;
  max-width: 52em;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a38;
}

.mf-ftype-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mf-ftype-gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.mf-ftype-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mf-ftype-stages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.mf-ftype-stages__list li {
  background: #f7f7f7;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.mf-ftype-stages__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--bk-orange);
  letter-spacing: -0.04em;
}

.mf-ftype-cta__card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
  overflow: hidden;
}

.mf-ftype-cta__card > div,
.mf-ftype-cta__form {
  padding: 28px;
}

.mf-ftype-cta__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mf-ftype-cta__card > div p {
  margin: 0;
  font-size: 15px;
  color: #4a4a47;
  line-height: 1.5;
}

.mf-ftype-cta__form {
  background: var(--bk-black);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-ftype-cta__form input[type="text"],
.mf-ftype-cta__form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.mf-ftype-cta__form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.mf-ftype-cta__form .mf-consult__agree {
  color: rgba(255,255,255,0.9);
}

.mf-ftype-cta__form .mf-consult__agree a {
  color: #fff;
}

.mf-ftype-others__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mf-ftype-others__card {
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.mf-ftype-others__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40,40,39,0.1);
}

.mf-ftype-others__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.mf-ftype-others__card span,
.mf-ftype-others__card strong {
  padding: 0 14px;
}

.mf-ftype-others__card span {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.mf-ftype-others__card strong {
  margin: 6px 0 14px;
  font-size: 14px;
  color: var(--bk-orange);
}

.mf-ftype-faq .mf-faq__list {
  max-width: 900px;
}

@media (max-width: 1023px) {
  .mf-ftype-hero__grid,
  .mf-ftype-about__grid,
  .mf-ftype-cta__card {
    grid-template-columns: 1fr;
  }

  .mf-ftype-hero__meta,
  .mf-ftype-adv__list,
  .mf-ftype-gallery__grid,
  .mf-ftype-stages__list,
  .mf-ftype-others__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mf-ftype-hero,
  .mf-ftype-about,
  .mf-ftype-adv,
  .mf-ftype-where,
  .mf-ftype-gallery,
  .mf-ftype-stages,
  .mf-ftype-cta,
  .mf-ftype-faq,
  .mf-ftype-others {
    padding: 40px 0;
  }

  .mf-ftype-hero__actions {
    flex-direction: column;
  }

  .mf-ftype-hero__actions .btn-orange,
  .mf-ftype-hero__actions .btn-outline {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .mf-ftype-hero__meta,
  .mf-ftype-adv__list,
  .mf-ftype-gallery__grid,
  .mf-ftype-stages__list,
  .mf-ftype-others__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Inner pages (o-nas, portfolio, contact, proektirovanie) ========== */
.mf-inner-hero {
  padding: 28px 0 12px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-inner-hero__title {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bk-black);
}

.mf-inner-hero__lead {
  margin: 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.55;
  color: #5a5a57;
}

.mf-inner-block {
  padding: 48px 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
}

.mf-inner-block--alt {
  background: #f7f7f7;
}

.mf-inner-block p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: #3f3f3c;
}

.mf-inner-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.mf-inner-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: #3f3f3c;
}

.mf-inner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bk-orange);
}

.mf-inner-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.mf-inner-split--reverse .mf-inner-split__media {
  order: 2;
}

.mf-inner-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.mf-inner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mf-inner-cta {
  padding: 24px 0 64px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-inner-cta__card {
  position: relative;
  isolation: isolate;
  padding: 32px 28px;
  background-color: #1a1a18;
  background-image: url("/img/fundament/lenta1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.mf-inner-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.76) 0%, rgba(18, 18, 16, 0.9) 100%);
}

.mf-inner-cta__card > * {
  position: relative;
  z-index: 1;
}

.mf-inner-cta__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
}

.mf-inner-cta__text {
  margin: 0 0 18px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.mf-inner-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.mf-portfolio {
  padding: 24px 0 40px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mf-portfolio__item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  cursor: zoom-in;
}

.mf-portfolio__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mf-portfolio__item:hover img {
  transform: scale(1.04);
}

.mf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 19, 0.92);
  padding: 24px;
}

.mf-lightbox.active {
  display: flex;
}

.mf-lightbox .lightbox-img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.mf-lightbox .lightbox-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.mf-lightbox .lightbox-control.prev { left: 16px; }
.mf-lightbox .lightbox-control.next { right: 16px; }

body.mf-lightbox-open {
  overflow: hidden;
}

.mf-contact {
  padding: 24px 0 40px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.mf-contact__card {
  padding: 28px 24px;
  background: #f7f7f7;
}

.mf-contact__card-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--bk-black);
}

.mf-contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mf-contact__list li {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
}

.mf-contact__list strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a86;
}

.mf-contact__list span,
.mf-contact__list a {
  font-size: 15px;
  line-height: 1.45;
  color: var(--bk-black);
  text-decoration: none;
}

.mf-contact__list a:hover {
  color: var(--bk-orange);
}

.mf-contact__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.mf-contact__map {
  min-height: 420px;
  background: #eee;
  overflow: hidden;
}

.mf-contact-form-wrap {
  max-width: 720px;
}

.mf-contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mf-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mf-contact-form__field {
  display: grid;
  gap: 6px;
}

.mf-contact-form__field span {
  font-size: 13px;
  font-weight: 600;
  color: #5a5a57;
}

.mf-contact-form__field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8d8d4;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.mf-contact-regions {
  padding: 40px 0 64px;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #fff;
}

.mf-contact-regions__lead {
  margin: 0 0 22px;
  color: #5a5a57;
}

.mf-contact-regions__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.mf-contact-regions .col-md-6,
.mf-contact-regions .col-lg-6 {
  width: auto;
  max-width: none;
  padding: 0;
  float: none;
}

.mf-contact-regions .region {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.mf-contact-regions .region li {
  margin: 0;
  padding: 0;
}

.mf-contact-regions .region a {
  display: inline-block;
  padding: 3px 0;
  color: var(--bk-black);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.mf-contact-regions .region a:hover {
  color: var(--bk-orange);
}

.mf-form-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background: #eef8ef;
  color: #1f5a2a;
}

.mf-form-status.is-error {
  background: #fdeeee;
  color: #8a1f1f;
}

@media (max-width: 1023px) {
  .mf-inner-split,
  .mf-inner-split--reverse .mf-inner-split__media,
  .mf-contact__grid,
  .mf-contact-form__row,
  .mf-contact-regions__cols,
  .mf-portfolio__grid {
    grid-template-columns: 1fr;
  }

  .mf-inner-split--reverse .mf-inner-split__media {
    order: 0;
  }

  .mf-portfolio__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mf-inner-block,
  .mf-contact,
  .mf-contact-regions,
  .mf-portfolio {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .mf-inner-actions {
    flex-direction: column;
  }

  .mf-inner-actions .btn-orange,
  .mf-inner-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .mf-contact__map {
    min-height: 280px;
  }

  /* Mobile polish: header, FAQ, foundation cards */
  .site-header {
    padding: 14px var(--container-pad) 12px;
  }

  .btn-header-cta-mobile {
    white-space: nowrap;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mf-faq__toggle {
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    text-align: left;
  }

  .mf-faq__q {
    font-size: 15px;
    line-height: 1.4;
  }

  .mf-faq__icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .mf-faq__answer p {
    font-size: 14px;
  }

  .mf-foundations__card,
  .mf-ftype-others__card {
    min-width: 0;
  }

  .mf-foundations__card img,
  .mf-ftype-others__card img {
    width: 100%;
    height: auto;
  }

  .mf-foundations__card h3,
  .mf-foundations__card .mf-foundations__name {
    font-size: 17px;
  }

  .mf-lightbox .lightbox-control {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .mf-lightbox .lightbox-control.prev { left: 8px; }
  .mf-lightbox .lightbox-control.next { right: 8px; }
}

@media (max-width: 480px) {
  .mf-portfolio__grid {
    grid-template-columns: 1fr;
  }

  .mf-inner-hero__title {
    font-size: 26px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .btn-header-cta-mobile {
    font-size: 12px;
    padding: 8px 9px;
  }
}

/* ========== Foundation calculator + page extras ========== */
.mf-calc,
.mf-calc-steps,
.mf-ftype-promo,
.mf-ftype-timeline,
.mf-ftype-subtypes {
  padding: 56px 0;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-calc { background: #f7f7f7; }
.mf-calc-steps { background: #fff; }
.mf-ftype-promo { background: #fff; padding-top: 24px; padding-bottom: 24px; }
.mf-ftype-timeline { background: #f7f7f7; }
.mf-ftype-subtypes { background: #fff; }

.mf-calc__lead {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: #5a5a57;
}

.mf-calc__panel {
  background: #fff;
  border: 1px solid #e8e8e4;
  padding: 24px;
}

.mf-calc__switch-label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a86;
}

.mf-calc__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mf-calc__tab {
  appearance: none;
  border: 1px solid #d8d8d4;
  background: #fff;
  color: var(--bk-black);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mf-calc__tab:hover {
  border-color: var(--bk-orange);
}

.mf-calc__tab.is-active {
  background: var(--bk-orange);
  border-color: var(--bk-orange);
  color: #fff;
}

.mf-calc__table-wrap {
  display: none;
}

.mf-calc__table-wrap.is-active {
  display: block;
}

.mf-calc__rate {
  margin: 0 0 14px;
  font-size: 15px;
  color: #5a5a57;
}

.mf-calc__rate strong {
  color: var(--bk-black);
}

.mf-calc__table-scroll {
  overflow-x: auto;
}

.mf-calc__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.mf-calc__table th,
.mf-calc__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ecece8;
  font-size: 15px;
}

.mf-calc__table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a86;
  background: #fafaf8;
}

.mf-calc__table td strong {
  color: var(--bk-orange);
  font-weight: 700;
}

.mf-calc__note-inline {
  margin: 12px 0 18px;
  font-size: 13px;
  color: #8a8a86;
}

.mf-calc__cta {
  min-width: 200px;
}

.mf-calc__disclaimer {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5a5a57;
}

.mf-calc-steps__form {
  margin-top: 8px;
}

.mf-calc-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mf-calc-steps__step {
  margin: 0;
  padding: 22px 18px;
  border: 1px solid #e8e8e4;
  background: #fafaf8;
  display: grid;
  gap: 12px;
  align-content: start;
}

.mf-calc-steps__step legend {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bk-black);
}

.mf-calc-steps__field {
  display: grid;
  gap: 6px;
}

.mf-calc-steps__field span {
  font-size: 13px;
  font-weight: 600;
  color: #5a5a57;
}

.mf-calc-steps__field input,
.mf-calc-steps__field select,
.mf-calc-steps__field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #d8d8d4;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.mf-ftype-promo__card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 26px;
  background-color: #1a1a18;
  background-image: url("/img/fundament/mono-rebra2.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.mf-ftype-promo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(18, 18, 16, 0.76) 0%, rgba(18, 18, 16, 0.9) 100%);
}

.mf-ftype-promo__card > * {
  position: relative;
  z-index: 1;
}

.mf-ftype-promo__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-orange);
}

.mf-ftype-promo__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}

.mf-ftype-promo__text {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.mf-ftype-subtypes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mf-ftype-subtypes__card {
  padding: 22px 18px;
  background: #f7f7f7;
}

.mf-ftype-subtypes__card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.mf-ftype-subtypes__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5a5a57;
}

.mf-ftype-timeline__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: mf-tl;
}

.mf-ftype-timeline__list li {
  position: relative;
  padding: 24px 18px 20px;
  background: #fff;
  border: 1px solid #e8e8e4;
  counter-increment: mf-tl;
}

.mf-ftype-timeline__list li::before {
  content: "0" counter(mf-tl);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bk-orange);
}

.mf-ftype-timeline__list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.mf-ftype-timeline__list span {
  font-size: 14px;
  line-height: 1.5;
  color: #5a5a57;
}

.mf-ftype-stages__list--rich {
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.mf-ftype-stages__list--rich li {
  align-items: flex-start;
  flex-direction: row;
  gap: 16px;
}

.mf-ftype-stages__list--rich li div {
  display: grid;
  gap: 6px;
}

.mf-ftype-stages__list--rich strong {
  font-size: 16px;
  color: var(--bk-black);
}

.mf-ftype-stages__list--rich span {
  font-size: 14px;
  line-height: 1.5;
  color: #5a5a57;
}

.mf-ftype-stages__stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mf-ftype-stages__stats > div {
  padding: 18px 16px;
  background: #f7f7f7;
}

.mf-ftype-stages__stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  color: var(--bk-orange);
}

.mf-ftype-stages__stats span {
  font-size: 13px;
  line-height: 1.4;
  color: #5a5a57;
}

@media (max-width: 1023px) {
  .mf-calc-steps__grid,
  .mf-ftype-subtypes__grid,
  .mf-ftype-timeline__list,
  .mf-ftype-stages__stats {
    grid-template-columns: 1fr;
  }

  .mf-ftype-promo__card {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-ftype-promo__card .btn-orange {
    width: 100%;
    justify-content: center;
  }

  .mf-calc,
  .mf-calc-steps,
  .mf-ftype-timeline,
  .mf-ftype-subtypes {
    padding: 40px 0;
  }
}

/* ========== Homepage calculator (from mskfundament.ru logic) ========== */
.mf-home-calc {
  padding: 64px 0;
  background: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
}

.mf-home-calc__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

.mf-home-calc__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bk-black);
}

.mf-home-calc__lead {
  margin: 0 auto 32px;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: #5a5a57;
}

.mf-home-calc__block {
  background: #f7f7f7;
  padding: 28px;
}

.mf-home-calc__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.mf-home-calc__fields {
  display: grid;
  gap: 20px;
}

.mf-home-calc__field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.mf-home-calc__field > span,
.mf-home-calc__field > legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-black);
}

.mf-home-calc__field select,
.mf-home-calc__dims input,
.mf-home-calc__form input[type="text"],
.mf-home-calc__form input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d8d8d4;
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--bk-black);
}

.mf-home-calc__field select:focus,
.mf-home-calc__dims input:focus,
.mf-home-calc__form input:focus {
  outline: 2px solid rgba(255, 85, 43, 0.25);
  border-color: var(--bk-orange);
}

.mf-home-calc__dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mf-home-calc__dims label {
  display: grid;
  gap: 6px;
}

.mf-home-calc__dims label span {
  font-size: 13px;
  color: #5a5a57;
}

.mf-home-calc__soil {
  gap: 10px;
}

.mf-home-calc__radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e8e8e4;
  cursor: pointer;
}

.mf-home-calc__radio:has(input:checked) {
  border-color: var(--bk-orange);
  background: #fff7f4;
}

.mf-home-calc__radio input {
  accent-color: var(--bk-orange);
  width: 16px;
  height: 16px;
}

.mf-home-calc__result {
  background: #fff;
  border: 1px solid #e8e8e4;
  padding: 24px 22px;
}

.mf-home-calc__result-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.mf-home-calc__result-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.mf-home-calc__result-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.mf-home-calc__result-list dt {
  color: #5a5a57;
}

.mf-home-calc__result-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--bk-black);
}

.mf-home-calc__total {
  margin: 18px 0 20px;
  padding-top: 16px;
  border-top: 1px solid #ecece8;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.mf-home-calc__total span {
  font-size: 16px;
  font-weight: 600;
}

.mf-home-calc__total strong {
  font-size: 22px;
  color: var(--bk-orange);
}

.mf-home-calc__engineer {
  width: 100%;
  justify-content: center;
}

.mf-home-calc__hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #8a8a86;
}

.mf-home-calc__request {
  margin-top: 28px;
  padding: 28px 24px;
  background: #f7f7f7;
}

.mf-home-calc__request-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.mf-home-calc__request-lead {
  margin: 0 0 18px;
  font-size: 15px;
  color: #5a5a57;
}

.mf-home-calc__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 12px;
}

.mf-home-calc__form-row .btn-orange {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .mf-home-calc {
    padding: 48px 0;
  }

  .mf-home-calc__grid,
  .mf-home-calc__form-row {
    grid-template-columns: 1fr;
  }

  .mf-home-calc__block {
    padding: 20px;
  }

  .mf-home-calc__form-row .btn-orange {
    width: 100%;
    justify-content: center;
  }
}
