/*
 * styles.css
 * Стили для сайта Cihannüma Kasrı (Онлайн-бухгалтерия / Финансы)
 * ИЗМЕНЕНИЕ: Блок 1 теперь со светлым фоном и черным текстом для лучшего контраста.
 */

/* --- 1. Глобальные настройки и Типографика --- */

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

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";
    line-height: 1.7;

    /* Цветовая схема */
    background-color: #f0f2f5; /* Фон "за" сайтом (легкий серый) */
    color: #333; /* Базовый цвет текста */

    /* Макет: Максимальная ширина 1090px и центрирование. */
    max-width: 1090px;
    margin: 0 auto;

    /* Тень для выделения "тела" сайта на широких экранах */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}

.container {
    width: 100%;
    /* Отступы по бокам, чтобы контент не прилипал к краям */
    padding-left: 30px;
    padding-right: 30px;
}

/* --- 2. Стилизация общих элементов --- */

h1, h2, h3 {
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 {
    font-size: 2.2rem;
    /* Акцентная черта для заголовков секций */
    border-bottom: 3px solid #0056b3; /* Основной синий */
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
h3 {
    font-size: 1.5rem;
    color: #0056b3; /* Синий для подзаголовков */
}

p {
    margin-bottom: 15px;
    color: #495057; /* Чуть мягче черного для текста */
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: underline;
    color: #003d82;
}

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

/* Общий отступ для всех секций */
section, header, footer {
    padding-top: 60px;
    padding-bottom: 60px;
    overflow: hidden;
}

/*
 * Чередование цветов для контраста:
 * Block 1 (Header): Светло-серый (новый)
 * Block 4 (Uzmanlar): Белый
 * Block 5 (Yorumlar): Светло-серый
 * Block 2 (Form): Акцентный синий
 * Block 4.1 (Faaliyetler): Белый
 * Block 3 (Kurslar): Светло-серый
 * Block 6 (Iletisim): Белый
 * Block 7 (Footer): Темный
 */

#uzmanlar, #faaliyetler, #iletisim {
    background-color: #ffffff;
}

#yorumlar, #kurslar {
    background-color: #f8f9fa; /* Очень легкий серый */
}

/* --- 4. Стилизация конкретных блоков --- */

/* --- Блок 1: Header (Предложение) --- */
header {
    /* ИЗМЕНЕНО: Светлый фон для контраста с черным текстом */
    background-color: #f0f2f5;
    color: #000000; /* ЧЕРНЫЙ ЦВЕТ ТЕКСТА */

    /* Требование: не менее 470px */
    min-height: 470px;

    /* Центрирование контента */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

header .container {
    max-width: 800px; /* Сделать текст в шапке чуть уже для фокуса */
}

header h1 {
    color: #000000;
    font-size: 3rem;
    font-weight: 700;
}

header p {
    font-size: 1.2rem;
    color: #333333; /* Темно-серый для параграфа */
    margin-bottom: 30px;
}

/* Стиль для кнопки-ссылки (a.button) */
.button {
    display: inline-block;
    background-color: #0056b3; /* Акцентный синий */
    color: #ffffff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px; /* Современный "pill" стиль */
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    background-color: #003d82; /* Темнее при наведении */
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Блок 2: Форма подписки (Kayıt Formu) --- */
#kayit-formu {
    background-color: #0056b3; /* Основной синий */
    color: #ffffff;
    text-align: center;
}

#kayit-formu h2 {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

#kayit-formu p {
    font-size: 1.1rem;
    color: #ecf0f1;
}

#kayit-formu form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Для мобильной версии */
}

#kayit-formu input[type="email"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 15px 25px;
    font-size: 1rem;
    width: 350px;
    max-width: 100%;
    border: 2px solid #ffffff;
    border-radius: 50px; /* Скругление */
    margin-right: -45px; /* Наложение кнопки поверх инпута */
    background: #fff;
    color: #333;
    z-index: 1; /* Инпут под кнопкой */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#kayit-formu input[type="email"]:focus {
    outline: none;
    border-color: #28a745; /* Зеленый акцент при фокусе */
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* Общий стиль для кнопок */
input[type="submit"] {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#kayit-formu input[type="submit"] {
    background-color: #28a745; /* Зеленый */
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2; /* Кнопка над инпутом */
}

#kayit-formu input[type="submit"]:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* --- Блок 3: Продукты и Статья (Kurslar) --- */
.product-item {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.product-item strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #d9534f; /* Акцентный красный для цены (как в HTML) */
    margin-top: 15px;
    text-align: right;
}

hr {
    border: none;
    height: 2px;
    background-color: #0056b3;
    opacity: 0.2;
    margin: 60px 0;
}

/* Выделение статьи */
article {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

article h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom-color: #28a745; /* Зеленый акцент для статьи */
    margin-bottom: 25px;
}

article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify; /* Выравнивание текста */
}

article p strong {
    color: #0056b3; /* Выделение ключевых мыслей */
    font-weight: 600;
}


/* --- Блок 4: Специалисты (Uzmanlar) --- */
.specialist-item {
    background-color: #f8f9fa; /* Легкий фон для карточки */
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #0056b3; /* Акцентная полоса */
    border-radius: 0 8px 8px 0;
}

.specialist-item h3 {
    margin-bottom: 10px;
}


/* --- Блок 4.1: Деятельность (Faaliyetler) --- */
#faaliyetler p {
    font-size: 1.1rem;
    max-width: 900px; /* Ограничиваем ширину для читабельности */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* --- Блок 5: Отзывы (Yorumlar) --- */
.review-item {
    background-color: #ffffff;
    padding: 25px 25px 25px 40px; /* Доп. отступ слева для кавычки */
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    position: relative;
}

.review-item p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #495057;
}

/* Декоративная кавычка */
.review-item::before {
    content: '“';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 4rem;
    color: #0056b3;
    opacity: 0.1;
    line-height: 1;
}

.review-item strong {
    color: #333;
    font-weight: 600;
    margin-left: 20px; /* Отступ для имени */
}

/* --- Блок 6: Адрес и Карта (İletişim) --- */
#iletisim address {
    font-size: 1.1rem;
    font-style: normal;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 5px solid #28a745; /* Зеленый акцент */
    border-radius: 0 8px 8px 0;
}

#iletisim p {
    font-size: 1.1rem;
}

#iletisim iframe {
    margin-top: 30px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    height: 450px; /* Высота задана в HTML, но здесь можно переопределить */
    width: 100%;
}

/* --- Блок 7: Footer (Копирайт) --- */
footer {
    background-color: #2c3e50; /* Тот же, что и header, для симметрии */
    color: #ecf0f1;
    padding: 40px 0;
    text-align: center;
}

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

footer p:last-child {
    margin-bottom: 0;
}


/* --- 5. Мобильная адаптация --- */

@media (max-width: 768px) {
    body {
        /* На мобильных тень не нужна */
        box-shadow: none;
    }

    .container {
        padding-left: 20px; /* Уменьшаем боковые отступы */
        padding-right: 20px;
    }

    section, header, footer {
        padding-top: 40px; /* Уменьшаем вертикальные отступы */
        padding-bottom: 40px;
    }

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

    /* Блок 1: Header */
    header {
        min-height: 350px; /* Уменьшаем высоту */
    }
    header h1 { font-size: 2.5rem; }
    header p { font-size: 1.1rem; }
    .button { padding: 12px 25px; font-size: 1rem; }

    /* Блок 2: Форма */
    #kayit-formu form {
        flex-direction: column;
        align-items: stretch;
    }

    #kayit-formu input[type="email"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    #kayit-formu input[type="submit"] {
        width: 100%;
    }

    /* Блок 3: Статья */
    article {
        padding: 25px;
    }

    /* Убираем выравнивание по ширине на мобильных */
    article p, #faaliyetler p {
        text-align: left;
    }

    /* Блок 6: Карта */
    #iletisim iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; padding-bottom: 5px; }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Уменьшаем кавычку в отзывах */
    .review-item::before {
        font-size: 3rem;
        top: 10px;
        left: 10px;
    }
    .review-item {
        padding-left: 30px;
    }
}
