

/* Start:/bitrix/templates/petergof-med/css/header.css?177080177122072*/
/**
 * Header Styles based on MediNest template
 * Adapted for Bitrix CMS
 */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --heading-font: "Ubuntu", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --background-color: #ffffff;
  --default-color: #363f40;
  --heading-color: #1f2f31;
  --brand-color: #e31e25;
  --accent-color: #307a36;
  --accent-secondary: #acc50a;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #363f40;
  --nav-hover-color: #307a36;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #363f40;
  --nav-dropdown-hover-color: #307a36;
}

/*--------------------------------------------------------------
# Global Typography
--------------------------------------------------------------*/
body {
  font-family: var(--default-font);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Bootstrap Overrides - Основные кнопки
--------------------------------------------------------------*/
/* Переопределение Bootstrap .btn-primary для использования цвета бренда */
.btn-primary {
  background-color: var(--accent-color, #307a36) !important;
  border-color: var(--accent-color, #307a36) !important;
  color: var(--contrast-color, #ffffff) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--accent-secondary, #acc50a) !important;
  border-color: var(--accent-secondary, #acc50a) !important;
  color: var(--contrast-color, #ffffff) !important;
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(48, 122, 54, 0.5) !important;
}

.btn-outline-primary {
  color: var(--accent-color, #307a36) !important;
  border-color: var(--accent-color, #307a36) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--accent-color, #307a36) !important;
  border-color: var(--accent-color, #307a36) !important;
  color: var(--contrast-color, #ffffff) !important;
}

/*--------------------------------------------------------------
# Bitrix Admin Panel Fix
--------------------------------------------------------------*/
#panel { position: relative; z-index: 20000 !important; }

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

/* Переопределение Bootstrap _reboot.scss для логотипа */
.header .logo a,
.header .logo a:hover,
.header .logo a:focus,
.header .logo a:visited,
.header .logo a:active,
.header .logo a:link,
#header .logo a,
#header .logo a:hover,
#header .logo a:focus,
#header .logo a:visited,
#header .logo a:active,
#header .logo a:link,
header.header .logo a,
header.header .logo a:hover,
header.header .logo a:focus,
header.header .logo a:visited,
header.header .logo a:active,
header.header .logo a:link,
a.logo,
a.logo:hover,
a.logo:focus,
a.logo:visited,
a.logo:active,
a.logo:link {
  text-decoration: none !important;
  color: var(--brand-color, #e31e25);
  transition: opacity 0.3s;
}

.header .logo a:hover,
#header .logo a:hover,
header.header .logo a:hover,
a.logo:hover {
  opacity: 0.8;
  text-decoration: none !important;
}

.header .logo a *,
.header .logo a div,
.header .logo a span,
.header .logo .sitename,
.header .logo .sitename span,
#header .logo a *,
#header .logo a div,
#header .logo a span,
#header .logo .sitename,
#header .logo .sitename span,
header.header .logo a *,
header.header .logo a div,
header.header .logo a span,
header.header .logo .sitename,
header.header .logo .sitename span,
a.logo *,
a.logo div,
a.logo span,
a.logo .sitename,
a.logo .sitename span {
  text-decoration: none !important;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo .sitename {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  text-decoration: none;
}

.header .logo .sitename span {
  color: var(--brand-color, #e31e25);
  text-decoration: none;
}

.header .btn-getstarted,
.header .btn-getstarted:focus,
#header .btn-getstarted,
header.header .btn-getstarted {
  color: var(--contrast-color) !important;
  background: var(--accent-color) !important;
  background-color: var(--accent-color) !important;
  font-size: 14px !important;
  padding: 8px 26px !important;
  margin: 0 !important;
  border-radius: 4px !important;
  transition: 0.3s;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover,
#header .btn-getstarted:hover,
header.header .btn-getstarted:hover {
  color: var(--contrast-color) !important;
  background: var(--accent-secondary, #acc50a) !important;
  background-color: var(--accent-secondary, #acc50a) !important;
}

.header-actions {
  gap: 15px;
  pointer-events: auto;
  position: relative;
  z-index: 100;
}

/* Планшеты и меньше (до lg breakpoint Bootstrap) */
@media (max-width: 1199.98px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 20px;
  }

  .header .navmenu {
    order: 3;
  }

  /* Скрываем текст "ПетергофМед" на планшетах и мобильных */
  .header .logo .sitename {
    display: none !important;
  }

  /* Кнопка "Запись на приём" - показываем только "Запись" */
  .header .btn-getstarted {
    font-size: 12px !important;
    padding: 6px 12px !important;
    white-space: nowrap;
  }

  /* Скрываем полный текст, показываем короткий */
  .header .btn-getstarted .btn-text-full {
    display: none;
  }

  .header .btn-getstarted .btn-text-short {
    display: inline !important;
  }

  /* Кнопка для слабовидящих - фиксированный размер, не съеживается */
  .btn-accessibility {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  /* Изменяем порядок элементов: логотип слева, затем кнопки, затем меню */
  .header .container {
    flex-wrap: nowrap;
    gap: 15px;
  }

  .header .logo {
    order: 1 !important;
    margin-right: 0;
    margin-left: 10px;
    flex-shrink: 0;
  }

  .header .header-actions {
    order: 2 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 0;
    margin-right: 10px;
  }

  .header .navmenu {
    order: 3 !important;
    margin-left: 0;
  }

  /* Отступы между элементами */
  .header .header-actions .btn-accessibility {
    margin-right: 0;
  }

  .header .header-actions .btn-getstarted {
    margin-left: 0;
  }
}

/* Средние экраны (1200px - 1400px) - уменьшаем меню для экономии места */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* Уменьшаем шрифт и отступы в меню */
  .navmenu a,
  .navmenu a:focus {
    font-size: 13px !important;
    padding: 18px 8px !important;
  }

  /* Уменьшаем мега-меню */
  .navmenu .dropdown.mega-menu ul.mega-menu-content {
    width: 700px !important;
    padding: 20px !important;
    column-gap: 20px !important;
  }

  .navmenu .dropdown.mega-menu ul.mega-menu-content a {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }

  /* Уменьшаем кнопку записи */
  .header .btn-getstarted {
    font-size: 13px !important;
    padding: 7px 20px !important;
  }
}

/* Global Header on Scroll
------------------------------*/
body.scrolled #header.header,
body.scrolled header.header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

body.scrolled #header.header,
body.scrolled header.header {
  --background-color: #ffffff;
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 12px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color, #307a36);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    list-style: none;
  }

  /* Мегаменю для "Наши врачи" */
  .navmenu .dropdown.mega-menu ul.mega-menu-content {
    width: 800px;
    max-width: 90vw;
    padding: 25px;
    left: 0;
    column-count: 3;
    column-gap: 30px;
    column-fill: balance;
  }

  .navmenu .dropdown.mega-menu ul.mega-menu-content li {
    break-inside: avoid;
    page-break-inside: avoid;
    min-width: auto;
    margin-bottom: 8px;
  }

  .navmenu .dropdown.mega-menu ul.mega-menu-content a {
    white-space: nowrap;
    word-break: keep-all;
    font-size: 13px;
    padding: 8px 15px;
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color, #363f40);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color, #307a36);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color, #363f40);
    font-size: 28px;
    line-height: 0;
    margin-right: 0;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus {
    color: var(--nav-hover-color, #307a36);
    outline: none;
  }

  .mobile-nav-toggle:active {
    opacity: 0.7;
  }

  .mobile-nav-toggle i {
    font-size: 28px;
    line-height: 1;
    pointer-events: none;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color, #ffffff);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color, #363f40);
    padding: 10px 20px;
    font-family: var(--nav-font, "Poppins", sans-serif);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    text-decoration: none;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color, #307a36);
    color: var(--contrast-color, #ffffff);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color, #307a36);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color, #307a36);
    color: var(--contrast-color, #ffffff);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color, #ffffff);
    border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: fixed;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .mobile-nav-toggle i {
    font-size: 32px;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Accessibility Panel
--------------------------------------------------------------*/
.btn-accessibility {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  pointer-events: auto !important;
  z-index: 10000;
  position: relative;
}

.btn-accessibility i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.btn-accessibility:hover {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
}

.accessibility-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 320px;
  max-width: calc(100% - 40px);
  background: var(--surface-color, #ffffff);
  border-radius: 8px;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  overflow: hidden;
}

.accessibility-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
}

.accessibility-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.accessibility-close {
  background: transparent;
  border: none;
  color: var(--contrast-color, #ffffff);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s;
}

.accessibility-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.accessibility-panel-body {
  padding: 20px;
}

.accessibility-control {
  margin-bottom: 20px;
}

.accessibility-control:last-child {
  margin-bottom: 0;
}

.accessibility-control label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--heading-color, #1f2f31);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  flex: 1;
  padding: 8px 16px;
  background: var(--surface-color, #ffffff);
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 70%);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--default-color, #363f40);
}

.control-btn:hover {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
  border-color: var(--accent-color, #307a36);
}

.control-btn.active {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
  border-color: var(--accent-color, #307a36);
}

#font-size-value {
  min-width: 80px;
  text-align: center;
  font-weight: 500;
}

.btn-reset {
  width: 100%;
  padding: 10px;
  background: color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 70%);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--default-color, #363f40);
}

.btn-reset:hover {
  background: color-mix(in srgb, var(--default-color, #363f40), transparent 80%);
}

/* Accessibility styles applied to body */
body.accessibility-large-font {
  font-size: 120%;
}

body.accessibility-extra-large-font {
  font-size: 150%;
}

body.accessibility-high-contrast {
  --background-color: #ffffff;
  --default-color: #000000;
  --heading-color: #000000;
  --accent-color: #307a36;
  filter: contrast(1.2);
}

body.accessibility-large-line-height {
  line-height: 1.8;
}

@media (max-width: 1199px) {
  .accessibility-panel {
    top: 60px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}

/*--------------------------------------------------------------
# Branches Dropdown
--------------------------------------------------------------*/
.branches-dropdown {
  position: relative;
  display: inline-block;
}

.btn-branches {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  pointer-events: auto !important;
  z-index: 10000;
  position: relative;
}

.btn-branches i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.btn-branches:hover {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
}

.branches-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--surface-color, #ffffff);
  border-radius: 8px;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.branches-dropdown:hover .branches-menu,
.branches-dropdown:focus-within .branches-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.branches-menu-header {
  padding: 12px 16px;
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.branches-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.branches-list li {
  margin: 0;
}

.branch-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--default-color, #363f40);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}

.branch-link i {
  font-size: 16px;
  color: var(--accent-color, #307a36);
  flex-shrink: 0;
}

.branch-link span {
  flex: 1;
}

.branch-link:hover {
  background: color-mix(in srgb, var(--accent-color, #307a36), transparent 95%);
  color: var(--nav-hover-color, #307a36);
}

.branch-link:hover i {
  color: var(--nav-hover-color, #307a36);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1199px) {
  .btn-branches {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  .branches-menu {
    right: auto;
    left: 0;
    top: calc(100% + 10px);
  }
}

/* Для очень маленьких экранов - скрываем выпадающее меню при наведении, показываем только при клике */
@media (max-width: 575px) {
  .branches-dropdown:hover .branches-menu {
    opacity: 0;
    visibility: hidden;
  }

  .branches-dropdown.active .branches-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}


/* мои вставки */

.page-title {
    color: var(--default-color, #363f40);
    background-color: var(--background-color, #ffffff);
    position: relative;
    padding-top: 50px;
}
.page-title .heading {
    padding: 40px 0;
}


/* End */


/* Start:/bitrix/templates/petergof-med/css/footer.css?176881912911098*/
/**
* Footer Styles for Петергоф-Мед Template
* Based on MediNest template with project color scheme
*/

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color, #363f40);
  background-color: var(--background-color, #ffffff);
  font-size: 14px;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer .footer-top {
  border-top: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.footer .footer-top .container {
  padding-top: 50px;
  padding-bottom: 30px;
}


/*--------------------------------------------------------------
# Footer About Section (Logo, Contacts, Socials)
--------------------------------------------------------------*/
.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 15px;
  text-decoration: none;
}

.footer .footer-about .logo img {
  max-height: 35px;
  margin-right: 6px;
}

.footer .footer-about .logo .sitename {
  color: var(--heading-color, #1f2f31);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.footer .footer-about .logo .sitename span {
  color: var(--brand-color, #e31e25);
  text-decoration: none;
}

.footer .footer-about p {
  font-size: 13px;
  font-family: var(--default-font, "Roboto", sans-serif);
  margin-bottom: 4px;
}

.footer .footer-contact {
  padding-top: 0 !important;
}

.footer .footer-contact p {
  margin-bottom: 4px;
  font-size: 13px;
}

.footer .footer-contact a {
  color: var(--default-color, #363f40);
  text-decoration: none;
  transition: color 0.3s;
}

.footer .footer-contact a:hover {
  color: var(--accent-color, #307a36);
}

/*--------------------------------------------------------------
# Footer Social Links
--------------------------------------------------------------*/
.footer .social-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 0;
}

.footer .footer-links-compact {
  margin-top: 15px;
}

.footer .footer-links-compact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links-compact ul li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.footer .footer-links-compact ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer .footer-links-compact ul a {
  color: var(--default-color, #363f40);
  display: inline-block;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 13px;
  width: 100%;
}

.footer .footer-links-compact ul a:hover {
  color: var(--accent-color, #307a36);
  padding-left: 5px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 50%);
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color, #363f40), transparent 20%);
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s;
  text-decoration: none;
}

.footer .social-links a:hover {
  color: var(--accent-color, #307a36);
  border-color: var(--accent-color, #307a36);
  background-color: color-mix(in srgb, var(--accent-color, #307a36), transparent 95%);
}

/*--------------------------------------------------------------
# Footer Address Sections (Филиалы)
--------------------------------------------------------------*/
.footer .footer-address {
  margin-bottom: 30px;
  padding: 18px;
  background-color: color-mix(in srgb, var(--background-color, #ffffff), var(--default-color, #363f40) 2%);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color, #307a36);
}

.footer .footer-address-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.footer .footer-address-list li {
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  color: var(--default-color, #363f40);
  font-size: 14px;
  line-height: 1.5;
}

.footer .footer-address-list li i {
  margin-right: 10px;
  margin-top: 3px;
  color: var(--accent-color, #307a36);
  font-size: 18px;
  flex-shrink: 0;
}

.footer .footer-working-hours {
  margin-bottom: 15px;
  padding: 12px;
  background-color: color-mix(in srgb, var(--accent-color, #307a36), transparent 95%);
  border-radius: 6px;
}

.footer .footer-working-hours .hours-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--heading-color, #1f2f31);
  font-size: 14px;
  font-family: var(--heading-font, "Ubuntu", sans-serif);
}

.footer .footer-working-hours .hours-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.footer .footer-working-hours .hours-item:last-child {
  border-bottom: none;
}

.footer .footer-working-hours .hours-day {
  color: var(--default-color, #363f40);
}

.footer .footer-working-hours .hours-time {
  color: var(--accent-color, #307a36);
  font-weight: 600;
}

.footer .footer-services {
  font-size: 12px;
  color: var(--default-color, #363f40);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

/*--------------------------------------------------------------
# Footer Links Sections
--------------------------------------------------------------*/
.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
  color: var(--heading-color, #1f2f31);
  font-family: var(--heading-font, "Ubuntu", sans-serif);
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer .footer-links ul a {
  color: var(--default-color, #363f40);
  display: inline-block;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
  width: 100%;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color, #307a36);
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Footer Bottom (Нижний блок)
--------------------------------------------------------------*/
.footer .footer-bottom {
  padding: 30px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
  background-color: color-mix(in srgb, var(--default-color, #363f40), transparent 98%);
}

.footer .footer-bottom .row {
  flex-wrap: wrap;
}

.footer .footer-bottom-text {
  color: var(--default-color, #363f40);
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  margin-bottom: 15px;
}

.footer .footer-bottom-text p {
  margin-bottom: 8px;
  color: var(--default-color, #363f40);
}

.footer .footer-bottom-text p:last-child {
  margin-bottom: 0;
}

.footer .footer-bottom-text a {
  color: var(--accent-color, #307a36);
  text-decoration: none;
  transition: color 0.3s;
}

.footer .footer-bottom-text a:hover {
  color: var(--accent-secondary, #acc50a);
  text-decoration: underline;
}

.footer .footer-bottom-right {
  width: 100%;
  margin-top: 0;
}

.footer .footer-bottom-right .d-flex {
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer .footer-bottom-text {
    width: auto;
    margin-bottom: 0;
  }

  .footer .footer-bottom-right {
    width: auto;
  }

  .footer .footer-bottom-right .d-flex {
    flex-wrap: nowrap;
  }
}

.footer .footer-developer {
  font-size: 12px;
  color: var(--default-color, #363f40);
  white-space: nowrap;
  margin-bottom: 0;
}

.footer .footer-payment-cards {
  flex-shrink: 0;
}

.footer .footer-payment-img {
  max-height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer .footer-payment-img:hover {
  opacity: 1;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  left: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent-color, #307a36);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  text-decoration: none;
  color: var(--contrast-color, #ffffff);
  box-shadow: 0 2px 12px 0 color-mix(in srgb, var(--accent-color, #307a36), transparent 50%);
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color, #ffffff);
  line-height: 0;
}

.scroll-top:hover {
  background: var(--accent-secondary, #acc50a);
  color: var(--contrast-color, #ffffff);
  box-shadow: 0 2px 12px 0 color-mix(in srgb, var(--accent-secondary, #acc50a), transparent 50%);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  .footer .footer-top .container {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .footer .footer-links {
    margin-bottom: 25px;
  }
}

@media (max-width: 767.98px) {
  .footer .footer-top .container {
    padding-top: 30px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer .footer-about {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer .footer-about .logo {
    justify-content: center;
  }

  .footer .social-links {
    justify-content: center;
  }

  .footer .footer-links {
    margin-bottom: 20px;
    text-align: center;
  }

  .footer h4 {
    text-align: center;
  }

  /* Боковые отступы для адресных блоков */
  .footer .footer-address {
    margin-left: 10px;
    margin-right: 10px;
    padding: 15px;
  }

  .footer .footer-bottom {
    padding: 20px 0;
  }

  /* Боковые отступы для нижнего блока */
  .footer .footer-bottom .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer .footer-bottom-text {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 5px;
  }

  .footer .footer-bottom-right {
    text-align: center;
    padding: 0 5px;
  }

  .footer .footer-bottom-right .d-flex {
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer .footer-developer {
    white-space: normal;
    text-align: center;
    margin-bottom: 0;
  }

  .scroll-top {
    width: 40px;
    height: 40px;
    left: 10px;
    bottom: 10px;
  }

  .scroll-top i {
    font-size: 20px;
  }
}


/* End */


/* Start:/bitrix/templates/petergof-med/css/main.css?176881912942952*/
/**
 * Main Page Styles
 * Based on MediNest template, adapted for Петергоф-Мед
 */

/*--------------------------------------------------------------
# Global Overflow Fix
--------------------------------------------------------------*/
body {
  overflow-x: hidden;
}

/*--------------------------------------------------------------
# Section Base Styles
--------------------------------------------------------------*/
.section {
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  margin-bottom: 0;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: var(--heading-color, #1f2f31);
  position: relative;
  display: inline-block;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 120px;
  height: 1px;
  background: var(--accent-color, #307a36);
  bottom: 1px;
  left: calc(50% - 60px);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color, #307a36);
  bottom: 0;
  left: calc(50% - 20px);
}

.section-title p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--default-color, #363f40);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  position: relative;
  padding: 140px 0 60px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(227, 30, 37, 0.08) 0%, rgba(48, 122, 54, 0.08) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/bitrix/templates/petergof-med/css/../images/hero-background.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .hero-image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  max-width: 100%;
}

.hero .hero-image-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
}

.hero .hero-image-wrapper .main-image {
  width: 100%;
  min-height: 500px;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.hero .hero-image-wrapper:hover .main-image {
  transform: scale(1.05);
}

.hero .hero-image-wrapper .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(48, 122, 54, 0.1) 0%, rgba(48, 122, 54, 0.3) 100%);
  pointer-events: none;
}

.hero .hero-content {
  padding-left: 40px;
  position: relative;
  z-index: 2;
}

.hero .hero-content .badge-container {
  margin-bottom: 20px;
}

.hero .hero-content .badge-container .hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .hero-content .hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--heading-color, #1f2f31);
  line-height: 1.2;
}

.hero .hero-content .hero-description {
  font-size: 18px;
  color: var(--default-color, #363f40);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero .hero-stats {
  margin-bottom: 40px;
}

.hero .hero-stats .stat-group {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero .hero-stats .stat-group .stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero .hero-stats .stat-group .stat i {
  font-size: 32px;
  color: var(--accent-color, #307a36);
}

.hero .hero-stats .stat-group .stat .stat-text {
  display: flex;
  flex-direction: column;
}

.hero .hero-stats .stat-group .stat .stat-text .number {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  line-height: 1;
}

.hero .hero-stats .stat-group .stat .stat-text .label {
  font-size: 14px;
  color: var(--default-color, #363f40);
  margin-top: 5px;
}

.hero .cta-section {
  margin-top: 40px;
}

.hero .cta-section .cta-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero .cta-section .cta-buttons .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}

.hero .cta-section .cta-buttons .btn.btn-primary {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
  border: none;
}

.hero .cta-section .cta-buttons .btn.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color, #307a36), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(48, 122, 54, 0.3);
}

.hero .cta-section .cta-buttons .btn.btn-secondary {
  background: transparent;
  color: var(--accent-color, #307a36);
  border: 2px solid var(--accent-color, #307a36);
}

.hero .cta-section .cta-buttons .btn.btn-secondary:hover {
  background: var(--accent-color, #307a36);
  color: var(--contrast-color, #ffffff);
}

.hero .quick-actions {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero .quick-actions .action-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--default-color, #363f40);
  font-size: 14px;
  transition: all 0.3s;
}

.hero .quick-actions .action-link i {
  font-size: 20px;
  color: var(--accent-color, #307a36);
}

.hero .quick-actions .action-link:hover {
  color: var(--accent-color, #307a36);
}

/* Floating Cards */
.hero .hero-image .floating-card {
  position: absolute;
  background: var(--surface-color, #ffffff);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 85%);
  z-index: 10;
  transition: all 0.3s;
  animation: float 3s ease-in-out infinite;
}

.hero .hero-image .floating-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(48, 122, 54, 0.3);
  border-color: var(--accent-color, #307a36);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero .hero-image .floating-card.emergency-card {
  top: 30px;
  left: 0;
  min-width: 220px;
  max-width: calc(100% - 20px);
}

.hero .hero-image .floating-card.emergency-card .card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-radius: 15px;
  font-size: 28px;
  color: var(--contrast-color, #ffffff);
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(48, 122, 54, 0.3);
}

.hero .hero-image .floating-card.emergency-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero .hero-image .floating-card.emergency-card .card-label {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color, #363f40), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .hero-image .floating-card.emergency-card .card-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  text-decoration: none;
  transition: all 0.2s;
}

.hero .hero-image .floating-card.emergency-card .card-number:hover {
  color: var(--accent-color, #307a36);
}

.hero .hero-image .floating-card.stats-card {
  bottom: 40px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  min-width: 280px;
  max-width: calc(100% - 20px);
}

.hero .hero-image .floating-card.stats-card .stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.hero .hero-image .floating-card.stats-card .stat-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-radius: 12px;
  font-size: 24px;
  color: var(--contrast-color, #ffffff);
  box-shadow: 0 4px 12px rgba(48, 122, 54, 0.25);
  flex-shrink: 0;
}

.hero .hero-image .floating-card.stats-card .stat-content {
  display: flex;
  flex-direction: column;
}

.hero .hero-image .floating-card.stats-card .stat-content .number {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color, #307a36);
  line-height: 1;
  margin-bottom: 3px;
}

.hero .hero-image .floating-card.stats-card .stat-content .label {
  font-size: 12px;
  color: color-mix(in srgb, var(--default-color, #363f40), transparent 30%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .hero-image .floating-card.stats-card .stat-divider {
  width: 1px;
  height: 50px;
  background: color-mix(in srgb, var(--default-color, #363f40), transparent 85%);
  flex-shrink: 0;
}

.hero .hero-image .floating-card.trust-card {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  min-width: 200px;
  max-width: calc(100% - 20px);
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-color: var(--accent-color, #307a36);
}

.hero .hero-image .floating-card.trust-card .trust-badge {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 24px;
  color: var(--contrast-color, #ffffff);
  flex-shrink: 0;
}

.hero .hero-image .floating-card.trust-card .trust-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero .hero-image .floating-card.trust-card .trust-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero .hero-image .floating-card.trust-card .trust-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--contrast-color, #ffffff);
}

@media (max-width: 991px) {
  .hero .hero-image {
    min-height: 400px;
    margin-bottom: 40px;
  }

  /* Скрываем все floating-card на мобильных устройствах */
  .hero .hero-image .floating-card {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 100px 0 30px 0;
    text-align: center;
  }

  .quick-services {
    padding-top: 10px;
  }

  .hero .hero-content {
    padding-left: 0;
    margin-top: 40px;
  }

  .hero .hero-content .hero-title {
    font-size: 36px;
  }

  .hero .hero-content .hero-description {
    font-size: 16px;
  }

  .hero .hero-stats .stat-group {
    justify-content: center;
  }

  .hero .cta-section .cta-buttons {
    justify-content: center;
  }

  .hero .quick-actions {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Quick Services Section
--------------------------------------------------------------*/
.quick-services {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color, #307a36), transparent 98%) 0%, var(--background-color, #ffffff) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 20px;
}

.quick-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(48,122,54,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.quick-services .container {
  position: relative;
  z-index: 1;
}

.quick-services .service-card {
  background: var(--surface-color, #ffffff);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.quick-services .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.quick-services .service-card:hover::before {
  transform: scaleX(1);
}

.quick-services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(48, 122, 54, 0.2);
  border: 2px solid var(--accent-color, #307a36);
}

.quick-services .service-card .service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-radius: 20px;
  font-size: 40px;
  color: var(--contrast-color, #ffffff);
  box-shadow: 0 8px 20px rgba(48, 122, 54, 0.25);
  transition: all 0.3s;
}

.quick-services .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(48, 122, 54, 0.35);
}

.quick-services .service-card .service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 15px;
  line-height: 1.3;
}

.quick-services .service-card .service-description {
  font-size: 15px;
  color: var(--default-color, #363f40);
  margin-bottom: 25px;
  flex-grow: 1;
  line-height: 1.6;
  opacity: 0.9;
}

.quick-services .service-card .service-link {
  color: var(--accent-color, #307a36);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.quick-services .service-card .service-link::after {
  content: '→';
  transition: transform 0.3s;
}

.quick-services .service-card .service-link:hover {
  color: var(--accent-secondary, #acc50a);
  gap: 12px;
}

.quick-services .service-card .service-link:hover::after {
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Services Section (Detailed)
--------------------------------------------------------------*/
.services-detailed {
  background: var(--background-color, #ffffff);
}

.services-detailed .service-card-detailed {
  background: var(--surface-color, #ffffff);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 0;
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-detailed .service-card-detailed:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color, #307a36);
}

.services-detailed .service-card-detailed .service-header {
  margin-bottom: 20px;
}

.services-detailed .service-card-detailed .service-header .service-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 0;
}

.services-detailed .service-card-detailed .service-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services-detailed .service-card-detailed .service-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.services-detailed .service-card-detailed .service-content ul li {
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.services-detailed .service-card-detailed .service-content ul li:last-child {
  border-bottom: none;
}

.services-detailed .service-card-detailed .service-content ul li a {
  color: var(--default-color, #363f40);
  text-decoration: none;
  transition: all 0.3s;
}

.services-detailed .service-card-detailed .service-content ul li a:hover {
  color: var(--accent-color, #307a36);
  padding-left: 5px;
}

.services-detailed .service-card-detailed .service-link {
  color: var(--accent-color, #307a36);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.services-detailed .service-card-detailed .service-link:hover {
  color: color-mix(in srgb, var(--accent-color, #307a36), transparent 20%);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
  background: var(--background-color, #ffffff);
  position: relative;
}

/* Director Message Block */
.about-section .director-message {
  background: var(--surface-color, #ffffff);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 92%);
  border-left: 5px solid var(--accent-color, #307a36);
  position: relative;
}

.about-section .director-message-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
}

.about-section .director-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-radius: 50%;
  font-size: 40px;
  color: var(--contrast-color, #ffffff);
  box-shadow: 0 5px 15px rgba(48, 122, 54, 0.25);
  flex-shrink: 0;
}

.about-section .director-info {
  flex: 1;
}

.about-section .director-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 5px;
}

.about-section .director-position {
  font-size: 15px;
  color: var(--accent-color, #307a36);
  font-weight: 600;
}

.about-section .director-message-content {
  font-size: 16px;
  color: var(--default-color, #363f40);
  line-height: 1.9;
}

.about-section .director-message-content p {
  margin-bottom: 18px;
}

.about-section .director-message-content p:last-child {
  margin-bottom: 0;
}

.about-section .director-message-content a {
  color: var(--accent-color, #307a36);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.about-section .director-message-content a:hover {
  color: var(--accent-secondary, #acc50a);
  border-bottom-color: var(--accent-secondary, #acc50a);
}

.about-section .about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 0;
}

.about-section .about-features .feature-item {
  display: flex;
  gap: 18px;
  background: var(--surface-color, #ffffff);
  border-radius: 15px;
  padding: 22px;
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 140px;
  align-items: flex-start;
}

.about-section .about-features .feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
}

.about-section .about-features .feature-item:hover::before {
  transform: scaleY(1);
}

.about-section .about-features .feature-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(48, 122, 54, 0.15);
  border: 2px solid var(--accent-color, #307a36);
}

.about-section .about-features .feature-item .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  border-radius: 12px;
  font-size: 22px;
  color: var(--contrast-color, #ffffff);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(48, 122, 54, 0.25);
  transition: all 0.3s;
}

.about-section .about-features .feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.about-section .about-features .feature-item .feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-section .about-features .feature-item .feature-content .feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 10px;
  line-height: 1.3;
}

.about-section .about-features .feature-item .feature-content .feature-description {
  font-size: 14px;
  color: var(--default-color, #363f40);
  line-height: 1.6;
  opacity: 0.9;
  flex: 1;
}

@media (max-width: 991px) {
  .about-section .director-message {
    padding: 30px 25px;
  }

  .about-section .director-icon {
    width: 60px;
    height: 60px;
    font-size: 35px;
  }

  .about-section .director-name {
    font-size: 20px;
  }

  .about-section .director-position {
    font-size: 14px;
  }

  .about-section .director-message-content {
    font-size: 15px;
  }

  .about-section .about-features {
    gap: 18px;
  }

  .about-section .about-features .feature-item {
    padding: 20px;
    gap: 15px;
    min-height: 130px;
  }
}

@media (max-width: 767px) {
  .about-section .director-message {
    padding: 25px 20px;
  }

  .about-section .director-message-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    padding-bottom: 15px;
  }

  .about-section .director-icon {
    width: 60px;
    height: 60px;
    font-size: 35px;
  }

  .about-section .director-name {
    font-size: 18px;
  }

  .about-section .director-position {
    font-size: 13px;
  }

  .about-section .director-message-content {
    font-size: 15px;
  }

  .about-section .about-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-section .about-features .feature-item {
    padding: 18px;
    gap: 12px;
    min-height: auto;
  }

  .about-section .about-features .feature-item .feature-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .about-section .about-features .feature-item .feature-content .feature-title {
    font-size: 17px;
  }

  .about-section .about-features .feature-item .feature-content .feature-description {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Advantages & Video Section
--------------------------------------------------------------*/
.advantages-video-section {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color, #307a36), transparent 95%) 0%, var(--background-color, #ffffff) 100%);
  position: relative;
  overflow: hidden;
}

.advantages-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(48,122,54,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.advantages-video-section .container {
  position: relative;
  z-index: 1;
}

/* Video Block */
.advantages-video-section .video-block {
  position: relative;
  background: var(--surface-color, #ffffff);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
  transition: all 0.3s;
}

.advantages-video-section .video-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color, #307a36);
}

.advantages-video-section .video-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-color, #307a36);
}

.advantages-video-section .video-label i {
  font-size: 24px;
}

.advantages-video-section .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
}

.advantages-video-section .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Advantages Grid */
.advantages-video-section .advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  height: 100%;
  align-content: stretch;
}

@media (min-width: 992px) {
  .advantages-video-section .row.align-items-center {
    align-items: stretch;
  }

  .advantages-video-section .video-block {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .advantages-video-section .video-wrapper {
    flex: 1;
    min-height: 0;
  }

  .advantages-video-section .advantages-grid {
    height: 100%;
    gap: 12px;
  }

  .advantages-video-section .advantage-card {
    flex: 1;
    min-height: 0;
  }
}

.advantages-video-section .advantage-card {
  background: var(--surface-color, #ffffff);
  border-radius: 15px;
  padding: 25px;
  padding-bottom: 20px;
  transition: all 0.3s;
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 85%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  min-height: 140px;
}

.advantages-video-section .advantage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advantages-video-section .advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.advantages-video-section .advantage-card:hover::before {
  transform: scaleX(1);
}

.advantages-video-section .advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(48, 122, 54, 0.2);
  border: 2px solid var(--accent-color, #307a36);
}

.advantages-video-section .advantage-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color, #307a36), var(--accent-secondary, #acc50a));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--contrast-color, #ffffff);
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(48, 122, 54, 0.3);
}

.advantages-video-section .advantage-card.happy-clients .advantage-icon {
  background: linear-gradient(135deg, #307a36, #acc50a);
}

.advantages-video-section .advantage-card.modern-technologies .advantage-icon {
  background: linear-gradient(135deg, #e31e25, #307a36);
}

.advantages-video-section .advantage-card.doctors .advantage-icon {
  background: linear-gradient(135deg, #acc50a, #307a36);
}

.advantages-video-section .advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin: 0;
  line-height: 1.3;
}

.advantages-video-section .advantage-description {
  font-size: 15px;
  color: var(--default-color, #363f40);
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

@media (max-width: 991px) {
  .advantages-video-section .video-block {
    margin-bottom: 30px;
    padding: 20px;
  }

  .advantages-video-section .video-label {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .advantages-video-section .advantages-grid {
    gap: 12px;
    min-height: auto;
  }

  .advantages-video-section .advantage-card {
    min-height: 120px;
    padding: 20px;
    padding-bottom: 18px;
    gap: 15px;
  }

  .advantages-video-section .advantage-content {
    gap: 8px;
  }

  .advantages-video-section .advantage-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .advantages-video-section .advantage-title {
    font-size: 18px;
  }

  .advantages-video-section .advantage-description {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .advantages-video-section .video-block {
    padding: 15px;
  }

  .advantages-video-section .advantage-card {
    min-height: auto;
    padding: 18px;
    padding-bottom: 15px;
    gap: 12px;
  }

  .advantages-video-section .advantage-content {
    gap: 8px;
  }

  .advantages-video-section .advantage-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .advantages-video-section .advantage-title {
    font-size: 16px;
  }

  .advantages-video-section .advantage-description {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Contacts Section
--------------------------------------------------------------*/
.contacts-section {
  background: var(--background-color, #ffffff);
}

.contacts-section .contact-block {
  margin-bottom: 50px;
  background: var(--surface-color, #ffffff);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 95%);
  transition: all 0.3s;
}

.contacts-section .contact-block:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.contacts-section .contact-block:last-child {
  margin-bottom: 0;
}

.contacts-section .contact-block .contact-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color, #307a36);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 85%);
  line-height: 1.4;
}

.contacts-section .contact-block .contact-info {
  padding: 0;
  margin-bottom: 0;
  border: none;
  background: transparent;
}

.contacts-section .contact-block .contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 15px;
}

.contacts-section .contact-block .contact-info .contact-item:last-child {
  margin-bottom: 0;
}

.contacts-section .contact-block .contact-info .contact-item i {
  font-size: 20px;
  color: var(--accent-color, #307a36);
  margin-top: 3px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contacts-section .contact-block .contact-info .contact-item .contact-item-content {
  flex: 1;
}

.contacts-section .contact-block .contact-info .contact-item strong {
  color: var(--heading-color, #1f2f31);
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.contacts-section .contact-block .contact-info .contact-item div,
.contacts-section .contact-block .contact-info .contact-item a {
  color: var(--default-color, #363f40);
  font-size: 14px;
  line-height: 1.6;
}

.contacts-section .contact-block .contact-info .contact-item a {
  color: var(--accent-color, #307a36);
  text-decoration: none;
  transition: all 0.2s;
}

.contacts-section .contact-block .contact-info .contact-item a:hover {
  color: var(--accent-secondary, #acc50a);
  text-decoration: underline;
}

.contacts-section .contact-block .map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 350px;
  border: 2px solid color-mix(in srgb, var(--accent-color, #307a36), transparent 90%);
}

.contacts-section .contact-block .map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 991px) {
  .contacts-section .contact-block {
    padding: 25px 20px;
    margin-bottom: 40px;
  }

  .contacts-section .contact-block .contact-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .contacts-section .contact-block .contact-info .contact-item {
    margin-bottom: 15px;
    gap: 12px;
  }

  .contacts-section .contact-block .contact-info .contact-item i {
    font-size: 18px;
    width: 20px;
  }

  .contacts-section .contact-block .map-wrapper {
    height: 300px;
    margin-top: 20px;
  }
}

/*--------------------------------------------------------------
# Insurance Companies Section
--------------------------------------------------------------*/
.insurance-section {
  background: var(--background-color, #ffffff);
}

.insurance-section .insurance-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.insurance-section .insurance-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background: var(--surface-color, #ffffff);
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
  transition: all 0.3s;
  flex: 1;
  max-width: 180px;
  height: 100px;
}

.insurance-section .insurance-logo-item:hover {
  border-color: var(--accent-color, #307a36);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.insurance-section .insurance-logo-item img {
  max-height: 70px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.insurance-section .insurance-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1200px) {
  .insurance-section .insurance-logos {
    flex-wrap: wrap;
    gap: 15px;
  }

  .insurance-section .insurance-logo-item {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    height: 90px;
    padding: 12px;
  }

  .insurance-section .insurance-logo-item img {
    max-height: 60px;
    max-width: 140px;
  }
}

@media (max-width: 767px) {
  .insurance-section .insurance-logos {
    gap: 10px;
  }

  .insurance-section .insurance-logo-item {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    height: 80px;
    padding: 10px;
  }

  .insurance-section .insurance-logo-item img {
    max-height: 50px;
    max-width: 120px;
  }
}

/*--------------------------------------------------------------
# Special Offers Section
--------------------------------------------------------------*/
.special-offers {
  background: var(--background-color, #ffffff);
}

.special-offers-list {
  margin-top: 40px;
}

.offer-card {
  background: var(--surface-color, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(48, 122, 54, 0.2);
}

.offer-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(227, 30, 37, 0.1) 0%, rgba(48, 122, 54, 0.1) 100%);
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-image img {
  transform: scale(1.05);
}

.offer-content {
  padding: 20px;
}

.offer-title {
  font-family: var(--heading-font, "Ubuntu", sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 12px;
  line-height: 1.4;
}

.offer-description {
  color: var(--default-color, #363f40);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.offer-services {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color, #363f40), transparent 20%);
  padding-top: 15px;
  border-top: 1px solid color-mix(in srgb, var(--default-color, #363f40), transparent 90%);
}

.offer-services strong {
  color: var(--accent-color, #307a36);
  font-weight: 600;
}

.special-offers .offers-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 40px;
  text-align: center;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .hero .hero-content .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .hero {
    padding: 80px 0 20px 0;
    min-height: auto;
  }

  .quick-services {
    padding-top: 10px;
  }

  .hero::before,
  .hero::after {
    opacity: 0.1;
  }

  .hero .hero-content {
    padding-left: 0;
    margin-top: 0;
  }

  .hero .hero-content .badge-container {
    margin-bottom: 15px;
  }

  .hero .hero-content .badge-container .hero-badge {
    font-size: 11px;
    padding: 6px 16px;
  }

  .hero .hero-content .hero-title {
    font-size: 26px;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .hero .hero-content .hero-description {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .hero .hero-content .hero-license {
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 20px;
  }

  .hero .hero-stats {
    margin-bottom: 25px;
  }

  .hero .hero-stats .stat-group {
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero .hero-stats .stat-group .stat {
    gap: 10px;
    flex: 0 0 auto;
  }

  .hero .hero-stats .stat-group .stat i {
    font-size: 24px;
  }

  .hero .hero-stats .stat-group .stat .stat-text .number {
    font-size: 20px;
  }

  .hero .hero-stats .stat-group .stat .stat-text .label {
    font-size: 12px;
  }

  .hero .cta-section {
    margin-top: 25px;
  }

  .hero .cta-section .cta-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero .cta-section .cta-buttons .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .hero .hero-image {
    min-height: 300px;
    margin-bottom: 30px;
  }

  .hero .hero-image-wrapper {
    border-radius: 15px;
  }

  .hero .hero-image .floating-card {
    padding: 15px;
    border-radius: 15px;
    margin: 12px 0;
  }

  .hero .hero-image .floating-card.emergency-card {
    min-width: auto;
  }

  .hero .hero-image .floating-card.emergency-card .card-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .hero .hero-image .floating-card.emergency-card .card-label {
    font-size: 11px;
  }

  .hero .hero-image .floating-card.emergency-card .card-number {
    font-size: 18px;
  }

  .hero .hero-image .floating-card.stats-card {
    padding: 18px;
    min-width: auto;
  }

  .hero .hero-image .floating-card.stats-card .stat-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .hero .hero-image .floating-card.stats-card .stat-content .number {
    font-size: 20px;
  }

  .hero .hero-image .floating-card.stats-card .stat-content .label {
    font-size: 11px;
  }

  .hero .hero-image .floating-card.trust-card {
    padding: 15px 18px;
    min-width: auto;
  }

  .hero .hero-image .floating-card.trust-card .trust-badge {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .hero .hero-image .floating-card.trust-card .trust-title {
    font-size: 10px;
  }

  .hero .hero-image .floating-card.trust-card .trust-number {
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
# Contact Page Styles
--------------------------------------------------------------*/
.contact-item-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color, #307a36);
  font-size: 14px;
}

.contact-item-card i {
  color: var(--accent-color, #307a36);
  margin-right: 8px;
  font-size: 16px;
}

.contact-item-card a {
  color: var(--default-color, #363f40);
  text-decoration: none;
}

.contact-item-card a:hover {
  color: var(--accent-color, #307a36);
  text-decoration: underline;
}

.contact-info-compact {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.contact-info-compact p {
  margin-bottom: 15px;
}

.contact-info-compact p:last-child {
  margin-bottom: 0;
}

.contact-info-compact strong {
  color: var(--heading-color, #1f2f31);
  font-family: var(--heading-font, "Ubuntu", sans-serif);
  display: block;
  margin-bottom: 5px;
}

.contact-info-compact i {
  color: var(--accent-color, #307a36);
  margin-right: 8px;
}

.map-container-compact {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* Sidebar Widget Styles */
.sidebar-widget {
  position: sticky;
  top: 100px;
}

.widget {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: var(--heading-font, "Ubuntu", sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color, #307a36);
}

.widget-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-links li {
  margin-bottom: 10px;
  padding-left: 0;
}

.widget-links li:last-child {
  margin-bottom: 0;
}

.widget-links li i {
  color: var(--accent-color, #307a36);
  margin-right: 8px;
  font-size: 14px;
}

.widget-links li a {
  color: var(--default-color, #363f40);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.widget-links li a:hover {
  color: var(--accent-color, #307a36);
  text-decoration: underline;
}

/* Responsive adjustments for contact page */
@media (max-width: 991px) {
  .sidebar-widget {
    position: static;
    margin-top: 30px;
  }

  .contact-info-compact {
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Patients Page Styles
--------------------------------------------------------------*/
.patients-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.patients-links-list li {
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.6;
}

.patients-links-list li:last-child {
  margin-bottom: 0;
}

.patients-links-list li i {
  color: var(--accent-color, #307a36);
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.patients-links-list li a {
  color: var(--default-color, #363f40);
  text-decoration: none;
  transition: color 0.3s ease;
}

.patients-links-list li a:hover {
  color: var(--accent-color, #307a36);
  text-decoration: underline;
}

.pacientam section {
  padding: 60px 0;
}

.pacientam h3 {
  font-family: var(--heading-font, "Ubuntu", sans-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color, #307a36);
}


/* End */


/* Start:/bitrix/templates/petergof-med/css/appointment.css?17899941686976*/
/**
 * Appointment Form Styles
 * Стили для модуля записи на приём
 */

/* Модальное окно */
#appointmentModal .modal-dialog {
  max-width: 800px;
}

#appointmentModal .modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#appointmentModal .modal-header {
  border-bottom: 2px solid #f0f0f0;
  padding: 20px 30px;
}

#appointmentModal .modal-title {
  font-size: 24px;
  font-weight: 600;
  font-family: var(--heading-font, "Ubuntu", sans-serif);
  color: var(--heading-color, #1f2f31);
}

#appointmentModal .modal-body {
  padding: 30px;
  min-height: 400px;
}

#appointmentModal .modal-footer {
  border-top: 2px solid #f0f0f0;
  padding: 20px 30px;
}

/* Индикатор шагов */
.appointment-steps {
  margin-bottom: 30px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.step.active .step-number {
  background: var(--accent-color, #307a36);
  color: #ffffff;
}

.step-label {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.step.active .step-label {
  color: var(--accent-color, #307a36);
  font-weight: 500;
}

/* Шаги формы */
.appointment-step {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кнопки выбора направления */
.profession-filter {
  margin-bottom: 15px;
  position: relative;
}

.profession-filter input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.profession-filter input:focus {
  border-color: var(--accent-color, #307a36);
  box-shadow: 0 0 0 0.2rem rgba(48, 122, 54, 0.25);
  outline: none;
}

.profession-filter input::placeholder {
  color: #999;
  font-style: italic;
}

.profession-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.profession-btn {
  min-width: 120px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--accent-color, #307a36);
  color: var(--accent-color, #307a36);
  background: transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.profession-btn:hover {
  background: var(--accent-color, #307a36);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(48, 122, 54, 0.3);
}

.profession-btn.active {
  background: var(--accent-color, #307a36);
  color: #ffffff;
}

.profession-btn.hidden {
  display: none;
}

/* Кнопки выбора врача */
.doctor-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doctor-btn {
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  border: 2px solid var(--accent-color, #307a36);
  color: var(--accent-color, #307a36);
  background: transparent;
  transition: all 0.3s;
}

.doctor-btn:hover {
  background: var(--accent-color, #307a36);
  color: #ffffff;
  transform: translateX(5px);
}

.doctor-btn.active {
  background: var(--accent-color, #307a36);
  color: #ffffff;
}

/* Выбор времени */
.slot-selection {
  max-height: 400px;
  overflow-y: auto;
}

.slot-date-header {
  font-weight: 600;
  font-size: 16px;
  color: var(--heading-color, #1f2f31);
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

.slot-btn {
  min-width: 80px;
  padding: 10px 15px;
  border: 2px solid #28a745;
  color: #28a745;
  background: transparent;
  transition: all 0.3s;
}

.slot-btn:hover {
  background: #28a745;
  color: #ffffff;
  transform: scale(1.05);
}

.slot-btn.active {
  background: #28a745;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Сводка записи */
.appointment-summary {
  background: #f8f9fa;
  border-left: 4px solid var(--accent-color, #307a36);
}

.appointment-summary p {
  margin-bottom: 5px;
  font-size: 14px;
}

/* Форма */
#appointmentForm .form-label {
  font-weight: 500;
  color: var(--heading-color, #1f2f31);
  margin-bottom: 8px;
}

#appointmentForm .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  transition: all 0.3s;
}

#appointmentForm .form-control:focus {
  border-color: var(--accent-color, #307a36);
  box-shadow: 0 0 0 0.2rem rgba(48, 122, 54, 0.25);
}

#appointmentForm .form-check-label {
  font-size: 13px;
  line-height: 1.5;
}

#appointmentForm .form-check-label a {
  color: var(--accent-color, #307a36);
  text-decoration: underline;
}

/* Сообщение об успехе */
#stepSuccess {
  text-align: center;
  padding: 40px 20px;
}

.appointment-share .form-label {
  font-weight: 500;
}

.appointment-confirm-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

#stepSuccess .bi-check-circle-fill {
  color: #28a745;
}

#stepSuccess h5 {
  color: var(--heading-color, #1f2f31);
  margin-top: 20px;
}

/* Кнопка "Назад" */
.back-btn {
  color: var(--accent-color, #307a36);
  text-decoration: none;
  font-size: 14px;
  padding: 0;
  border: none;
  background: none;
}

.back-btn:hover {
  color: var(--nav-hover-color, #307a36);
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
  #appointmentModal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  #appointmentModal .modal-body {
    padding: 20px;
  }

  .step-indicator {
    padding: 0 10px;
  }

  .step-indicator::before {
    left: 5%;
    right: 5%;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .step-label {
    font-size: 10px;
  }

  .profession-buttons {
    flex-direction: column;
    max-height: 250px;
  }

  .profession-btn {
    width: 100%;
    min-width: auto;
  }

  .slot-times {
    justify-content: center;
  }

  .slot-btn {
    flex: 1;
    min-width: 70px;
  }
}

/* Скроллбар для выбора времени */
.slot-selection::-webkit-scrollbar {
  width: 6px;
}

.slot-selection::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.slot-selection::-webkit-scrollbar-thumb {
  background: var(--accent-color, #307a36);
  border-radius: 3px;
}

.slot-selection::-webkit-scrollbar-thumb:hover {
  background: var(--nav-hover-color, #307a36);
}


/* End */


/* Start:/bitrix/templates/petergof-med/css/breadcrumb.css?17688191291029*/
/* Breadcrumbs (based on MediNest design) */
.breadcrumbs {
  width: 100%;
  font-family: var(--default-font, Arial, sans-serif);
  background-color: rgba(54, 63, 64, 0.04);
}
.breadcrumbs .container {
  padding-left: 0;
  padding-right: 0;
}
.breadcrumbs ol {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}
.breadcrumbs ol li {
  color: var(--default-color, #363f40);
  margin: 0;
}
.breadcrumbs ol li + li {
  padding-left: 10px;
}
.breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: rgba(54, 63, 64, 0.7);
}
.breadcrumbs ol li a {
  color: var(--default-color, #363f40);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs ol li a:hover {
  color: var(--brand-color, #e31e25);
  text-decoration: underline;
}
.breadcrumbs ol li.current {
  color: var(--brand-color, #e31e25);
}

@media (max-width: 767px) {
  .breadcrumbs ol {
    font-size: 14px;
    padding: 12px 0;
  }
}

/* End */


/* Start:/bitrix/templates/petergof-med/css/first-visit-drawer.css?17688191293038*/
/**
 * First Visit Drawer Styles
 * Drawer компонент для первого захода на сайт
 */

/* Основной контейнер drawer */
.first-visit-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	pointer-events: none;
}

.first-visit-drawer.active {
	pointer-events: auto;
}

/* Overlay для затемнения фона */
.drawer-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.first-visit-drawer.active .drawer-overlay {
	opacity: 1;
}

/* Drawer панель */
.drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 450px;
	height: 100%;
	background-color: var(--surface-color, #ffffff);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.first-visit-drawer.active .drawer-panel {
	transform: translateX(0);
}

/* Кнопка закрытия */
.drawer-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	border: none;
	background-color: transparent;
	color: var(--default-color, #363f40);
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, color 0.2s ease;
	z-index: 10;
}

.drawer-close:hover {
	background-color: var(--nav-hover-color, #307a36);
	color: var(--contrast-color, #ffffff);
}

.drawer-close:focus {
	outline: 2px solid var(--accent-color, #307a36);
	outline-offset: 2px;
}

/* Контент drawer */
.drawer-content {
	padding: 60px 30px 30px;
	flex: 1;
}

.drawer-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--heading-color, #1f2f31);
	font-family: var(--heading-font, "Ubuntu", sans-serif);
}

.drawer-body {
	font-size: 16px;
	line-height: 1.6;
	color: var(--default-color, #363f40);
}

.drawer-body p {
	margin-bottom: 15px;
}

.drawer-body p:last-child {
	margin-bottom: 0;
}

.drawer-body strong {
	color: var(--brand-color, #e31e25);
	font-weight: 700;
}

.drawer-body ul {
	margin: 15px 0;
	padding-left: 25px;
}

.drawer-body ul li {
	margin-bottom: 8px;
}

.drawer-body ul li:last-child {
	margin-bottom: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	.drawer-panel {
		max-width: 100%;
		width: 100%;
	}

	.drawer-content {
		padding: 50px 20px 20px;
	}

	.drawer-title {
		font-size: 20px;
		margin-bottom: 15px;
	}

	.drawer-body {
		font-size: 14px;
	}

	.drawer-close {
		top: 10px;
		right: 10px;
		width: 35px;
		height: 35px;
		font-size: 20px;
	}
}

/* Анимация появления для контента */
.drawer-content {
	animation: fadeIn 0.3s ease 0.1s both;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* End */
/* /bitrix/templates/petergof-med/css/header.css?177080177122072 */
/* /bitrix/templates/petergof-med/css/footer.css?176881912911098 */
/* /bitrix/templates/petergof-med/css/main.css?176881912942952 */
/* /bitrix/templates/petergof-med/css/appointment.css?17899941686976 */
/* /bitrix/templates/petergof-med/css/breadcrumb.css?17688191291029 */
/* /bitrix/templates/petergof-med/css/first-visit-drawer.css?17688191293038 */
