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

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

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1180px;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1rem;
    color: #1a73e8;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    padding: 2rem;
    width: 100%;
}

/* Common Section Styling */
.block-section {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Offer Section - Block 1 */
#oferta {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    min-height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#oferta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

#oferta .container {
    position: relative;
    z-index: 2;
}

#oferta h1, #oferta h2 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Section - Block 2 */
#formularz {
    background-color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input[type="email"] {
    padding: 12px 15px;
    margin-bottom: 1rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
}

/* Products Section - Block 3 */
#oferty {
    background-color: #ebf2fd;
}

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

.product-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
    margin: 1rem 0;
}

.product-features {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-left: 1.5rem;
}

.product-features li::before {
    content: "✓";
    color: #34a853;
    position: absolute;
    left: 0;
}

/* Article Section */
.article-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;
    border-left: 4px solid #1a73e8;
}

.article-section h3 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

/* Specialists Section - Block 4 */
#specjalisci {
    background-color: white;
}

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

.specialist-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.specialist-item:hover {
    transform: translateY(-5px);
}

.specialist-role {
    color: #1a73e8;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Reviews Section - Block 5 */
#opinie {
    background-color: #f2faf2;
}

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

.review-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.review-item::before {
    content: """;
    font-size: 4rem;
    color: #f1f3f4;
    position: absolute;
    top: -10px;
    left: 10px;
    z-index: 1;
}

.review-text {
    position: relative;
    z-index: 2;
    font-style: italic;
}

.rating {
    color: #fbbc04;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Contact Section - Block 6 */
#kontakt {
    background-color: white;
}

address {
    margin-bottom: 1.5rem;
    font-style: normal;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer - Block 7 */
#stopka {
    background-color: #1a73e8;
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

/* Buttons */
.button-primary, .button-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.button-primary {
    background-color: #ea4335;
    color: white;
    border: none;
}

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

.button-secondary {
    background-color: #1a73e8;
    color: white;
    border: none;
}

.button-secondary:hover {
    background-color: #1558be;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .contact-form {
        width: 100%;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        display: block;
    }

    #oferta {
        min-height: auto;
        padding: 2rem 0;
    }

    .map-container {
        height: 300px;
    }
}

/* Medium-sized screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-container,
    .specialists-container,
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
