/*
Theme Name: Burina Homeopath
Description: Тема для сайта классического гомеопата
Author: Your Name
Version: 1.0
*/

/* --- Базовые настройки --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #555;
    background-color: #f4f4f4;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    font-size: 14px;
    line-height: 1.6;
}

a { color: #d19a10; text-decoration: none; transition: 0.3s; }
a:hover { color: #b07c00; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Шапка сайта (Header) --- */
.site-header {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-orange {
    color: #d19a10;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-gray {
    color: #666;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.header-phone {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
}
.header-phone i {
    color: #d19a10;
    margin-right: 10px;
    font-size: 22px;
}

/* --- Меню навигации --- */
.site-nav {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: relative;
    z-index: 9;
}

.site-nav .container { padding: 0; }

.main-menu {
    display: flex;
    justify-content: center;
}

.main-menu li { position: relative; }

.main-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #ddd;
}

.main-menu a {
    display: block;
    padding: 15px 30px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.main-menu a:hover, .main-menu .current-menu-item a { color: #d19a10; }

/* --- Главный баннер (Слайдер) --- */
.hero-slider {
    background: #ddd;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 18px;
}
.hero-slider img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots { position: absolute; bottom: 15px; width: 100%; text-align: center; }
.slider-dots span {
    display: inline-block; width: 10px; height: 10px;
    background: #999; border-radius: 50%; margin: 0 5px;
}
.slider-dots span.active { background: #333; }

/* --- Заголовки секций --- */
.section-title {
    color: #666;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* --- Карточки (Главная, 4 колонки) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: #ececec;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.card-header {
    background: #666;
    color: #fff;
    padding: 15px 10px;
    font-size: 18px;
    font-weight: 400;
}

.card-body {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon {
    width: 80px; height: 80px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 32px; color: #666;
}

.card-text {
    color: #555; font-size: 13px; margin-bottom: 25px; flex-grow: 1;
}

.btn-orange {
    background: #d19a10; color: #fff; padding: 8px 20px; border-radius: 3px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    border: none; cursor: pointer; display: inline-block;
}
.btn-orange:hover { background: #b5830b; color: #fff; }

/* --- Карточки (Страница "О гомеопатии", 3 колонки) --- */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}
.cards-grid-3 .card-header { text-align: left; padding: 15px 20px; font-size: 20px; }
.cards-grid-3 .card-body { padding: 25px 20px; text-align: center; }
.cards-grid-3 .card-text { margin-bottom: 30px; line-height: 1.8; color: #666; }

/* --- Секция с текстом и картинкой (Секция 2) --- */
.text-image-section {
    display: flex; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px; margin-bottom: 50px; overflow: hidden;
}
.section-image { width: 35%; min-height: 250px; background: #ccc; }
.section-image img { width: 100%; height: 100%; object-fit: cover; }
.section-content { padding: 30px; width: 65%; }
.section-content h2 { color: #666; font-size: 20px; text-transform: uppercase; margin-top: 0; margin-bottom: 15px; }
.section-content p { font-size: 14px; margin-bottom: 15px; color: #555; }

/* --- Базовые стили для страниц и статей --- */
.page-content-box {
    background: #fff; padding: 40px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px; margin-bottom: 40px; color: #555;
}
.page-content-box h1, .page-content-box h2, .page-content-box h3 { color: #666; margin-top: 0; margin-bottom: 20px; }
.page-content-box p { margin-bottom: 15px; line-height: 1.7; }
.page-content-box ul, .page-content-box ol { margin-bottom: 15px; padding-left: 20px; }
.page-content-box ul { list-style-type: disc; }
.page-content-box ol { list-style-type: decimal; }

/* Пагинация */
.pagination { text-align: center; margin: 30px 0; }
.pagination .page-numbers {
    display: inline-block; padding: 8px 15px; margin: 0 3px;
    background: #fff; border: 1px solid #ddd; color: #555; border-radius: 3px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #d19a10; color: #fff; border-color: #d19a10; }

/* --- Подвал (Footer) --- */
.site-footer { background: #ececec; padding: 40px 0 20px; border-top: 1px solid #ddd; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: #555; font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #666; font-size: 13px; }
.footer-col ul li i { color: #d19a10; margin-right: 8px; font-size: 10px; }
.footer-contact p { margin: 5px 0 15px; font-size: 20px; color: #555; display: flex; align-items: center; }
.footer-contact i { color: #666; font-size: 24px; margin-right: 15px; }
.footer-posts .post-item { margin-bottom: 15px; }
.footer-posts .post-item a { color: #d19a10; font-weight: 600; display: block; margin-bottom: 3px; }
.footer-posts .post-item p { margin: 0; font-size: 12px; color: #777; }
.footer-bottom { background: #fff; text-align: left; padding: 15px 0; font-size: 12px; color: #777; border-top: 1px solid #ddd; }

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .cards-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .text-image-section { flex-direction: column; }
    .section-image, .section-content { width: 100%; }
    .section-image { min-height: 200px; }
    .main-menu { flex-wrap: wrap; }
    .main-menu li:not(:last-child)::after { display: none; }
    .main-menu a { padding: 10px 15px; }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; gap: 15px; }
    .cards-grid, .footer-grid, .cards-grid-3 { grid-template-columns: 1fr; }
    .hero-slider { height: 250px; }
    .main-menu { flex-direction: column; text-align: center; }
    .main-menu li { border-bottom: 1px solid #eee; }
    .page-content-box { padding: 20px; }
}
/* --- Стили для динамических меню в подвале --- */
.footer-col .footer-menu li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

/* Рисуем галочку через CSS */
.footer-col .footer-menu li::before {
    content: '\f00c'; /* Код иконки галочки из FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d19a10;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 10px;
}

.footer-col .footer-menu a {
    color: #666;
    font-size: 13px;
}
.footer-col .footer-menu a:hover {
    color: #d19a10;
}