.content, .inner-content, .article-text {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  line-height: 1.6;
  font-size: 16px;
  color: #222;
  font-weight: 400;
  font-family: 'Open Sans', sans-serif;
}
.content h1, .content h2, .content h3, .content h4,
.inner-content h1, .inner-content h2, .inner-content h3, .inner-content h4,
.article-text h1, .article-text h2, .article-text h3, .article-text h4 {
  color: #3e9aa4;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}
.content p, .content ul, .content ol, .content blockquote,
.inner-content p, .inner-content ul, .inner-content ol, .inner-content blockquote,
.article-text p, .article-text ul, .article-text ol, .article-text blockquote {
  margin-bottom: 20px;
}
.content ul li, .content ol li {
  margin-bottom: 10px;
}
.content blockquote, .article-text blockquote {
  font-style: italic;
  border-left: 4px solid #3e9aa4;
  padding-left: 15px;
  margin: 20px 0;
  color: #444;
}
.content strong, .article-text strong {
  font-weight: 700;
}
ul, ol {
  margin-left: 40px;
  padding-left: 0;
  list-style-position: outside;
}
.contacts-block li.lisht {
  list-style: none;
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.contacts-block li.lisht::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  background-image: url(/assets/images/shhtuchki-k-preimuzstvam.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
}
a {
  color: #005d66;
  text-decoration: none;
  font-weight: normal;
}
a:hover {
  text-decoration: underline;
  color: #2b7e89;
  font-weight: bold;
}
.menu-label {
  font-size: 15px;
  color: #3e9aa4;
  margin-bottom: 10px;
  font-weight: 500;
  flex-grow: 1;
}
.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  width: 100%;
}
.menu-links li {
  display: inline-flex;
  align-items: center;
}
.menu-links li a {
  text-decoration: none;
  color: #222;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.menu-links li a:hover {
  text-decoration: underline;
}
.menu-links .arrow {
  font-size: 18px;
  color: #006f6f;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, color 0.3s ease;
}
.menu-links a:hover .arrow {
  color: #004f4f;
  transform: translateY(1px);
}
.menu-separator {
  margin-top: 20px;
  border: none;
  border-top: 1px solid #ddd;
}
@media (min-width: 769px) {
  .menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
    justify-content: flex-start;
    margin-bottom: 0;
  }
  .menu-label {
    display: inline-block;
    margin-right: auto;
  }
  .menu-links li a {
    line-height: 0.9 !important;
    font-size: 17px !important;
    padding: 2px 6px !important;
    margin: 0 !important;
  }
}
@media (max-width: 768px) {
  .menu-label {
    display: none !important;
  }
  .menu-links {
    flex-direction: row !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }
  .menu-links li a {
    font-size: 14px !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
}
.breadcrumbs-wrapper {
  margin: 10px 0 20px;
}
.breadcrumb-list li a {
  color: #3e9aa4;
  text-decoration: none;
  font-weight: 500;
}
.swiper-container.slide_for_doc .swiper-button-next,
.swiper-container.slide_for_doc .swiper-button-prev {
  display: block !important;
}
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}
#customButton {
  cursor: pointer;
}
.text-button-block .button:hover, 
.article-text .button:hover,
.content .button:hover,
.js-medkarta-online.button:hover,
button.button:hover,
.button:hover {
    color: #ffffff !important;
    background-color: #2b7e89 !important;
    text-decoration: none !important;
}
.price_section_box {
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e3e8e8;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}
.price_main_title {
    display: block; 
    font-size: 26px !important;
    color: #3e9aa4 !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
    line-height: 1.2;
}
.price_main_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3e9aa4;
    border-radius: 2px;
}
.custom_price_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    border-radius: 6px;
}
.custom_price_row:hover {
    background: #f9fcfc;
}
.custom_price_row:last-child {
    border-bottom: none;
}
.price_name {
    font-size: 17px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}
.price_info {
    display: flex;
    align-items: center;
    gap: 30px;
}
.price_val {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
}
.price_val span {
    font-size: 18px;
    font-weight: 400;
    margin-left: 3px;
}
.price_btn {
    background: linear-gradient(87deg, #F08F0A 0%, #F5C179 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 150px;
    text-transform: none;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 4px 10px rgba(240, 143, 10, 0.2);
}
.price_btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 15px rgba(240, 143, 10, 0.4);
    transform: translateY(-1px);
}
.price_btn:active {
    transform: translateY(0);
}
@media (max-width: 767px) {
    .price_section_box {
        padding: 25px 15px;
        margin: 30px 0;
    }
    .price_main_title {
        font-size: 22px !important;
    }
    .custom_price_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 5px;
    }
    .price_info {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .price_name {
        padding-right: 0;
    }
    .price_btn {
        min-width: 120px;
        width: 100%;
        padding: 12px 15px;
        font-size: 15px;
    }
}
/* --- Стили для подмены номера --- */
.phone-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.phone-wrapper .ct_phone a {
  color: transparent !important;
  text-decoration: none;
}
.phone-wrapper .phone-display {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  font-weight: 600;
  color: #40a1ac;
}

/* --- ИСПРАВЛЕННАЯ МОБИЛЬНАЯ ШАПКА (ТОЛЬКО ДЛЯ ЛИПКОГО МЕНЮ) --- */
@media (max-width: 767px) {
    
    /* Применяем стили ТОЛЬКО к липкому блоку #menu_wrapper */
    #menu_wrapper .mini_header.cls {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 15px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    /* Уточняем элементы именно внутри липкого меню */
    #menu_wrapper .left, 
    #menu_wrapper .right {
        display: contents !important;
    }

    /* Гамбургер-меню ВНУТРИ липкого блока */
    #menu_wrapper .mobile_menu_button {
        position: static !important;
        flex: 0 0 40px !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Телефон ВНУТРИ липкого блока */
    #menu_wrapper .phone {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #menu_wrapper .phone a {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #333 !important;
        line-height: 1 !important;
    }

    #menu_wrapper .phone p {
        font-size: 10px !important;
        color: #3e9aa4 !important;
        text-transform: uppercase !important;
        margin: 4px 0 0 0 !important;
        font-weight: 600 !important;
    }

    /* Кнопка записи ВНУТРИ липкого блока */
    #menu_wrapper .header_orderbut {
        position: static !important;
        flex: 0 0 44px !important;
        height: 44px !important;
        width: 44px !important;
        background-color: #3e9aa4 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    /* Иконка внутри липкой кнопки */
    #menu_wrapper .header_orderbut::after {
        content: '';
        display: block;
        width: 22px;
        height: 22px;
        background: url(/assets/images/lk.png) no-repeat center;
        background-size: contain;
        filter: brightness(0) invert(1);
    }

    /* Скрываем лишнее только в липком блоке */
    #menu_wrapper .header_small, 
    #menu_wrapper .short_menu { 
        display: none !important; 
    }
}

/* --- Стили баннера --- */
.biggallery-banner { position: relative; height: 450px; overflow: hidden; }
.banner-image { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.banner-breadcrumbs { position: absolute; top: 15px; left: 15px; right: 15px; z-index: 20; font-size: 14px; }
.banner-title { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); z-index: 15; padding-right: 15px; }
.title-big-gallery { font-size: 36px; font-weight: 700; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); margin: 0; line-height: 1.1; }
.breadcrumb-list { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb-list li { display: flex; align-items: center; color: #fff; }
.breadcrumb-list li + li::before { content: "›"; color: #fff; padding: 0 6px; }
.breadcrumb-list li a { color: #fff; text-decoration: none; }

@media (min-width: 768px) {
  .banner-breadcrumbs, .banner-title { left: 120px; }
  .title-big-gallery { font-size: 56px; }
}
@media (max-width: 767px) {
  .biggallery-banner { height: 240px !important; }
  .title-big-gallery { font-size: 24px; }
}

/* --- Стили для окна графика работы --- */
.schedule-popup-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    color: #1d1d1d;
}

.schedule-popup-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 30px;
}

.schedule-popup-wrapper .schedule-list p {
    margin: 10px 0;
    font-size: 16px;
}
.schedule-popup-wrapper .schedule-list strong {
    font-weight: 600;
}

.schedule-popup-wrapper .phone-section {
    margin-top: 35px;
    margin-bottom: 40px;
}
.schedule-popup-wrapper .phone-section .call-prompt {
    margin-bottom: 12px;
    font-weight: 600;
}
.schedule-popup-wrapper .phone-section .phone-number a {
    font-size: 20px;
    font-weight: 700;
    color: #40a1ac;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}
.schedule-popup-wrapper .phone-section .phone-number a:hover {
    opacity: 0.8;
}

.schedule-popup-wrapper .all-clinics-link {
    text-decoration: underline;
    font-weight: 600;
    color: #1d1d1d;
}

@media (min-width: 768px) {
    .schedule-popup-wrapper {
        padding: 15px 30px;
    }
}

/* --- Стили юридического блока в футере --- */
.footer_sm_bottom {
    padding: 15px;
    overflow-wrap: break-word;
    text-align: left; /* Исправлено: теперь текст не растягивается */
    font-size: 13px;  /* Оптимальный размер для дисклеймера */
    line-height: 1.6;
    color: #666;      /* Мягкий цвет, чтобы не отвлекать */
    margin-bottom: 20px;
}

.footer_sm_bottom p {
    margin-bottom: 10px;
}

/* --- Блок лицензий (Trust Block) - Глобальные стили --- */
.license-trust-block {
    margin: 20px auto 40px !important;
    padding: 20px !important;
    background: #f9fcfc !important; /* Светлый фон должен быть виден везде */
    border-radius: 12px !important;
    border: 1px solid #e3e8e8 !important;
    max-width: 1000px !important;
    display: block !important;
    text-align: left !important;
}

.license-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.license-logo {
    width: 40px !important;
    height: auto !important;
}

.license-title-wrap h3 {
    margin: 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

.license-title-wrap p {
    margin: 3px 0 0 0 !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.3 !important;
}

.license-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 15px !important;
}

.license-links a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #3e9aa4 !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #3e9aa4 !important;
}

/* Адаптация специально для мобильных (до 767px) */
@media (max-width: 767px) {
    .license-trust-block {
        margin: 10px 15px 30px !important; /* Добавляем отступы по бокам на мобиле */
        padding: 15px !important;
    }
    .license-header {
        gap: 10px !important;
    }
    .license-links a {
        width: 100% !important; /* Каждый номер на своей строке для удобства клика */
        padding: 5px 0 !important;
    }
}

/* Центровка баннера Минздрава */
.minzdrav-banner-wrap {
    display: flex;
    justify-content: flex-start; /* На ПК прижат к левому краю (или как было) */
}

/* На мобильных устройствах */
@media (max-width: 767px) {
    .minzdrav-banner-wrap {
        justify-content: center !important; /* Центрируем содержимое */
        right: 0 !important; /* Обнуляем любые смещения */
        margin: 20px 0 !important; /* Добавляем отступы сверху и снизу */
        width: 100% !important;
    }
    
    .minzdrav-banner-wrap iframe {
        margin: 0 auto !important;
    }

    /* Центрируем заголовки в футере на мобиле, если нужно */
    .footer_info_block {
        text-align: center !important;
    }
}

/* Скрываем значок капчи, чтобы он не перекрывал кнопки */
.grecaptcha-badge { 
    visibility: hidden !important;
}