/* 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 CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a3a61;
}

a {
    text-decoration: none;
    color: #0063b1;
    transition: all 0.3s ease;
}

a:hover {
    color: #004380;
}

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

/* Header - Block 1 */
header {
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0063b1 0%, #003366 100%);
    color: #fff;
    border-bottom: 5px solid #e73c3e;
    border-radius: 0 0 8px 8px;
    padding: 40px 0;
    overflow: hidden;
    margin-bottom: 40px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40L0 40 0 0z' fill='%23ffffff' fill-opacity='0.1'/%3E%3Cpath d='M40 40L40 0 0 0z' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 1;
}

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

header .logo h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

header .logo p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

header .hero {
    max-width: 800px;
}

header .hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

header .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background-color: #e73c3e;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #d62d2f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Section styling */
.section {
    padding: 60px 0;
    border-radius: 8px;
    margin: 40px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#opinie {
    background-color: #f0f8ff;
}

#specjalisci {
    background-color: #fff;
}

#formularz {
    background: linear-gradient(135deg, #003366 0%, #0063b1 100%);
    color: #fff;
}

#uslugi {
    background-color: #fff;
}

#kontakt {
    background-color: #f0f8ff;
}

/* Section Headings */
.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #e73c3e;
}

#formularz h2::after {
    background-color: #fff;
}

/* Reviews - Block 5 */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.review {
    flex: 1 1 300px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.stars {
    color: #e73c3e;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review p {
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.review h4 {
    margin: 15px 0 5px;
    color: #0063b1;
}

.position {
    font-style: italic;
    color: #666;
    margin-bottom: 0;
}

/* Specialists - Block 4 */
.specialists-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.specialist {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0063b1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specialist h3 {
    color: #0063b1;
    margin-bottom: 10px;
}

.specialist .position {
    font-weight: 600;
    color: #444;
    margin-bottom: 15px;
}

.specialist p {
    color: #555;
}

/* Form - Block 2 */
form {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#formularz p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="email"]:focus {
    outline: none;
    border-color: #e73c3e;
    background-color: rgba(255, 255, 255, 0.2);
}

form .btn-primary {
    margin-top: 10px;
    width: 100%;
}

/* Products - Block 3 */
.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.product {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.product h3 {
    color: #0063b1;
    margin-bottom: 15px;
}

.product p {
    color: #444;
    margin-bottom: 20px;
}

.price {
    font-weight: 700;
    color: #e73c3e;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* Article */
.article {
    background-color: #edf5ff;
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid #0063b1;
    position: relative;
    margin-top: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 50px;
    height: 20px;
    background-color: #0063b1;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.article h3 {
    color: #0063b1;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.article p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.7;
}

/* Contact - Block 6 */
address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #333;
}

.map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

iframe {
    display: block;
}

/* Footer - Block 7 */
footer {
    background-color: #003366;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-top: 40px;
}

footer p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        min-height: 380px;
        text-align: center;
        padding: 30px 0;
    }

    header .logo h1 {
        font-size: 1.8rem;
    }

    header .hero h2 {
        font-size: 1.5rem;
    }

    .specialists-container,
    .reviews-container,
    .products-container {
        flex-direction: column;
        gap: 20px;
    }

    .section {
        padding: 40px 0;
        margin: 30px 0;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    form {
        padding: 20px;
    }

    .article {
        padding: 25px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 10px;
    }

    .container {
        padding: 20px 15px;
    }

    header {
        min-height: 320px;
    }

    header .logo h1 {
        font-size: 1.5rem;
    }

    header .hero h2 {
        font-size: 1.3rem;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .article {
        padding: 20px;
    }

    .review, .specialist, .product {
        padding: 20px;
    }

    address {
        font-size: 1rem;
    }
}
