/* Global Variables */
:root {
    --primary-color: #0077cc;
    --secondary-color: #e8f4ff;
    --accent-color: #005599;
    --header-height: 60px;
    --nav-height: 50px;
    --warning-color: #fff3cd;
    --warning-border: #ffc107;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    padding-top: calc(var(--header-height) + var(--nav-height));
}




/* Typography */
h1 {
    font-size: 2rem; /* Стандартный размер */
    line-height: 1.2;
    margin-bottom: 1rem;
	color: var(--primary-color);
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}




/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header and Navigation */
header {
    background: #c2d5ff;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
}

nav {
    background: var(--secondary-color);
    padding: 1rem;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    height: 100%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(0,0,0,0.05);
}





  .hero-section {
            background: linear-gradient(135deg, var(--secondary-color), white);
            padding: 4rem 2rem;
            text-align: center;
            margin-bottom: 2rem;
        }

        .med-registration {
            background: var(--secondary-color);
            padding: 1rem;
            text-align: center;
            margin: 1rem 0;
            border-radius: 8px;
        }

        .recommendations {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin: 2rem 0;
        }

        .table-responsive {
            overflow-x: auto;
            margin: 1rem 0;
        }

        .treatment-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
        }

        .treatment-table th, 
        .treatment-table td {
            border: 1px solid var(--secondary-color);
            padding: 0.8rem;
            text-align: left;
        }

        .treatment-table th {
            background: var(--secondary-color);
        }

        .hotline {
            background: var(--primary-color);
            color: white;
            padding: 1rem;
            text-align: center;
            border-radius: 8px;
            margin: 1rem 0;
        }

        .hotline a {
            color: white;
            text-decoration: none;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .disclaimer {
            font-size: 0.9rem;
            color: #666;
            padding: 1rem;
            border: 1px solid var(--secondary-color);
            border-radius: 8px;
            margin: 2rem 0;
        }

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #5abfff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.button:hover {
    background: var(--accent-color);
}

.button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.button.secondary:hover {
    background: var(--secondary-color);
}

/* Product Header */
.product-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.product-image {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info {
    flex: 1;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Related Products */
.related-products {
    margin: 2rem 0;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Warning Section */
.warning-section {
    background: var(--warning-color);
    border-left: 4px solid var(--warning-border);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Company Stats */
.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
}

.timeline-item {
    background: var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* External Links */
.external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.external-link:hover {
    border-color: var(--primary-color);
}

/* Mission Section */
.mission-section {
    background: linear-gradient(135deg, var(--secondary-color), white);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Usage Section */
.usage-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.usage-card {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
        padding: 0 1rem;
    }

    nav a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    body {
        padding-top: calc(var(--header-height) + var(--nav-height) + 1rem);
    }




    .product-header {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        padding-top: 0;
    }

    header, nav {
        position: static;
    }

    .button {
        display: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.1rem; /* Уменьшенный размер для мобильных */
        line-height: 1.3;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Корректировка отступов для лучшей читаемости на мобильных */
    .container {
        padding: 1rem;
    }

    /* Уменьшаем размер текста в карточках продуктов */
    .product-card h3 {
        font-size: 1.1rem;
    }

    /* Уменьшаем размер номера телефона в шапке */
    .hotline a {
        font-size: 1.25rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    h1 {
        font-size: 1.25rem; /* Еще меньший размер для маленьких экранов */
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }
}
