/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
    --primary-color: #003d73;    /* CERT Polska blue */
    --secondary-color: #e30613;  /* CERT Polska red */
    --accent-color: #ffba00;     /* Gold accent */
    --light-bg: #85aeec;
    --dark-bg: #22283a;
    --white: #ffffff;
    --light-gray: #e6e8ec;
    --text-color: #333333;
    --text-light: #666666;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    max-width: 1180px;
    margin: 0 auto;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1180px;
    padding: 0 20px;
    margin: 0 auto;
}

p {
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background-color: #c00510;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #00315d;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: var(--white);
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

/* Intro Section (Block 1) */
#intro {
    position: relative;
    min-height: 430px;
    padding: 100px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 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='%232955a3' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#intro h1, #intro h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

#intro h1 {
    font-size: 2.5rem;
}

#intro h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

#intro .btn-primary {
    margin-top: 1.5rem;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#intro .btn-primary:hover {
    background-color: #ffa200;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* Products Section (Block 3) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0;
}

.product-card .btn-secondary {
    margin-top: 20px;
    width: 100%;
}

/* Article Styling */
.article {
    background-color: var(--white);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--box-shadow);
    margin-top: 40px;
}

.article h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Reviews Section (Block 5) */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.review-card h3 {
    color: var(--primary-color);
}

.rating {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Specialists Section (Block 4) */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.specialist-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.specialist-card h3 {
    color: var(--primary-color);
}

.position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Signup Form (Block 2) */
#signup {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 80px 0;
}

#signup h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
}

#signup p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Contact Section (Block 6) */
#contact {
    background-color: var(--white);
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

/* Footer (Block 7) */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .products-grid, .reviews-grid, .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #intro {
        padding: 80px 0;
    }

    #intro h1 {
        font-size: 2.2rem;
    }

    #intro h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid, .reviews-grid, .specialists-grid {
        grid-template-columns: 1fr;
    }

    form {
        padding: 30px;
    }

    #intro {
        padding: 60px 0;
    }

    #intro h1 {
        font-size: 2rem;
    }

    #intro h2 {
        font-size: 1.3rem;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    form {
        padding: 20px;
    }

    #intro {
        padding: 50px 0;
    }

    #intro h1 {
        font-size: 1.8rem;
    }

    #intro h2 {
        font-size: 1.2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
    }

    section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.5rem;
    }
}
