/* ============================================================
   МФК-Риелт / ДокторХауз — mfk-rielt.ru
   Редизайн 2026. Один общий файл стилей.
   Палитра: кипарисовый #33523f, охра #c98a2b (тонкие акценты),
   текст #2b2e2a, панели #f4f6f3, линии #dde3dc.
   ============================================================ */

/* ---------- Шрифты (self-hosted, cyrillic + latin) ---------- */

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pt-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/pt-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/pt-sans-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/pt-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- База ---------- */

:root {
  --green: #33523f;
  --green-dark: #2a4434;
  --ochre: #c98a2b;
  --ink: #2b2e2a;
  --muted: #6b7268;
  --panel: #f4f6f3;
  --line: #dde3dc;
  --serif: 'Lora', 'Georgia', serif;
  --sans: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}

img { max-width: 100%; height: auto; }

a { color: var(--green); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
a:hover { color: var(--ochre); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--green);
  line-height: 1.25;
}

p { margin: 0 0 1em; }

figure { margin: 0; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.row { margin: 0; }

.text-center { text-align: center; }

/* Иконочные <i> старого шаблона: файл icomoon больше не подключается */
[class^="icon-"], [class*=" icon-"] { display: none; }

/* Стрелка на кнопках вместо старой иконки — типографская, декоративная */
.with-arrow::after { content: "\00a0\2192"; }

/* ---------- Служебный лог старого сервера (текст сохранён) ---------- */

.legacy-log {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: #9aa096;
  font-size: 11.5px;
  line-height: 1.5;
  padding: 8px 20px;
  word-break: break-word;
}
.legacy-log a { color: inherit; }

/* ---------- Шапка ---------- */

#fh5co-header { background: var(--green); }

#fh5co-header .container { max-width: 1000px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 20px 0;
}

.header-inner h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: .01em;
}
.header-inner h1 a { color: #fff; text-decoration: none; }
.header-inner h1 a:hover { color: #fff; }
.header-inner h1 span { color: var(--ochre); }

.header-inner nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.header-inner nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.header-inner nav a:hover { color: #fff; border-bottom-color: var(--ochre); }

.header-inner nav li.call a {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .01em;
  border-bottom: none;
}
.header-inner nav li.call a:hover { color: #fff; border-bottom: none; opacity: .9; }

.header-inner nav li.cta a {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 8px 18px;
}
.header-inner nav li.cta a:hover { border-color: var(--ochre); background: rgba(0, 0, 0, .12); }

/* ---------- Основная колонка объявлений / контента ---------- */

#best-deal { padding: 40px 0 48px; }
#best-deal .container { max-width: 1000px; }

/* Вводный блок главной: объявление о ребрендинге «ДокторХауз» */
#best-deal .fh5co-heading {
  background: var(--panel);
  border-left: 3px solid var(--ochre);
  padding: 24px 28px;
  margin: 0 0 8px;
  text-align: left;
}
#best-deal .fh5co-heading h2 {
  margin: 0 0 12px;
  font-size: 27px;
  position: relative;
  padding-bottom: 14px;
}
#best-deal .fh5co-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--ochre);
}
#best-deal .fh5co-heading p { margin: 0; }
#best-deal .fh5co-heading b { font-weight: 400; }
#best-deal .fh5co-heading a { font-weight: 700; }

/* Объявления — строки: фото слева, описание и параметры справа */
#best-deal .col-md-4.item-block {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.col-md-4.item-block .fh5co-property {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 4px 30px;
}
.col-md-4.item-block .fh5co-property > figure {
  grid-row: 1 / span 2;
  position: relative;
  align-self: start;
}
.col-md-4.item-block .fh5co-property figure img { display: block; width: 100%; }

.fh5co-property figure .tag {
  position: absolute;
  top: 12px;
  left: 0;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  text-decoration: none;
}
.fh5co-property figure .tag:hover { background: var(--green-dark); color: #fff; }

.fh5co-property-innter h3 { margin: 0 0 8px; font-size: 21px; }
.fh5co-property-innter h3 a { color: var(--green); text-decoration: none; }
.fh5co-property-innter h3 a:hover { color: var(--ochre); }
.fh5co-property-innter p { font-size: 16px; margin-bottom: .7em; }

.price-status { margin: 0 0 10px; }
.price {
  display: inline-block;
  font-weight: 700;
  font-size: 19px;
  color: var(--green);
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 1px;
  line-height: 1.4;
}
.price span { font-weight: 400; font-size: 15px; color: var(--muted); }

/* Параметры объекта — компактная табличка */
.fh5co-property-specification {
  align-self: end;
  margin: 6px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.fh5co-property-specification span {
  display: inline-block;
  margin: 2px 20px 2px 0;
}
.fh5co-property-specification strong { color: var(--ink); }
.fh5co-property-specification br { display: none; }

/* Контентные страницы: заголовок с тонкой охряной линией */
#best-deal .col .fh5co-property { display: block; }

.fh5co-property-innter h1 {
  margin: 0 0 26px;
  font-size: 32px;
  position: relative;
  padding-bottom: 16px;
}
.fh5co-property-innter h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--ochre);
}

#text { max-width: 860px; }
#text::after { content: ""; display: block; clear: both; }
#text div[style*="float"] { float: none !important; }
#text img { max-width: 100%; height: auto; }
#text iframe { max-width: 100%; border: 0; }

/* Наследие Elementor на странице участков в Крыму */
#text .elementor-widget-container h2,
#text .elementor-widget-container h3 { margin: 1.2em 0 .5em; }
#text a.elementor-button {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 9px 18px;
  margin: 4px 0 14px;
}
#text a.elementor-button:hover { background: var(--green); color: #fff; }
#text .e-con.e-child {
  background: var(--panel);
  border-left: 3px solid var(--ochre);
  padding: 18px 22px;
  margin: 0 0 22px;
}

/* ---------- Полоса «Безопасность, комфорт и удобство» ---------- */

.fh5co-section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fh5co-section-with-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fh5co-section-with-image .fh5co-box { padding: 46px 48px; align-self: center; }
.fh5co-section-with-image h2 {
  margin: 0 0 16px;
  font-size: 25px;
  position: relative;
  padding-bottom: 14px;
}
.fh5co-section-with-image h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--ochre);
}

/* ---------- Секции: отзывы, услуги, публикации ---------- */

#fh5co-testimonial, #fh5co-blog { padding: 52px 0 40px; }
#fh5co-agents { padding: 52px 0 44px; background: var(--panel); }

.fh5co-heading h2 {
  margin: 0 0 14px;
  font-size: 26px;
  position: relative;
  padding-bottom: 14px;
}
#fh5co-testimonial .fh5co-heading h2::after,
#fh5co-agents .fh5co-heading h2::after,
#fh5co-blog .fh5co-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--ochre);
}
.fh5co-heading.white h2 { color: var(--green); }
.fh5co-heading p { color: var(--muted); }

#fh5co-testimonial .row,
#fh5co-agents .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#fh5co-testimonial .fh5co-heading,
#fh5co-agents .fh5co-heading { grid-column: 1 / -1; margin-bottom: 8px; }

#fh5co-testimonial blockquote {
  margin: 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--line);
  text-align: left;
  font-size: 15.5px;
  color: #454a43;
}
#fh5co-testimonial blockquote:hover { border-left-color: var(--ochre); }
#fh5co-testimonial .fh5co-author cite {
  font-style: normal;
  font-weight: 700;
  color: var(--green);
}

.fh5co-agent { text-align: center; }
.fh5co-agent figure { margin: 0 0 14px; }
.fh5co-agent figure img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.fh5co-agent h3 { margin: 0 0 10px; font-size: 19px; }
.fh5co-agent p { font-size: 15.5px; }

/* Публикации — строки с фото слева */
#fh5co-blog a.fh5co-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
#fh5co-blog .col-md-4:last-of-type a.fh5co-entry { border-bottom: 1px solid var(--line); }
#fh5co-blog a.fh5co-entry figure img { display: block; width: 100%; }
#fh5co-blog .fh5co-copy h3 { margin: 0 0 4px; font-size: 20px; }
#fh5co-blog a.fh5co-entry:hover .fh5co-copy h3 { color: var(--ochre); }
#fh5co-blog .fh5co-date { display: block; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
#fh5co-blog .fh5co-copy p { font-size: 15.5px; color: #454a43; margin: 0; }
#fh5co-blog .col-md-12 { padding-top: 26px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  padding: 11px 22px;
  cursor: pointer;
}
.btn:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* ---------- Нижний призыв ---------- */

.fh5co-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 64px 0;
  text-align: center;
}
.fh5co-cta .overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 68, 52, .88);
}
.fh5co-cta .container { position: relative; }
.fh5co-cta h3 { color: #fff; font-size: 26px; margin: 0 0 20px; }
.fh5co-cta .btn { border-color: rgba(255, 255, 255, .6); color: #fff; }
.fh5co-cta .btn:hover { background: #fff; color: var(--green); border-color: #fff; }

/* ---------- Подвал ---------- */

#fh5co-footer {
  background: var(--green);
  color: rgba(255, 255, 255, .85);
  padding: 50px 0 0;
  font-size: 15.5px;
}
#fh5co-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1.8fr .9fr;
  gap: 36px;
}
#fh5co-footer h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 12px;
}
#fh5co-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--ochre);
}
#fh5co-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; }
#fh5co-footer a:hover { color: #fff; border-bottom-color: var(--ochre); }

#fh5co-footer ul.float {
  display: inline-block;
  vertical-align: top;
  list-style: none;
  margin: 0 36px 0 0;
  padding: 0;
}
#fh5co-footer ul.float li { margin: 0 0 8px; }

#fh5co-footer .btn { border-color: rgba(255, 255, 255, .55); color: #fff; }
#fh5co-footer .btn:hover { background: #fff; color: var(--green); border-color: #fff; }

/* Ссылки соцсетей старого шаблона (без подписей) — аккуратные метки */
ul.fh5co-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
ul.fh5co-social li a {
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .4);
  position: relative;
}
ul.fh5co-social li a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: rgba(255, 255, 255, .75);
}
ul.fh5co-social li a:hover { border-color: var(--ochre); }
ul.fh5co-social li a:hover::after { background: var(--ochre); }

#fh5co-footer .fh5co-copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 10px;
  padding: 18px 0 22px;
  color: rgba(255, 255, 255, .6);
  font-size: 13.5px;
}
#fh5co-footer .fh5co-copyright span { display: block; margin-top: 4px; }

/* ---------- Упрощённые страницы (новости, юротдел) ---------- */

.all {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 56px;
}
.all > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  background: var(--green);
  margin: 0 0 34px;
  padding: 16px 20px;
}
.all > ul a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.all > ul a:hover,
.all > ul a.active { border-bottom-color: var(--ochre); color: #fff; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .col-md-4.item-block .fh5co-property { grid-template-columns: 240px minmax(0, 1fr); }
  .fh5co-section-with-image { grid-template-columns: 1fr; }
  .fh5co-section-with-image > img { max-height: 320px; }
  #fh5co-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  #fh5co-testimonial .row,
  #fh5co-agents .row { grid-template-columns: 1fr; gap: 24px; }
  .col-md-4.item-block .fh5co-property { grid-template-columns: 1fr; }
  .col-md-4.item-block .fh5co-property > figure { grid-row: auto; margin-bottom: 12px; }
  #fh5co-blog a.fh5co-entry { grid-template-columns: 1fr; }
  #fh5co-blog a.fh5co-entry figure { max-width: 420px; }
  .header-inner { padding: 16px 0; }
  .header-inner h1 { font-size: 23px; }
  .header-inner nav li.call a { font-size: 19px; }
  .fh5co-section-with-image .fh5co-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container, .legacy-log { padding-left: 16px; padding-right: 16px; }
  #best-deal { padding-top: 28px; }
  #best-deal .fh5co-heading { padding: 18px 18px; }
  #best-deal .fh5co-heading h2 { font-size: 22px; }
  .fh5co-property-innter h1 { font-size: 26px; }
  .fh5co-property-innter h3 { font-size: 19px; }
  .header-inner nav ul { gap: 6px 16px; }
  .header-inner nav li.cta a { padding: 6px 12px; }
  .fh5co-cta { padding: 44px 0; }
  .all { padding-left: 16px; padding-right: 16px; }
  .all > ul { margin-left: -16px; margin-right: -16px; }
}

/* ---------- Доступность: движение ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Old social links are href="#" with a removed icon font — hide the dead block. */
footer div:has(> .fh5co-social) { display: none; }
