/* assets/css/style.css */

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo:hover {
    color: #e8f4f8;
}

.header-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    font-size: 1.1rem;
}

/* Навигация */
.navigation {
    background: #1e4080;
    padding: 0.5rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Уведомление о правильном названии */
.correction-notice {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

/* Основной контент */
.main-content {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.page-title {
    color: #2c5aa0;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 1rem;
}

.section {
    margin: 2rem 0;
}

.section-title {
    color: #1e4080;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #2c5aa0;
}

.drug-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* FAQ */
.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    background: #2c5aa0;
    color: white;
    padding: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    border-top: 1px solid #e9ecef;
}

.faq-answer.show {
    display: block;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .main-content {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .drug-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные утилиты */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.p-2 { padding: 1rem; }

.highlight {
    background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Стили для галереи упаковки */
.package-gallery {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.package-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-image-item {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.package-img {
    width: 100%;
    max-width: 250px;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.package-img:hover {
    transform: scale(1.05);
}

.package-caption {
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
    font-size: 0.95rem;
}

.package-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.package-details h3,
.package-composition h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.package-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-list li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 0.95rem;
}

.package-list li i {
    color: #28a745;
    margin-right: 0.5rem;
    width: 16px;
}

.composition-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.composition-item {
    background: #2c5aa0;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Модальное окно для увеличенного просмотра изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .package-gallery {
        padding: 1.5rem;
    }
    
    .package-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .composition-items {
        justify-content: center;
    }
    
    .package-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .package-gallery {
        padding: 1rem;
    }
    
    .package-image-item {
        padding: 1rem;
    }
    
    .package-img {
        height: 150px;
    }
    
    .composition-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}