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

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

:root {
    --police-blue: #1c3664;
    --police-light-blue: #3270b4;
    --police-red: #d62b30;
    --police-yellow: #ffd700;
    --police-white: #ffffff;
    --police-gray: #f2f2f2;
    --police-dark: #222222;
    --body-max-width: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--police-dark);
    line-height: 1.6;
    max-width: var(--body-max-width);
    margin: 0 auto;
    background-color: var(--police-gray);
    position: relative;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--police-red);
}

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

p {
    margin-bottom: 1.2rem;
}

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

a:hover {
    color: var(--police-red);
}

/* Container */
.container {
    width: 90%;
    max-width: var(--body-max-width);
    margin: 0 auto;
    padding: 2rem 0;
}

/* Blocks Styling */
.block {
    padding: 4rem 0;
}

.block:nth-child(odd) {
    background-color: var(--police-white);
}

.block:nth-child(even) {
    background-color: var(--police-gray);
}

/* Block 1: Offer Section */
#oferta {
    background: linear-gradient(135deg, var(--police-blue) 0%, var(--police-light-blue) 100%);
    color: var(--police-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='%233270b4' fill-opacity='0.2' 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");
    opacity: 0.2;
    z-index: 1;
}

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

#oferta h1, #oferta h2 {
    color: var(--police-white);
}

#oferta h2 {
    font-weight: 400;
    margin-bottom: 1.5rem;
}

#oferta h2::after {
    background-color: var(--police-yellow);
}

/* Button Styling */
.button {
    display: inline-block;
    background-color: var(--police-red);
    color: var(--police-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    border: 2px solid var(--police-red);
    transition: all 0.3s ease;
    cursor: pointer;
}

.button:hover {
    background-color: transparent;
    color: var(--police-white);
    border-color: var(--police-white);
}

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

.specialist {
    background: var(--police-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--police-blue);
}

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

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

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

.review::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--police-blue);
    opacity: 0.1;
    font-family: serif;
}

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

.product {
    background: var(--police-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--police-blue);
}

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

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--police-red);
    margin-top: 1rem;
}

/* Article Styling */
.article {
    background: var(--police-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--police-red);
}

.article h3 {
    color: var(--police-blue);
    margin-bottom: 1.5rem;
}

/* Form Styling */
form {
    background: var(--police-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 2rem auto;
}

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

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

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

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

form .button {
    background-color: var(--police-blue);
    border-color: var(--police-blue);
    margin-top: 0;
}

form .button:hover {
    background-color: var(--police-red);
    border-color: var(--police-red);
    color: var(--police-white);
}

/* Contact Section */
#kontakt {
    background-color: var(--police-dark);
    color: var(--police-white);
}

#kontakt h2 {
    color: var(--police-white);
}

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

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

/* Footer */
footer {
    background-color: var(--police-blue);
    color: var(--police-white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        width: 95%;
        padding: 1rem 0;
    }

    .block {
        padding: 2rem 0;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    form {
        padding: 1.5rem;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    #oferta {
        text-align: center;
    }

    #oferta h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .form-group {
        margin-bottom: 1rem;
    }

    input[type="email"] {
        padding: 10px;
    }
}
