/* ── Arcana detail pages ──────────────────────────────────── */

.ark-wrap {
  position: relative; z-index: 1;
  padding-top: 80px; padding-bottom: 80px;
}
.ark-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { color: var(--text-dim); }

/* ── Шапка ── */
.ark-header {
  display: flex; align-items: center; gap: 28px;
  margin-bottom: 24px;
}
.ark-header-symbol {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(196,162,78,.3);
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}
.ark-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.ark-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4.5vw, 44px);
  font-weight: 700; margin-bottom: 12px; line-height: 1.1;
}
.ark-keyword-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(196,162,78,.3);
  border-radius: 20px;
  padding: 5px 16px;
}

/* ── Основная сетка ── */
.ark-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 60px;
}

/* ── Сайдбар ── */
.ark-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }

/* Карта таро */
.ark-symbol-card {
  border: 1px solid var(--border-s);
  border-radius: 16px;
  overflow: hidden;
}
.ark-tarot-img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3.5;
  object-fit: cover;
  object-position: top;
}
.ark-tarot-fallback {
  width: 100%;
  aspect-ratio: 2 / 3.5;
  background: var(--bg3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.ark-symbol-roman {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700; color: var(--gold);
  letter-spacing: .04em;
}
.ark-symbol-num {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 8px 12px;
  background: var(--bg3);
  border-top: 1px solid var(--border-s);
  text-align: center;
}

/* Три блока под основным контентом */
.ark-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

/* Блоки */
.ark-side-block {
  background: var(--bg3);
  border: 1px solid var(--border-s);
  border-radius: 14px;
  padding: 16px;
}
.ark-block-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}

/* Качества */
.ark-qualities { display: flex; flex-wrap: wrap; gap: 6px; }
.ark-quality {
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg4);
  border: 1px solid var(--border-s);
  border-radius: 6px;
  padding: 4px 10px;
  transition: border-color .15s, color .15s;
}
.ark-quality:hover { border-color: var(--border); color: var(--text); }

/* Теневой блок */
.ark-shadow-block { border-left: 2px solid rgba(196,162,78,.2); }
.ark-shadow-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0;
}

/* Блок «В матрице» */
.ark-matrix-block { background: rgba(196,162,78,.04); border-color: rgba(196,162,78,.2); }
.ark-matrix-text {
  font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0 0 12px;
}
.ark-matrix-link {
  font-size: 12px; color: var(--gold); font-weight: 500;
  letter-spacing: .03em;
  transition: opacity .15s;
}
.ark-matrix-link:hover { opacity: .7; }

/* ── Контент-колонка ── */
.ark-content {}
.ark-short-desc {
  font-size: 17px; font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-s);
}
.ark-para {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 18px;
}
.ark-para:last-child { margin-bottom: 0; }

/* ── Навигация пред/след ── */
.ark-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-bottom: 60px;
}
.ark-nav-btn {
  background: var(--bg3);
  border: 1px solid var(--border-s);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color .2s, background .2s;
  display: flex; flex-direction: column; gap: 4px;
}
.ark-nav-btn:hover {
  border-color: rgba(196,162,78,.35);
  background: rgba(196,162,78,.03);
}
.ark-nav-next { text-align: right; }
.ark-nav-dir {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.ark-nav-sym {
  font-family: 'Cinzel', serif;
  font-size: 18px; font-weight: 700; color: var(--gold);
}
.ark-nav-name {
  font-size: 13px; color: var(--text-muted);
}
.ark-nav-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border-s);
  border-radius: 14px;
  padding: 12px 18px;
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
  min-width: 90px;
}
.ark-nav-center:hover { border-color: var(--border); color: var(--gold); }
.ark-nav-center-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* ── Сетка всех арканов ── */
.ark-all-section { border-top: 1px solid var(--border-s); padding-top: 40px; }
.ark-all-title {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: .06em; color: var(--text-muted);
  margin-bottom: 20px;
}
.ark-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.ark-all-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--border-s);
  border-radius: 10px;
  padding: 10px 8px;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.ark-all-item:hover {
  border-color: rgba(196,162,78,.3);
  background: rgba(196,162,78,.03);
}
.ark-all-item.ark-all-active {
  border-color: rgba(196,162,78,.5);
  background: rgba(196,162,78,.06);
  pointer-events: none;
}
.ark-all-sym {
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 700; color: var(--gold);
  line-height: 1;
}
.ark-all-name {
  font-size: 10px; color: var(--text-muted);
  line-height: 1.3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.ark-all-active .ark-all-name { color: var(--gold-l); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .ark-grid { grid-template-columns: 1fr; }
  .ark-sidebar { position: static; }
  .ark-header { gap: 16px; }
  .ark-all-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .ark-trio { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ark-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ark-header-symbol { font-size: 40px; min-width: auto; }
  .ark-nav { grid-template-columns: 1fr 1fr; }
  .ark-nav-center { display: none; }
  .ark-inner { padding: 0 16px; }
  .ark-trio { grid-template-columns: 1fr; }
}

/* ── Arcana list page ──────────────────────────────────────── */

.ark-list-wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }

.ark-list-hero { margin-bottom: 48px; }
.ark-list-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px; line-height: 1.1;
}
.ark-list-title em { font-style: normal; color: var(--gold); }
.ark-list-sub {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7; max-width: 640px;
}

.ark-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 60px;
}

.ark-list-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg3);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 16px 20px;
  transition: border-color .2s, background .2s, transform .18s;
  color: var(--text);
  text-decoration: none;
}
.ark-list-card:hover {
  border-color: rgba(196,162,78,.35);
  background: rgba(196,162,78,.03);
  transform: translateY(-1px);
  color: var(--text);
}

.ark-list-sym {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 700;
  color: var(--gold);
  min-width: 48px; text-align: center;
  background: var(--gold-dim);
  border: 1px solid rgba(196,162,78,.2);
  border-radius: 8px;
  padding: 9px 4px;
  line-height: 1;
  flex-shrink: 0;
}

.ark-list-body { flex: 1; }
.ark-list-eyebrow {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 2px;
}
.ark-list-name {
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .03em; margin-bottom: 5px;
}
.ark-list-kw {
  font-size: 10px; color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(196,162,78,.2);
  border-radius: 20px;
  padding: 2px 10px;
  display: inline-block;
  text-transform: uppercase; letter-spacing: .06em;
}

.ark-list-arrow {
  color: var(--text-muted); font-size: 16px;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.ark-list-card:hover .ark-list-arrow { color: var(--gold); transform: translateX(3px); }

.ark-list-cta {
  text-align: center;
  border-top: 1px solid var(--border-s);
  padding-top: 48px;
}
.ark-list-cta p {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .ark-list-grid { grid-template-columns: 1fr; }
}
