/* Дополнения к шаблону: то, чего в исходной вёрстке не было. */

:root {
  --site-accent: #01cfbe;
  --site-ink: #33304e;
}

/* ---------- Текстовый логотип ---------- */
.site_brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  white-space: normal;
}

.site_brand img {
  max-height: 56px;
  width: auto;
}

.site_brand_mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--site-accent);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site_brand_text {
  font: 700 14px/18px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-ink);
}

@media (max-width: 1399px) {
  .site_brand { max-width: 230px; }
  .site_brand_text { font-size: 13px; line-height: 16px; }
}

@media (max-width: 575px) {
  .site_brand { max-width: 220px; }
  .site_brand_mark { flex-basis: 40px; width: 40px; height: 40px; font-size: 19px; }
}

/* ---------- Первый экран ---------- */
.home_option a.media {
  color: inherit;
  text-decoration: none;
}

.home_option a.media:hover h4 {
  color: var(--site-accent);
}

.check_now_area .media-body h4 a {
  color: inherit;
  white-space: nowrap;
}

/* ---------- Отделения ---------- */
.departments_page {
  padding: 90px 0 70px;
}

a.dept_item {
  display: block;
  padding: 22px 25px 22px 20px;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

a.dept_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(51, 48, 78, 0.22);
}

.dept_item .media {
  align-items: center;
}

.dept_item .media .d-flex {
  flex: 0 0 64px;
  max-width: 64px;
  height: 64px;
  margin-right: 20px;
  border-radius: 18px;
  background: rgba(1, 207, 190, 0.12);
  color: var(--site-accent);
  font-size: 30px;
  align-items: center;
  justify-content: center;
}

.dept_item .media .media-body h4 {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  color: var(--site-ink);
}

.dept_item .media .media-body p {
  margin-top: 6px;
}

.right_widget.ct_widget li.active a {
  color: var(--site-accent);
}

.department_doctors {
  margin-top: 50px;
}

.department_doctors h2 {
  font: 700 28px/36px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-ink);
  margin-bottom: 30px;
}

/* ---------- Врачи ---------- */
.home_doctors {
  padding-top: 100px;
}

.home_doctors .main_title {
  margin-bottom: 50px;
}

.doctors_item .doctors_img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.doctor_placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef0f6;
  color: #b6b9cc;
  font-size: 72px;
}

.doctors_text p a {
  color: inherit;
}

/* ---------- Новости ---------- */
.post_card .l_blog_img img {
  width: 100%;
  object-fit: cover;
}

.big_l_blog_item.post_card .l_blog_img img { aspect-ratio: 77 / 43; }
.small_l_blog_item.post_card .l_blog_img img { aspect-ratio: 37 / 20; }
.blog_area .big_l_blog_item.post_card .l_blog_img img { aspect-ratio: 57 / 43; }

/* Текст карточки белый — фото затемняем всегда, а не только при наведении. */
.post_card .l_blog_img:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(34, 32, 58, 0.55) 0%, rgba(34, 32, 58, 0.25) 45%, rgba(34, 32, 58, 0.8) 100%);
}

.post_card .l_blog_img {
  position: relative;
}

.big_l_blog_item.post_card .l_blog_text {
  width: calc(100% - 80px);
}

.home_latest_blog_area .green_btn,
.home_doctors .green_btn {
  margin-top: 20px;
}

.post_meta {
  gap: 24px;
  margin-bottom: 25px;
  color: #7a7890;
  font: 500 14px "Montserrat", "Noto Sans", sans-serif;
}

.post_meta i {
  color: var(--site-accent);
  padding-right: 5px;
}

.right_widget.post_widget a.media {
  color: inherit;
  text-decoration: none;
}

.right_widget.post_widget .media .d-flex img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.right_widget.subs_widget > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---------- Текст страниц и новостей из редактора ---------- */
.rich_text {
  overflow-wrap: anywhere;
}

.rich_text img,
.rich_text iframe,
.rich_text video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.rich_text h1, .rich_text h2, .rich_text h3, .rich_text h4 {
  font-family: "Montserrat", "Noto Sans", sans-serif;
  font-weight: 700;
  color: var(--site-ink);
  margin: 28px 0 14px;
}

.rich_text h2 { font-size: 28px; line-height: 36px; }
.rich_text h3 { font-size: 22px; line-height: 30px; }

.rich_text ul, .rich_text ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.rich_text li {
  font: 400 16px/28px "Montserrat", "Noto Sans", sans-serif;
}

.rich_text a {
  color: var(--site-accent);
  text-decoration: underline;
}

.rich_text blockquote {
  border-left: 4px solid var(--site-accent);
  padding: 6px 0 6px 20px;
  margin: 20px 0;
  color: #5b5875;
}

.rich_text table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.rich_text td, .rich_text th {
  border: 1px solid #e3e4ee;
  padding: 10px 14px;
}

.page_image {
  margin-bottom: 30px;
}

.page_image img {
  width: 100%;
  border-radius: 20px;
}

.lead_text {
  font-size: 18px !important;
  line-height: 30px !important;
  color: var(--site-ink);
}

.file_btn {
  margin-top: 30px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty_note {
  padding: 40px 0;
  text-align: center;
  color: #7a7890;
  font: 500 18px "Montserrat", "Noto Sans", sans-serif;
}

/* ---------- Документы ---------- */
.documents_list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.documents_list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 26px rgba(51, 48, 78, 0.1);
}

.documents_list li > i {
  font-size: 28px;
  color: var(--site-accent);
}

.documents_list .doc_body {
  flex: 1;
  min-width: 0;
}

.documents_list .doc_title {
  display: block;
  font: 700 17px/24px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-ink);
}

.documents_list .doc_title:hover {
  color: var(--site-accent);
}

.documents_list .doc_date {
  font: 400 13px "Montserrat", "Noto Sans", sans-serif;
  color: #9a98ad;
}

.documents_list .doc_download {
  flex: none;
  font: 700 14px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-accent);
  white-space: nowrap;
}

@media (max-width: 575px) {
  .documents_list li { flex-wrap: wrap; }
  .documents_list .doc_download { margin-left: 46px; }
}

/* ---------- Поиск ---------- */
.page_search {
  margin-bottom: 40px;
}

.search_item img {
  width: 270px;
  height: 190px;
  object-fit: cover;
  border-radius: 15px;
}

.search_empty {
  text-align: center;
  padding: 30px 0 60px;
}

.search_empty .icon {
  font-size: 64px;
  color: var(--site-accent);
}

.search_empty h2 {
  font: 700 30px/40px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-ink);
  margin: 18px 0 10px;
}

.search_empty a {
  color: var(--site-accent);
}

.error_area .error_text {
  letter-spacing: 6px;
}

/* ---------- Карта ---------- */
.site_map_area {
  padding-top: 100px;
}

.site_map_area.flush {
  padding-top: 0;
}

.site_map_area .main_title {
  margin-bottom: 45px;
}

.site_map iframe {
  display: block;
  border: 0;
}

/* ---------- Формы ---------- */
.hp_field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form_note {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font: 600 15px/22px "Montserrat", "Noto Sans", sans-serif;
}

.form_note.is-success {
  display: block;
  background: rgba(1, 207, 190, 0.14);
  color: #067a70;
}

.form_note.is-error {
  display: block;
  background: rgba(240, 78, 78, 0.12);
  color: #b3261e;
}

.subscribe_area .form_note {
  background: rgba(255, 255, 255, 0.92);
}

.subscribe_area .mail_box .form-control {
  font-family: "Montserrat", "Noto Sans", sans-serif;
}

.appoinment_form .checkbox_field {
  justify-content: flex-end;
}

.appoinment_form button[disabled],
.mail_box button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.contact_form_lead {
  text-align: center;
  margin-bottom: 35px;
  font: 500 18px/28px "Montserrat", "Noto Sans", sans-serif;
  color: var(--site-ink);
}

/* ---------- Подвал ---------- */
.work_hours {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.work_hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(88, 84, 126, 0.12);
  font: 500 15px/22px "Montserrat", "Noto Sans", sans-serif;
  color: #7a7890;
}

.work_hours li b {
  color: var(--site-ink);
  font-weight: 600;
  white-space: nowrap;
}

.footer_copyright .container {
  justify-content: center;
}

.footer_copyright p {
  margin: 0 auto;
  text-align: center;
}

.footer_copyright p:before {
  display: none;
}

/* ---------- Шапка: Montserrat шире исходного шрифта, меню уплотняем ---------- */
@media (min-width: 992px) {
  .main_menu .navbar .navbar-collapse {
    flex-wrap: nowrap;
  }

  .main_menu .navbar .nav.navbar-nav {
    flex-wrap: nowrap;
    padding-left: 20px;
    white-space: nowrap;
  }

  .main_menu .navbar .nav.navbar-nav li {
    margin-right: 22px;
  }

  .main_menu .navbar .nav.navbar-nav li a {
    font-size: 15px;
  }

  .main_menu .navbar .nav.navbar-nav.navbar-right {
    padding-left: 22px;
  }

  .main_menu .navbar .nav.navbar-nav.navbar-right li.checker_btn a {
    padding: 0 18px;
    font-size: 14px;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .site_brand_text {
    display: none;
  }

  .main_menu .navbar .nav.navbar-nav li {
    margin-right: 16px;
  }

  .main_menu .navbar .nav.navbar-nav li a {
    font-size: 14px;
  }
}

/* ---------- Сетка отделений: в шаблоне она рассчитана ровно на 4 карточки ---------- */
.departments_area {
  padding-top: 175px;
  padding-bottom: 100px;
}

.symptoms_inner .col-lg-6:first-child .symptoms_item.dept_item,
.symptoms_inner .col-lg-6:last-child .symptoms_item.dept_item {
  margin-top: 0;
}

.symptoms_inner .col-lg-6 {
  height: auto;
}

.symptoms_inner .dept_item {
  height: calc(100% - 30px);
  display: flex;
  align-items: center;
}

.departments_area .title_text {
  max-width: 620px;
  margin-bottom: 40px;
}

.departments_area .title_text h2 {
  font-size: 40px;
  line-height: 50px;
}
/* Лента рубрики: в шаблоне отступ сверху давал фильтр по темам, которого у нас нет. */
.blog_area .blog_item_inner {
  margin-top: 70px;
}

.blog_area .empty_note {
  padding: 90px 0;
}
/* На телефоне справа от логотипа стоят поиск и меню — название не должно под них заезжать. */
@media (max-width: 991px) {
  .site_brand {
    max-width: calc(100vw - 150px);
    padding: 12px 0;
  }

  .site_brand_text {
    font-size: 12px;
    line-height: 15px;
  }
}
/* Выравнивание, заданное в редакторе админки. */
.rich_text .ql-align-center { text-align: center; }
.rich_text .ql-align-right { text-align: right; }
.rich_text .ql-align-justify { text-align: justify; }
