/* Аналоги дазатиниба - Стили */

.analogi-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #2c5aa0;
}

.analogi-intro .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
}

.analogi-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.analogi-warning::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffc107, #ffeb3b, #ffc107);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.analogi-warning h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.analogi-warning p {
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Классификация аналогов */
.analogi-classification {
    margin-bottom: 3rem;
}

.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.classification-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.classification-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #3498db);
}

.classification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.1);
}

.classification-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.classification-item p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.classification-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.classification-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
}

.classification-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.classification-item li:last-child {
    border-bottom: none;
}

/* Карточки аналогов */
.main-analogs {
    margin-bottom: 3rem;
}

.analog-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.analog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.analog-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.analog-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.analog-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.analog-type.original {
    background: rgba(40, 167, 69, 0.8);
}

.analog-type.generic {
    background: rgba(23, 162, 184, 0.8);
}

.analog-type.functional {
    background: rgba(255, 193, 7, 0.8);
    color: #212529;
}

.analog-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.analog-info p {
    margin: 0.8rem 0;
    color: #495057;
    line-height: 1.5;
}

.analog-info strong {
    color: #2c5aa0;
    font-weight: 600;
}

.analog-details h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.analog-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analog-details li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.analog-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Сравнительная таблица */
.comparison-table-section {
    margin-bottom: 3rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

.comparison-table th {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.comparison-table th:first-child {
    border-top-left-radius: 12px;
}

.comparison-table th:last-child {
    border-top-right-radius: 12px;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    vertical-align: top;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s ease;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #2c5aa0;
    background-color: #f8f9fa;
}

.price-low {
    color: #28a745;
    font-weight: bold;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.price-high {
    color: #dc3545;
    font-weight: bold;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Критерии выбора */
.selection-criteria {
    margin-bottom: 3rem;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.criteria-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.criteria-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.criteria-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
}

.criteria-item h3 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.criteria-item p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Переход между препаратами */
.switching-therapy {
    margin-bottom: 3rem;
}

.switching-info {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1.5rem;
}

.switching-info h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.switching-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.switching-info li {
    padding: 0.7rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.switching-info li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.switching-rules {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rule-item {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 1.5rem;
    border-radius: 8px;
}

.rule-item h4 {
    color: #17a2b8;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.rule-item p {
    color: #495057;
    margin: 0;
    line-height: 1.5;
}

/* Мутации и резистентность */
.resistance-mutations {
    margin-bottom: 3rem;
}

.mutations-table {
    margin-top: 1.5rem;
}

.mutations-table h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.mutations-comparison {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mutations-comparison th {
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.mutations-comparison td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

.mutations-comparison tr:nth-child(even) {
    background-color: #f8f9fa;
}

.mutations-comparison td:first-child {
    font-weight: bold;
    color: #6f42c1;
    background-color: #f8f9fa;
    text-align: left;
}

.sensitive {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.partial {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.resistance {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Экономический анализ */
.economic-analysis {
    margin-bottom: 3rem;
}

.economic-content h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cost-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cost-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #3498db);
}

.cost-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.15);
}

.cost-item h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cost-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    margin: 1rem 0;
}

.cost-item:nth-child(1) .cost-value {
    color: #28a745; /* Dasakast - зеленый */
}

.cost-item:nth-child(2) .cost-value,
.cost-item:nth-child(3) .cost-value,
.cost-item:nth-child(4) .cost-value {
    color: #dc3545; /* Дорогие препараты - красный */
}

.cost-note {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.savings-info {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.savings-info h3 {
    color: #155724;
    margin-bottom: 1rem;
}

.savings-info p {
    color: #155724;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Рекомендации специалистов */
.recommendations {
    margin-bottom: 3rem;
}

.recommendations-content {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recommendation-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-left: 5px solid #17a2b8;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.1);
}

.recommendation-item h3 {
    color: #17a2b8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.recommendation-item p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #2c5aa0;
    border: 2px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #2c5aa0;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .analog-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analog-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .classification-grid,
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-comparison {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
    
    .table-responsive {
        margin: 1rem 0;
    }
    
    .comparison-table,
    .mutations-comparison {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td,
    .mutations-comparison th,
    .mutations-comparison td {
        padding: 0.7rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .analogi-intro,
    .analogi-warning {
        padding: 1.5rem;
    }
    
    .cost-value {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}