/* ============================================================
   Страница «Работаем с ипотекой и эскроу» (ipoteka.html)
   Резиновая вёрстка: fluid clamp() для десктопа/планшета,
   отдельный блок под телефон (max-width: 600px).
   Шрифты: Inter (текст/заголовки), Gilroy (кнопка отправки),
   Intel One Mono (соц-ссылки и моб. кнопка).
   ============================================================ */

@font-face {
  font-family: "Intel One Mono";
  src: url("../fonts/IntelOneMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Размер-токены: clamp(моб, fluid@1920, десктоп) */
.ipoteka {
  --f-55: clamp(36px, 2.86vw, 55px);
  --f-50: clamp(28px, 2.6vw, 50px);
  --f-46: clamp(28px, 2.4vw, 46px);
  --f-35: clamp(25px, 1.82vw, 35px);
  --f-34: clamp(22px, 1.77vw, 34px);
  --f-30: clamp(20px, 1.56vw, 30px);
  --f-25: clamp(18px, 1.3vw, 25px);
  --f-24: clamp(22px, 1.25vw, 24px);
  --f-20: clamp(16px, 1.04vw, 20px);
  --f-18: 18px;
  --f-16: clamp(15px, 0.83vw, 16px);
  --f-15: clamp(14px, 0.78vw, 15px);
}

.ipoteka {
  display: block;
}

.ipoteka .section {
  margin-top: var(--section-gap);
}

/* ───────────────────────── ГЕРОЙ ───────────────────────── */
.mort-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  align-items: stretch;
}

/* Левая колонка — фото дома с наложенным заголовком (десктоп) */
.mort-hero__left {
  position: relative;
  height: 100%;
}

.mort-hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 840px;
  background: #cdd6df;
}

/* 901–1300px (зум-хак выключен) — высота резиновая */
@media (max-width: 1300px) {
  .mort-hero__media {
    height: clamp(360px, 60vw, 760px);
  }
}

.mort-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.mort-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.55) 22%,
    rgba(255, 255, 255, 0) 46%
  );
  z-index: 1;
}

.mort-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(26px, 2.2vw, 44px);
}

.mort-hero__title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--f-55);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.mort-hero__title span {
  color: var(--orange);
}

.mort-hero__list {
  margin-top: clamp(18px, 1.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mort-hero__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: var(--f-18);
  color: var(--navy);
}

.mort-hero__list .dots-pair {
  flex-shrink: 0;
}

/* Правая карточка — брокер + форма */
.mort-lead {
  display: flex;
  flex-direction: column;
}

.mort-broker {
  display: flex;
  gap: 18px;
}

.mort-broker__photo {
  width: 125px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.mort-broker__name {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-24);
  color: var(--navy);
  line-height: 1.2;
  margin-top: 30px;
}

.mort-broker__role {
  margin-top: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-16);
  color: var(--gray);
}

.mort-lead__title {
  margin-top: clamp(22px, 2vw, 34px);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-34);
  line-height: 1.18;
  color: var(--navy);
}

.mort-form {
  margin-top: clamp(18px, 1.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mort-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mort-form .form-field {
  background-color: #eef0f3;
  color: var(--text);
  height: 75px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-16);
}

.mort-form .form-field::placeholder {
  color: var(--gray-2);
}

.mort-form select.form-field {
  background-color: #eef0f3;
}

.mort-form__foot {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: 40px;
}

.mort-form .policy {
  max-width: 310px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--f-16);
  color: var(--gray);
  line-height: 1.4;
}

.mort-form .policy a {
  color: var(--orange);
  text-decoration: underline;
}

.mort-form .btn-submit {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

/* ────────────── ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ ────────────── */
.mort-h {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-50);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* ───────────────────── ПОЧЕМУ НАМ ДОВЕРЯЮТ ───────────────────── */
.mort-trust__grid {
  margin-top: clamp(26px, 2.2vw, 42px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--section-gap);
}

.mort-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--orange-soft);
  border: 1px solid var(--orange-soft-2);
  border-radius: var(--radius-md);
  padding: clamp(24px, 2vw, 38px);
  min-height: 230px;
}

.mort-card__title {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-35);
  line-height: 1.15;
  color: var(--navy);
}

.mort-card__text {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--f-20);
  line-height: 1.45;
  color: var(--gray);
}

.mort-card__arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.mort-card__arrow:hover {
  transform: translateY(-2px);
}

.mort-card__arrow img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* ───────────────────── ВЕДЁМ БЛОГ (видео) ───────────────────── */
.mort-reels__track {
  margin-top: clamp(24px, 2vw, 40px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.5vw, 24px);
  scroll-behavior: smooth;
}

.mort-reels__nav {
  display: none;
  gap: 14px;
}

.mort-reels__foot {
  margin-top: clamp(24px, 2vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mort-reels__cta-text {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-35);
  line-height: 1.2;
  color: var(--navy);
}

.mort-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 30px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.mort-subscribe:hover {
  background: var(--orange-dark);
}

.mort-subscribe .btn-circle {
  background: #fff;
}

/* ───────────────────────── КАК МЫ РАБОТАЕМ ───────────────────────── */
.mort-steps__grid {
  margin-top: clamp(24px, 2vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.4vw, 22px);
}

.mort-step {
  background: var(--orange-soft);
  border: 1px solid var(--orange-soft-2);
  border-radius: var(--radius-md);
  padding: clamp(20px, 1.6vw, 30px);
}

.mort-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.mort-step__title {
  margin-top: clamp(18px, 1.6vw, 30px);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: var(--f-25);
  line-height: 1.2;
  color: var(--navy);
}

.mort-step__text {
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: var(--f-15);
  line-height: 1.45;
  color: var(--gray);
}

/* ───────────────────────── СВЯЖИТЕСЬ С НАМИ ───────────────────────── */
.mort-contact {
  position: relative;
  background: var(--dark) url("../img/ui/dots.png") no-repeat top center;
  background-size: 100% auto;
  border-radius: var(--radius-xl);
  padding: clamp(30px, 2.8vw, 56px);
  color: #fff;
  overflow: hidden;
}

.mort-contact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mort-contact__title {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--f-55);
  line-height: 1.1;
  color: #fff;
}

.mort-contact__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-3);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.mort-contact__pill img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* перенос в заголовке — только на телефоне */
.mort-only-mobile {
  display: none;
}

.mort-contact__body {
  margin-top: clamp(28px, 2.4vw, 46px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
}

.mort-contact__phones {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 22px);
}

.mort-phone {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 1.4vw, 24px);
}

.mort-phone__label {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: var(--f-30);
  color: var(--gray-3);
  min-width: 64px;
}

.mort-phone__num {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: var(--f-46);
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mort-socs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1vw, 16px);
}

.mort-soc {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: var(--radius-pill);
  padding: 0 22px;
  background: var(--dark-3);
  color: #fff;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.mort-soc:hover {
  transform: translateY(-2px);
  background: #41454f;
}

.mort-soc__ic {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mort-soc__ic img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.mort-soc__label {
  flex: 1;
  text-align: center;
  font-family: "Intel One Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 0 24px;
}

/* ═══════════════════ ПЛАНШЕТ / РЕФЛОУ (≤ 900px) ═══════════════════ */
@media (max-width: 900px) {
  .mort-hero {
    grid-template-columns: 1fr;
  }

  /* картинка отдельно сверху, текст — под ней */
  .mort-hero__media {
    height: clamp(220px, 36vw, 340px);
  }

  .mort-hero__media::before {
    display: none;
  }

  .mort-hero__overlay {
    position: static;
    padding: 22px 2px 0;
  }

  /* видео → слайдер */
  .mort-reels__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
  }

  .mort-reels__track::-webkit-scrollbar {
    display: none;
  }

  .mort-reels__track .reel {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }

  .mort-reels__nav {
    display: flex;
  }

  .mort-trust__grid {
    grid-template-columns: 1fr;
  }

  .mort-steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mort-contact__body {
    grid-template-columns: 1fr;
  }

  .mort-reels__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════ ТЕЛЕФОН (≤ 600px) ═══════════════════════ */
@media (max-width: 600px) {
  .mort-hero__media {
    height: 206px;
  }

  .mort-hero__title {
    font-size: 36px;
  }

  /* на телефоне у видео только свайп — стрелки убираем */
  .mort-reels__nav {
    display: none;
  }

  .mort-hero__list li {
    font-weight: 600;
    font-size: 18px;
  }

  .mort-broker__name {
    font-weight: 600;
    font-size: 22px;
  }

  .mort-broker__role {
    font-size: 16px;
    max-width: 177px;
  }

  .mort-lead__title {
    font-size: 20px;
  }

  .mort-form__row {
    grid-template-columns: 1fr;
  }

  .mort-form .form-field {
    font-size: 18px;
  }

  /* на телефоне кнопка — Intel One Mono */
  .mort-form .btn-submit {
    font-family: "Intel One Mono", monospace;
    font-weight: 600;
    font-size: 16px;
  }

  .mort-form__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 0px;
  }

  .mort-form .policy {
    font-size: 14px;
  }

  .mort-h {
    font-size: 28px;
  }

  .mort-card__title {
    font-weight: 600;
    font-size: 25px;
  }

  .mort-card__text {
    font-size: 15px;
  }

  .mort-reels__cta-text {
    font-size: 18px;
  }

  .mort-reels__track .reel {
    flex: 0 0 70%;
  }

  .mort-step__title {
    font-weight: 600;
    font-size: 16px;
  }

  .mort-step__text {
    font-size: 14px;
  }

  /* на телефоне блок «Свяжитесь с нами» — во всю ширину,
     гасим боковые отступы body, скругление снизу сохраняем */
  .mort-contact {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius:  30px 30px 0 0;
  }

  .mort-only-mobile {
    display: inline;
  }

  .mort-contact__head {
    gap: 12px;
  }

  .mort-contact__title {
    font-size: 28px;
  }

  .mort-contact__pill {
    font-size: 14px;
  }

  .mort-phone__label {
    font-size: 18px;
    min-width: 44px;
  }

  .mort-phone__num {
    font-size: 18px;
  }

  .mort-socs {
    grid-template-columns: 1fr;
  }

  .mort-soc__label {
    font-size: 16px;
  }
}
