/* Импорт шрифтов Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@400;700&display=swap');

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: #1a3c5a;
}

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

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e63946;
}

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

p {
    margin-bottom: 15px;
}

/* Кнопки и ссылки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e63946;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    margin-top: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.3);
}

.btn:hover {
    background-color: #d62e3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.4);
}

/* Секции */
section {
    padding: 80px 0;
}

/* Герой-секция (Блок 1) */
.hero-section {
    background-image: url('https://images.unsplash.com/photo-1504439904031-93ded9f93e4e?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 60, 90, 0.8);
    z-index: 1;
}

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

.hero-section h1 {
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.hero-section h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 15px;
    color: #f1faee;
}

.hero-section .btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Форма подписки (Блок 2) */
.subscribe-section {
    background-color: #1a3c5a;
    color: white;
    text-align: center;
}

.subscribe-section h2 {
    color: white;
}

.subscribe-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.subscribe-section form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-section input {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.subscribe-section .btn {
    background-color: #e63946;
    margin-top: 15px;
    align-self: center;
    min-width: 200px;
}

/* Продукты и цены (Блок 3) */
.products-section {
    background-color: #f1faee;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    color: #1a3c5a;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e63946;
    margin: 20px 0;
}

/* Статья стилизация */
.article-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-container h2 {
    text-align: center;
    color: #1a3c5a;
}

.article-container h2::after {
    left: 50%;
    transform: translateX(-50%);
}

article p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

/* Специалисты (Блок 4) */
.specialists-section {
    background-color: #1a3c5a;
    color: white;
}

.specialists-section h2 {
    color: white;
    text-align: center;
}

.specialists-section h2::after {
    left: 50%;
    transform: translateX(-50%);
    background-color: #e63946;
}

.specialists-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.specialist-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.specialist-card h3 {
    color: #f1faee;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Отзывы (Блок 5) */
.reviews-section {
    background-color: #f8f9fa;
}

.reviews-section h2 {
    text-align: center;
}

.reviews-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 6rem;
    color: rgba(26, 60, 90, 0.1);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.review-card h3 {
    color: #1a3c5a;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Контакты (Блок 6) */
.contacts-section {
    background-color: #f1faee;
}

.contacts-section h2 {
    text-align: center;
}

.contacts-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contacts-info {
    text-align: center;
    margin-bottom: 30px;
}

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

/* Футер (Блок 7) */
.footer-section {
    background-color: #1a3c5a;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer-section .container {
    padding: 20px 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 991px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        width: 95%;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 450px;
    }

    .products-container,
    .specialists-container,
    .reviews-container {
        grid-template-columns: 1fr;
    }

    .article-container {
        padding: 25px;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    .container {
        width: 90%;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .subscribe-section form {
        width: 100%;
    }

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

    .article-container {
        padding: 20px;
    }

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