/* --- Глобальные переменные --- */
:root {
  --primary-color: #0055a4;
  --secondary-color: #3a7bd5;
  --light-blue: #e9f0f9;
  --light-gray: #f5f5f7;
  --dark-text: #212B36;
  --gray-text: #637381;
  --white: #fff;
  --green: #00A76F;
  --shadow: 0 4px 12px rgba(33, 43, 54, 0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* --- Сброс и База --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gray-bg { background-color: var(--light-gray); }
.text-center { text-align: center; }

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 36px; }
h2 { font-size: 32px; margin-bottom: 40px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; color: var(--primary-color); }
p { margin-bottom: 1rem; color: var(--gray-text); }
ul, ol { padding-left: 20px; }

/* --- Кнопки --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
    background-color: var(--green);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-whatsapp:hover { background-color: #00855A; }

.btn-block {
  display: block;
  width: 100%;
}

/* --- Шапка сайта --- */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    white-space: nowrap;
}

.header-phone:hover { color: var(--primary-color); }
.header-phone i { display: none; }

/* --- Хлебные крошки --- */
.breadcrumb-container {
  background-color: #f8f9fa;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  display: inline-block;
  padding: 0 0.5rem;
  color: #6c757d;
}

.breadcrumb-item a { color: var(--secondary-color); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #6c757d; }

/* --- Герой-секция (Главная страница) --- */
.hero-section {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.hero-content h1 { font-size: 42px; margin-bottom: 20px; color: var(--primary-color); }
.hero-subtitle { font-size: 20px; color: var(--gray-text); max-width: 700px; margin: 0 auto 40px; }

/* --- Карточка товара (Детальная) --- */
.product-section { padding: 60px 0; }
.product-card-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.product-image-section { position: sticky; top: 120px; }
.product-main-image {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 30px;
}
.product-main-image img { width: 100%; height: auto; object-fit: contain; }

/* Детали товара */
.product-sku {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    font-family: monospace;
    letter-spacing: 0.5px;
}
.product-availability {
    color: var(--green);
    font-weight: 600;
    background: #e6f6f0;
    padding: 6px 12px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 20px;
}
.price-simple { font-size: 40px; font-weight: 700; margin-bottom: 4px; }
.payment-info { font-size: 14px; color: var(--gray-text); margin-bottom: 24px; }
.product-buttons { margin-bottom: 32px; }

.product-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.info-item { display: flex; justify-content: space-between; font-size: 15px; }
.info-label { color: var(--gray-text); }
.info-value { font-weight: 600; }

/* Плашка "Оригинал" (Синяя, на всю ширину) */
.badge-blue {
    background-color: #e9f0f9;
    color: #0055a4;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

/* Форма обратного звонка в товаре */
.callback-box {
    background-color: var(--light-blue);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid #dbe6f5;
}
.callback-box-text {
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.5;
}
.callback-box-text i { color: var(--primary-color); margin-right: 8px; }
.callback-form { display: flex; gap: 10px; }
.callback-form input {
    flex-grow: 1;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
}
.btn-callback {
    padding: 12px 20px;
    border: none;
    background-color: var(--green);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
}
.btn-callback:hover { background-color: #00855A; }

/* --- КАТАЛОГ И ФИЛЬТРЫ --- */
.catalog-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
}

/* Сайдбар */
.catalog-sidebar {
    width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 20px;
    flex-shrink: 0;
}
.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; display: block; }

.filter-options { list-style: none; padding: 0; }
.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--dark-text);
    cursor: pointer;
}
.filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.reset-filters-btn {
    width: 100%;
    background: #f5f5f7;
    border: none;
    padding: 10px;
    border-radius: var(--radius);
    color: var(--gray-text);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}
.reset-filters-btn:hover { background: #e0e0e0; color: var(--dark-text); }

/* Двойной ползунок цены */
.price-filter-wrapper { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.price-inputs { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.price-inputs input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: var(--dark-text);
}
.price-slider-container {
    position: relative;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    margin-top: 10px;
}
.price-slider-progress {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
}
.range-input { position: relative; }
.range-input input {
    position: absolute;
    top: -5px;
    height: 5px;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.range-input input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
}
.range-input input::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    pointer-events: auto;
    cursor: pointer;
}

/* Сетка товаров (Каталог и Мини-карточки) */
.catalog-grid-wrapper { flex-grow: 1; }
.catalog-grid-full, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card-mini {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.product-card-mini:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}
.pcm-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
}
.pcm-image img { max-width: 80%; max-height: 80%; object-fit: contain; }
.pcm-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-text);
    text-decoration: none;
    line-height: 1.4;
}
.pcm-category { font-size: 12px; color: var(--gray-text); margin-bottom: 10px; }
.pcm-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 15px;
}

/* Статусы в каталоге */
.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.status-instock { background-color: #e6f6f0; color: var(--green); }
.status-preorder { background-color: #fff4e5; color: #b76e00; }
.status-request { background-color: var(--light-blue); color: var(--primary-color); }

.no-products-msg {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--gray-text);
}

/* Мобильная кнопка фильтров */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.mobile-filter-close { display: none; }

/* --- Блок "Похожие товары" / "Альтернатива" --- */
.similar-products-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
    background-color: var(--white);
}
.similar-grid-centered {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.compact-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
}
.product-card-mini.highlighted {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 85, 164, 0.15);
}
.recommendation-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Секции контента (Общие) --- */
.content-section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}
.description-content, .payment-delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.description-block, .feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Эффективность */
.efficacy-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.efficacy-icon {
    font-size: 40px;
    color: var(--primary-color);
    background-color: var(--light-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.efficacy-sources {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* Инструкция (Детальная) */
.instruction-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.instruction-card-detailed {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
}
.instruction-card-detailed h4 i { margin-right: 8px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  margin-bottom: 15px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  margin: 0;
}
.faq-question::after {
  content: '+';
  font-size: 24px;
  transition: var(--transition);
  color: var(--primary-color);
}
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}
.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* Города (Список в столбик) */
.city-list-column {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.city-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}
.city-list-item:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-color);
}
.city-list-name { font-size: 20px; font-weight: 700; color: var(--dark-text); }
.city-list-action { font-size: 16px; font-weight: 600; color: var(--primary-color); }

/* --- Форма заказа --- */
.order-form-section {
    padding: 80px 0;
    background: var(--light-blue);
    scroll-margin-top: 100px;
}
.order-form-section h2 { text-align: center; }
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row .form-group { flex: 1; min-width: 250px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 16px;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-color);
  outline: none;
}
.form-disclaimer {
  font-size: 14px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 20px;
}

/* --- Подвал --- */
.footer {
  background-color: var(--dark-text);
  color: #a0aec0;
  padding: 60px 0 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-column h4 { color: var(--white); margin-bottom: 20px; }
.footer-links a {
  display: block;
  color: #a0aec0;
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
  font-size: 14px;
}

/* --- АДАПТИВНОСТЬ (Media Queries) --- */

@media (max-width: 992px) {
    .product-card-page { grid-template-columns: 1fr; }
    .product-image-section { position: static; }
    .nav-links { gap: 30px; justify-content: space-around; flex-wrap: wrap; }
    
    /* Каталог */
    .catalog-container { flex-direction: column; }
    .mobile-filter-toggle { display: flex; }
    .catalog-sidebar {
        display: none; 
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 2000;
        overflow-y: auto;
        border-radius: 0;
        padding: 20px;
        padding-top: 60px;
    }
    .catalog-sidebar.active { display: block; }
    .mobile-filter-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--dark-text);
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 28px; }
    .content-section { padding: 60px 0; }
    .form-row { flex-direction: column; gap: 0; }
    .efficacy-wrapper { flex-direction: column; align-items: center; text-align: center; }
    .callback-form { flex-direction: column; }
    .hero-section { padding: 60px 0; }
    
    /* Шапка Мобильная */
    .header { padding: 10px 0; }
    .logo-text { font-size: 22px; }
    .header-phone {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--secondary-color);
        color: var(--white);
        width: 42px;
        height: 42px;
        border-radius: 50%;
        font-size: 18px;
    }
    .header-phone i { display: inline-block; }
    .header-phone span { display: none; }
    .btn-whatsapp-text { display: none; }
    .btn-whatsapp {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        font-size: 18px;
    }
}


/* --- Стили для SEO-текста (Экспертный блок) --- */
.seo-text-wrapper {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text);
}

.seo-text-wrapper h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-blue);
    color: var(--primary-color);
}

.seo-text-wrapper h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

/* Карточки препаратов внутри текста */
.drug-detail-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.drug-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.drug-detail-header h3 { margin: 0; color: var(--primary-color); }
.drug-icon-large { font-size: 30px; color: var(--secondary-color); }

/* Списки форм выпуска */
.drug-forms-list {
    list-style: none;
    padding: 0;
}

.drug-forms-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
}

.drug-forms-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

/* Блоки внимания (Warning / Info) */
.alert-box {
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 15px;
}

.alert-box.warning {
    background-color: #fff4e5;
    border-left: 4px solid #b76e00;
    color: #663c00;
}

.alert-box.info {
    background-color: #e9f0f9;
    border-left: 4px solid var(--primary-color);
    color: var(--dark-text);
}

.alert-title {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Таблицы (Адаптивные) */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px; /* Чтобы не сжималась на мобилках */
}

.custom-table th, .custom-table td {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.custom-table th {
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
}

/* Сетка для симптоматической терапии */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.symptom-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
}

.symptom-card h4 {
    color: var(--dark-text);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Блок Гарантии */
.guarantee-block {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 50px;
}

.guarantee-list li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.guarantee-list li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--green);
    position: absolute;
    left: 0;
}

/* Адаптив текста */
@media (max-width: 768px) {
    .seo-text-wrapper h2 { font-size: 24px; }
    .drug-detail-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .symptoms-grid { grid-template-columns: 1fr; }
}


/* --- Стили для блока "Побочные действия" --- */

/* Вложенные списки */
.instruction-card-detailed ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}

.instruction-card-detailed li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Стиль для второго уровня списка (конкретные симптомы) */
.instruction-card-detailed ul ul {
    margin-top: 5px;
    margin-bottom: 15px;
    padding-left: 20px;
    list-style-type: circle;
    color: var(--gray-text); /* Чуть светлее основного текста */
}

/* Красный текст для опасных состояний */
.text-danger {
    color: #d32f2f;
    font-weight: 700;
}

/* Блок критической информации (Красная рамка) */
.critical-warning-box {
    background-color: #fff5f5; /* Очень светло-красный фон */
    border-left: 4px solid #d32f2f; /* Красная полоса слева */
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.critical-warning-title {
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.critical-warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.critical-warning-box li {
    color: #333;
    margin-bottom: 5px;
}


/* --- Стили для таблицы мониторинга и критических порогов --- */

/* Контейнер для прокрутки таблицы на мобильных */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
}

/* Сама таблица */
.monitoring-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Гарантирует, что таблица не сжимается слишком сильно */
    font-size: 14px;
}

.monitoring-table th {
    background-color: var(--light-blue);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #dbe6f5;
}

.monitoring-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--dark-text);
    vertical-align: top;
}

/* Выделение строки "Первые 3 месяца" (как в вашем примере) */
.row-highlight {
    background-color: #fff9e6; /* Светло-желтый */
}

/* Чересплосица для остальных строк */
.monitoring-table tr:nth-child(even):not(.row-highlight) {
    background-color: #fafafa;
}

/* Список критических порогов */
.threshold-list {
    margin-top: 15px;
    padding-left: 20px;
}

.threshold-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Нумерованный список действий */
.action-steps-list {
    counter-reset: steps;
    list-style: none;
    padding: 0;
}

.action-steps-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
}

.action-steps-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    font-weight: bold;
}


/* --- Стили для блока "Взаимодействие" --- */

/* Группы взаимодействия */
.interaction-group {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid #ccc; /* Базовый цвет рамки */
}

/* Красный блок (Ингибиторы - Опасно, повышают уровень) */
.interaction-group.danger {
    background-color: #fff5f5;
    border-left-color: #dc3545;
}

/* Синий блок (Индукторы - Снижают эффективность) */
.interaction-group.info {
    background-color: #e9f0f9;
    border-left-color: #0055a4;
}

/* Желтый блок (Печень - Риск) */
.interaction-group.warning {
    background-color: #fff9e6;
    border-left-color: #ffc107;
}

/* Зеленый блок (Разрешено - Совместимость) */
.interaction-group.success {
    background-color: #f0fff4;
    border-left-color: #28a745;
}

.interaction-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.interaction-effect {
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

/* Список лекарств */
.drug-list {
    margin: 0;
    padding-left: 20px;
}

.drug-list li {
    margin-bottom: 5px;
}

.drug-list strong {
    color: #333;
}


/* Стили для статусных блоков (Показания/Противопоказания) */
.status-box {
    padding: 25px;
    border-radius: var(--radius);
    margin: 20px 0 40px;
    box-shadow: var(--shadow);
}

.status-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.status-box ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 16px;
}

/* Иконки для списков внутри статус-боксов */
.status-box ul li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Цветовые модификаторы */
.status-box.success { background-color: #f0fff4; border-left: 5px solid #28a745; }
.status-box.success li::before { content: "\f00c"; color: #28a745; }
.status-box.success-title { color: #28a745; font-weight: 700; margin-bottom: 10px; }

.status-box.danger { background-color: #fff5f5; border-left: 5px solid #dc3545; }
.status-box.danger li::before { content: "\f00d"; color: #dc3545; }
.status-box.danger-title { color: #dc3545; font-weight: 700; margin-bottom: 10px; }

.status-box.warning { background-color: #fffdf0; border-left: 5px solid #ff9800; }
.status-box.warning li::before { content: "\f06a"; color: #ff9800; }
.status-box.warning-title { color: #ff9800; font-weight: 700; margin-bottom: 10px; }

/* Блок совета (Info) */
.info-advice-box {
    background: var(--light-blue);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
}

.info-advice-box h4 {
    margin-top: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Сетка для таймлайна "Когда начинать" */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.timeline-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border-top: 5px solid #ccc;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-card h4 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
}

.timeline-period {
    font-weight: 800;
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Модификаторы цветов для таймлайна */
.timeline-card.optimal { border-top-color: #28a745; }
.timeline-card.optimal .timeline-period { color: #28a745; }

.timeline-card.good { border-top-color: #ff9800; }
.timeline-card.good .timeline-period { color: #ff9800; }

.timeline-card.late { border-top-color: #dc3545; }
.timeline-card.late .timeline-period { color: #dc3545; }

.timeline-card p {
    font-size: 15px;
    margin-bottom: 10px;
}

/* Утилитарный класс для акцента */
.text-accent-red {
    color: #dc3545;
    font-weight: 800;
    font-size: 1.1em;
}

/* Стили для таблицы маркеров (адаптируем уже имеющуюся систему) */
.markers-table-wrapper {
    margin: 30px 0;
}

/* Используем уже созданный .monitoring-table, добавив специфику */
.markers-table th {
    background-color: var(--primary-color);
    color: white;
}


/* Блоки сравнения форм БАС */
.efficacy-card {
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 8px solid;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Спинальная форма - Зеленый градиент */
.efficacy-card.spinal {
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
    border-left-color: #28a745;
}

/* Бульбарная форма - Оранжевый градиент */
.efficacy-card.bulbar {
    background: linear-gradient(135deg, #fffaf0 0%, #fef3c7 100%);
    border-left-color: #ff9800;
}

.efficacy-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    font-size: 24px;
}

.efficacy-card.spinal h3 { color: #166534; }
.efficacy-card.bulbar h3 { color: #9a3412; }

.efficacy-tagline {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.efficacy-card.spinal .efficacy-tagline { color: #1b5e20; }
.efficacy-card.bulbar .efficacy-tagline { color: #bf360c; }

/* Плашка с цифрой эффекта */
.effect-badge-large {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.efficacy-card.spinal .effect-badge-large { color: #28a745; border: 2px solid #28a745; }
.efficacy-card.bulbar .effect-badge-large { color: #ff9800; border: 2px solid #ff9800; }

.study-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
    border: 1px dashed rgba(0,0,0,0.1);
}

.study-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-text);
}

/* Специфические стили для сравнительной таблицы */
.comparison-table th {
    background-color: var(--primary-color) !important;
}

.text-success-bold {
    color: #28a745;
    font-weight: 700;
}


/* Блоки комбинированной терапии */
.combo-card {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

/* Модификаторы цветов для комбо */
.combo-card.blue {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-color: #01579b;
}
.combo-card.purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #4a148c;
}
.combo-card.pink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-color: #880e4f;
}

.combo-card h3 {
    margin-top: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.combo-card.blue h3 { color: #01579b; }
.combo-card.purple h3 { color: #4a148c; }
.combo-card.pink h3 { color: #880e4f; }

/* Грид для механизма действия */
.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.mechanism-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mechanism-item h5 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

/* Таблица внутри комбо-блока */
.combo-mini-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 15px 0;
}

.combo-mini-table td {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Сравнение схем (основная таблица) */
.comparison-table-full tr:nth-child(odd) { background-color: #f8f9fa; }
.comparison-table-full td { font-size: 14px; }
.comparison-table-full .highlight-cell { font-weight: 700; color: var(--primary-color); }

@media (max-width: 768px) {
    .mechanism-grid { grid-template-columns: 1fr; }
}



/* Сетка для таймлайна пропусков */
.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.timing-card {
    padding: 20px;
    border-radius: var(--radius);
    border-top: 4px solid #ccc;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}

.timing-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.timing-status {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

/* Цвета для тайминг-карт */
.timing-card.safe { border-top-color: #28a745; background-color: #f0fff4; }
.timing-card.safe .timing-status { color: #28a745; }

.timing-card.warning { border-top-color: #ff9800; background-color: #fffdf0; }
.timing-card.warning .timing-status { color: #ff9800; }

.timing-card.danger { border-top-color: #dc3545; background-color: #fff5f5; }
.timing-card.danger .timing-status { color: #dc3545; }

/* Блок примеров */
.example-box {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid #e0e6ed;
    margin: 25px 0;
}

.example-item {
    margin-bottom: 20px;
}

.example-item:last-child { margin-bottom: 0; }

.example-item hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.example-item strong { color: var(--primary-color); }




/* Стили для ежедневного меню / распорядка */
.daily-routine {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 2px solid var(--primary-color);
    margin: 30px 0;
}

.routine-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.routine-item:last-child { border-bottom: none; }

.routine-time {
    font-weight: 800;
    color: var(--primary-color);
    min-width: 70px;
    font-size: 16px;
}

.routine-content strong {
    display: block;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.routine-note {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Таблицы внутри блоков питания */
.nutrition-table th {
    background-color: #fdecea !important; /* Очень бледный красный для заголовка кофеина */
    color: #a92a35 !important;
}


/* Дополнительный стиль для списков действий (нумерованных) */
.action-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.action-steps li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.action-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    font-weight: 700;
}



/* Сетка экстренных ситуаций */
.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.emergency-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid #e0e6ed;
    border-top: 6px solid #ccc; /* Акцент сверху */
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.emergency-card h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Цвета для экстренных карт */
.emergency-card.red { border-top-color: #dc3545; background-color: #fffafb; }
.emergency-card.red h4 { color: #dc3545; }

.emergency-card.yellow { border-top-color: #ffc107; background-color: #fffdf0; }
.emergency-card.yellow h4 { color: #9a3412; }

.emergency-card.teal { border-top-color: #009688; background-color: #f2faff; }
.emergency-card.teal h4 { color: #00695c; }

.emergency-card .emergency-label {
    display: block;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.emergency-card p { font-size: 14px; line-height: 1.5; }

/* Список внутри экстренных карт */
.emergency-list {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 13px;
    list-style: none;
    padding-left: 0;
}

.emergency-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.emergency-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: inherit;
    font-weight: bold;
}

/* Стили для таблицы симптомов */
.symptom-table th {
    background-color: #fef3c7 !important; /* Бледно-желтый для заголовка */
    color: #92400e !important;
}