/* === Глобальные настройки и переменные === */

:root {
    /* Палитра "Клубничное поле" */
    --color-strawberry-red: #E54B4B; /* Яркая клубника (для кнопок и акцентов) */
    --color-leaf-green: #5AAB61;   /* Зеленые листья (для хедера и акцентов) */
    --color-cream: #FFF9F0;       /* Клубника со сливками (основной фон) */
    --color-sky-blue: #EBF5FF;      /* Чистое небо (фон для форм) */
    --color-text-dark: #2C1E1E;      /* Темная земля (для текста) */
    --color-text-light: #FFFFFF;      /* Чистый белый */
    --color-border: #E0E0E0;       /* Светлая граница */
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавный скролл по якорям */
}

body {
    /* Системные шрифты (без Google Fonts) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    max-width: 1090px;
    margin: 0 auto; /* Центрирование */
    background-color: var(--color-cream); /* Фон "сливки" */
    color: var(--color-text-dark);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 92%;
    margin: 0 auto;
    padding: 45px 0;
}

/* === Типографика === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

h1 {
    font-size: 2.8rem;
    color: var(--color-text-light); /* Белый на зеленом фоне */
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-leaf-green); /* Заголовки секций - зеленые */
}

h3 {
    font-size: 1.5rem;
    color: var(--color-strawberry-red); /* Подзаголовки - красные */
}

p {
    margin-bottom: 15px;
}

address {
    font-style: normal;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.7;
}

/* === Блок 1: Hero (Offer) === */
.hero-section {
    background-color: var(--color-leaf-green); /* Фон - "зеленое поле" */
    color: var(--color-text-light);
    min-height: 470px; /* Требуемая высота */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-section .container {
    padding: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 750px;
    margin-bottom: 35px;
    opacity: 0.95;
}

/* Уникальная кнопка-ссылка в первом блоке */
.hero-section a.cta-button {
    background-color: var(--color-text-light); /* Белая, как цветок клубники */
    color: var(--color-leaf-green); /* Зеленый текст */
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50px; /* Округлая */
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--color-text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-section a.cta-button:hover {
    background-color: var(--color-cream);
    color: var(--color-strawberry-red);
    border-color: var(--color-cream);
    transform: scale(1.05) translateY(-2px);
}


/* === Общие стили кнопок и форм === */

/* Глобальные кнопки (для форм, отправки отзыва и т.д.) */
button[type="submit"],
.cta-button {
    background-color: var(--color-strawberry-red);
    color: var(--color-text-light);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-family: inherit; /* Наследование шрифта */
}

button[type="submit"]:hover,
.cta-button:hover {
    background-color: #C93A3A; /* Темнее при наведении */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Второстепенная кнопка (например, в отзывах) */
.cta-button-secondary {
    background-color: var(--color-text-light);
    color: var(--color-strawberry-red);
    border: 2px solid var(--color-strawberry-red);
}

.cta-button-secondary:hover {
    background-color: var(--color-strawberry-red);
    color: var(--color-text-light);
}

/* Стили для полей ввода */
input[type="email"],
input[type="text"],
textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-leaf-green); /* Зеленый при фокусе */
    box-shadow: 0 0 8px rgba(90, 171, 97, 0.3);
}

/* === Блок 2: Форма подписки === */
.form-section {
    background-color: var(--color-sky-blue); /* Фон "небо" */
}

.form-section h2 {
    color: var(--color-text-dark); /* Темный заголовок на светлом фоне */
}

.subscribe-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Для мобильных */
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex-grow: 1; /* Поле занимает доступное место */
    min-width: 250px;
}

/* === Контрастное разделение блоков === */

/* Базовый фон у body - (cream) */

.content-section {
    padding: 40px 0;
}

/* Чередующийся фон для контраста */
.alternate-bg,
#lokalizacja, /* Блок с картой */
#specjalisci,  /* Блок специалистов */
#opinie       /* Блок отзывов */
{
    background-color: var(--color-text-light); /* Чистый белый */
}

/* У хедера (leaf-green) и формы (sky-blue) уже есть свои фоны */


/* === Блок 3: Продукты и Статья === */
.product-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.product-list li {
    background-color: var(--color-text-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 6px solid var(--color-leaf-green); /* Зеленый акцент */
}

/* Выделение статьи */
.themed-article {
    background-color: #FFFEF5; /* Слегка желтоватый, как солома */
    padding: 30px 35px;
    margin-top: 40px;
    border-radius: 8px;
    border: 1px solid #EAE0C8;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05); /* Легкая внутренняя тень */
}

.themed-article h2 {
    text-align: left;
    color: var(--color-strawberry-red); /* Акцентный заголовок */
    margin-bottom: 20px;
}

.themed-article p {
    color: #444; /* Чуть мягче текст */
    line-height: 1.7;
}

/* === Блок 4: Специалисты === */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 30px;
    margin-top: 30px;
}

.specialist-card {
    background-color: var(--color-cream); /* Кремовый фон карточек */
    padding: 25px;
    border-radius: 8px;
    border-bottom: 4px solid var(--color-leaf-green);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.specialist-card h3 {
    color: var(--color-text-dark); /* Темный заголовок для специалиста */
}

/* === Блок 5: Отзывы === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 1 колонка для отзывов */
    gap: 25px;
    margin-top: 30px;
}

.review-card {
    background-color: var(--color-sky-blue); /* Голубой фон для отзывов */
    padding: 25px;
    border-radius: 10px;
    border-left: 6px solid var(--color-strawberry-red); /* Красный акцент */
    font-style: italic;
    color: #333;
}

.review-card footer {
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
    color: var(--color-text-dark);
    text-align: right;
}

/* Форма "Оставьте отзыв" */
.leave-review-form {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.leave-review-form h3 {
    text-align: center;
    color: var(--color-text-dark);
}
.leave-review-form p {
    text-align: center;
    margin-bottom: 20px;
}

.leave-review-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.leave-review-form label {
    font-weight: bold;
    margin-bottom: -5px;
}

.leave-review-form button[type="submit"] {
    align-self: flex-start; /* Кнопка не растягивается */
}


/* === Блок 6: Адрес и Карта === */
#lokalizacja h2 {
    margin-bottom: 20px;
}

.map-container {
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* Скрыть углы iframe */
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block; /* Убирает лишний отступ у iframe */
}


/* === Блок 7: Footer (Copyright) === */
.site-footer {
    background-color: var(--color-text-dark); /* Темная "земля" */
    color: #E0E0E0;
    padding: 40px 0;
    text-align: center;
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.site-footer small {
    color: #aaa;
}

/* === Мобильная версия === */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .container {
        width: 90%;
        padding: 30px 0;
    }

    .hero-section {
        min-height: 420px; /* Чуть меньше на мобильных */
    }

    /* Сетка в 1 колонку */
    .specialists-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }

    .subscribe-form input[type="email"],
    .subscribe-form button[type="submit"] {
        max-width: 100%;
        width: 100%;
    }

    .leave-review-form button[type="submit"] {
        align-self: stretch; /* Растянуть кнопку в форме отзыва */
    }
}

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

    .hero-section a.cta-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .themed-article {
        padding: 20px;
    }
}
