/* ========== БАЗОВЫЕ НАСТРОЙКИ ========== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
  --bg: #1A1F2E;
  --text: #d0d0d0;
  --secondary: #a0a0a0;
  --gold: #C6A43F;
  --drop-cap: #C6A43F;
  --border: rgba(198, 164, 63, 0.2);
  --card-bg: rgba(0, 0, 0, 0.25);
  --card-hover: rgba(198, 164, 63, 0.1);
  --teal: #8aa8a5;
  --breadcrumb-bg: rgba(198, 164, 63, 0.08);
  --breadcrumb-border: rgba(198, 164, 63, 0.2);
  --breadcrumb-current-bg: rgba(198, 164, 63, 0.15);
  --breadcrumb-current-border: rgba(198, 164, 63, 0.4);
}

:root.light-mode {
  --bg: #f8f5f0;
  --text: #2c2c2c;
  --secondary: #6b6b6b;
  --gold: #b89b5e;
  --drop-cap: #b89b5e;
  --border: #e0d9cc;
  --card-bg: #fcfaf8;
  --card-hover: #f0e9dd;
  --teal: #7a8f8c;
  --breadcrumb-bg: #f0e9dd;
  --breadcrumb-border: #d6cdc0;
  --breadcrumb-current-bg: rgba(184, 155, 94, 0.1);
  --breadcrumb-current-border: rgba(184, 155, 94, 0.3);
}

/* ========== СБРОС И БАЗА ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== АНИМАЦИИ ========== */
@keyframes contentFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(-0.0625rem, 0.0625rem);
  }

  40% {
    transform: translate(0.0625rem, -0.0625rem);
  }

  60% {
    transform: translate(-0.0625rem, 0);
  }

  80% {
    transform: translate(0.0625rem, 0.0625rem);
  }
}

@keyframes bounceUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.375rem);
    /* Высота прыжка */
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========== ВЫДЕЛЕНИЕ ========== */
::selection {
  background: var(--gold);
  color: var(--bg);
}

::-moz-selection {
  background: var(--gold);
  color: var(--bg);
}

/* ========== ОБЩИЕ СТИЛИ ========== */
body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 60rem;
  margin: 20px auto 0;
  padding: 0 1.875rem;
  width: 100%;
  animation: contentFadeIn 0.6s ease-in-out forwards;
}

/* ========== ХЕДЕР ========== */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 60rem;
  background: var(--bg);
  z-index: 1000;
  padding: 0.9375rem 1.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  /* 30px - 6px = 24px */
  right: 1.5rem;
  /* 30px - 6px = 24px */
  height: 0.0625rem;
  /* 0.0625rem */
  background: var(--border);
  pointer-events: none;
}

.logo {
  font-weight: 900;
  font-size: 1.75rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  line-height: 1;
  transition: color 0.3s ease;
}

.logo span {
  color: var(--gold);
  transition: color 0.3s ease;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  transition: color 0.3s ease;
}

/* ========== НАВИГАЦИЯ ========== */
.main-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03125rem;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 0.0625rem;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold);
}

/* ========== ДРОПДАУНЫ (ДЕСКТОП) ========== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.03125rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
  transition: color 0.3s ease;
  position: relative;
}

.dropdown-btn:hover {
  color: var(--gold);
}

.dropdown-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 0.0625rem;
  background: var(--gold);
  transition: width 0.3s ease;
}

.dropdown-btn:hover::after,
.dropdown-btn.dropdown-open::after {
  width: 100%;
}

.dropdown-btn.dropdown-open {
  color: var(--gold);
}

.dropdown-content {
  position: absolute;
  top: 3.6rem;
  right: 0;
  background: var(--bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
  width: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:not(:hover) .dropdown-content {
  transition: none;
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 1.875rem;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
  background: var(--card-hover);
}

.dropdown-link:hover .dropdown-link-text {
  color: var(--gold);
}

.dropdown-link.active .dropdown-link-text {
  color: var(--gold);
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs {
  margin-bottom: 1.5625rem;
  font-size: 0.95rem;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.breadcrumbs a {
  color: var(--gold);
  text-decoration: none;
  opacity: 0.7;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.breadcrumbs a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(198, 164, 63, 0.4);
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: var(--gold);
  opacity: 0.6;
  transition: color 0.3s ease;
}

.breadcrumbs span:last-child {
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

:root.light-mode .breadcrumbs a {
  color: #8B6F4C;
}

:root.light-mode .breadcrumbs a:hover {
  color: #5c4a32;
}

:root.light-mode .breadcrumbs .separator {
  color: #8B6F4C;
}

/* ========== ТИПОГРАФИКА ========== */
p {
  font-family: Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 1.5625rem;
  color: var(--text);
  transition: color 0.3s ease;
}

h1 {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.0625rem;
  line-height: 1.3;
  text-align: left;
  transition: color 0.3s ease;
}

h2 {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

h3 {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

.pane p:first-of-type::first-letter {
  font-family: "Times New Roman", Georgia, serif;
  font-size: 2em;
  font-weight: 600;
  color: var(--drop-cap);
  line-height: 1.1;
  display: inline-block;
  vertical-align: bottom;
  margin-right: 0;
  transition: color 0.3s ease;
}

main ul,
main ol {
  font-family: Arial, sans-serif;
  padding-left: 1.8rem;
  margin-bottom: 1.5rem;
}

main li {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 0.3rem;
  color: var(--text);
  transition: color 0.3s ease;
}

main ul {
  list-style-type: disc;
}

/* Базовые стили ссылок */
.content a,
p a,
li a {
  color: var(--gold);
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.content a::after,
p a::after,
li a::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -15px;
  left: 0;
  right: 0;
  z-index: -1;
}

.content a:hover,
p a:hover,
li a:hover {
  text-shadow: 0 0 8px rgba(198, 164, 63, 0.2);
  animation: bounceUpDown 0.3s ease forwards;
}

.grid-connector {
  margin: 0;
}

/* ========== ИЗОБРАЖЕНИЕ ========== */
.home-image {
  max-width: 100%;
  height: auto;
  margin: 1.5625rem 0;
  border: 0.0625rem solid var(--border);
  display: block;
  box-shadow: 0 0.625rem 1.25rem -0.3125rem rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-image:hover {
  border-color: var(--gold);
  box-shadow: 0 0.9375rem 1.875rem -0.3125rem rgba(198, 164, 63, 0.2);
}

/* Атрибуция под фото */
.image-credit {
  font-size: 0.75rem;
  color: var(--secondary);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.image-credit a {
  color: var(--gold);
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}

/* ========== ДИСКЛЕЙМЕР С БОКОВЫМ ПОДЧЕРКИВАНИЕМ ========== */
.disclaimer {
  font-size: 0.875rem;
  color: var(--secondary);
  background: var(--card-bg);
  border-left: 0.1875rem solid var(--gold);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========== БЛОК ВОПРОСОВ ОТВЕТОВ FAQ ========== */

.faq-section {
  margin: 1.5rem 0;
}

.faq-item {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.0625rem solid var(--border);
  transition: border-color 0.3s ease;
}

.faq-question {
  font-family: "Times New Roman", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.faq-answer {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* ========== ВЕРДИКТ ========== */
.verdict {
  text-transform: lowercase;
}

.verdict strong {
  text-transform: capitalize;
}

/* ========== ТАБЫ ========== */
.tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 0.0625rem solid var(--border);
  margin: 1.25rem 0 1.875rem;
  overflow-x: auto;
  scrollbar-width: none;
  transition: border-color 0.3s ease;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.75rem 0;
  background: none;
  border: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  opacity: 0.8;
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ========== ПАНЕЛИ ========== */
.pane {
  display: none;
  min-height: 12.5rem;
  animation: fadeIn 0.4s;
}

.pane.active {
  display: block;
}

/* ========== ПОИСК ========== */
.search-container {
  position: relative;
  width: 100%;
  margin: 1.25rem 0 1.875rem;
}

.search-input {
  width: 100%;
  height: 3.75rem;
  padding: 0 3.125rem 0 1.25rem;
  font-size: 1rem;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-input::placeholder {
  color: var(--secondary);
  opacity: 0.7;
  transition: color 0.3s ease;
}

.search-input:hover {
  border-color: var(--gold);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: transparent;
  color: var(--secondary);
  font-size: 1.125rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0.6;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.search-clear:hover {
  opacity: 1;
  color: var(--gold);
}

.search-clear.visible {
  display: flex;
}

.card.hidden-by-search {
  display: none;
}

/* ========== КАРТОЧКИ ИНТЕРПРЕТАЦИЙ ========== */
.interpretations-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.875rem 0;
}

.interpretation-card {
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.interpretation-card:hover {
  background: var(--card-hover);
  border-color: var(--border);
}

.interpretation-action {
  font-weight: 600;
  color: var(--gold);
  width: 21.875rem;
  font-size: 1.125rem;
  padding-right: 1.25rem;
  transition: color 0.3s ease;
}

.interpretation-meaning {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
  transition: color 0.3s ease;
}

/* ========== СЕТКА КАРТОЧЕК ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.card {
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0;
  height: 3.75rem;
  padding: 0 0.625rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--gold);
  transform: scale(1.05);
}

.card-title {
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.card-count {
  font-size: 0.875rem;
  color: var(--secondary);
  transition: color 0.3s ease;
}

.card.with-image {
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.card.with-image:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

.card.with-image .card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card.with-image .card-title {
  height: 4.375rem;
  min-height: 4.375rem;
  max-height: 4.375rem;
  padding: 0.9375rem 0.625rem;
  text-align: center;
  background: var(--card-bg);
  width: 100%;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card.with-image .card-title span {
  display: block;
  width: 100%;
}

/* ========== СЕТКА КАРТОЧЕК С ИЗОБРАЖЕНИЕМ ВНУТРИ ========== */

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.item-tile {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.item-tile:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

/* Контейнер изображения */
.item-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.item-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.item-tile:hover .item-tile-image img {
  transform: scale(1.02);
}

/* Затемнение */
.item-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.9) 100%);
  transition: background 0.3s ease;
}

.item-tile:hover .item-tile-overlay {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.85) 100%);
}

/* Текст поверх изображения - снизу по центру */
.item-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0) 100%);
}

.item-tile-content h3 {
  color: var(--gold) !important;
  margin-bottom: 0.5rem;
}

.item-tile-content p {
  color: #d0d0d0 !important;
  line-height: 1.4;

  /* Обрезаем текст с многоточием */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== УНИВЕРСАЛЬНАЯ ТАБЛИЦА ДЛЯ ЭЗОТЕРИЧЕСКИХ СТАТЕЙ ========== */
.esoteric-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.875rem 0;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.esoteric-table thead {
  background: rgba(198, 164, 63, 0.1);
  border-bottom: 0.125rem solid var(--gold);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

:root.light-mode .esoteric-table thead {
  background: rgba(184, 155, 94, 0.08);
}

.esoteric-table th {
  padding: 0.875rem 1rem;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--gold);
  letter-spacing: 0.03125rem;
  transition: color 0.3s ease;
}

.esoteric-table td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid var(--border);
  vertical-align: top;
  transition: border-color 0.3s ease;
}

.esoteric-table tbody tr:hover {
  background: var(--card-hover);
}

.esoteric-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========== ПРИМЕЧАНИЕ ПОД ТАБЛИЦЕЙ ========== */
.table-note {
  font-size: 0.85rem;
  color: var(--secondary);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 0;
  padding-left: 0.25rem;
  transition: color 0.3s ease;
}

/* ========== ХЭШТЕГИ ========== */
.tags-cloud {
  margin: 1.875rem 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tag {
  display: inline-block;
  padding: 0.625rem 1.375rem;
  background: rgba(198, 164, 63, 0.08);
  border: 0.0625rem solid rgba(198, 164, 63, 0.25);
  border-radius: 0;
  color: #E0E0E0;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.03125rem;
  backdrop-filter: blur(5px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.tag-back {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--secondary);
}

.tag-main {
  background: rgba(198, 164, 63, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.tag:hover {
  background: rgba(198, 164, 63, 0.2);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0.3125rem 0.9375rem rgba(198, 164, 63, 0.2);
}

.tag-easter {
  color: var(--teal);
  background: rgba(198, 164, 63, 0.08);
  border: 0.0625rem solid rgba(198, 164, 63, 0.3);
  font-style: italic;
  position: relative;
}

.tag-easter:hover {
  animation: shake 0.5s ease forwards;
  background: rgba(138, 168, 165, 0.15) !important;
  border-color: var(--teal) !important;
}

:root.light-mode .tag {
  background: #f0e8dc;
  border: 0.0625rem solid #d6cdc0;
  color: #2c2c2c;
}

:root.light-mode .tag-main {
  background: rgba(184, 155, 94, 0.1);
  border-color: #8B6F4C;
  color: #8B6F4C;
}

:root.light-mode .tag:hover {
  background: #8B6F4C;
  border-color: #8B6F4C;
  color: #ffffff;
}

:root.light-mode .tag-easter {
  background: #f0e8dc !important;
  border: 0.0625rem solid #d6cdc0 !important;
  color: var(--teal) !important;
}

:root.light-mode .tag-easter:hover {
  background: #8B6F4C !important;
  border-color: #8B6F4C !important;
  color: #ffffff !important;
}

/* ========== COOKIE BANNER (КУКИ) ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 60rem;
  background: var(--bg);
  z-index: 9999;
  padding: 1.25rem 3.125rem;
  display: none;
  transition: background-color 0.3s ease;
}

.cookie-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56.25rem;
  ;
  height: 0.125rem;
  background: var(--gold);
  transition: background-color 0.3s ease;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.875rem;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-banner-logo {
  font-weight: 900;
  font-size: 0.9375rem;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}

.cookie-banner-logo-accent {
  color: var(--gold);
  font-weight: 900;
  transition: color 0.3s ease;
}

.cookie-highlight {
  color: var(--gold);
  font-weight: 600;
  transition: color 0.3s ease;
}

.cookie-banner-btn {
  background: transparent;
  color: var(--gold);
  border: 0.0625rem solid var(--gold);
  padding: 0.9375rem 2.5rem;
  border-radius: 0;
  min-width: 9.375rem;
  font-family: inherit;
  font-weight: normal;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cookie-banner-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

:root.light-mode .cookie-banner-btn {
  color: #8B6F4C;
  border-color: #8B6F4C;
}

:root.light-mode .cookie-banner-btn:hover {
  background: #8B6F4C;
  color: #ffffff;
}

/* ========== КАРТОЧКА РЕКОМЕНДАЦИЙ ========== */
.oracle-recommend-block {
  margin-top: 2.5rem;
  background: var(--card-bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.oracle-recommend-block:hover {
  background: var(--card-hover);
}

.oracle-recommend-badge {
  font-weight: 600;
  color: var(--gold);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  transition: color 0.3s ease;
}

.oracle-recommend-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.oracle-recommend-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  transition: color 0.3s ease;
}

.oracle-recommend-link {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 0.0625rem solid var(--gold);
  border-radius: 0;
  padding: 0.75rem 2.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.oracle-recommend-link:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
}

:root.light-mode .oracle-recommend-link {
  color: #8B6F4C;
  border-color: #8B6F4C;
}

:root.light-mode .oracle-recommend-link:hover {
  background: #8B6F4C;
  color: #ffffff;
}

.oracle-recommend-adid {
  font-size: 0.6875rem;
  color: var(--secondary);
  opacity: 0.5;
  border-top: 0.0625rem solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.9375rem;
  text-align: center;
  letter-spacing: 0.03125rem;
  line-height: 1.4;
  font-style: italic;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* ========== ПЛАВАЮЩАЯ КНОПКА НАВЕРХ ========== */
.scroll-top-btn {
  position: fixed;
  bottom: 1.875rem;
  right: 1.875rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.25rem 0.75rem rgba(198, 164, 63, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.scroll-top-btn .arrow {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-top: 0.1875rem solid var(--bg);
  border-left: 0.1875rem solid var(--bg);
  transform: rotate(45deg);
  margin-top: 0.3125rem;
  transition: border-color 0.3s ease;
}

.scroll-top-btn:hover {
  background: #d4b258;
  transform: translateY(-5px);
}

/* ========== КНОПКА ПОДЕЛИТЬСЯ ========== */
.share-footer {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.share-footer:hover {
  opacity: 0.8;
}

/* ========== РЕКЛАМНЫЕ БЛОКИ ========== */
.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.875rem 0;
  padding: 0;
  width: 100%;
  min-height: 5.625rem;
  background-color: var(--bg);
  overflow: hidden;
}

.ad-container.hidden {
  display: none;
}

.ad-grid-full {
  grid-column: 1 / -1;
  width: 100%;
}

/* ========== ФУТЕР ========== */
footer {
  margin-top: 1.25rem;
  padding: 1.875rem 0 1.25rem;
  border-top: 0.125rem solid var(--border);
  /* 2px = 0.125rem */
  text-align: center;
  animation: contentFadeIn 0.8s ease-in-out forwards;
  transition: border-color 0.3s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  margin-bottom: 1.875rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--secondary);
  transition: color 0.3s ease;
}

/* ========== ДИСКЛЕЙМЕР ========== */
.disclaimer-warning {
  margin-top: 2.5rem;
  font-weight: bold;
}

.disclaimer-accept {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  border-top: 0.0625rem dashed var(--border);
  padding-top: 1.25rem;
  color: #666;
  transition: border-color 0.3s ease;
}

.disclaimer-link {
  color: inherit;
  text-decoration: underline;
}

/* ========== СТИКИ-БАННЕР ========== */
.ad-sticky-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 3.125rem;
  background: var(--bg);
  border-top: 0.125rem solid var(--gold);
  z-index: 9998;
  display: none;
}

.ad-sticky-close {
  position: absolute;
  bottom: 100%;
  margin-bottom: 0.625rem;
  right: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--bg);
  border: 0.125rem solid var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.ad-sticky-close svg {
  width: 1rem;
  height: 1rem;
}

.ad-sticky-close.visible {
  opacity: 1;
}

#ad-sticky-inner {
  width: 100%;
  height: auto;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== КНОПКА БУРГЕР ========== */
.mobile-menu-toggle {
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.125rem;
  height: 0.125rem;
  background-color: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: background-color 0.3s ease, transform 0.3s ease, top 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  top: 0.4375rem;
}

.mobile-menu-toggle span:last-child {
  top: 0.9375rem;
}

.mobile-menu-toggle.open span:first-child {
  transform: translateX(-50%) rotate(45deg);
  top: 0.6875rem;
}

.mobile-menu-toggle.open span:last-child {
  transform: translateX(-50%) rotate(-45deg);
  top: 0.6875rem;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 4.5rem;
  right: 1.25rem;
  bottom: 2rem;
  width: 12.5rem;
  padding: 0.25rem;
  background: var(--bg);
  border: 0.0625rem solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.2);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mobile-menu.visible {
  display: block;
}

.mobile-theme-item,
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 11.5rem;
  min-height: 1.875rem;
  padding: 0.75rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  overflow: hidden;
}

.mobile-theme-item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: transparent !important;
}

.mobile-theme-item,
.mobile-theme-item:focus,
.mobile-theme-item:active,
.mobile-theme-item:focus-visible,
.mobile-theme-item:focus-within,
.mobile-theme-item:target,
.mobile-theme-item:hover {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}

.mobile-link {
  text-decoration: none;
  background: none;
  transition: background-color 0.3s ease;
}

.mobile-theme-text,
.mobile-text {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  background: transparent !important;
  transition: color 0.3s ease;
}

.mobile-link.active .mobile-text {
  color: var(--gold);
}

.mobile-link:hover {
  background: var(--card-hover);
}

.mobile-link:hover .mobile-text {
  color: var(--gold);
}

.mobile-theme-item:hover {
  background: transparent !important;
}

.mobile-menu-divider {
  height: 0.0625rem;
  background: var(--border);
  width: 10rem;
  margin: 0.5rem auto;
  transition: background-color 0.3s ease;
}

body.menu-open::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  pointer-events: none;
}

:root.light-mode .mobile-menu {
  background: var(--bg);
  border-color: var(--border);
}

:root.light-mode .mobile-theme-item {
  background: transparent !important;
}

/* ========== КАСТОМНЫЙ СКРОЛЛ ДЛЯ МОБИЛЬНОГО МЕНЮ ========== */
.mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}

.mobile-menu::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
  opacity: 0.8;
}

/* ========== LAYOUT ДЛЯ КАРТЫ ТАРО ========== */
.taro-card-layout {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.taro-image-column {
  flex: 0 0 300px;
  text-align: center;
}

.taro-card-image {
  width: 100%;
  height: auto;
  display: block;
  border: 0.0625rem solid var(--border);
  transition: border-color 0.3s ease;
}

.arcana-type {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-top: 0.5rem;
  text-align: center;
  font-family: Arial, sans-serif;
  transition: color 0.3s ease;
}

.taro-description-column {
  flex: 1;
  min-width: 0;
}

.taro-symbolism-column h2 {
  margin-top: 0;
}

/* ========== УБИРАЕМ ВЫДЕЛЕНИЕ ПРИ ТАПЕ ========== */
a,
button,
.dropdown-btn,
.tab-btn,
.cookie-banner-btn,
.oracle-recommend-link,
.search-clear,
.scroll-top-btn,
.share-footer,
.mobile-menu-toggle,
.mobile-link,
.mobile-theme-item,
.tag,
.card,
.item-tile,
.ad-sticky-close {
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ========== МЕДИАЗАПРОСЫ ========== */
@media (min-width: 30.0625rem) and (max-width: 48rem) {

  /* (min-width: 481px) and (max-width: 768px) */
  .main-nav {
    gap: 1rem;
    margin: 0 1rem;
    margin-left: auto;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .ad-container {
    min-height: 3.125rem;
    /* 50px */
    margin: 1.5rem 0;
  }

  .scroll-top-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .scroll-top-btn .arrow {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15rem;
    margin-top: 0.3rem;
  }

  /* .ad-sticky-container,
  .ad-sticky-close {
    display: none !important;
  } */

  /* .ad-sticky-close {
  display: none !important;
  } */

  .mobile-menu {
    right: 1.875rem;
  }

  .mobile-text,
  .mobile-theme-text {
    font-size: 1.125rem;
  }

  /* ===== КУКИ-БАННЕР ДЛЯ ПЛАНШЕТОВ ===== */
  .cookie-banner {
    padding: 1rem 1.25rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cookie-banner-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
  }

  .cookie-banner-logo {
    font-size: 0.875rem;
    text-align: center;
  }

  .cookie-banner-btn {
    padding: 0.75rem 2rem;
    font-size: 0.8125rem;
    max-width: 300px;
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .image-credit {
    font-size: 0.7rem;
  }

  .disclaimer {
    font-size: 0.8rem;
  }
}

@media (max-width: 30rem) {

  /* @media (max-width: 480px) */
  p {
    font-size: 1rem;
    line-height: 1.4;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
  }

  main ul,
  main ol {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
  }

  main li {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
  }

  main ul ul,
  main ol ol,
  main ul ol,
  main ol ul {
    padding-left: 1rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  header {
    padding: 0.9375rem 1.25rem;
  }

  header::after {
    left: calc(1.25rem - 0.375rem);
    /* 20px - 6px = 14px */
    right: calc(1.25rem - 0.375rem);
  }

  .logo {
    font-size: 1.5rem;
  }

  .theme-toggle {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  .main-nav {
    display: none;
  }

  .breadcrumbs {
    font-size: 0.8125rem;
    margin-bottom: 0.9375rem;
  }

  .tabs {
    gap: 0.9375rem;
  }

  .tab-btn {
    font-size: 0.8125rem;
    padding: 0.75rem 0;
  }

  .home-image {
    margin: 1.25rem 0;
  }

  .interpretation-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }

  .interpretation-action {
    width: 100%;
    padding-right: 0;
    font-size: 1.125rem;
  }

  .interpretation-meaning {
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9375rem;
  }

  .card {
    height: 3.75rem;
    padding: 0 0.625rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card.with-image .card-title {
    height: 3.125rem;
    min-height: 3.125rem;
    max-height: 3.125rem;
    padding: 0.375rem 0.3125rem;
    font-size: 0.875rem;
  }

  .item-tile-content {
    padding: 1rem 1rem 0.75rem 1rem;
  }

  .item-tile-content h3 {
    margin-bottom: 0.25rem;
  }

  .item-tile-content p {
    font-size: 0.875rem !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .tags-cloud {
    justify-content: center;
    gap: 0.625rem;
  }

  .tag {
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
  }

  .oracle-recommend-link {
    font-size: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
  }

  .ad-container {
    min-height: 3.125rem;
    /* 50px */
    margin: 1rem 0;
  }

  .cookie-banner {
    padding: 1rem 1.25rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cookie-banner-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
  }

  .cookie-banner-logo {
    font-size: 0.875rem;
    text-align: center;
  }

  .cookie-banner-btn {
    padding: 0.75rem 2rem;
    font-size: 0.8125rem;
    max-width: 300px;
    width: 100%;
  }

  footer {
    margin-top: 1.25rem;
    padding: 1.875rem 0 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
    margin-bottom: 1.875rem;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .footer-copyright {
    font-size: 0.8125rem;
  }

  .share-footer {
    font-size: 0.875rem;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
  }

  .scroll-top-btn .arrow {
    width: 1.125rem;
    height: 1.125rem;
    border-width: 0.125rem;
    margin-top: 0.25rem;
  }

  .mobile-menu {
    top: 4rem;
    right: 1.5rem;
  }

  .mobile-text,
  .mobile-theme-text {
    font-size: 1rem;
  }

  /* Атрибуция */
  .image-credit {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
  }

  /* Дисклеймер */
  .disclaimer {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  /* FAQ */
  .faq-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .faq-question {
    font-size: 1.125rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  .esoteric-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .esoteric-table th,
  .esoteric-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
  }

  .table-note {
    font-size: 0.75rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 48rem) {

  /* (max-width: 768px) */
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .taro-card-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .taro-image-column {
    flex: 0 0 auto;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
  }

  .taro-description-column {
    width: 100%;
  }

  /* карточки с изоабражением и затемнением */
  .items-grid {
    gap: 1.5rem;
  }

  .item-tile-image {
    aspect-ratio: 16 / 9;
  }

  .item-tile-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .item-tile-content p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .esoteric-table th {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }

  .esoteric-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .table-note {
    font-size: 0.8rem;
  }
}

@media (min-width: 48.0625rem) {

  /* (min-width: 769px) */
  .ad-sticky-container {
    display: none !important;
  }

  .ad-sticky-close {
    display: none !important;
  }

  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  body.menu-open::after {
    display: none;
  }


}