/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700;900&display=swap');

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

:root {
    --polish-red: #dc143c;
    --polish-white: #f5f5f5;
    --dark-gray: #333333;
    --light-gray: #eeeeee;
    --accent: #0f52ba;
    --accent-light: #3a7bd5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-gray);
    background-color: var(--polish-white);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--polish-red);
}

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

a:hover {
    color: var(--accent-light);
}

ul {
    list-style-type: none;
}

section {
    padding: 60px 20px;
    margin: 30px 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--polish-red);
}

/* Header / Hero Section */
header {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    background-image: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(35, 35, 35, 0.7);
    color: white;
    border-radius: var(--border-radius);
    position: relative;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--polish-red) 0%, rgba(15, 82, 186, 0.8) 100%);
    opacity: 0.7;
    border-radius: var(--border-radius);
}

header h1, header p {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: white;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--polish-red);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.cta-button:hover {
    background-color: #bf0d33;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4);
}

/* Form Section */
#form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
}

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

input[type="email"] {
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.2);
}

button[type="submit"] {
    padding: 15px 30px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 82, 186, 0.3);
}

/* Products Section */
#products ul {
    margin-bottom: 2rem;
}

#products li {
    padding: 15px 20px;
    margin-bottom: 10px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
}

#products li:hover {
    transform: translateX(5px);
    background-color: #e5e5e5;
}

/* Article Styling */
article {
    background: linear-gradient(to right, #ffffff, #f9f9f9);
    border-left: 4px solid var(--polish-red);
    padding: 30px;
    margin-top: 2rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
}

article h3 {
    color: var(--polish-red);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

article p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

article p:last-child {
    margin-bottom: 0;
}

/* Specialists Section */
#specialists li {
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#specialists li:before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: var(--polish-red);
    margin-right: 15px;
    border-radius: 50%;
}

#specialists li:hover {
    background-color: #e5e5e5;
    transform: translateX(5px);
}

/* Reviews Section */
#reviews ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

#reviews li {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

#reviews li:before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: var(--polish-red);
    opacity: 0.2;
    line-height: 1;
}

#reviews li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contacts Section */
#contacts {
    background-color: white;
}

#contacts iframe {
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--dark-gray);
    border-top: 1px solid var(--light-gray);
}

/* Special Polish Design Elements */
.polish-accent {
    position: absolute;
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: linear-gradient(to right, var(--polish-red) 50%, var(--polish-white) 50%);
    background-size: 40px 10px;
    opacity: 0.7;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

section:first-of-type {
    position: relative;
}

section:first-of-type .polish-accent {
    display: block;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    header {
        padding: 40px 20px;
    }
    
    #reviews ul {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 40px 20px;
    }
    
    .cta-button {
        padding: 12px 25px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    header {
        padding: 30px 15px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    section {
        padding: 30px 15px;
    }
    
    article {
        padding: 20px;
    }
}