/*
 * =========================================
 * BÜBÜ - Стилизация в стиле "Стамбул"
 * =========================================
 */

/* * -------------------------------------
 * 1. Глобальные настройки и типографика
 * -------------------------------------
 */
* {
    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;
    font-size: 16px;
    line-height: 1.6;
    color: #333333; /* Почти черный для читаемости */
    background-color: #fdfdfd; /* Очень светлый фон */

    /* Ограничение ширины и центрирование */
    max-width: 1090px;
    margin: 0 auto;

    /* Небольшая "рамка" и тень для выделения контента */
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Заголовки (стиль "Стамбул"):
   Используем элегантные шрифты с засечками, если они есть в системе.
*/
h1, h2, h3, h4, h5, h6 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Hoefler Text", "Georgia", serif;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.3;
}

h1 { font-size: 2.9rem; }
h2 { font-size: 2.2rem; color: #15455f; /* Глубокий синий */ }
h3 { font-size: 1.6rem; }

section, header, footer {
    padding: 50px 40px;
    overflow: hidden; /* Для предотвращения схлопывания margin */
}

/*
 * -------------------------------------
 * 2. Блок 1: Hero (Предложение)
 * -------------------------------------
 */
.hero-section {
    background-color: #15455f; /* Глубокий синий (Босфор) */
    color: #f5f0e8; /* Теплый песочный (Дворцы) */
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-section h1 {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Ссылка-кнопка */
.button-link {
    display: inline-block;
    background-color: #ffb90f; /* Золотой акцент */
    color: #333333;
    padding: 14px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #ffb90f;
    transition: all 0.3s ease;
}

.button-link:hover {
    background-color: transparent;
    color: #ffb90f; /* Золотой текст */
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/*
 * -------------------------------------
 * 3. Блок 4: Специалисты
 * -------------------------------------
 */
.specialists-section {
    background-color: #f5f0e8; /* Песочный фон */
    color: #333;
}

.specialist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.specialist-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #15455f; /* Акцент синим */
}

.specialist-card h3 {
    margin-bottom: 10px;
    color: #15455f;
}

/*
 * -------------------------------------
 * 4. Блок 5: Отзывы
 * -------------------------------------
 */
.reviews-section {
    background-color: #ffffff; /* Чистый белый */
    color: #333;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.review-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #c0392b; /* Терракотово-красный акцент */
    position: relative;
}

.review-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 20px;
}

/* Декоративные кавычки */
.review-card blockquote::before {
    content: '“';
    font-family: "Georgia", serif;
    font-size: 3.5rem;
    color: #c0392b;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
}

.review-card cite {
    font-weight: bold;
    color: #c0392b;
    display: block;
    text-align: right;
    margin-top: 10px;
}

/*
 * -------------------------------------
 * 5. Блок 2: Форма подписки
 * -------------------------------------
 */
.form-section {
    background-color: #c0392b; /* Терракотово-красный */
    color: #ffffff;
    text-align: center;
}

.form-section h2 {
    color: #ffffff;
}

.form-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 550px;
    margin: 20px auto 0 auto;
}

form label {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: left;
}

form input[type="email"] {
    padding: 14px;
    font-size: 1rem;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
}

form input[type="email"]::placeholder {
    color: #999;
}

form input[type="email"]:focus {
    outline: none;
    border-color: #ffb90f; /* Золотой фокус */
    box-shadow: 0 0 10px rgba(255, 185, 15, 0.5);
}

/* Кнопка отправки формы */
button[type="submit"] {
    display: inline-block;
    background-color: #f5f0e8; /* Песочный */
    color: #c0392b; /* Красный текст */
    padding: 14px 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/*
 * -------------------------------------
 * 6. Блок 4.1: Медиа-активность
 * -------------------------------------
 */
.media-mentions-section {
    background-color: #f5f0e8; /* Песочный (как у специалистов) */
    color: #333;
    text-align: center;
}

.media-mentions-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/*
 * -------------------------------------
 * 7. Блок 3: Продукты и Статья
 * -------------------------------------
 */
.products-article-section {
    background-color: #ffffff;
    color: #333;
}

.product-list ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.product-list li {
    font-size: 1.15rem;
    padding: 18px 10px;
    border-bottom: 1px dashed #cccccc;
}

.product-list li strong {
    color: #15455f; /* Синий акцент */
}

.product-list li:last-child {
    border-bottom: none;
}

hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* Выделение статьи */
.topic-article {
    background-color: #fcfaf6; /* Очень светлый песочный */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 900px;
    margin: 20px auto 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.topic-article h3 {
    color: #c0392b; /* Красный заголовок статьи */
    text-align: center;
    font-size: 1.8rem;
}

.topic-article p {
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify; /* Выравнивание по ширине для "газетного" вида */
}

/*
 * -------------------------------------
 * 8. Блок 6: Карта и Адрес
 * -------------------------------------
 */
.location-section {
    background-color: #f0f0f0; /* Нейтральный светло-серый */
    color: #333;
    text-align: center;
}

.address-container {
    margin-bottom: 30px;
}

.address-container h3 {
    color: #333;
}

.address-container address {
    font-style: normal;
    font-size: 1.1rem;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

/*
 * -------------------------------------
 * 9. Блок 7: Footer (Копирайт)
 * -------------------------------------
 */
.copyright-footer {
    background-color: #15455f; /* Глубокий синий */
    color: #f5f0e8; /* Песочный текст */
    text-align: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.copyright-footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/*
 * =========================================
 * 10. Мобильная адаптация (Media Queries)
 * =========================================
 */

/* Планшеты (до 900px) */
@media (max-width: 900px) {
    .specialist-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки */
    }

    .review-grid {
        grid-template-columns: 1fr; /* 1 колонка */
    }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
    body {
        /* Убираем "рамку" на мобильных */
        border: none;
        box-shadow: none;
    }

    section, header, footer {
        padding: 40px 20px; /* Уменьшаем отступы */
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    .hero-section p { font-size: 1.1rem; }

    /* Все гриды в 1 колонку */
    .specialist-grid {
        grid-template-columns: 1fr;
    }

    /* Кнопки на всю ширину */
    .button-link,
    button[type="submit"] {
        width: 100%;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .product-list li {
        font-size: 1rem;
        padding: 12px 5px;
    }

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