/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
:root {
  --primary-color: #6c5ce7;
  --secondary-color: #fd79a8;
  --text-color: #2d3436;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
}

/* ==========================================================================
   2. УНИВЕРСАЛЬНЫЕ КОМПОНЕНТЫ (Используются везде)
   ========================================================================== */
.margin-l-10 {
	margin-left: 10px;
}

.margin-r-10 {
	margin-right: 10px;
}
/* Надежный вариант с пользовательским классом */
.top-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.top-header-row .sp-module-title {
    display: none !important;
}

.top-header-row .sp-module {
    margin-bottom: 0 !important;
    flex: 1 !important;
}

.top-header-row #offcanvas-toggler {
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
/* --- УНИВЕРСАЛЬНАЯ СЕТКА (Grid) --- */
.astro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}
@media (max-width: 768px) {
  .astro-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 576px) {
  .astro-grid { grid-template-columns: 1fr; }
}

/* --- УНИВЕРСАЛЬНАЯ ШАПКА С ФОНОВОЙ ИКОНКОЙ --- */
.astro-intro {
  padding: 40px 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  font-family: 'Georgia', serif;
  border: 1px solid var(--intro-border, rgba(255,255,255,0.2));
  background: var(--intro-bg, #333);
  color: var(--intro-text, #fff);
}

.astro-intro::before {
  content: var(--intro-icon, '✦');
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 250px;
  color: var(--intro-icon-color, rgba(255,255,255,0.05));
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.astro-intro > * { position: relative; z-index: 1; }

.astro-intro h2 {
  color: var(--intro-accent, #fff);
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.astro-intro .intro-text {
  font-size: 1.15em;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 35px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.astro-intro .footer-text {
  text-align: center;
  margin-top: 35px;
  font-style: italic;
  font-size: 1.1em;
  color: var(--intro-accent, #fff);
  opacity: 0.9;
}
/* 1. Прижимаем весь модуль к правому краю */
.sp-column.right .sp-module {
    width: fit-content; /* Блок сжимается до размера содержимого */
    margin-left: auto;  /* Автоматический отступ слева толкает блок вправо */
    text-align: right;  /* На всякий случай выравниваем строчные элементы (картинки) */
}

/* 2. Дополнительно убеждаемся, что внутренний div не растягивается на 100% */
.sp-column.right .sp-module-content > div {
    width: fit-content;
    margin-left: auto;
}

/* 3. (Опционально) Выравнивание заголовка "счётчики" тоже по правому краю */
.sp-column.right .sp-module-title {
    text-align: right;
}

/* 4. ВАЖНО: Адаптация для мобильных устройств */
/* На телефонах прижатие к правому краю может выглядеть плохо или обрезать счётчики. 
   Лучше возвращать их по центру или влево на маленьких экранах */
@media (max-width: 768px) {
    .sp-column.right .sp-module,
    .sp-column.right .sp-module-content > div {
        width: 100%;
        margin-left: 0;
        text-align: center; /* Или left, если хотите по левому краю */
    }
    
    .sp-column.right .sp-module-title {
        text-align: center;
    }
}

/* --- УНИВЕРСАЛЬНЫЙ КАЛЬКУЛЯТОР --- */
.astro-calculator {
  border-radius: 12px;
  padding: 25px;
  margin: 30px auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  font-family: 'Georgia', serif;
  background: var(--calc-bg, #333);
  border: 2px solid var(--calc-border, #666);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.astro-calculator .calc-subtitle {
  text-align: center;
  color: var(--calc-accent, #fff);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.2em;
}

.astro-calculator .calc-form-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.astro-calculator input[type="date"] {
  flex: 1;
  padding: 12px;
  font-size: 1em;
  border: 2px solid var(--calc-input-border, #666);
  border-radius: 8px;
  background: var(--calc-input-bg, rgba(0,0,0,0.3));
  color: var(--calc-input-text, #fff);
  font-family: 'Georgia', serif;
  transition: all 0.3s ease;
}

.astro-calculator input[type="date"]:focus {
  outline: none;
  border-color: var(--calc-accent, #fff);
  box-shadow: 0 0 10px var(--calc-glow, rgba(255,255,255,0.3));
}

.astro-calculator .calc-btn {
  padding: 12px 30px;
  font-size: 1em;
  background: var(--calc-btn-bg, #666);
  color: var(--calc-btn-text, #fff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Georgia', serif;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.astro-calculator .calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--calc-glow, rgba(255,255,255,0.3));
}

.astro-calculator .calc-result, 
.astro-calculator .calc-no-result {
  display: none;
  margin-top: 25px;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  animation: fadeIn 0.5s ease;
  background: var(--calc-result-bg, rgba(255,255,255,0.1));
  border: 1px solid var(--calc-border, #666);
}

.astro-calculator .calc-result.active, 
.astro-calculator .calc-no-result.active {
  display: block;
}

.astro-calculator .result-emoji { font-size: 4em; margin-bottom: 15px; display: block; }
.astro-calculator .result-name { font-size: 2.2em; color: var(--calc-accent, #fff); margin-bottom: 10px; font-weight: bold; }
.astro-calculator .result-desc { font-size: 1.1em; color: var(--calc-input-text, #fff); margin-bottom: 20px; font-style: italic; opacity: 0.9; }

.astro-calculator .result-link {
  display: inline-block;
  padding: 12px 30px;
  background: var(--calc-btn-bg, #666);
  color: var(--calc-btn-text, #fff);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.astro-calculator .result-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--calc-glow, rgba(255,255,255,0.3));
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .astro-calculator .calc-form-group { flex-direction: column; align-items: stretch; gap: 10px; }
  .astro-calculator .calc-btn { width: 100%; }
}

/* ==========================================================================
   3. ТЕМАТИЧЕСКИЕ МОДИФИКАТОРЫ (Только цвета!)
   ========================================================================== */

/* Китайский */
.theme-chinese {
  --intro-bg: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
  --intro-accent: #FFD700;
  --intro-icon: '🐉';
  --calc-bg: linear-gradient(135deg, #4a0000 0%, #8B0000 100%);
  --calc-border: #FFD700;
  --calc-accent: #FFD700;
  --calc-input-bg: rgba(0, 0, 0, 0.3);
  --calc-input-text: #FFF8DC;
  --calc-input-border: #DAA520;
  --calc-btn-bg: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
  --calc-btn-text: #4a0000;
  --calc-glow: rgba(255, 215, 0, 0.4);
  --calc-result-bg: rgba(255, 215, 0, 0.1);
}

/* Индийский (Джйотиш) */
.theme-indian {
  --intro-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --intro-accent: #f9d423;
  --intro-icon: '🕉️';
  --calc-bg: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
  --calc-border: #fbbf24;
  --calc-accent: #fbbf24;
  --calc-input-bg: rgba(0, 0, 0, 0.3);
  --calc-input-text: #fef3c7;
  --calc-input-border: #d97706;
  --calc-btn-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --calc-btn-text: #1a0b2e;
  --calc-glow: rgba(251, 191, 36, 0.4);
  --calc-result-bg: rgba(251, 191, 36, 0.1);
}

/* Египетский */
.theme-egyptian {
  --intro-bg: linear-gradient(135deg, #2c1e12 0%, #5c3a21 100%);
  --intro-accent: #FFD700;
  --intro-border: #DAA520;
  --intro-icon: '☥';
  --calc-bg: linear-gradient(135deg, #2c1e12 0%, #5c3a21 100%);
  --calc-border: #DAA520;
  --calc-accent: #FFD700;
  --calc-input-bg: rgba(0, 0, 0, 0.3);
  --calc-input-text: #FFF8DC;
  --calc-input-border: #DAA520;
  --calc-btn-bg: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
  --calc-btn-text: #2c1e12;
  --calc-glow: rgba(255, 215, 0, 0.4);
  --calc-result-bg: rgba(255, 215, 0, 0.1);
}

/* Друидский */
.theme-druidic {
  --intro-bg: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
  --intro-accent: #d4a373;
  --intro-border: #d4a373;
  --intro-icon: '🌳';
  --calc-bg: rgba(0, 0, 0, 0.3);
  --calc-border: rgba(212, 163, 115, 0.4);
  --calc-accent: #d4a373;
  --calc-input-bg: rgba(0, 0, 0, 0.4);
  --calc-input-text: #f8fafc;
  --calc-input-border: #d4a373;
  --calc-btn-bg: linear-gradient(135deg, #d4a373 0%, #b8860b 100%);
  --calc-btn-text: #1a472a;
  --calc-glow: rgba(212, 163, 115, 0.4);
  --calc-result-bg: rgba(212, 163, 115, 0.15);
}

/* Цветочный */
.theme-flower {
  --intro-bg: linear-gradient(135deg, #f8f4e8 0%, #e8f5e9 50%, #f1f8e9 100%);
  --intro-text: #2e7d32;
  --intro-accent: #2e7d32;
  --intro-border: #a5d6a7;
  --intro-icon: '🌸';
  --intro-icon-color: rgba(46, 125, 50, 0.05);
  --calc-bg: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
  --calc-border: #a5d6a7;
  --calc-accent: #2e7d32;
  --calc-input-bg: rgba(255, 255, 255, 0.8);
  --calc-input-text: #1b5e20;
  --calc-input-border: #a5d6a7;
  --calc-btn-bg: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
  --calc-btn-text: #fff;
  --calc-glow: rgba(102, 187, 106, 0.3);
  --calc-result-bg: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   4. ОСТАЛЬНЫЕ УНИКАЛЬНЫЕ СТИЛИ (Сайтмап, статьи, таблицы)
   ========================================================================== */

/* Принудительное обтекание картинки слева для статей */
.article-details .article-full-image {
    float: left !important;
    margin: 0 25px 15px 0 !important; /* Отступ справа 25px, снизу 15px */
    max-width: 300px; /* Ограничиваем ширину, чтобы текст помещался рядом */
    width: 100%;
}

.article-details .article-full-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Опционально: лёгкое скругление углов картинки */
}

/* Адаптация для мобильных устройств: картинка сверху на всю ширину */
@media (max-width: 768px) {
    .article-details .article-full-image {
        float: none !important;
        max-width: 100%;
        margin: 0 0 20px 0 !important;
        text-align: center;
    }
}


/* === FALLBACK: карточки без картинок («Праздники сегодня/завтра») === */

/* Целимся ТОЛЬКО в карточки без изображения:
   - у карточки вообще нет атрибута style, ИЛИ
   - в style стоит пустой url('') / url("") / url() */
.mcs-slider__card:not([style]),
.mcs-slider__card[style*="url('')"],
.mcs-slider__card[style*='url("")'],
.mcs-slider__card[style*="url()"] {
    background-image:
        radial-gradient(circle at 15% 25%, rgba(4, 76, 208, 0.28) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(217, 180, 91, 0.16) 0%, transparent 50%),
        linear-gradient(135deg, #141420 0%, #1a1a2e 55%, #16213e 100%) !important;
    background-size: cover;
    background-position: center;
}

/* Золотой декоративный символ по центру пустой карточки */
.mcs-slider__card:not([style])::after,
.mcs-slider__card[style*="url('')"]::after,
.mcs-slider__card[style*='url("")']::after,
.mcs-slider__card[style*="url()"]::after {
    content: "✦";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 54px;
    line-height: 1;
    color: rgba(217, 180, 91, 0.4);
    pointer-events: none;
    z-index: 0;
}
/* Адаптация слайдера гороскопов для мобильных */
@media (max-width: 768px) {
    /* На планшетах и больших телефонах - 2 колонки */
    .mcs-slider__page {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Уменьшаем шрифт заголовков и описания на мобильных */
    .mcs-slider__title {
        font-size: 14px !important;
    }
    .mcs-slider__excerpt {
        font-size: 12px !important;
        display: none; /* На мобильных описание лучше скрыть, чтобы карточка была компактнее */
    }
}

@media (max-width: 480px) {
    /* На маленьких телефонах - 1 колонка */
    .mcs-slider__page {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
/* Выравнивание логотипа и баннера по вертикали */
#sp-logo-block .row {
    display: flex;
    align-items: center; /* Центрируем содержимое колонок по вертикали */
}



/* Делаем рекламный блок адаптивным и красивым */
#sp-slide .sp-module-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем баннер внутри его колонки */
    justify-content: center;
}

/* === ПОИСК В СТИЛЕ "ТАБЛЕТКИ" === */
#sp-top3 .mod-finder__search {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 50px; /* Полное скругление */
    padding: 0 16px;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    width: 100%; /* Растягиваем на всю ширину */
    max-width: 100%; /* Убираем ограничение */
    margin: 0 auto;
    position: relative; /* Нужно для позиционирования иконки */
}

#sp-top3 .mod-finder__search:focus-within {
    background: #333333;
    border-color: #044CD0;
    box-shadow: 0 0 0 3px rgba(4, 76, 208, 0.15);
}

/* Поле ввода */
#sp-top3 .mod-finder__search input[type="text"] {
    background: transparent;
    border: none;
    color: #ffffff;
    /* Отступ слева 32px, чтобы текст не наезжал на иконку лупы */
    padding: 10px 12px 10px 32px; 
    font-size: 13px;
    flex: 1;
    outline: none;
    min-width: 0;
    width: 100%;
}

#sp-top3 .mod-finder__search input[type="text"]::placeholder {
    color: #888;
    font-size: 13px;
}

/* Иконка лупы через CSS (внутри "таблетки") */
#sp-top3 .mod-finder__search::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    left: 16px; /* Отступ иконки от левого края "таблетки" */
    top: 50%;
    transform: translateY(-50%); /* Центрирование по вертикали */
    pointer-events: none; /* Чтобы клик по иконке активировал поле ввода */
    opacity: 0.8;
}

/* Растягиваем awesomplete (контейнер автодополнения) на всю ширину */
#sp-top3 .mod-finder__search .awesomplete {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Убираем лишние стили у input внутри awesomplete */
#sp-top3 .mod-finder__search .awesomplete input[type="text"] {
    width: 100%;
    flex: 1;
    min-width: 0;
}

/* Скрываем кнопку поиска полностью */
#sp-top3 .mod-finder__search .btn-primary {
    display: none !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #sp-top3 .mod-finder__search {
        max-width: 100%;
    }
}


/*контейнер карты сайта*/
/* Основной контейнер */
#JLSitemap.html {
  max-width: 900px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #334155;
}

#JLSitemap.html h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

/* Сброс стилей списка */
.sitemap-tree-container ul.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Стили для сворачиваемой папки */
.sitemap-folder {
  margin: 4px 0;
}

.sitemap-folder > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #0f172a;
  transition: background-color 0.2s ease;
  user-select: none; /* Чтобы текст не выделялся при быстрых кликах */
}

.sitemap-folder > summary:hover {
  background-color: #f1f5f9;
}

.sitemap-folder > summary::-webkit-details-marker {
  display: none;
}

/* Стрелочка */
.toggle-icon {
  font-size: 10px;
  margin-right: 6px;
  color: #64748b;
  transition: transform 0.2s ease;
  display: inline-block;
  width: 12px;
  text-align: center;
}

.sitemap-folder[open] > summary .toggle-icon {
  transform: rotate(90deg);
}

.folder-icon {
  margin-right: 8px;
  font-size: 18px;
}

/* Вложенный список внутри открытой папки */
.sitemap-folder > .sitemap-list {
  padding-left: 28px;
  margin: 8px 0 8px 14px;
  border-left: 2px dashed #cbd5e1;
}

/* Специальный стиль для ссылки "Перейти в раздел" */
.category-root-link {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.category-root-link a {
  color: #2563eb !important;
  font-weight: 700 !important;
  font-style: italic;
}

.category-root-link a:hover {
  text-decoration: underline !important;
}

/* Конечные элементы (статьи) */
.sitemap-list .sitemap-item {
  margin: 6px 0;
  display: flex;
  align-items: center;
  padding: 0px 25px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sitemap-list .sitemap-item:hover {
  background-color: #f8fafc;
}

.file-icon {
  margin-right: 8px;
  font-size: 15px;
  opacity: 0.7;
}

.sitemap-list .sitemap-item a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sitemap-list .sitemap-item a:hover {
  color: #2563eb;
  transform: translateX(4px);
}

#JLSitemap.html .pagination:empty {
  display: none;
}
/*конц контейнер карты сайта*/


.featured-article-badge {
    
    display: none;
}/
/* Цветовая схема */


:root {
  --primary-color: #6c5ce7; /* фиолетовый для астрологии */
  --secondary-color: #fd79a8; /* розовый */
  --text-color: #2d3436;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
}

/* Карточки статей */
.article-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.article-card .date {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  color: #636e72;
  line-height: 1.6;
}

/* Grid для знаков зодиака */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Категории */
.category-section {
  margin: 60px 0;
  padding: 40px 0;
  background: var(--bg-light);
}

.category-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
}

.category-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
/* ==========================================================================
   ОБЪЕДИНЕННЫЕ СТИЛИ ДЛЯ АСТРОЛОГИЧЕСКОГО РАЗДЕЛА
   1. OSMap Tree (Карта сайта)
   2. Folk Calendar (Народный календарь)
   3. Indian Hub (Ведическая астрология)
   4. Lunar Calendar (Лунные таблицы и советы)
   ========================================================================== */

/* ==========================================================================
   1. OSMap Tree Override (Карта сайта)
   ========================================================================== */
.osmap-tree-container {
    margin: 20px 0;
}

.osmap-tree-container ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.osmap-tree-level {
    padding-left: 20px;
    margin: 8px 0;
}

.osmap-details {
    margin: 6px 0;
}

.osmap-details > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #1a2980;
    transition: background 0.2s;
}

.osmap-details > summary::-webkit-details-marker {
    display: none;
}

.osmap-details > summary:hover {
    background: #eef2ff;
}

.osmap-ico::before {
    content: '▶';
    font-size: 0.7rem;
    color: #8a93a6;
    transition: transform 0.2s;
}

.osmap-details[open] > summary .osmap-ico::before {
    content: '▼';
}

.osmap-details > summary a,
.osmap-details > summary .osmap-title {
    color: #1a2980;
    text-decoration: none;
    font-weight: 600;
}

.osmap-details > summary a::before,
.osmap-details > summary .osmap-title::before {
    content: '📁 ';
}

.osmap-details[open] > summary a::before,
.osmap-details[open] > summary .osmap-title::before {
    content: '📂 ';
}

.osmap-tree-goto {
    padding-left: 30px;
    margin: 4px 0 12px 0;
}

.osmap-goto-link {
    display: inline-block;
    font-size: 0.92rem;
    color: #667085;
    background: #f4f6fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    padding: 4px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.osmap-goto-link:hover {
    background: #1a2980;
    color: #fff;
    border-color: #1a2980;
    text-decoration: none;
}

.osmap-tree-leaf {
    padding: 4px 0 4px 30px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.osmap-ico-doc::before {
    content: '📄';
    opacity: 0.75;
}

.osmap-tree-leaf a {
    color: #33415c;
    text-decoration: none;
}

.osmap-tree-leaf a:hover {
    color: #1a2980;
    text-decoration: underline;
}

.osmap-title-main {
    color: #1a2980;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ==========================================================================
   2. Folk Calendar Hub (Народный календарь)
   ========================================================================== */
.folk-calendar-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.calendar-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 40px;
}

.calendar-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 15px;
}

.calendar-hero .lead {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

.calendar-intro {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  border-left: 4px solid #667eea;
}

.calendar-intro h2 {
  margin-top: 0;
  color: #333;
}

.month-section {
  margin-bottom: 50px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.month-section h2 {
  color: #667eea;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  margin-top: 0;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.day-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.day-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 10px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.day-link:hover .day-num {
  background: white;
  color: #667eea;
}

.day-name {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* ==========================================================================
   3. Indian Hub (Ведическая астрология)
   ========================================================================== */
.ih-wrap {
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ih-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  color: #fff;
  margin-bottom: 25px;
}

.ih-header h2 {
  font-size: 2em;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #f9d423, #ff4e50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ih-header p {
  margin: 0 0 15px;
  opacity: .9;
  font-size: 1.05em;
}

.ih-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ih-stat {
  background: rgba(255,255,255,.1);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  min-width: 100px;
}

.ih-stat-n {
  display: block;
  font-size: 1.6em;
  font-weight: bold;
  color: #f9d423;
}

.ih-stat-l {
  font-size: .85em;
  opacity: .9;
}

.ih-cat {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
}

.ih-cat-h {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0f3460;
}

.ih-cat-ic {
  font-size: 2.5em;
  margin-right: 18px;
}

.ih-cat-t h3 {
  margin: 0 0 4px;
  color: #1a1a2e;
  font-size: 1.5em;
}

.ih-cat-t p {
  margin: 0;
  color: #666;
  font-size: 1em;
}

.ih-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.ih-card {
  display: block;
  background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

.ih-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15,52,96,.15);
  border-color: #f9d423;
}

.ih-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f9d423, #ff4e50);
}

.ih-card-t {
  font-size: 1.05em;
  font-weight: bold;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.ih-card-m {
  font-size: .8em;
  color: #64748b;
}

/* ==========================================================================
   4. Lunar Calendar (Лунные таблицы и советы)
   ========================================================================== */
.lunar-table, .m-table, .b-table, .g-table, .hair-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 15px 0;
}

.lunar-table th, .lunar-table td,
.m-table th, .m-table td,
.b-table th, .b-table td,
.g-table th, .g-table td,
.hair-table th, .hair-table td {
  border: 1px solid #dee2e6;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lunar-table th, .m-table th, .b-table th, .g-table th, .hair-table th {
  background: #1a2980;
  color: #fff;
  font-weight: 600;
}

.lunar-table tr:nth-child(even), .m-table tr:nth-child(even),
.b-table tr:nth-child(even), .g-table tr:nth-child(even),
.hair-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* Колонки таблиц */
.lunar-table th:nth-child(1) { width: 38%; }
.lunar-table th:nth-child(2) { width: 62%; }

.m-table th:nth-child(1), .b-table th:nth-child(1), .g-table th:nth-child(1), .hair-table th:nth-child(1) { width: 12%; }
.m-table th:nth-child(2), .b-table th:nth-child(2), .g-table th:nth-child(2), .hair-table th:nth-child(2) { width: 9%; }
.m-table th:nth-child(3), .b-table th:nth-child(3), .g-table th:nth-child(3), .hair-table th:nth-child(3) { width: 15%; }
.m-table th:nth-child(4), .b-table th:nth-child(4), .g-table th:nth-child(4), .hair-table th:nth-child(4) { width: 12%; }
.m-table th:nth-child(5), .b-table th:nth-child(5), .g-table th:nth-child(5), .hair-table th:nth-child(5) { width: 19%; }
.m-table th:nth-child(6), .b-table th:nth-child(6), .g-table th:nth-child(6), .hair-table th:nth-child(6) { width: 33%; }

/* Запрет разрыва слов в специфичных колонках */
.m-table td:nth-child(3), .b-table td:nth-child(3), .g-table td:nth-child(3), .hair-table td:nth-child(3),
.m-table td:nth-child(4), .b-table td:nth-child(4), .g-table td:nth-child(4), .hair-table td:nth-child(4) {
  overflow-wrap: normal; 
  word-break: normal;
}

.m-table td:nth-child(5), .b-table td:nth-child(5), .g-table td:nth-child(5), .hair-table td:nth-child(5) {
  overflow-wrap: normal; 
  word-break: normal;
  font-size: .88rem;
}

/* Подсветка строк по оценке дня */
.m-level-warn, .b-level-warn, .g-level-warn, .h-level-warn { background: #fff3cd !important; }
.m-level-good, .b-level-good, .g-level-good, .h-level-good { background: #e6f7ee !important; }
.b-level-best, .g-level-best, .h-level-best { background: #d4edda !important; }
.b-level-bad, .g-level-bad, .h-level-bad { background: #f8d7da !important; }

.m-badge, .b-badge, .g-badge, .h-badge {
  font-weight: 700;
  white-space: normal;
}

/* Вступления и события */
.m-intro, .b-intro, .g-intro, .hair-intro {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.m-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.m-event {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e3e6ea;
}

.m-event.nm { border-left: 4px solid #1a2980; }
.m-event.fm { border-left: 4px solid #26d0ce; }

.m-event .ico {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.m-event h4 {
  margin: 0 0 6px;
  color: #1a2980;
  font-size: 1rem;
}

.m-event p {
  margin: 0;
  font-size: .9rem;
  color: #555;
}

.m-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.m-link {
  background: #eef2ff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #333;
  border: 1px solid #d8e0ff;
  transition: .2s;
}

.m-link:hover {
  background: #1a2980;
  color: #fff;
  border-color: #1a2980;
}

.m-link h4 {
  margin: 0 0 6px;
  color: #1a2980;
  font-size: .95rem;
}

.m-link:hover h4 { color: #fff; }

.m-link p {
  margin: 0;
  font-size: .85rem;
  color: #666;
}

.m-link:hover p { color: #e8e8ff; }

/* Блоки лучших/худших дней */
.b-best, .g-best, .hair-best {
  background: #e6f7ee;
  border-left: 4px solid #28a745;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.b-best h3, .g-best h3, .hair-best h3 {
  margin: 0 0 8px;
  color: #1e7e34;
}

.b-warn, .g-warn, .hair-warn {
  background: #fff8e6;
  border-left: 4px solid #ffc107;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.b-warn h3, .g-warn h3, .hair-warn h3 {
  margin: 0 0 8px;
  color: #a67c00;
}

.b-days, .g-days, .hair-days {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.b-days li, .g-days li, .hair-days li {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.b-days li strong, .g-days li strong, .hair-days li strong {
  color: #1a2980;
  margin-right: 8px;
}

/* Карточки-советы */
.b-tips, .g-tips, .hair-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.b-tip, .g-tip, .hair-tip {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e3e6ea;
}

.b-tip .ico, .g-tip .ico, .hair-tip .ico {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.b-tip h4, .g-tip h4, .hair-tip h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1a2980;
}

.b-tip p, .g-tip p, .hair-tip p {
  margin: 0;
  font-size: .9rem;
  color: #555;
}

/* ==========================================================================
   5. АДАПТИВНОСТЬ (Media Queries для всех разделов)
   ========================================================================== */

/* OSMap Tree Mobile */
@media (max-width: 600px) {
    .osmap-tree-level {
        padding-left: 14px;
    }
    .osmap-details > summary {
        padding: 4px 6px;
        font-size: 0.95rem;
    }
}

/* Folk Calendar Mobile */
@media (max-width: 768px) {
  .calendar-hero h1 { font-size: 1.8rem; }
  .days-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .month-section { padding: 20px; }
  .day-link { padding: 10px 12px; }
  .day-num { width: 28px; height: 28px; font-size: 0.85rem; }
}

/* Indian Hub Mobile */
@media (max-width: 600px) {
  .ih-header h2 { font-size: 1.5em; }
  .ih-grid { grid-template-columns: 1fr; }
  .ih-stats { flex-direction: column; }
}

/* Lunar Calendar Mobile */
@media (max-width: 600px) {
  .lunar-table th, .lunar-table td,
  .m-table th, .m-table td,
  .b-table th, .b-table td,
  .g-table th, .g-table td,
  .hair-table th, .hair-table td {
    padding: 6px 6px;
    font-size: .85rem;
  }
}
/* ==========================================================================
   5. Lunar Hub (Главная страница лунного кCalендаря)
   ========================================================================== */

.lh-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 40px;
}

.lh-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 15px;
  font-weight: 700;
}

.lh-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* Сетка карточек разделов */
.lh-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.lh-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.lh-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(26, 41, 128, 0.15);
  border-color: #1a2980;
}

.lh-card .ico {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.lh-card h3 {
  margin: 0 0 10px;
  color: #1a2980;
  font-size: 1.2rem;
}

.lh-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 15px;
  flex-grow: 1; /* Чтобы кнопки всегда были внизу */
  line-height: 1.5;
}

.lh-card a {
  display: inline-block;
  padding: 8px 16px;
  background: #eef2ff;
  color: #1a2980;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lh-card:hover a {
  background: #1a2980;
  color: #fff;
}

/* Блоки по годам */
.lh-year {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid #1a2980;
}

.lh-year h2 {
  margin-top: 0;
  color: #1a2980;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.lh-year .sub {
  margin-bottom: 20px;
}

.lh-year .sub a {
  color: #26d0ce;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.lh-year .sub a:hover {
  color: #1a2980;
  text-decoration: underline;
}

/* Сетка месяцев */
.lh-months {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lh-months a {
  flex: 1 1 calc(16.666% - 10px); /* 6 месяцев в ряд на десктопе */
  text-align: center;
  padding: 12px 5px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 80px;
}

.lh-months a:hover {
  background: #1a2980;
  color: #fff;
  border-color: #1a2980;
  transform: translateY(-2px);
}

/* Блок "Как пользоваться" */
.lh-how {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.lh-how h2 {
  color: #1a2980;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.lh-how ul {
  padding-left: 20px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

.lh-how li {
  margin-bottom: 12px;
}

.lh-how strong {
  color: #1a2980;
}

/* ==========================================================================
   АДАПТИВНОСТЬ для Lunar Hub
   ========================================================================== */
@media (max-width: 768px) {
  .lh-hero h1 { font-size: 1.8rem; }
  .lh-hero p { font-size: 1rem; }
  
  .lh-months a {
    flex: 1 1 calc(33.333% - 10px); /* 3 месяца в ряд на планшете */
  }
}

@media (max-width: 480px) {
  .lh-sections {
    grid-template-columns: 1fr; /* Карточки в 1 колонку на мобильном */
  }
  
  .lh-months a {
    flex: 1 1 calc(50% - 10px); /* 2 месяца в ряд на телефоне */
  }
  
  .lh-year, .lh-how {
    padding: 20px;
  }
}
/* Китайский гороскоп - стили для описания категории */
/* === Общий контейнер === */
.chinese-catalog {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Шапка каталога (Красно-золотая) === */
.chinese-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.chinese-header__title {
    font-size: 2em;
    margin: 0 0 8px;
    color: #FFD700; /* Золотой заголовок */
}

.chinese-header__subtitle {
    margin: 0 0 15px;
    opacity: 0.9;
    font-size: 1.05em;
}

/* === Блок статистики (как в Джйотиш) === */
.chinese-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chinese-stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.chinese-stat-item__number {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    color: #FFD700;
}

.chinese-stat-item__label {
    font-size: 0.85em;
    opacity: 0.9;
}

/* === Основной блок (белая карточка) === */
.chinese-block {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.chinese-block__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #DC143C; /* Красная линия-акцент */
}

.chinese-block__icon {
    font-size: 2.5em;
    margin-right: 18px;
}

.chinese-block__title {
    margin: 0 0 4px;
    color: #8B0000; /* Темно-красный заголовок */
    font-size: 1.5em;
}

.chinese-block__subtitle {
    margin: 0;
    color: #666;
    font-size: 1em;
}

/* === Вводный и выводный текст === */
.chinese-intro-text {
    font-size: 1.05em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.chinese-footer-text {
    text-align: center;
    margin-top: 25px;
    font-style: italic;
    color: #555;
    opacity: 0.9;
}

/* === Сетка карточек (3 в ряд на десктопе) === */
.chinese-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
}

/* === Отдельная карточка === */
.chinese-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); /* Легкий розоватый оттенок */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.chinese-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.15);
    border-color: #FFD700; /* Золотая рамка при наведении */
}

.chinese-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #FFD700); /* Градиент от красного к золотому */
}

.chinese-card__title {
    font-size: 1.1em;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 6px;
    padding-top: 4px;
}

.chinese-card__desc {
    font-size: 0.9em;
    color: #64748b;
    line-height: 1.4;
}

/* === Адаптивность === */
@media (max-width: 992px) {
    .chinese-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 в ряд на планшетах */
    }
}

@media (max-width: 576px) {
    .chinese-grid {
        grid-template-columns: 1fr; /* 1 в ряд на телефонах */
    }
    .chinese-header__title {
        font-size: 1.5em;
    }
    .chinese-block {
        padding: 20px;
    }
}
/* ========================================
   КАЛЬКУЛЯТОР КИТАЙСКОГО ГОРОСКОПА
   ======================================== */

.chinese-calculator {
    background: linear-gradient(135deg, #4a0000 0%, #8B0000 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    border: 2px solid #FFD700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chinese-calculator .calc-subtitle {
    text-align: center;
    color: #FFD700;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: 'Georgia', serif;
}

.chinese-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chinese-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #DAA520;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #FFF8DC;
    font-family: 'Georgia', serif;
}

.chinese-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.chinese-calculator .calc-btn {
    padding: 12px 30px;
    font-size: 1em;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #4a0000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chinese-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.chinese-calculator .calc-result, 
.chinese-calculator .calc-no-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #FFD700;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.chinese-calculator .calc-result.active, 
.chinese-calculator .calc-no-result.active {
    display: block;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.chinese-calculator .result-emoji { 
    font-size: 4em; 
    margin-bottom: 15px; 
}

.chinese-calculator .result-name { 
    font-size: 2.2em; 
    color: #FFD700; 
    margin-bottom: 10px; 
    font-weight: bold; 
    font-family: 'Georgia', serif; 
}

.chinese-calculator .result-trait { 
    font-size: 1.1em; 
    color: #FFF8DC; 
    margin-bottom: 20px; 
    font-style: italic; 
    opacity: 0.9; 
}

.chinese-calculator .calc-warning {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 204, 0, 0.15);
    border-radius: 6px;
    border-left: 3px solid #ffcc00;
}

.chinese-calculator .calc-warning.active {
    display: block;
}

.chinese-calculator .calc-warning small {
    color: #ffcc00;
    font-size: 0.95em;
    line-height: 1.4;
}

.chinese-calculator .result-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    color: #4a0000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.chinese-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.chinese-calculator .calc-no-result { 
    color: #FFD700; 
    font-size: 1.1em; 
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .chinese-calculator .calc-form-group { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    }
    .chinese-calculator .calc-btn { 
        width: 100%; 
    }
}

/* Индийский гороскоп - стили для описания категории */

/* === Общий контейнер === */
.jyotish-catalog {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Шапка каталога === */
.jyotish-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 25px;
}

.jyotish-header__title {
    font-size: 2em;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #f9d423, #ff4e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jyotish-header__subtitle {
    margin: 0 0 15px;
    opacity: 0.9;
    font-size: 1.05em;
}

/* === Блок статистики === */
.jyotish-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.jyotish-stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.jyotish-stat-item__number {
    display: block;
    font-size: 1.6em;
    font-weight: bold;
    color: #f9d423;
}

.jyotish-stat-item__label {
    font-size: 0.85em;
    opacity: 0.9;
}

/* === Основной блок (белая карточка) === */
.jyotish-block {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.jyotish-block__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0f3460;
}

.jyotish-block__icon {
    font-size: 2.5em;
    margin-right: 18px;
}

.jyotish-block__title {
    margin: 0 0 4px;
    color: #1a1a2e;
    font-size: 1.5em;
}

.jyotish-block__subtitle {
    margin: 0;
    color: #666;
    font-size: 1em;
}

/* === Сетка карточек === */
.jyotish-grid {
    display: grid;
    /* Жестко задаем 3 равные колонки для десктопов */
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
}

/* --- АДАПТИВНАЯ ВЕРСТКА --- */

/* Планшеты и узкие экраны: 2 карточки в ряд */
@media (max-width: 992px) {
    .jyotish-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобильные телефоны: 1 карточка в ряд */
@media (max-width: 576px) {
    .jyotish-grid {
        grid-template-columns: 1fr;
    }
}

/* === Отдельная карточка (ссылка) === */
.jyotish-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Эффекты при наведении (заменяют onmouseover/onmouseout) */
.jyotish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 52, 96, 0.15);
    border-color: #f9d423;
}

.jyotish-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f9d423, #ff4e50);
}

.jyotish-card__title {
    font-size: 1.05em;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 6px;
    padding-top: 4px;
}

.jyotish-card__date {
    font-size: 0.8em;
    color: #64748b;
}
/* Стили для перекрестных ссылок в ведических статьях */
.vedic-link {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.vedic-link:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: #fbbf24;
    transform: translateY(-1px);
}

.vedic-crosslinks {
    margin-top: 40px;
    padding: 20px;
    background: rgba(45, 27, 78, 0.3);
    border-radius: 10px;
    border-left: 4px solid #fbbf24;
}

.vedic-crosslinks h4 {
    color: #fbbf24;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.vedic-crosslinks ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vedic-crosslinks li {
    margin: 0;
}
/* ========================================
   КАЛЬКУЛЯТОР ИНДИЙСКОГО ГОРОСКОПА
   ======================================== */

.indian-calculator {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    border: 2px solid #fbbf24;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.indian-calculator .calc-subtitle {
    text-align: center;
    color: #fbbf24;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: 'Georgia', serif;
}

.indian-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.indian-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #d97706;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fef3c7;
    font-family: 'Georgia', serif;
}

.indian-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.indian-calculator .calc-btn {
    padding: 12px 30px;
    font-size: 1em;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #1a0b2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.indian-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.indian-calculator .calc-result, 
.indian-calculator .calc-no-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    border: 1px solid #fbbf24;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.indian-calculator .calc-result.active, 
.indian-calculator .calc-no-result.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.indian-calculator .result-emoji { 
    font-size: 4em; 
    margin-bottom: 15px; 
}

.indian-calculator .result-name { 
    font-size: 2.2em; 
    color: #fbbf24; 
    margin-bottom: 10px; 
    font-weight: bold; 
    font-family: 'Georgia', serif; 
}

.indian-calculator .result-ruler { 
    font-size: 1.1em; 
    color: #fef3c7; 
    margin-bottom: 20px; 
    font-style: italic; 
    opacity: 0.9; 
}

.indian-calculator .result-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #1a0b2e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.indian-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.indian-calculator .calc-no-result { 
    color: #fbbf24; 
    font-size: 1.1em; 
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .indian-calculator .calc-form-group { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    }
    .indian-calculator .calc-btn { 
        width: 100%; 
    }
}
/* Египетский гороскоп - стили для описания категории */
.egyptian-zodiac-intro {
    background: linear-gradient(135deg, #2c1e12 0%, #5c3a21 100%);
    color: #FFF8DC;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #DAA520;
    position: relative;
    overflow: hidden;
}

/* Декоративный иероглиф на фоне */
.egyptian-zodiac-intro::before {
    content: '☥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 250px;
    color: #FFD700;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.egyptian-zodiac-intro > * {
    position: relative;
    z-index: 1;
}

.egyptian-zodiac-intro h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: Georgia, serif;
    letter-spacing: 1px;
}

.egyptian-zodiac-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.egyptian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.egyptian-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-left: 4px solid #FFD700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.egyptian-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.egyptian-card .emoji {
    font-size: 2.2em;
    line-height: 1;
}

.egyptian-card .info strong {
    color: #FFD700;
    display: block;
    margin-bottom: 4px;
    font-size: 1.1em;
    font-family: Georgia, serif;
}

.egyptian-card .info small {
    color: #FFF8DC;
    opacity: 0.8;
    line-height: 1.3;
    font-size: 0.9em;
}

.egyptian-zodiac-intro .footer-text {
    text-align: center;
    margin-top: 35px;
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1em;
    color: #DAA520;
}

@media (max-width: 768px) {
    .egyptian-zodiac-intro { padding: 25px 15px; }
    .egyptian-zodiac-intro h2 { font-size: 1.6em; }
    .egyptian-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .egyptian-card { padding: 10px; flex-direction: column; text-align: center; border-left: none; border-top: 3px solid #FFD700; }
}
/* ========================================
   КАЛЬКУЛЯТОР ЕГИПЕТСКОГО ГОРОСКОПА
   ======================================== */

.egyptian-calculator {
    background: linear-gradient(135deg, #2c1e12 0%, #5c3a21 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    border: 2px solid #DAA520;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.egyptian-calculator .calc-subtitle {
    text-align: center;
    color: #FFD700;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: 'Georgia', serif;
}

.egyptian-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.egyptian-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #DAA520;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #FFF8DC;
    font-family: 'Georgia', serif;
}

.egyptian-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.egyptian-calculator .calc-btn {
    padding: 12px 30px;
    font-size: 1em;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: #2c1e12;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.egyptian-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.egyptian-calculator .calc-result, 
.egyptian-calculator .calc-no-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid #FFD700;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.egyptian-calculator .calc-result.active, 
.egyptian-calculator .calc-no-result.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.egyptian-calculator .result-emoji { 
    font-size: 4em; 
    margin-bottom: 15px; 
}

.egyptian-calculator .result-name { 
    font-size: 2.2em; 
    color: #FFD700; 
    margin-bottom: 10px; 
    font-weight: bold; 
    font-family: 'Georgia', serif; 
}

.egyptian-calculator .result-deity { 
    font-size: 1.1em; 
    color: #DAA520; 
    margin-bottom: 20px; 
    font-style: italic; 
}

.egyptian-calculator .result-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: #2c1e12;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.egyptian-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.egyptian-calculator .calc-no-result { 
    color: #FFD700; 
    font-size: 1.1em; 
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .egyptian-calculator .calc-form-group { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px; 
    }
    .egyptian-calculator .calc-btn { 
        width: 100%; 
    }
}

/* Стили для описания категории Деканов */
.decans-category-intro {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    color: #f8fafc;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #fbbf24;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.decans-category-intro::before {
    content: '✦';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: #fbbf24;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.decans-category-intro > * { position: relative; z-index: 1; }

.decans-category-intro h2 {
    color: #fbbf24;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.decans-category-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}
/* Стили специально для калькулятора декад */
.decan-intro {
    /* Если у вас есть общий класс .egyptian-zodiac-intro, можно использовать его, 
       но здесь добавлены специфичные настройки для компактности */
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.decan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.decan-card {
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-left: 3px solid #FFD700;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.decan-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
}

.decan-card .emoji { font-size: 1.8em; margin-bottom: 5px; }
.decan-card .info strong { color: #FFD700; display: block; font-size: 0.95em; margin-bottom: 3px; }
.decan-card .info small { color: #FFF8DC; opacity: 0.8; font-size: 0.8em; line-height: 1.2; }

/* Компактная форма калькулятора */
.decan-calc-container {
    padding: 20px;
    margin: 15px auto;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.4);
}

.decan-calc-container .subtitle {
    text-align: center; color: #DAA520; font-style: italic; margin-bottom: 15px; font-size: 0.95em;
}

.decan-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.decan-form-group label {
    margin-bottom: 0; font-size: 1em; color: #FFD700; white-space: nowrap;
}

.decan-form-group input[type="date"] {
    flex: 1; padding: 10px; font-size: 1em;
    border: 2px solid #DAA520; border-radius: 8px;
    background: rgba(0, 0, 0, 0.4); color: #FFF8DC;
}

.btn-decan {
    width: auto; padding: 10px 20px; font-size: 1em;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: #2c1e12; border: none; border-radius: 8px;
    cursor: pointer; font-weight: bold; transition: all 0.3s ease;
}
.btn-decan:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4); }

/* Блоки результата */
.decan-result, .decan-no-result {
    display: none;
    margin-top: 15px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}
.decan-result.active, .decan-no-result.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.decan-result { background: rgba(255, 215, 0, 0.1); border: 1px solid #FFD700; }
.decan-no-result { color: #FFD700; }

.decan-result-emoji { font-size: 3em; margin-bottom: 5px; }
.decan-result-name { font-size: 1.8em; color: #FFD700; margin-bottom: 5px; }
.decan-result-desc { font-size: 1em; color: #DAA520; margin-bottom: 15px; font-style: italic; }
.decan-result-link {
    display: inline-block; padding: 10px 20px;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 100%);
    color: #2c1e12; text-decoration: none; border-radius: 8px; font-weight: bold;
}
.decan-result-link:hover { transform: translateY(-2px); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    .decan-form-group { flex-direction: column; align-items: stretch; gap: 8px; }
    .decan-form-group label { text-align: center; }
    .btn-decan { width: 100%; }
    .decan-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Сетка знаков зодиака */
.zodiac-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.zodiac-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.zodiac-group:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.zodiac-group h3 {
    color: #fbbf24;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    padding-bottom: 10px;
}

.decans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.decan-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f8fafc;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #fbbf24;
    transition: all 0.2s ease;
}

.decan-link:hover {
    background: rgba(251, 191, 36, 0.15);
    transform: translateX(5px);
}

.decan-link .decan-num {
    font-weight: bold;
    color: #fbbf24;
    min-width: 70px;
}

.decan-link .decan-planet {
    font-size: 0.9em;
    color: #cbd5e1;
}

.decans-category-intro .footer-text {
    text-align: center;
    margin-top: 35px;
    font-style: italic;
    color: #fbbf24;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .decans-category-intro { padding: 25px 15px; }
    .decans-category-intro h2 { font-size: 1.6em; }
    .zodiac-groups-grid { grid-template-columns: 1fr; }
}
/* =========================================
   Стили для сгенерированных статей (Гороскопы и Праздники)
   ========================================= */

.goroskop-article {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #333;
    font-size: 1.05em;
}

.goroskop-article h2 {
    color: #2c1e12;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.goroskop-article h3 {
    color: #8B4513; /* Темно-коричневый/золотистый оттенок */
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0e6d2;
    font-weight: 600;
}

.goroskop-article p {
    margin-bottom: 15px;
}

/* ✅ СТИЛИ ДЛЯ БЛОКА МЕТА-ИНФОРМАЦИИ */
.goroskop-meta {
    background: linear-gradient(135deg, #fdfbf7 0%, #f8f5f0 100%);
    border-left: 5px solid #DAA520; /* Золотой акцент */
    padding: 20px 25px;
    margin: 20px 0 35px 0;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.goroskop-meta p {
    margin: 10px 0;
    font-size: 1.05em;
    color: #4a4a4a;
    line-height: 1.5;
}

.goroskop-meta p:last-child {
    margin-bottom: 0;
}

.goroskop-meta strong {
    color: #8B4513; /* Темно-коричневый для контраста */
    font-weight: 700;
    min-width: 180px;
    /*display: inline-block;*/
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .goroskop-article h2 {
        font-size: 1.6em;
    }
    
    .goroskop-article h3 {
        font-size: 1.2em;
    }
    
    .goroskop-meta {
        padding: 15px;
    }
    
    .goroskop-meta strong {
        display: block; /* На мобильных переносим название поля на новую строку */
        margin-bottom: 4px;
        color: #DAA520;
    }
    
    .goroskop-meta p {
        font-size: 1em;
        margin: 12px 0;
    }
}
/* Стили для описания категории Друидского гороскопа */
.druidic-zodiac-intro {
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 100%);
    color: #f8fafc;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid #d4a373;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Декоративный фоновый элемент */
.druidic-zodiac-intro::before {
    content: '🌳';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: #d4a373;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.druidic-zodiac-intro > * { position: relative; z-index: 1; }

.druidic-zodiac-intro h2 {
    color: #d4a373;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.druidic-zodiac-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

/* Сетка карточек (автоматически подстраивается под ширину) */
.druidic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

/* Кликабельная карточка */
.druidic-card {
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.25);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-left: 4px solid #d4a373;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.druidic-card:hover {
    transform: translateY(-4px);
    background: rgba(212, 163, 115, 0.15);
    border-color: #d4a373;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.druidic-card .emoji {
    font-size: 2.2em;
    line-height: 1;
}

.druidic-card .info strong {
    color: #d4a373;
    display: block;
    margin-bottom: 4px;
    font-size: 1.1em;
}

.druidic-card .info small {
    color: #f8fafc;
    opacity: 0.85;
    line-height: 1.3;
    font-size: 0.9em;
}

.druidic-zodiac-intro .footer-text {
    text-align: center;
    margin-top: 35px;
    font-style: italic;
    color: #d4a373;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .druidic-zodiac-intro { padding: 25px 15px; }
    .druidic-zodiac-intro h2 { font-size: 1.6em; }
    .druidic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .druidic-card { 
        flex-direction: column; 
        text-align: center; 
        border-left: none; 
        border-top: 3px solid #d4a373; 
        padding: 12px;
    }
    .druidic-card .emoji { margin-bottom: 5px; }
}

.druidic-calculator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 600px;
    border: 1px solid rgba(212, 163, 115, 0.4);
}
.calc-subtitle {
    text-align: center;
    color: #d4a373;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #d4a373;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    color: #f8fafc;
    font-family: 'Georgia', serif;
}
.calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #f8fafc;
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}
.calc-btn {
    padding: 12px 30px;
    font-size: 1em;
    background: linear-gradient(135deg, #d4a373 0%, #b8860b 100%);
    color: #1a472a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}
.calc-result, .calc-no-result {
    margin-top: 25px;
    padding: 25px;
    background: rgba(212, 163, 115, 0.15);
    border-radius: 10px;
    border: 1px solid #d4a373;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.calc-result .result-emoji { font-size: 4em; margin-bottom: 15px; }
.calc-result .result-name {
    font-size: 2.2em;
    color: #d4a373;
    margin-bottom: 10px;
    font-weight: bold;
}
.calc-result .result-energy {
    font-size: 1.1em;
    color: #f8fafc;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.9;
}
.calc-result .result-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4a373 0%, #b8860b 100%);
    color: #1a472a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.calc-result .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}
.calc-no-result { color: #d4a373; font-size: 1.1em; }
@media (max-width: 600px) {
    .calc-form-group { flex-direction: column; align-items: stretch; gap: 10px; }
    .calc-btn { width: 100%; }
}

/* Цветочный гороскоп - стили для описания категории */
.flower-zodiac-intro {
    background: linear-gradient(135deg, #f8f4e8 0%, #e8f5e9 50%, #f1f8e9 100%);
    color: #2e7d32;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    border: 2px solid #a5d6a7;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Декоративный цветочный паттерн на фоне */
.flower-zodiac-intro::before {
    content: '🌸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.flower-zodiac-intro > * {
    position: relative;
    z-index: 1;
}

.flower-zodiac-intro h2 {
    color: #2e7d32;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.flower-zodiac-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #1b5e20;
}

.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.flower-card {
    text-decoration: none; /* Убирает подчеркивание ссылки */
    color: inherit; /* Наследует цвет текста от родителя */
    display: flex; /* Сохраняет структуру карточки */
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
    border-left: 4px solid #66bb6a;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* При наведении карточка-ссылка должна вести себя так же красиво */
.flower-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: #43a047;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.2);
    text-decoration: none; /* На всякий случай дублируем для hover */
}

.flower-card .emoji {
    font-size: 2.2em;
    line-height: 1;
}

.flower-card .info strong {
    color: #2e7d32;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
    font-family: 'Georgia', serif;
}

.flower-card .info small {
    color: #558b2f;
    opacity: 0.9;
    line-height: 1.3;
    font-size: 0.85em;
}

.flower-zodiac-intro .footer-text {
    text-align: center;
    margin-top: 35px;
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1em;
    color: #388e3c;
}

@media (max-width: 768px) {
    .flower-zodiac-intro {
        padding: 25px 15px;
    }
    .flower-zodiac-intro h2 {
        font-size: 1.6em;
    }
    .flower-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
    .flower-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 3px solid #66bb6a;
    }
}
/* Калькулятор цветочного гороскопа */
.flower-calculator {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
    border: 2px solid #a5d6a7;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.flower-calculator::before {
    content: '🌸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.flower-calculator > * {
    position: relative;
    z-index: 1;
}

.flower-calculator h3 {
    text-align: center;
    color: #2e7d32;
    font-size: 1.8em;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.flower-calculator .subtitle {
    text-align: center;
    color: #558b2f;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05em;
}

/* Группа формы */
.calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.calc-form-group label {
    color: #2e7d32;
    font-size: 1.1em;
    white-space: nowrap;
    margin-bottom: 0;
}

.calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #a5d6a7;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #1b5e20;
    font-family: 'Georgia', serif;
    text-align: center;
    transition: all 0.3s ease;
}

.calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #66bb6a;
    box-shadow: 0 0 15px rgba(102, 187, 106, 0.3);
}

/* Кнопка */
.calc-btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.4);
}

.calc-btn:active {
    transform: translateY(0);
}

/* Блок результата */
.calc-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 2px solid #66bb6a;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.calc-result.active {
    display: block !important;
}

/* Блок ошибки */
.calc-no-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    border: 1px solid #ffb300;
    text-align: center;
    color: #e65100;
    font-size: 1.1em;
}

.calc-no-result.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-result .result-emoji {
    font-size: 4em;
    margin-bottom: 10px;
}

.calc-result .result-name {
    font-size: 2em;
    color: #2e7d32;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.calc-result .result-month {
    font-size: 1.1em;
    color: #558b2f;
    margin-bottom: 20px;
    font-style: italic;
}

.calc-result .result-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.calc-result .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 160, 71, 0.4);
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .flower-calculator {
        padding: 20px;
    }
    .flower-calculator h3 {
        font-size: 1.4em;
    }
    .calc-form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .calc-btn {
        width: 100%;
    }
}
/* Славянский гороскоп - стили для описания категории */
.slavic-zodiac-intro {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 50%, #6d4c41 100%);
    color: #fff8dc;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(62, 39, 35, 0.3);
    border: 2px solid #8d6e63;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Декоративный узор на фоне */
.slavic-zodiac-intro::before {
    content: '☥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 350px;
    color: #ffd700;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.slavic-zodiac-intro > * {
    position: relative;
    z-index: 1;
}

.slavic-zodiac-intro h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.slavic-zodiac-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #fff8dc;
}

/* Сетка карточек Чертогов */
.slavic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.slavic-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
}

.slavic-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

.slavic-card .emoji {
    font-size: 2.2em;
    line-height: 1;
}

.slavic-card .info strong {
    color: #ffd700;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
    font-family: 'Georgia', serif;
}

.slavic-card .info small {
    color: #fff8dc;
    opacity: 0.85;
    line-height: 1.3;
    font-size: 0.85em;
}

/* Ссылка на статью-разоблачение */
.slavic-mystical-link {
    display: block;
    margin: 30px auto;
    max-width: 700px;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px dashed #ffd700;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: #fff8dc;
    transition: all 0.3s ease;
    font-size: 1.05em;
}

.slavic-mystical-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.slavic-mystical-link strong {
    color: #ffd700;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

/* Нижний текст */
.slavic-zodiac-intro .footer-text {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1em;
    color: #ffd700;
}

/* Адаптив */
@media (max-width: 768px) {
    .slavic-zodiac-intro {
        padding: 25px 15px;
    }
    .slavic-zodiac-intro h2 {
        font-size: 1.6em;
    }
    .slavic-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
    .slavic-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 3px solid #ffd700;
    }
}
/* Калькулятор Славянского гороскопа */
.slavic-calculator {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 50%, #6d4c41 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.4);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.slavic-calculator::before {
    content: 'ᛟ'; /* Славянский символ (Одал/Род) */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: #ffd700;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.slavic-calculator > * { position: relative; z-index: 1; }

.slavic-calculator .calc-subtitle {
    text-align: center;
    color: #fff8dc;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05em;
    opacity: 0.9;
}

.slavic-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.slavic-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #3e2723;
    font-family: 'Georgia', serif;
    text-align: center;
    transition: all 0.3s ease;
}

.slavic-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.slavic-calculator .calc-btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #3e2723;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.slavic-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.slavic-calculator .calc-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%);
    border-radius: 15px;
    border: 2px solid #ffd700;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.slavic-calculator .calc-result.active { display: block !important; }

.slavic-calculator .calc-no-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    border: 1px solid #ffb300;
    text-align: center;
    color: #e65100;
    font-size: 1.1em;
}

.slavic-calculator .calc-no-result.active { display: block !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.slavic-calculator .result-emoji { font-size: 4em; margin-bottom: 10px; }

.slavic-calculator .result-name {
    font-size: 2em;
    color: #3e2723;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.slavic-calculator .result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.slavic-calculator .detail-item {
    background: rgba(62, 39, 35, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.slavic-calculator .detail-item strong {
    color: #3e2723;
    display: block;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.slavic-calculator .detail-item span {
    color: #5d4037;
    font-size: 0.95em;
}

.slavic-calculator .result-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.slavic-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 39, 35, 0.4);
}

@media (max-width: 600px) {
    .slavic-calculator { padding: 20px; }
    .slavic-calculator .calc-form-group { flex-direction: column; align-items: stretch; gap: 10px; }
    .slavic-calculator .calc-btn { width: 100%; }
    .slavic-calculator .result-name { font-size: 1.6em; }
    .slavic-calculator .result-details { grid-template-columns: 1fr; }
}

/* Гороскоп Майя (Цолькин) - стили для описания категории */
.mayan-zodiac-intro {
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 70%, #1a237e 100%);
    color: #fff8dc;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(26, 35, 126, 0.4);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Декоративный узор на фоне (солнечный диск) */
.mayan-zodiac-intro::before {
    content: '☀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 400px;
    color: #ffd700;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.mayan-zodiac-intro > * {
    position: relative;
    z-index: 1;
}

.mayan-zodiac-intro h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.mayan-zodiac-intro .intro-text {
    font-size: 1.15em;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #fff8dc;
}

/* Сетка карточек Наваля */
.mayan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.mayan-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 4px solid #ffd700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
}

.mayan-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

.mayan-card .emoji {
    font-size: 2.2em;
    line-height: 1;
}

.mayan-card .info strong {
    color: #ffd700;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05em;
    font-family: 'Georgia', serif;
}

.mayan-card .info small {
    color: #fff8dc;
    opacity: 0.85;
    line-height: 1.3;
    font-size: 0.85em;
}

/* Нижний текст */
.mayan-zodiac-intro .footer-text {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    opacity: 0.9;
    font-size: 1.1em;
    color: #ffd700;
}

/* Адаптив */
@media (max-width: 768px) {
    .mayan-zodiac-intro {
        padding: 25px 15px;
    }
    .mayan-zodiac-intro h2 {
        font-size: 1.6em;
    }
    .mayan-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
    }
    .mayan-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 3px solid #ffd700;
    }
}
/* Калькулятор гороскопа Майя */
.mayan-calculator {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.4);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.mayan-calculator::before {
    content: '☀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: #ffd700;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.mayan-calculator > * {
    position: relative;
    z-index: 1;
}

.mayan-calculator .calc-subtitle {
    text-align: center;
    color: #fff8dc;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05em;
    opacity: 0.9;
}

/* Группа формы (единый стиль) */
.mayan-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.mayan-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a237e;
    font-family: 'Georgia', serif;
    text-align: center;
    transition: all 0.3s ease;
}

.mayan-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Кнопка (единый стиль) */
.mayan-calculator .calc-btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a237e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mayan-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Блок результата */
.mayan-calculator .calc-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%);
    border-radius: 15px;
    border: 2px solid #ffd700;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.mayan-calculator .calc-result.active {
    display: block !important;
}

/* Блок ошибки */
.mayan-calculator .calc-no-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    border: 1px solid #ffb300;
    text-align: center;
    color: #e65100;
    font-size: 1.1em;
}

.mayan-calculator .calc-no-result.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.mayan-calculator .result-tone {
    font-size: 1.3em;
    color: #283593;
    margin-bottom: 10px;
    font-weight: bold;
}

.mayan-calculator .result-emoji {
    font-size: 4em;
    margin-bottom: 10px;
}

.mayan-calculator .result-name {
    font-size: 2em;
    color: #1a237e;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.mayan-calculator .result-meaning {
    font-size: 1.1em;
    color: #283593;
    margin-bottom: 20px;
    font-style: italic;
}

.mayan-calculator .result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.mayan-calculator .detail-item {
    background: rgba(26, 35, 126, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.mayan-calculator .detail-item strong {
    color: #1a237e;
    display: block;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.mayan-calculator .detail-item span {
    color: #283593;
    font-size: 0.95em;
}

.mayan-calculator .result-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.mayan-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.4);
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .mayan-calculator {
        padding: 20px;
    }
    .mayan-calculator .calc-form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .mayan-calculator .calc-btn {
        width: 100%;
    }
    .mayan-calculator .result-name {
        font-size: 1.6em;
    }
    .mayan-calculator .result-details {
        grid-template-columns: 1fr;
    }
}
/* Описание главной категории Западного гороскопа */
.western-category-intro {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: #e2e8f0;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.western-category-intro::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 400px;
    color: #ffd700;
    opacity: 0.03;
    pointer-events: none;
}

.western-category-intro > * { position: relative; z-index: 1; }

.western-category-intro h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.western-category-intro .intro-text {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 30px;
    color: #cbd5e1;
}

/* Навигационная сетка по типам гороскопов */
.western-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.western-nav-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.western-nav-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
}

.western-nav-card .nav-emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.western-nav-card strong {
    color: #ffd700;
    display: block;
    font-size: 1.15em;
    margin-bottom: 5px;
}

.western-nav-card small {
    color: #94a3b8;
    font-size: 0.9em;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .western-category-intro { padding: 25px 15px; }
    .western-category-intro h2 { font-size: 1.5em; }
    .western-nav-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .western-nav-card { padding: 15px 10px; }
    .western-nav-card .nav-emoji { font-size: 2em; }
    .western-nav-card strong { font-size: 1em; }
}
/* Гороскоп на сегодня - стили для описания категории */
.western-daily-intro {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #e2e8f0;
    padding: 35px 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(30, 27, 75, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

/* Декоративный фоновый элемент (солнце/звезда) */
.western-daily-intro::before {
    content: '☀';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    color: #ffd700;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.western-daily-intro > * {
    position: relative;
    z-index: 1;
}

.western-daily-intro h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.western-daily-intro .intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #cbd5e1;
}

/* Сетка знаков Зодиака */
.zodiac-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.zodiac-daily-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zodiac-daily-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.12);
    border-color: #ffd700;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.zodiac-daily-card .zodiac-symbol {
    font-size: 2.8em;
    line-height: 1;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.zodiac-daily-card strong {
    color: #ffd700;
    font-size: 1.15em;
    font-family: 'Georgia', serif;
}

.zodiac-daily-card small {
    color: #94a3b8;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .western-daily-intro {
        padding: 25px 15px;
    }
    .western-daily-intro h2 {
        font-size: 1.5em;
    }
    .zodiac-daily-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильных */
        gap: 10px;
    }
    .zodiac-daily-card {
        padding: 15px 10px;
    }
    .zodiac-daily-card .zodiac-symbol {
        font-size: 2.2em;
    }
    .zodiac-daily-card strong {
        font-size: 1em;
    }
}
/* Калькулятор Западного гороскопа */
.western-calculator {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(15, 52, 96, 0.4);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.western-calculator::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    color: #ffd700;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.western-calculator > * {
    position: relative;
    z-index: 1;
}

.western-calculator .calc-subtitle {
    text-align: center;
    color: #fff8dc;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.05em;
    opacity: 0.9;
}

.western-calculator .calc-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.western-calculator .calc-form-group input[type="date"] {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    font-family: 'Georgia', serif;
    text-align: center;
    transition: all 0.3s ease;
}

.western-calculator .calc-form-group input[type="date"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.western-calculator .calc-btn {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.western-calculator .calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.western-calculator .calc-result {
    display: none;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.95) 100%);
    border-radius: 15px;
    border: 2px solid #ffd700;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.western-calculator .calc-result.active {
    display: block !important;
}

.western-calculator .calc-no-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    border: 1px solid #ffb300;
    text-align: center;
    color: #e65100;
    font-size: 1.1em;
}

.western-calculator .calc-no-result.active {
    display: block !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.western-calculator .result-symbol {
    font-size: 5em;
    margin-bottom: 10px;
    color: #1a1a2e;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.western-calculator .result-name {
    font-size: 2em;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.western-calculator .result-dates {
    font-size: 1.1em;
    color: #283593;
    margin-bottom: 20px;
    font-style: italic;
}

.western-calculator .result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.western-calculator .detail-item {
    background: rgba(26, 26, 46, 0.05);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ffd700;
}

.western-calculator .detail-item strong {
    color: #1a1a2e;
    display: block;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.western-calculator .detail-item span {
    color: #283593;
    font-size: 0.95em;
}

.western-calculator .result-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.western-calculator .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 46, 0.4);
}

@media (max-width: 600px) {
    .western-calculator {
        padding: 20px;
    }
    .western-calculator .calc-form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .western-calculator .calc-btn {
        width: 100%;
    }
    .western-calculator .result-name {
        font-size: 1.6em;
    }
    .western-calculator .result-details {
        grid-template-columns: 1fr;
    }
}
/* Три кнопки ссылок */
.western-calculator .result-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.western-calculator .result-links .result-link {
    display: block;
    padding: 12px 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffd700;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.western-calculator .result-links .result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 26, 46, 0.4);
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-color: #ffd700;
}

@media (max-width: 600px) {
    .western-calculator .result-links {
        grid-template-columns: 1fr;
    }
}
/* Общий гороскоп - стили для описания категории (3 ссылки) */
.obshchij-hub-intro {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #16213e 100%);
    color: #e2e8f0;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(26, 11, 46, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
}

.obshchij-hub-intro::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 350px;
    color: #ffd700;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.obshchij-hub-intro > * {
    position: relative;
    z-index: 1;
}

.obshchij-hub-intro h2 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.2em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.obshchij-hub-intro .intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px;
    color: #cbd5e1;
}

/* Сетка ровно на 3 элемента */
.obshchij-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.obshchij-hub-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.obshchij-hub-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.obshchij-hub-card .hub-emoji {
    font-size: 3.5em;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.obshchij-hub-card strong {
    color: #ffd700;
    font-size: 1.3em;
    font-family: 'Georgia', serif;
}

.obshchij-hub-card small {
    color: #94a3b8;
    font-size: 0.95em;
    line-height: 1.5;
    font-family: sans-serif; /* Для лучшей читаемости мелкого текста */
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 900px) {
    .obshchij-hub-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 600px) {
    .obshchij-hub-intro {
        padding: 25px 15px;
    }
    .obshchij-hub-intro h2 {
        font-size: 1.6em;
    }
    .obshchij-hub-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
        gap: 15px;
    }
    .obshchij-hub-card {
        flex-direction: row; /* На мобильном иконка слева, текст справа */
        text-align: left;
        padding: 20px;
    }
    .obshchij-hub-card .hub-emoji {
        font-size: 2.5em;
        margin-right: 15px;
    }
}