/* =========================================================
   Article / Detail page — Hotel Globus
   Magazine-grade reading layout, used by article.html and attraction.html
   ========================================================= */

/* ---------- Reading progress bar ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 200;
  transition: width 120ms linear;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.article-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.article-hero-bg { position: absolute; inset: -10%; z-index: -2; will-change: transform; }
.article-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 22s ease-out forwards;
  transform-origin: 50% 60%;
}
@keyframes heroZoom { from { transform: scale(1.18); } to { transform: scale(1.04); } }
.article-hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,37,61,0.35) 0%, rgba(10,37,61,0.05) 30%, rgba(10,37,61,0.20) 50%, rgba(10,37,61,0.85) 100%);
}

.article-hero-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: end;
}

.article-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  transition: all 240ms var(--ease-standard);
  margin-bottom: 40px;
}
.article-back:hover { color: var(--gold); border-color: var(--gold); background: rgba(193,154,107,0.08); }
.article-back svg { width: 14px; height: 14px; }

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 28px 0 0;
  text-wrap: balance;
  color: #fff;
  max-width: 18ch;
}
.article-hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }

.article-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-caps);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.article-hero .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}

.article-hero .deck {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  max-width: 32ch;
  text-wrap: pretty;
}

.article-hero .meta {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.article-hero .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.article-hero .meta strong { color: #fff; font-weight: 500; letter-spacing: 0.04em; }

/* Fact strip (right column on hero, for attractions) */
.article-hero-facts {
  display: flex; flex-direction: column; gap: 22px;
  padding: 36px 32px;
  background: rgba(10, 37, 61, 0.42);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  font-family: var(--font-body);
  position: relative;
}
.article-hero-facts::before {
  content: ""; position: absolute; top: 0; left: 36px; right: 36px;
  height: 1px; background: var(--gold); opacity: 0.6;
}
.article-hero-facts .label {
  font-family: var(--font-caps);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.article-hero-facts .value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500;
  color: #fff;
  line-height: 1.15;
}
.article-hero-facts .value em { font-style: italic; color: var(--gold); font-weight: 400; }
.article-hero-facts .row + .row { padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 36px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-caps);
  font-size: 10px; letter-spacing: 0.34em;
  animation: scrollFloat 2.4s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 48px; background: linear-gradient(180deg, var(--gold), transparent);
}
@keyframes scrollFloat { to { transform: translate(-50%, 10px); } }

/* ---------- Body grid ---------- */
.article-body {
  background: var(--neutral-50);
  padding: 120px 0 96px;
  position: relative;
}
.article-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 96px;
  align-items: start;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 720px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.78;
  color: var(--fg);
}
.prose > * + * { margin-top: 28px; }
.prose p { text-wrap: pretty; }
.prose p strong { font-weight: 600; color: var(--neutral-900); }
.prose p em { font-style: italic; color: var(--fg-muted); }
.prose a {
  color: var(--primary-700);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 2px;
  transition: color 240ms;
}
.prose a:hover { color: var(--gold); }

/* Lead paragraph (no dropcap, larger) */
.prose .lead {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--fg-muted);
  text-wrap: pretty;
}

/* Drop cap on first body paragraph */
.prose .dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 96px;
  line-height: 0.85;
  margin: 10px 14px 0 -2px;
  color: var(--primary-950);
  font-feature-settings: "ss01";
}

/* Section headings */
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--primary-950);
  margin-top: 64px;
  position: relative;
  padding-left: 24px;
}
.prose h2::before {
  content: "";
  position: absolute; left: 0; top: 24px;
  width: 12px; height: 1px;
  background: var(--gold);
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--primary-950);
  margin-top: 48px;
}

/* Pull quote */
.prose .pullquote {
  margin: 56px -48px;
  padding: 8px 0 8px 48px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--primary-950);
  text-wrap: pretty;
  border-left: 1px solid var(--gold);
  position: relative;
}
.prose .pullquote::before {
  content: "“";
  position: absolute;
  left: 16px; top: -18px;
  font-family: var(--font-display);
  font-size: 96px; line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.prose .pullquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
}

/* Figure / inline image */
.prose .figure {
  margin: 56px -120px;
  display: block;
}
.prose .figure img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.prose .figure figcaption {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  font-style: italic;
  max-width: 720px;
}
.prose .figure.narrow { margin: 48px 0; }

/* Numbered / bulleted lists */
.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
}
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 32px;
  margin-top: 14px;
}
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 14px; height: 1px;
  background: var(--gold);
}
.prose ol { counter-reset: prose-list; }
.prose ol li { counter-increment: prose-list; }
.prose ol li::before {
  content: counter(prose-list, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-caps);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
}

/* Info / "Совет от концьержа" callout */
.prose .callout {
  margin: 48px -32px;
  padding: 36px 40px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
}
.prose .callout::before {
  content: ""; position: absolute; top: 0; left: 40px;
  width: 56px; height: 2px; background: var(--gold);
  transform: translateY(-1px);
}
.prose .callout .label {
  font-family: var(--font-caps);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.prose .callout p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--fg-muted); }
.prose .callout p + p { margin-top: 12px; }

/* End-of-article rule */
.prose .endrule {
  margin: 72px 0 24px;
  text-align: center;
  font-family: var(--font-caps);
  letter-spacing: 0.4em;
  color: var(--gold);
  font-size: 12px;
}

/* ---------- Author card ---------- */
.author-card {
  margin-top: 64px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 22px;
}
.author-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.author-card .name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-950);
}
.author-card .role {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}

/* ---------- Aside (sticky sidebar) ---------- */
.article-aside {
  position: sticky;
  top: 120px;
  display: flex; flex-direction: column;
  gap: 32px;
  font-family: var(--font-body);
}
.aside-block {
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}
.aside-block .label {
  font-family: var(--font-caps);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.aside-block .value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-950);
  line-height: 1.3;
}
.aside-block .small {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.aside-block .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.aside-block .row:last-child { border-bottom: 0; }
.aside-block .row .k { color: var(--fg-subtle); letter-spacing: 0.04em; }
.aside-block .row .v { color: var(--primary-950); font-weight: 500; }

.share {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.share a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  transition: all 240ms var(--ease-standard);
}
.share a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.share a svg { width: 14px; height: 14px; }

.tag-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chips a {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-caps);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: all 240ms var(--ease-standard);
}
.tag-chips a:hover { color: var(--gold); border-color: var(--gold); }

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 10px; }
.toc-list a {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.4;
  padding: 4px 0;
  transition: color 240ms;
}
.toc-list a .n {
  font-family: var(--font-caps);
  font-size: 10px; letter-spacing: 0.2em; color: var(--gold);
  flex-shrink: 0;
}
.toc-list a:hover { color: var(--primary-950); }

/* ---------- Related strip ---------- */
.article-related {
  background: var(--neutral-50);
  padding: 0 0 140px;
  position: relative;
}
.article-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-related-header {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  padding: 96px 0 56px;
  border-top: 1px solid var(--border-strong);
}
.article-related-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--primary-950);
}
.article-related-header h2 em { font-style: italic; color: var(--gold); font-weight: 400; }
.article-related-header .num {
  font-family: var(--font-caps);
  font-size: 11px; letter-spacing: 0.3em; color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.article-related-header .num::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Reveal animations ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-emphasised), transform 800ms var(--ease-emphasised); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 80ms; }
.fade-in.delay-2 { transition-delay: 160ms; }
.fade-in.delay-3 { transition-delay: 240ms; }
.fade-in.delay-4 { transition-delay: 320ms; }
.fade-in.delay-5 { transition-delay: 400ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .article-body-inner { grid-template-columns: 1fr; gap: 64px; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px 48px; }
  .aside-block { flex: 1 1 220px; }
  .prose .figure { margin: 48px -32px; }
  .prose .pullquote { margin: 48px 0; }
  .article-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .article-hero-facts { max-width: 480px; }
}
@media (max-width: 720px) {
  .article-hero { min-height: 78vh; }
  .article-hero-inner { padding-bottom: 56px; }
  .article-body { padding: 64px 0 56px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose .lead { font-size: 21px; }
  .prose .figure, .prose .callout, .prose .pullquote { margin-left: 0; margin-right: 0; }
  .prose .dropcap::first-letter { font-size: 64px; margin-right: 10px; }
  .prose h2 { font-size: 28px; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .article-aside { flex-direction: column; }
  .article-related { padding-bottom: 80px; }
  .article-related-header { padding: 56px 0 32px; }
}
