/* ========== BASE.CSS - БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕГО САЙТА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'DengXian', 'Yu Gothic UI', system-ui, sans-serif;
    background-color: #e6e6e1;  /* Серая заливка */
    color: #000000;  /* Черные буквы */
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Основной контент */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 0 2rem;
    width: 100%;
}

/* Блок для текста страницы */
.page-text {
    background: #e6e6e1;  /* Серая заливка */
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #d4d4cf;
}

.page-text h1 {
    font-family: 'Century Schoolbook', 'DengXian', 'Yu Gothic UI', serif;
    font-size: 22px;  /* Заголовки 22 */
    margin-bottom: 1rem;
    font-weight: 600;
    color: #000000;  /* Черные буквы */
}

.page-text p {
    font-family: 'Calibri', 'DengXian', 'Yu Gothic UI', sans-serif;
    font-size: 18px;  /* Основной текст 18 */
    margin-bottom: 1.25rem;
    color: #000000;  /* Черные буквы */
}

/* Сетка карточек */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fafaf5;  /* Светлые буквы как фон */
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #d4d4cf;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.2);
    border-color: #11366a;  /* Синяя заливка */
}

.feature-card h3 {
    font-family: 'Century Schoolbook', 'DengXian', 'Yu Gothic UI', serif;
    font-size: 22px;
    margin-bottom: 0.75rem;
    color: #11366a;  /* Синяя заливка */
}

.feature-card p {
    font-family: 'Calibri', 'DengXian', 'Yu Gothic UI', sans-serif;
    font-size: 18px;
    color: #000000;
}

/* Футер */
.footer {
    text-align: center;
    padding: 1.8rem;
    background: #11366a;  /* Синяя заливка */
    color: #fafaf5;  /* Светлые буквы */
    margin-top: 2rem;
    font-family: 'Calibri', 'DengXian', 'Yu Gothic UI', sans-serif;
    font-size: 18px;
    border-top: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .page-text h1 {
        font-size: 20px;
    }

    .page-text p {
        font-size: 16px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 16px;
    }

    .footer {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-text {
        padding: 1.25rem;
    }

    .page-text h1 {
        font-size: 18px;
    }

    .page-text p {
        font-size: 14px;
    }
}