/* ==========================================================
   Emhana5 Modern 2.0 — тема «Матча и индиго»
   Поверх темы HealthFlex. База данных и контент не меняются.
   ========================================================== */

:root {
  --em-a: #5f9a6e;
  --em-a-dark: #4c8159;
  --em-a2: #2b4f7e;
  --em-ink: #1f3350;
  --em-mut: #626b70;
  --em-bg: #f7f4ec;
  --em-white: #ffffff;
  --em-soft: #e8efdd;
  --em-soft2: #e3e9f2;
  --em-dark: #22385a;
  --em-dark2: #1b2e4b;
  --em-line: rgba(31, 51, 80, .09);
  --em-shadow: 0 10px 28px -16px rgba(31, 51, 80, .35);
  --em-shadow-lg: 0 22px 44px -20px rgba(31, 51, 80, .45);
  --em-radius: 16px;
  --em-font: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --em-font-head: "Montserrat", "Inter", "Roboto", Arial, sans-serif;
  --em-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='none' stroke='%235f9a6e' stroke-opacity='.4' stroke-width='1.2'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='0' cy='10' r='18'/%3E%3Ccircle cx='40' cy='10' r='18'/%3E%3C/g%3E%3C/svg%3E");
  --em-wave-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='1'%3E%3Ccircle cx='20' cy='20' r='18'/%3E%3Ccircle cx='20' cy='20' r='12'/%3E%3Ccircle cx='0' cy='10' r='18'/%3E%3Ccircle cx='40' cy='10' r='18'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes em-wave { from { background-position: 0 0; } to { background-position: -40px 0; } }
@keyframes em-pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 143, .6); } 100% { box-shadow: 0 0 0 10px rgba(127, 209, 143, 0); } }
@keyframes em-fall {
  0% { transform: translate(0, -20px) rotate(0); opacity: 0; }
  10% { opacity: .95; }
  100% { transform: translate(-90px, 720px) rotate(320deg); opacity: 0; }
}
@keyframes em-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- База ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--em-font) !important;
  color: var(--em-mut);
  background: var(--em-bg) !important;
  -webkit-font-smoothing: antialiased;
}
body p, body li, body td { line-height: 1.7; }
body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--em-font-head) !important;
  color: var(--em-ink);
  letter-spacing: -.005em;
}
body a { color: var(--em-a2); transition: color .25s ease; }
body a:hover { color: var(--em-a); }
::selection { background: var(--em-a); color: #fff; }

/* ---------- Верхняя полоса ---------- */
.header .topbar { background: var(--em-dark) !important; color: #d4dfe9; font-size: 12.5px; }
.header .topbar a, .header .topbar span, .header .topbar strong { color: #e6edf4 !important; }
.header .topbar a:hover { color: #b9d9a8 !important; }
.header .topbar a.em-cta {
  background: var(--em-a) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 4px 12px !important;
  transition: background .25s ease;
}
.header .topbar a.em-cta:hover { background: var(--em-a-dark) !important; }
.em-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; white-space: nowrap; }
.em-status i { width: 8px; height: 8px; border-radius: 50%; background: #7fd18f; display: inline-block; animation: em-pulse 1.8s infinite; }
.em-status.is-closed i { background: #e3a75b; animation: none; }

/* ---------- Шапка с меню ---------- */
.header .mainbar, .header .mainbar.color {
  background: rgba(255, 255, 255, .94) !important;
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  box-shadow: 0 1px 0 var(--em-line);
  transition: box-shadow .3s ease;
}
body.em-scrolled .header .mainbar { box-shadow: 0 10px 26px -18px rgba(31, 51, 80, .55); }
.main_menu > li > a {
  font-family: var(--em-font-head) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: .02em;
  color: var(--em-ink) !important;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.main_menu > li > a:hover,
.main_menu > li.active > a,
.main_menu > li.current-menu-item > a,
.main_menu > li.current-menu-ancestor > a { color: var(--em-a-dark) !important; background: var(--em-soft) !important; }
.main_menu .menu-dropdown {
  border: 1px solid var(--em-line) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  background: #fff !important;
  box-shadow: var(--em-shadow-lg) !important;
}
.main_menu .menu-dropdown li a {
  border-radius: 10px;
  color: var(--em-ink) !important;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.main_menu .menu-dropdown li a:hover { background: var(--em-soft) !important; color: var(--em-a-dark) !important; padding-left: 22px !important; }

/* ---------- Баннер-слайдер ---------- */
.head_panel { position: relative; }
.head_panel .caption .inner,
.head_panel .caption .inner.black_section {
  background: rgba(247, 244, 236, .94) !important;
  border: 0;
  border-left: 4px solid var(--em-a);
  border-radius: 0 20px 20px 0 !important;
  box-shadow: var(--em-shadow-lg);
  padding: 30px 34px !important;
}
.head_panel .caption .inner.transparent_film::before,
.head_panel .caption .inner::before { display: none !important; }
.head_panel .caption .inner h1,
.head_panel .caption .inner h2,
.head_panel .caption .inner h3,
.head_panel .caption .inner .t1,
.head_panel .caption .inner .t2,
.head_panel .caption .inner .title { color: var(--em-ink) !important; font-weight: 600 !important; }
.head_panel .caption .inner .t2 { color: var(--em-a-dark) !important; }
.head_panel .caption .inner .t2::after,
.head_panel .caption .inner .desc::before { border-color: var(--em-a) !important; }
.teaser_box .content .link, .teaser_box .content .link a { border-color: var(--em-a) !important; }
/* «плоская» подпись слайда: выделенная строка описания */
.head_panel .caption.caption_flat .inner p.desc {
  background-color: var(--em-a) !important;
  color: #fff !important;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.9;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.head_panel .caption .inner .desc,
.head_panel .caption .inner p { color: var(--em-mut) !important; }
.head_panel .caption .inner .subtitle,
.head_panel .caption .inner span[class*=label] { background: var(--em-a2) !important; color: #fff !important; border-radius: 8px; }
.head_panel .owl-controls .owl-nav > div {
  background: rgba(255, 255, 255, .9) !important;
  color: var(--em-ink) !important;
  border-radius: 50% !important;
  box-shadow: var(--em-shadow);
  transition: transform .25s ease, background .25s ease;
}
.head_panel .owl-controls .owl-nav > div:hover { background: #fff !important; transform: scale(1.08); }
.home .head_panel::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: var(--em-wave) repeat-x;
  background-color: var(--em-bg);
  animation: em-wave 5s linear infinite;
  z-index: 5;
  pointer-events: none;
}
.head_panel .hgroup h1,
.head_panel .full_page_photo h1 { color: #fff !important; font-weight: 700 !important; }
.head_panel .full_page_photo::before { content: ""; position: absolute; inset: 0; background: rgba(34, 56, 90, .45); pointer-events: none; }
.head_panel .body-bg_section, .body-bg_section { background-color: var(--em-bg) !important; }
.head_panel .body-bg_section::before,
.head_panel .body-bg_section::after { border-color: var(--em-bg) transparent !important; }

.em-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; }
.em-petal {
  position: absolute; top: 0;
  width: 12px; height: 10px;
  background: #f6eedd;
  border-radius: 10px 0 10px 0;
  box-shadow: 0 1px 3px rgba(31, 51, 80, .3);
  animation: em-fall linear infinite;
}

/* ---------- Кнопки ---------- */
body .btn, body .vc_btn3, body input[type=submit], body button[type=submit], body .wpcf7-submit, body .wpforms-submit {
  font-family: var(--em-font-head) !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  border: 0 !important;
  border-radius: 999px !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease !important;
}
body .btn.with-icon.icon-left { padding-left: 52px !important; position: relative; overflow: hidden; }
body .btn.with-icon.icon-right { padding-right: 52px !important; position: relative; overflow: hidden; }
body .btn.with-icon i { background: rgba(255, 255, 255, .18) !important; color: #fff !important; top: 0 !important; height: 100% !important; }
body .btn.with-icon.icon-left i { left: 0 !important; border-radius: 999px 0 0 999px; }
body .btn.with-icon.icon-right i { right: 0 !important; border-radius: 0 999px 999px 0; }
body .btn-primary, body .btn-success,
body .vc_btn3.vc_btn3-color-juicy-pink, body .vc_btn3.vc_btn3-color-juicy-pink.vc_btn3-style-flat,
body input[type=submit], body button[type=submit], body .wpcf7-submit, body .wpforms-submit {
  background: var(--em-a) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px -10px rgba(76, 129, 89, .8) !important;
}
body .btn-secondary { background: #fff !important; color: var(--em-a2) !important; box-shadow: 0 6px 16px -10px rgba(31, 51, 80, .6) !important; }
body .btn:hover, body .vc_btn3:hover, body input[type=submit]:hover, body .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -12px rgba(76, 129, 89, .85) !important;
}
body .btn-primary:hover, body .btn-success:hover, body .vc_btn3.vc_btn3-color-juicy-pink:hover,
body input[type=submit]:hover, body .wpcf7-submit:hover { background: var(--em-a-dark) !important; }

/* ---------- Плитки услуг ---------- */
.skincolored_section, .vc_column_container.skincolored_section { background: var(--em-a) !important; }
.vc_row.no_padding .vc_column_container.skincolored_section {
  border-radius: 20px;
  margin: 0 6px;
  width: calc(25% - 12px);
  box-shadow: var(--em-shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}
.vc_row.no_padding .vc_column_container.skincolored_section:hover { transform: translateY(-6px); }
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(1) { background: #5f9a6e !important; }
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(2) { background: #528a63 !important; }
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(3) { background: #33598a !important; }
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(4) { background: #2b4f7e !important; }
.vc_row.no_padding .vc_column_container.skincolored_section .separator_top,
.vc_row.no_padding .vc_column_container.skincolored_section .separator_bottom { display: none !important; }
.vc_row.no_padding .vc_column_container.skincolored_section::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: var(--em-wave-light) repeat-x;
  pointer-events: none;
  transition: background-position 1.2s ease;
}
.vc_row.no_padding .vc_column_container.skincolored_section:hover::after { background-position: -40px 0; }
.skincolored_section h1, .skincolored_section h2, .skincolored_section h3,
.skincolored_section h4, .skincolored_section h5, .skincolored_section p,
.skincolored_section a:not(.btn) { color: #fff !important; }
.teaser_box.boxed, .teaser_box { border-radius: var(--em-radius) !important; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.teaser_box .figure img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.teaser_box:hover .figure img { transform: scale(1.07); }
.teaser_box h4, .teaser_box h5 { font-weight: 700 !important; letter-spacing: .02em; }
.teaser_box.boxed:not(.transparent) { background: #fff !important; border: 1px solid var(--em-line) !important; box-shadow: none; }
.teaser_box.boxed:not(.transparent):hover { transform: translateY(-5px); box-shadow: var(--em-shadow-lg); }

/* ---------- Секции: чёткое чередование фонов ---------- */
.main > section.vc_row { position: relative; }
.main > section.vc_row:not(.secondary_section):not(.dark_section):not(.bgimage) { background-color: var(--em-bg) !important; }
.main > section.vc_row.em-alt:not(.secondary_section):not(.dark_section):not(.bgimage) { background-color: var(--em-white) !important; }
.main > section.vc_row:not(.secondary_section):not(.dark_section) > .separator_top,
.main > section.vc_row:not(.secondary_section):not(.dark_section) > .separator_bottom,
.main section.light_section .separator_top,
.main section.light_section .separator_bottom { display: none !important; }

.section_header h1, .section_header h2 { font-weight: 700 !important; color: var(--em-ink) !important; position: relative; padding-top: 18px; }
.section_header h1::before, .section_header h2::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 34px; height: 3px; border-radius: 3px;
  background: var(--em-a);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.section_header:hover h1::before, .section_header:hover h2::before { width: 64px; }
.section_header.text-center h1::before, .section_header.text-center h2::before { left: 50%; transform: translateX(-50%); }
.section_header p { color: var(--em-mut) !important; }

.dark_section, section.vc_row.dark_section, .main > section.secondary_section { background-color: var(--em-dark) !important; }
.main > section.secondary_section:not(.bgimage) {
  background-image: var(--em-wave-light) !important;
  background-repeat: repeat !important;
  background-size: 40px 20px !important;
  background-position: 0 0;
  animation: em-wave 8s linear infinite;
}
.main > section.secondary_section.transparent_film::before { background: rgba(34, 56, 90, .68) !important; }
.dark_section h1, .dark_section h2, .dark_section h3, .dark_section h4,
.secondary_section h1, .secondary_section h2, .secondary_section h3, .secondary_section h4 { color: #fff !important; }
.secondary_section .section_header h2::before, .dark_section .section_header h2::before { background: #9cc58a; }
.vc_column_container.secondary_section:not(.bgimage) { background: var(--em-dark) !important; border-radius: 20px; box-shadow: var(--em-shadow-lg); }
.vc_column_container.secondary_section label { color: #e3eaf2 !important; }

/* ---------- Изображения ---------- */
.main .wpb_single_image img, .main .vc_single_image-img { border-radius: 20px 20px 20px 60px; transition: transform .5s ease, box-shadow .5s ease; }
.main .wpb_single_image:hover img { transform: scale(1.02); box-shadow: var(--em-shadow-lg); }

/* ---------- Новости (сетка на главной) ---------- */
.vc_grid-item-mini {
  background: #fff !important;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius) !important;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
  height: 100%;
}
.vc_grid-item-mini:hover { transform: translateY(-6px); box-shadow: var(--em-shadow-lg); }
.vc_grid-item-mini .vc_gitem-zone-a, .vc_grid-item-mini .vc_gitem-zone-b, .vc_grid-item-mini .vc_gitem-zone-img { overflow: hidden; }
.vc_grid-item-mini img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.vc_grid-item-mini:hover img { transform: scale(1.06); }
.vc_grid-item-mini .vc_gitem-zone-c { background: transparent !important; padding: 6px 8px 14px; }
.vc_grid-item-mini h4 { font-weight: 700 !important; color: var(--em-ink) !important; }
.vc_grid-item-mini p { color: var(--em-mut) !important; font-size: 14px; }

/* ---------- Лента новостей ---------- */
.main article.post { background: #fff !important; border: 1px solid var(--em-line); border-radius: var(--em-radius); transition: box-shadow .3s ease; }
.main article.post:hover { box-shadow: var(--em-shadow-lg); }
.main article.post h2 a { color: var(--em-ink) !important; }
.main article.post h2 a:hover { color: var(--em-a) !important; }

/* ---------- График / таблицы ---------- */
.timetable, .main table { border-radius: 14px; overflow: hidden; }
.timetable li, .main table td, .main table th { border-color: var(--em-line) !important; }
.main table tr:nth-child(even) td { background: rgba(95, 154, 110, .06); }
.main table th { background: var(--em-soft); color: var(--em-ink); }

/* ---------- Формы ---------- */
body input[type=text], body input[type=email], body input[type=tel], body input[type=number],
body input[type=search], body textarea, body select {
  border: 1px solid #dcd6c6 !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
body input:focus, body textarea:focus, body select:focus {
  outline: none !important;
  border-color: var(--em-a) !important;
  box-shadow: 0 0 0 4px rgba(95, 154, 110, .18) !important;
}

.sidebar .widget { background: #fff; border: 1px solid var(--em-line); border-radius: var(--em-radius); padding: 22px 24px; margin-bottom: 24px; }

/* ---------- Подвал ---------- */
footer, footer.sep_angled_positive_top { position: relative; background: var(--em-dark) !important; color: #cfd9e4 !important; }
footer .separator_top { display: none !important; }
footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 20px;
  background: var(--em-wave-light) repeat-x;
  animation: em-wave 6s linear infinite;
  pointer-events: none;
}
footer h4 { color: #fff !important; font-weight: 700 !important; }
footer a, footer p, footer li, footer span { color: #cfd9e4 !important; }
footer a:hover { color: #b9d9a8 !important; }
footer .menu a { transition: padding-left .2s ease, color .2s ease; }
footer .menu a:hover { padding-left: 6px; }
footer .social a { border-radius: 10px !important; transition: background .25s ease, transform .25s ease; }
footer .social a:hover { background: var(--em-a) !important; transform: translateY(-2px); }
footer .media-photo { border-radius: 10px; overflow: hidden; }
.copyright, .copyright.dark_section { background: var(--em-dark2) !important; color: #a7b5c6 !important; }
.copyright a { color: #dbe4ee !important; }

/* ---------- Кнопка «наверх» ---------- */
.em-totop {
  position: fixed; right: 22px; bottom: 90px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--em-a); color: #fff; border: 0;
  box-shadow: var(--em-shadow-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
  pointer-events: none;
}
.em-totop:hover { background: var(--em-a-dark); }
.em-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.em-totop svg { width: 20px; height: 20px; }

/* ---------- Появление при прокрутке ---------- */
.em-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--em-delay, 0s);
}
.em-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 991px) {
  .menu_container { background: #fff !important; }
  .main_menu > li > a { border-radius: 10px; }
  .mobile_collapser { color: var(--em-ink) !important; }
  .head_panel .caption .inner { padding: 18px 20px !important; }
}
@media (max-width: 767px) {
  .vc_row.no_padding .row:has(> .skincolored_section) { display: flex !important; flex-wrap: wrap; justify-content: center; }
  .vc_row.no_padding .row:has(> .skincolored_section)::before,
  .vc_row.no_padding .row:has(> .skincolored_section)::after { display: none !important; }
  .vc_row.no_padding .vc_column_container.skincolored_section { float: none !important; width: calc(50% - 12px); margin: 6px; display: flex; flex-direction: column; }
  .vc_row.no_padding .skincolored_section .figure img { max-height: 80px; width: auto; }
  .em-status { display: none; }
}

/* ==========================================================
   2.1 — свечение, динамика и структурные улучшения
   ========================================================== */
@keyframes em-kb { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes em-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes em-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(95, 154, 110, .55), 0 0 14px rgba(95, 154, 110, .35); } 50% { box-shadow: 0 0 0 6px rgba(95, 154, 110, 0), 0 0 22px rgba(95, 154, 110, .6); } }
@keyframes em-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }

/* полоса прогресса прокрутки */
.em-progress {
  position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 100000;
  background: linear-gradient(90deg, #5f9a6e, #7fc59a 45%, #2b4f7e);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 10px rgba(127, 197, 154, .9), 0 0 2px rgba(127, 197, 154, 1);
  pointer-events: none;
}
body.admin-bar .em-progress { top: 32px; }

/* кнопка записи в верхней полосе — мягко светится */
.header .topbar a.em-cta { animation: em-glow 2.6s ease-in-out infinite; }

/* баннер: медленное приближение фото + светящаяся рамка подписи */
.head_panel .stretchy_wrapper { overflow: hidden; }
.head_panel .owl-item.active .stretchy_wrapper > *:first-child { animation: em-kb 14s ease-out both; }
.head_panel .caption .inner,
.head_panel .caption .inner.black_section {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 60px -12px rgba(127, 197, 154, .75), var(--em-shadow-lg) !important;
}

/* плитки услуг: свечение, световое пятно за курсором, парящие иконки */
.vc_row.no_padding .vc_column_container.skincolored_section::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.vc_row.no_padding .vc_column_container.skincolored_section:hover::before { opacity: 1; }
.vc_row.no_padding .vc_column_container.skincolored_section > * { position: relative; z-index: 1; }
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(1):hover,
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(2):hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 22px 50px -14px rgba(95, 154, 110, .85), 0 0 34px -6px rgba(127, 197, 154, .7);
}
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(3):hover,
.vc_row.no_padding .vc_column_container.skincolored_section:nth-child(4):hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 22px 50px -14px rgba(43, 79, 126, .85), 0 0 34px -6px rgba(110, 150, 210, .7);
}
.vc_row.no_padding .skincolored_section .figure img { animation: em-float 4.5s ease-in-out infinite; }
.vc_row.no_padding .skincolored_section:nth-child(2) .figure img { animation-delay: -1.1s; }
.vc_row.no_padding .skincolored_section:nth-child(3) .figure img { animation-delay: -2.2s; }
.vc_row.no_padding .skincolored_section:nth-child(4) .figure img { animation-delay: -3.3s; }

/* кнопки: свечение и блик при наведении */
body .btn, body .vc_btn3 { position: relative; overflow: hidden; }
body .btn::after, body .vc_btn3::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
body .btn:hover::after, body .vc_btn3:hover::after { animation: em-shine .8s ease; }
body .btn-primary:hover, body .btn-success:hover, body .vc_btn3.vc_btn3-color-juicy-pink:hover,
body input[type=submit]:hover, body .wpcf7-submit:hover {
  box-shadow: 0 0 0 4px rgba(95, 154, 110, .18), 0 12px 28px -8px rgba(95, 154, 110, .9), 0 0 24px -4px rgba(127, 197, 154, .8) !important;
}

/* черта над заголовком «прорисовывается» при появлении */
.section_header.em-reveal h1::before, .section_header.em-reveal h2::before { width: 0; }
.section_header.em-reveal.is-in h1::before, .section_header.em-reveal.is-in h2::before { width: 34px; transition-delay: .35s; }

/* карточки новостей и боксы: индиговое свечение при наведении */
.vc_grid-item-mini:hover, .main article.post:hover, .teaser_box.boxed:not(.transparent):hover {
  box-shadow: 0 0 0 1px rgba(43, 79, 126, .14), 0 24px 46px -20px rgba(43, 79, 126, .55), 0 0 30px -10px rgba(110, 150, 210, .55) !important;
}

/* ---------- Полоса «Коротко о поликлинике» (добавляет скрипт) ---------- */
.em-stats-wrap { background: var(--em-bg) !important; padding: 8px 15px 46px !important; margin: 0 !important; }
.em-stats {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.em-stat {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--em-line); border-radius: 18px;
  padding: 20px 20px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.em-stat:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(95, 154, 110, .2), 0 20px 40px -18px rgba(95, 154, 110, .6), 0 0 28px -10px rgba(127, 197, 154, .7); }
.em-stat-ic {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--em-soft); color: var(--em-a-dark);
}
.em-stat:nth-child(even) .em-stat-ic { background: var(--em-soft2); color: var(--em-a2); }
.em-stat-ic svg { width: 24px; height: 24px; }
.em-stat b {
  display: block; font-family: var(--em-font-head); font-weight: 700;
  font-size: 28px; line-height: 1.1; color: var(--em-ink); letter-spacing: -.01em;
}
.em-stat span { display: block; font-size: 13px; line-height: 1.35; color: var(--em-mut); margin-top: 3px; }
.em-stat a { color: inherit !important; text-decoration: none; }

/* ---------- Иконки контактов в подвале (раньше были пустые квадраты) ---------- */
footer .contact_detail .fa, footer .pl_about_us_widget .fa {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .08) !important;
  vertical-align: middle; margin-right: 8px;
  transition: background .25s ease, box-shadow .25s ease;
}
footer .contact_detail .fa::before, footer .pl_about_us_widget .fa::before {
  content: "" !important; display: block; width: 17px; height: 17px;
  background: #bfe0c6;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
footer .contact_detail:hover .fa, footer .pl_about_us_widget a:hover .fa { background: var(--em-a) !important; box-shadow: 0 0 18px -2px rgba(127, 197, 154, .8); }
footer .contact_detail:hover .fa::before { background: #fff; }
footer .fa.fa-phone::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5l-2.5 1.5a11 11 0 0 0 5 5l1.5 -2.5l5 2v4a2 2 0 0 1 -2 2a16 16 0 0 1 -15 -15a2 2 0 0 1 2 -2'/%3E%3C/svg%3E"); }
footer .fa.fa-envelope::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10zM3 7l9 6l9 -6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10zM3 7l9 6l9 -6'/%3E%3C/svg%3E"); }
footer .fa.fa-link::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l6 -6M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15l6 -6M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463'/%3E%3C/svg%3E"); }
footer .fa.fa-location-arrow::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18.5l7.265 2.463a.535 .535 0 0 0 .57 -.116a.548 .548 0 0 0 .134 -.572l-7.969 -17.275l-7.97 17.275a.547 .547 0 0 0 .135 .572a.535 .535 0 0 0 .57 .116l7.265 -2.463'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 18.5l7.265 2.463a.535 .535 0 0 0 .57 -.116a.548 .548 0 0 0 .134 -.572l-7.969 -17.275l-7.97 17.275a.547 .547 0 0 0 .135 .572a.535 .535 0 0 0 .57 .116l7.265 -2.463'/%3E%3C/svg%3E"); }

/* старая тёмная кнопка «наверх» темы — заменена нашей */
#return-to-top { display: none !important; }

/* ---------- Нижняя панель действий на телефоне (добавляет скрипт) ---------- */
.em-mbar { display: none; }
@media (max-width: 767px) {
  .em-mbar {
    display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 9999;
    height: 62px; padding: 0 6px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid var(--em-line); border-radius: 20px;
    box-shadow: 0 14px 34px -14px rgba(31, 51, 80, .55);
  }
  .em-mbar a, .em-mbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 62px; padding: 0; border: 0; background: none; cursor: pointer;
    font: 600 10.5px/1.1 var(--em-font) !important; color: var(--em-ink) !important;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .em-mbar svg { width: 22px; height: 22px; color: var(--em-a2); }
  .em-mbar .em-mbar-main i {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
    background: var(--em-a); color: #fff;
    border: 4px solid #fff;
    animation: em-glow 2.6s ease-in-out infinite;
  }
  .em-mbar .em-mbar-main svg { color: #fff; }
  .em-mbar a:active, .em-mbar button:active { transform: scale(.94); }
  body.em-has-mbar { padding-bottom: 84px; }
  body.em-has-mbar .em-totop { bottom: 86px; right: 14px; width: 40px; height: 40px; }

  .em-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .em-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .em-stat b { font-size: 22px; }
  .em-stats-wrap { padding: 6px 12px 30px !important; }

  .head_panel .caption .inner .t1, .head_panel .caption .inner .t2,
  .head_panel .caption .inner h1, .head_panel .caption .inner h2, .head_panel .caption .inner h3 { font-size: 20px !important; line-height: 1.25 !important; }
  .section_header h1, .section_header h2 { font-size: 24px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .em-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .em-petals { display: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
