/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Общие стили для секций */
section, footer {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Block 1: Offer */
#offer {
    min-height: 430px;
    background: linear-gradient(135deg, #1a2525 0%, #2e3b4e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#offer h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
}

#offer p {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 30px;
}

#offer .button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d32f2f;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#offer .button:hover {
    background-color: #b71c1c;
}

/* Block 2: Subscribe Form */
#subscribe {
    background-color: #fff;
    border: 2px solid #2e3b4e;
}

#subscribe h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2e3b4e;
}

#subscribe form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#subscribe input[type="email"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #2e3b4e;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

#subscribe button {
    padding: 10px 20px;
    background-color: #2e3b4e;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#subscribe button:hover {
    background-color: #1a2525;
}

/* Block 3: Products and Article */
#products {
    background-color: #e0e0e0;
}

#products h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2e3b4e;
}

#products ul {
    list-style: none;
    margin-bottom: 30px;
}

#products ul li {
    font-size: 1.1em;
    margin: 10px 0;
}

#products article {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #d32f2f;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#products article h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Block 4: Specialists */
#specialists {
    background-color: #2e3b4e;
    color: #fff;
}

#specialists h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
}

#specialists div {
    margin: 15px 0;
}

#specialists h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
}

/* Block 5: Reviews */
#reviews {
    background-color: #fff;
    border: 2px solid #d32f2f;
}

#reviews h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2e3b4e;
}

#reviews div {
    margin: 15px 0;
    font-style: italic;
}

/* Block 6: Contact */
#contact {
    background-color: #e0e0e0;
}

#contact h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2e3b4e;
}

#contact iframe {
    margin: 20px 0;
}

/* Block 7: Footer */
footer {
    background-color: #1a2525;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    #offer {
        min-height: 350px;
    }

    #offer h1 {
        font-size: 2em;
    }

    #offer p {
        font-size: 1em;
    }

    #offer .button {
        padding: 10px 20px;
        font-size: 1em;
    }

    section, footer {
        padding: 20px 10px;
    }

    #subscribe form {
        flex-direction: column;
        align-items: center;
    }

    #subscribe input[type="email"],
    #subscribe button {
        width: 100%;
        max-width: none;
    }

    #products ul li,
    #specialists h3,
    #reviews div {
        font-size: 1em;
    }
}
