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

/* Resetowanie stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Podstawowe style */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    max-width: 1180px;
    margin: 0 auto;
}

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

/* Nagłówki */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: #2c3e50;
}

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

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

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Sekcje */
section {
    padding: 60px 0;
}

/* Kolory i style sekcji */
.section-primary {
    background: linear-gradient(135deg, #d4213d 0%, #BF0C34 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-primary::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.05' 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: 0;
}

.section-primary .container {
    position: relative;
    z-index: 1;
}

.section-primary h1, .section-primary h2, .section-primary h3 {
    color: white;
}

.section-secondary {
    background-color: #2c3e50;
    color: white;
}

.section-secondary h2, .section-secondary h3 {
    color: white;
}

.section-light {
    background-color: #f9f9f9;
    color: #333;
}

.section-dark {
    background-color: #e7e7e7;
    color: #333;
}

/* Блок предложения (первый блок) */
#oferta {
    min-height: 430px;
    display: flex;
    align-items: center;
    text-align: center;
}

#oferta h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

#oferta h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 25px;
}

#oferta p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Кнопки и ссылки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: white;
    color: #d4213d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: #2c3e50;
    color: white;
}

.btn-secondary:hover {
    background-color: #3a506b;
    transform: translateY(-3px);
}

/* Форма подписки */
.subscription-form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.subscription-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 15px;
}

.subscription-form button {
    margin-top: 0;
}

/* Специалисты */
.specialists-container, .products-container, .reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.specialist, .product, .review {
    flex-basis: calc(33.33% - 20px);
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.specialist {
    background-color: rgba(255, 255, 255, 0.1);
}

.specialist:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.specialist h3, .product h3, .review h3 {
    margin-bottom: 10px;
}

.specialist p:first-of-type {
    font-weight: 700;
    margin-bottom: 10px;
    color: #d4213d;
}

/* Продукты */
.product {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.price {
    color: #d4213d;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 10px 0;
}

/* Отзывы */
.review {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.review:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-title {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* Статья */
.article {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    border-left: 5px solid #d4213d;
}

.article h3 {
    color: #d4213d;
}

/* Карта */
.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}

/* Футер */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 900px) {
    .specialist, .product, .review {
        flex-basis: calc(50% - 15px);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .specialist, .product, .review {
        flex-basis: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .section-primary {
        text-align: center;
    }

    .subscription-form {
        flex-direction: column;
    }

    .subscription-form input[type="email"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 40px 0;
    }
}
