/* ===============================================
   CSS Reset и базовые стили
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ===============================================
   Переменные и цвета
   =============================================== */

:root {
    /* Основные цвета */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    
    /* Нейтральные цвета */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    /* Медицинские цвета */
    --medical-blue: #0ea5e9;
    --medical-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Размеры */
    --container-max: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Переходы */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===============================================
   Базовые компоненты
   =============================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Кнопки */
.btn-primary,
.btn-secondary,
.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===============================================
   Медицинское уведомление
   =============================================== */

.medical-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-bottom: 2px solid var(--warning-yellow);
    padding: 0.75rem 0;
    position: relative;
    z-index: 100;
}

.medical-notice .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    width: 100%;
}

.notice-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notice-content p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #92400e;
    margin: 0;
    flex: 1;
}

.notice-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #92400e;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.notice-close:hover {
    background-color: rgba(146, 64, 14, 0.1);
}

/* ===============================================
   Шапка сайта
   =============================================== */

.header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 70px;
}

/* Логотип */
.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.2;
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    line-height: 1;
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

/* Dropdown меню */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: var(--transition);
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Действия в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle,
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.hotline-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--medical-green);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.hotline-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.hotline-text {
    font-weight: 600;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Поиск */
.search-form {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 40;
}

.search-form.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background-color: var(--primary-dark);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.suggestions-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-suggestions a {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-suggestions a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===============================================
   Хлебные крошки
   =============================================== */

.breadcrumbs {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.current span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* ===============================================
   Hero секция - ИСПРАВЛЕННАЯ ВЕРСИЯ
   =============================================== */

.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 25%, #0ea5e9 75%, #06b6d4 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Добавляем декоративные элементы */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Альтернативный вариант с медицинским паттерном */
.hero-section.medical-pattern {
    background: 
        linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(29, 78, 216, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.highlight-item {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.highlight-item strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight-item span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Кнопки в hero секции */
.hero-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-cta .btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-cta .btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Варианты фона для разных страниц */
.hero-section.instruction {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.hero-section.pricing {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}

.hero-section.analogs {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.hero-section.faq {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.hero-section.reviews {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
}

/* ===============================================
   Быстрые ответы
   =============================================== */

.quick-answers {
    padding: 3rem 0;
    background-color: var(--bg-card);
}

.quick-answers h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.answer-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.answer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.answer-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-info,
.dosage-info,
.buy-info,
.analog-info {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-detail,
.dosage-detail,
.buy-detail,
.analog-detail {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ===============================================
   Основная информация о препарате
   =============================================== */

.drug-info {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.info-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-main h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.info-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.info-main .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-main p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.indications-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.indications-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.indications-list ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

/* Сайдбар */
.info-sidebar {
    position: sticky;
    top: 100px;
}

.dosage-chart,
.effectiveness-box {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.dosage-chart h4,
.effectiveness-box h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dosage-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dosage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.dosage-item.highlighted {
    background-color: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary-color);
}

.dosage-item .dose {
    font-weight: 600;
    color: var(--primary-color);
}

.dosage-item .use {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--medical-green);
    margin-bottom: 0.25rem;
}

.stat .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===============================================
   Инструкции по применению
   =============================================== */

.instructions-brief {
    padding: 4rem 0;
    background-color: var(--bg-card);
}

.instructions-brief h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.instruction-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.instruction-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.instruction-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.instruction-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.instruction-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.instruction-cta {
    text-align: center;
}

/* ===============================================
   Секция цен
   =============================================== */

.pricing-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.pricing-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.pricing-main h3,
.support-programs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.price-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.price-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.price-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.price-item.original {
    border: 2px solid var(--warning-yellow);
}

.price-item.generic {
    border: 2px solid var(--medical-green);
}

.price-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.price-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-item .price-detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.support-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.support-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-list li:last-child {
    border-bottom: none;
}

/* ===============================================
   Безопасность
   =============================================== */

.safety-section {
    padding: 4rem 0;
    background-color: var(--bg-card);
}

.safety-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.safety-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.common-effects h3,
.serious-effects h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.effect-category {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

.effect-category h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.effect-category ul {
    list-style: none;
}

.effect-category li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.effect-category li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.warning-box {
    background-color: #fef3c7;
    border: 1px solid var(--warning-yellow);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.warning-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #92400e;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

/* ===============================================
   Отзывы
   =============================================== */

.reviews-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.reviews-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.reviews-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.review-item::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.reviewer {
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    color: var(--text-muted);
}

.review-text {
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
}

.reviews-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===============================================
   Навигация по разделам
   =============================================== */

.sections-nav {
    padding: 4rem 0;
    background-color: var(--bg-card);
}

.sections-nav h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nav-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background-color: var(--bg-card);
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.nav-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.nav-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* ===============================================
   Предупреждения
   =============================================== */

.disclaimers {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.disclaimer-box {
    background-color: var(--bg-card);
    border: 2px solid var(--danger-red);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--danger-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box p {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: var(--text-primary);
}

/* ===============================================
   Футер
   =============================================== */

.footer {
    background-color: var(--text-primary);
    color: #ffffff;
    margin-top: auto;
}

/* Основная часть футера */
.footer-main {
    padding: 3rem 0 2rem 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, #0f172a 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3.footer-title {
    color: var(--primary-light);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-highlights {
    display: flex;
    gap: 1rem;
}

.highlight {
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--primary-color);
}

.highlight-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

.highlight-text {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Навигация в футере */
.footer-nav ul.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

/* Контактная информация */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-details strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-light);
}

.contact-text {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.contact-details small {
    color: #94a3b8;
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Дополнительная секция */
.footer-secondary {
    background-color: #0f172a;
    padding: 2rem 0;
    border-top: 1px solid #334155;
}

.secondary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.useful-links h4,
.support-programs h4 {
    color: var(--primary-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: rgba(51, 65, 85, 0.5);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: var(--transition);
}

.external-link:hover {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.external-link span {
    flex: 1;
}

.external-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Программы поддержки */
.programs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background-color: rgba(51, 65, 85, 0.3);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.program-item:hover {
    background-color: rgba(51, 65, 85, 0.5);
}

.program-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.program-info strong {
    color: var(--primary-light);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.program-info p {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
}

/* Предупреждения */
.footer-warnings {
    background-color: #fbbf24;
    color: #92400e;
    padding: 1.5rem 0;
}

.warnings-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

.warning-text strong {
    color: #78350f;
    display: block;
    margin-bottom: 0.25rem;
}

/* Нижняя часть футера */
.footer-bottom {
    background-color: #020617;
    padding: 1.5rem 0;
    border-top: 1px solid #334155;
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    flex: 1;
    min-width: 200px;
}

.copyright p {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.update-info {
    color: #94a3b8;
    font-size: 0.75rem;
}

.bottom-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.bottom-links a:hover {
    color: var(--primary-light);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Социальные сети и обратная связь */
.social-feedback {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-label {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: 50%;
}

.star:hover,
.star.active {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
}

/* Кнопка "наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===============================================
   Адаптивный дизайн
   =============================================== */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-sidebar {
        position: static;
        order: -1;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .safety-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .price-comparison {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .secondary-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 200px;
        padding: 0.875rem 1.5rem;
    }
    
    .answers-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .effects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reviews-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .reviews-cta {
        flex-direction: column;
        align-items: center;
    }
    
    /* Мобильная навигация */
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transition: var(--transition);
        z-index: 100;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    .main-nav.mobile-active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hotline-text {
        display: none;
    }
    
    .search-container {
        padding: 0 0.75rem;
    }
    
    .footer-main {
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-highlights {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .warnings-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .warning-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .bottom-links {
        justify-content: center;
        width: 100%;
    }
    
    .social-feedback {
        justify-content: center;
        width: 100%;
    }
    
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .answers-grid {
        grid-template-columns: 1fr;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        padding: 1rem;
    }
    
    .answer-card {
        padding: 1.5rem;
    }
    
    .instruction-item {
        padding: 1.5rem;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .breadcrumb-list {
        flex-wrap: wrap;
    }
    
    .medical-notice .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text strong {
        font-size: 1.125rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .footer-main {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-secondary {
        padding: 1.5rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .program-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.75rem;
    }
    
    .bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .feedback-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .answer-card,
    .instruction-item,
    .nav-card {
        padding: 1rem;
    }
    
    .disclaimer-box {
        padding: 1.5rem;
    }
}

/* ===============================================
   Анимации
   =============================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===============================================
   Утилиты и вспомогательные классы
   =============================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--medical-green); }
.text-warning { color: var(--warning-yellow); }
.text-danger { color: var(--danger-red); }

.bg-light { background-color: var(--bg-light); }
.bg-card { background-color: var(--bg-card); }
.bg-primary { background-color: var(--primary-color); }

.border { border: 1px solid var(--border-color); }
.border-primary { border: 1px solid var(--primary-color); }
.border-radius { border-radius: var(--border-radius); }
.border-radius-lg { border-radius: var(--border-radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }

.transition { transition: var(--transition); }
.transition-fast { transition: var(--transition-fast); }

/* ===============================================
   Модальные окна
   =============================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Форма обратной связи */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* ===============================================
   Доступность
   =============================================== */

/* Улучшенная видимость фокуса */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Скрыть элементы для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Предпочтения пользователя для анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
    }
}

/* Темная тема (если нужна в будущем) */
@media (prefers-color-scheme: dark) {
    .modal-content {
        background-color: #1e293b;
        color: #e2e8f0;
    }
    
    .form-input,
    .form-textarea {
        background-color: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .form-input:focus,
    .form-textarea:focus {
        border-color: var(--primary-light);
    }
}

/* ===============================================
   Дополнительные анимации
   =============================================== */

.footer-section {
    animation: slideInUp 0.6s ease-out;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.program-item {
    animation: slideInUp 0.6s ease-out;
}

.program-item:nth-child(1) { animation-delay: 0.1s; }
.program-item:nth-child(2) { animation-delay: 0.2s; }
.program-item:nth-child(3) { animation-delay: 0.3s; }

.warning-item {
    animation: slideInUp 0.6s ease-out;
}

.warning-item:nth-child(1) { animation-delay: 0.1s; }
.warning-item:nth-child(2) { animation-delay: 0.2s; }
.warning-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенная доступность */
.footer a:focus,
.star:focus,
.scroll-to-top:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Дополнительные эффекты */
.review-card {
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(44, 90, 160, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover::before {
    opacity: 1;
}

.stat-item {
    cursor: default;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ===============================================
   Печать
   =============================================== */

@media print {
    * {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    
    .header,
    .footer,
    .medical-notice,
    .mobile-menu-toggle,
    .search-form,
    .nav-grid,
    .reviews-cta,
    .scroll-to-top,
    .modal,
    .social-feedback {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .answer-card,
    .instruction-item,
    .review-item {
        page-break-inside: avoid;
    }
    
    .hero-section {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000 !important;
    }
    
    .footer-links a,
    .contact-link,
    .external-link {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* ===============================================
   Загрузка и производительность
   =============================================== */

/* Оптимизация шрифтов */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular');
}

/* Lazy loading для изображений */
img {
    loading: lazy;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Оптимизация производительности */
.hero-section,
.answer-card,
.instruction-item,
.nav-card {
    will-change: transform;
}

/* Критические стили для первой загрузки */
.above-fold {
    font-display: swap;
}

/* Предзагрузка важных ресурсов */
.preload-critical {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* ===============================================
   Браузерная совместимость
   =============================================== */

/* Fallback для старых браузеров */
@supports not (backdrop-filter: blur(10px)) {
    .highlight-item {
        background-color: rgba(255, 255, 255, 1);
    }
    
    .header {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* Fallback для CSS Grid */
@supports not (display: grid) {
    .hero-highlights,
    .answers-grid,
    .instructions-grid,
    .nav-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .highlight-item,
    .answer-card,
    .instruction-item,
    .nav-card {
        flex: 1 1 250px;
        margin: 0.5rem;
    }
}

/* Fallback для CSS переменных */
@supports not (color: var(--primary-color)) {
    .btn-primary {
        background-color: #2563eb;
    }
    
    .hero-title {
        color: #ffffff;
    }
    
    .nav-link:hover {
        color: #2563eb;
    }
}

/* ===============================================
   Состояния ошибок
   =============================================== */

.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.error-state h3 {
    color: var(--danger-red);
    margin-bottom: 1rem;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================================
   Специальные утилиты
   =============================================== */

/* Отступы только для мобильных */
@media (max-width: 768px) {
    .mobile-only-mt-2 { margin-top: var(--spacing-sm); }
    .mobile-only-mb-2 { margin-bottom: var(--spacing-sm); }
    .mobile-only-p-2 { padding: var(--spacing-sm); }
}

/* Скрытие только на мобильных */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
}

/* Показ только на мобильных */
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}

/* Плавное появление контента */
.fade-in-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Градиентные наложения */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Выделение важного текста */
.highlight-text {
    background: linear-gradient(120deg, transparent 0%, rgba(37, 99, 235, 0.1) 50%, transparent 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Финальные оптимизации */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Улучшение читаемости */
p, li {
    text-rendering: optimizeLegibility;
}

/* Оптимизация изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Сглаживание анимаций */
* {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Конец файла style.css */