/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Libre+Franklin:wght@300;400;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #003d99;
    --secondary-color: #b31942;
    --accent-color: #f2a900;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-light: #ffffff;
    --text-dark: #212529;
    --border-radius: 5px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 0;
}

section {
    margin-bottom: 2rem;
    padding: 2rem 0;
}

/* Hero Section - Block 1 */
.hero-section {
    min-height: 430px;
    background: linear-gradient(135deg, #003d99 0%, #0057e3 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #003d99 0%, #0057e3 100%);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
    padding: 4rem 2rem;
    border-radius: 0 0 50px 50px;
    box-shadow: var(--shadow);
}

.hero-section h1, .hero-section h2 {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

.hero-section h2::after {
    background-color: var(--accent-color);
}

.hero-section p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* Reviews Section - Block 5 */
.reviews-section {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 3rem 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.rating {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Specialists Section - Block 4 */
.specialists-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    border-radius: var(--border-radius);
}

.specialists-section h2, .specialists-section h3 {
    color: var(--text-light);
}

.specialists-section h2::after {
    background-color: var(--accent-color);
}

.specialists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.specialist-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Form Section - Block 2 */
.form-section {
    background-color: var(--light-bg);
    padding: 3rem 0;
    border-radius: var(--border-radius);
    text-align: center;
}

form {
    max-width: 500px;
    margin: 2rem auto 0;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Products Section - Block 3 */
.products-section {
    padding: 3rem 0;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1rem 0;
}

/* Article Section */
.article-section {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.article-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.article-section h2::after {
    margin-left: 0;
    margin-right: auto;
    width: 100px;
}

article p:first-of-type {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Contact Section - Block 6 */
.contact-section {
    background-color: var(--light-bg);
    padding: 3rem 0;
    border-radius: var(--border-radius);
}

address {
    text-align: center;
    font-style: normal;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.map-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer Section - Block 7 */
.footer-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .products-container,
    .specialists-container,
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .review-card, .specialist-card, .product-card {
        padding: 1.5rem;
    }

    form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section h2 {
        font-size: 1.25rem;
    }

    .btn-primary, .btn-secondary {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .container {
        width: 95%;
    }

    .article-section {
        padding: 1.5rem;
    }
}
