/* Нижний блок «Получите консультацию» + низ страницы (по просьбе), в стиле главного экрана:
   бежевый фон #ece5db; заголовок в 2 строки; поля формы: имя → телефон → квартира;
   справа — «Ваша история начинается здесь» с птицами, как на главном экране;
   под ней — иконки соцсетей, телефона и почты в стиле шапки (бордовые круги); внизу — подпись «History © 2026» слева.
   Старый футер со ссылками заменён этим блоком. */
#allrecords #rec1218447946 { position: relative; background-color: #ece5db !important; }
#allrecords #rec1218447946 .t396__artboard,
#allrecords #rec1218447946 .t396__carrier,
#allrecords #rec1218447946 .t396__filter { background-color: #ece5db !important; }

/* порядок полей: имя, телефон, квартира */
#allrecords #rec1218447946 .t-form__inputsbox { display: flex !important; flex-direction: column; }
#allrecords #rec1218447946 .t-input-group_nm { order: 1; }
#allrecords #rec1218447946 .t-input-group_ph { order: 2; }
#allrecords #rec1218447946 .t-input-group_sb { order: 3; }
#allrecords #rec1218447946 .t-form__errorbox-middle { order: 4; }
#allrecords #rec1218447946 .tn-form__submit { order: 5; }
/* поля прозрачные на бежевом */
#allrecords #rec1218447946 .t-input,
#allrecords #rec1218447946 .t-select { background-color: transparent !important; }

/* правая часть */
.hh-cta {
  --s: var(--hh-s, 1);
  position: absolute; z-index: 3;
  top: calc(85px * var(--s));
  right: var(--hh-m, max(20px, calc((100% - 1160px) / 2)));
  width: calc(460px * var(--s));
  bottom: calc(60px * var(--s));
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.hh-cta__art { position: relative; padding-top: calc(70px * var(--s)); }
/* птицы — как на главном экране */
.hh-cta__art::before {
  content: ''; position: absolute; pointer-events: none;
  left: calc(80px * var(--s)); top: calc(-95px * var(--s));
  width: calc(400px * var(--s)); aspect-ratio: 497 / 334;
  background: url('../static.tildacdn.com/tild6531-3634-4264-a261-343466306630/Birds-PNG-Photo.png') center / contain no-repeat;
}
.hh-cta__slogan {
  position: relative;
  display: flex; flex-direction: column;
  width: calc(330px * var(--s));
  font-family: 'HHLiteratureDecor', 'LiteratureDecor', Arial, sans-serif;
  font-weight: 400;
  font-size: calc(48px * var(--s));
  line-height: 1.06;
  color: #bb9775;
}
.hh-cta__here { align-self: flex-end; }

.hh-cta__icons { display: flex; flex-wrap: wrap; gap: calc(12px * var(--s)); }
.hh-cta__ico { display: block; width: 40px; height: 40px; line-height: 0; }
.hh-cta__ico .hh-ico { width: 100%; height: 100%; display: block; }
.hh-cta__ico .hh-ico path[fill="#6b151d"], .hh-cta__ico .hh-ico circle { transition: fill .3s ease; }
.hh-cta__ico:hover .hh-ico path[fill="#6b151d"], .hh-cta__ico:hover .hh-ico circle { fill: #bb9775; }
.hh-cta__ico .hh-ico path[stroke="#6b151d"] { transition: stroke .3s ease; }
.hh-cta__ico:hover .hh-ico path[stroke="#6b151d"] { stroke: #bb9775; }

/* подпись внизу */
#rec-hh-copy { background: #ece5db; }
.hh-copy {
  padding: 0 var(--hh-m, max(20px, calc((100% - 1160px) / 2))) 30px;
  font-family: 'Raleway', Arial, sans-serif; font-weight: 400; font-size: 14px; line-height: 1.3;
  color: #6e6e6e; text-align: left;
}

/* планшет и телефон: правая часть — под формой */
@media (max-width: 959px) {
  .hh-cta {
    position: static; width: auto; padding: 10px 20px 40px;
    gap: 30px;
  }
  .hh-cta__art { padding-top: 60px; }
  .hh-cta__art::before { left: 40%; top: -10px; width: 260px; }
  .hh-cta__slogan { width: 260px; font-size: 38px; }
}
@media (max-width: 639px) {
  .hh-cta__slogan { width: 210px; font-size: 30px; }
  .hh-cta__art::before { width: 200px; left: 35%; }
  .hh-cta__icons { gap: 6px; flex-wrap: nowrap; }
  .hh-cta__ico { width: 38px; height: 38px; }
}

/* подпись: History — слева, © 2026 — справа (по просьбе) */
.hh-copy { display: flex; justify-content: space-between; }

/* линии под полями формы — тёмно-бежевые #bb9775 (по просьбе) */
#allrecords #rec1218447946 .t-input,
#allrecords #rec1218447946 .t-select,
#allrecords #rec1218447946 .t-input-phonemask__wrap { border-color: transparent transparent #bb9775 !important; }

/* облако за надписью «Ваша история начинается здесь», как на главном экране (по просьбе) */
.hh-cta__slogan::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-50px * var(--s)); bottom: calc(-45px * var(--s));
  width: calc(320px * var(--s)); aspect-ratio: 420 / 200;
  background: url('cta-cloud.png') center / contain no-repeat;
}
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -30px; bottom: -30px; width: 220px; }
}

/* два отдельных облака (по просьбе): первое — меньше, слева снизу; второе — справа, на уровне «Ваша история», отражено */
.hh-cta__slogan::before { left: calc(-70px * var(--s)); bottom: calc(-40px * var(--s)); width: calc(230px * var(--s)); }
.hh-cta__slogan::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: calc(-120px * var(--s)); top: calc(10px * var(--s));
  width: calc(200px * var(--s)); aspect-ratio: 420 / 200;
  transform: scaleX(-1);
  background: url('cta-cloud.png') center / contain no-repeat;
}
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -40px; bottom: -25px; width: 170px; }
  .hh-cta__slogan::after { right: -90px; top: 0; width: 140px; }
}

/* облака видны на всех экранах: слой облаков внутри надписи */
.hh-cta__slogan { z-index: 0; isolation: isolate; }

/* облака крупнее (по просьбе) */
.hh-cta__slogan::before { left: calc(-100px * var(--s)); bottom: calc(-60px * var(--s)); width: calc(340px * var(--s)); }
.hh-cta__slogan::after { right: calc(-170px * var(--s)); top: calc(-10px * var(--s)); width: calc(300px * var(--s)); }
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -60px; bottom: -40px; width: 240px; }
  .hh-cta__slogan::after { right: -130px; top: -10px; width: 210px; }
}

/* правое облако — гигантское, уходит за правый край страницы; левое — чуть больше (по просьбе) */
#allrecords #rec1218447946 { overflow: hidden; }
.hh-cta__slogan::before { left: calc(-120px * var(--s)); bottom: calc(-70px * var(--s)); width: calc(400px * var(--s)); }
.hh-cta__slogan::after { right: calc(-560px * var(--s)); top: calc(-90px * var(--s)); width: calc(820px * var(--s)); }
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -70px; bottom: -45px; width: 280px; }
  .hh-cta__slogan::after { right: -380px; top: -70px; width: 560px; }
}
/* облака не соприкасаются: правое правее и выше, левое левее и ниже */
.hh-cta__slogan::before { left: calc(-200px * var(--s)); bottom: calc(-95px * var(--s)); }
.hh-cta__slogan::after { right: calc(-740px * var(--s)); top: calc(-150px * var(--s)); }
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -110px; bottom: -60px; }
  .hh-cta__slogan::after { right: -500px; top: -110px; }
}

/* облака убраны (по просьбе) */
.hh-cta__slogan::before, .hh-cta__slogan::after { display: none !important; }

/* одно большое облако за надписью, как на образце (по просьбе); птицы поверх облака */
.hh-cta__slogan::after { display: none !important; }
.hh-cta__slogan::before {
  display: block !important;
  left: calc(-335px * var(--s)) !important; top: calc(-170px * var(--s)) !important; bottom: auto !important; right: auto !important;
  width: calc(950px * var(--s)) !important; aspect-ratio: 1384 / 1240 !important;
  background: url('cta-cloud-big.png') center / contain no-repeat !important;
}
.hh-cta__art::before { z-index: 1; }
.hh-cta__slogan { z-index: 0; }
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -200px !important; top: -150px !important; width: 620px !important; }
}

/* облако — точно как на образце (по просьбе): размер и положение относительно надписи; иконки поверх облака */
.hh-cta__slogan::before {
  left: calc(-319px * var(--s)) !important; top: calc(-151px * var(--s)) !important;
  width: calc(809px * var(--s)) !important;
}
.hh-cta__icons { position: relative; z-index: 2; }
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -210px !important; top: -100px !important; width: 530px !important; }
}

/* облако как на образце: отражено (большая часть — слева снизу за надписью, вторая — справа вверху у птиц) */
.hh-cta__slogan::before {
  left: calc(-216px * var(--s)) !important; top: calc(-200px * var(--s)) !important;
  width: calc(845px * var(--s)) !important;
  transform: scaleX(-1) !important;
}
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -120px !important; top: -110px !important; width: 500px !important; }
}

/* облака — присланная сгруппированная картинка (2 облака), без отражения, положение и размер как на образце */
.hh-cta__slogan::before {
  left: calc(-246px * var(--s)) !important; top: calc(-130px * var(--s)) !important;
  width: calc(699px * var(--s)) !important; aspect-ratio: 1647 / 1354 !important;
  transform: none !important;
  background-image: url('cta-clouds-group.png') !important;
}
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -160px !important; top: -85px !important; width: 460px !important; }
}

/* «здесь» по правому краю надписи (вровень с концом «начинается»), как на главном экране (по просьбе) */
.hh-cta__slogan { width: min-content !important; }

/* адаптив: облака в тех же пропорциях к надписи, что и на компьютере */
@media (max-width: 959px) {
  .hh-cta__slogan::before { left: -195px !important; top: -103px !important; width: 553px !important; }
}
@media (max-width: 639px) {
  .hh-cta__slogan::before { left: -154px !important; top: -81px !important; width: 437px !important; }
}
