/* ============================================================
   КЛАССИКА — Article Page Styles
   ============================================================ */

/* === ARTICLE HERO === */
.art-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
}

.art-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.art-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(.65) brightness(.45);
}
.art-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,26,24,1) 0%,
    rgba(26,26,24,.75) 40%,
    rgba(26,26,24,.2) 100%
  );
}

.art-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
  padding-top: 6rem;
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.art-breadcrumb a { color: var(--muted); }
.art-breadcrumb a:hover { color: var(--gold); }
.art-breadcrumb span:last-child { color: var(--gold-dim); }

.art-category {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.art-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: .92;
  color: var(--cream);
  margin-bottom: .5rem;
}
.art-title em {
  font-style: italic;
  color: var(--gold);
}

.art-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: rgba(240,237,230,.6);
  margin-bottom: 1.5rem;
}

.art-meta-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.meta-dot { color: var(--gold-dim); }

/* === ARTICLE LAYOUT === */
.art-main {
  padding: 4rem 0 6rem;
}

.art-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

/* === SIDEBAR === */
.art-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(212,168,67,.08);
  font-size: .8rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li span:first-child {
  color: var(--muted);
  font-size: .75rem;
  flex-shrink: 0;
}
.spec-list li span:last-child {
  color: var(--cream);
  text-align: right;
  font-weight: 500;
}

/* Rating */
.rating-rows {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.rating-row {
  display: grid;
  grid-template-columns: 65px 1fr 30px;
  align-items: center;
  gap: .5rem;
}
.rating-row > span:first-child {
  font-size: .72rem;
  color: var(--muted);
}
.rating-bar {
  height: 3px;
  background: rgba(212,168,67,.15);
  border-radius: 2px;
  overflow: hidden;
}
.rating-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0 !important; /* animated by JS */
}
.rating-fill.animated {
  width: var(--target-width) !important;
}
.rating-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--gold);
  text-align: right;
}
.rating-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.rating-total > span:first-child {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating-total-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

/* Price */
.sidebar-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}
.sidebar-price-note {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
}

/* === ARTICLE BODY TEXT === */
.art-body {
  max-width: 720px;
}

.art-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.55;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.art-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin: 2.5rem 0 1rem;
}
.art-body h2::before {
  content: '— ';
  color: var(--gold);
}

.art-body p {
  font-size: .97rem;
  color: rgba(240,237,230,.78);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.art-blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: var(--bg2);
  border-left: 3px solid var(--gold);
}
.art-blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream) !important;
  margin-bottom: .75rem !important;
  line-height: 1.5;
}
.art-blockquote cite {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--gold);
  font-style: normal;
}

/* Figures */
.art-figure {
  margin: 2.5rem 0;
}
.art-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: saturate(.82);
}
.art-figure figcaption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .07em;
  color: var(--muted);
  line-height: 1.5;
}

.art-figure--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
}
.art-figure--duo img {
  aspect-ratio: 4/3;
}

/* Tags */
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tag {
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: default;
  transition: border-color .2s, color .2s;
}
.tag:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* === RELATED ARTICLES === */
.related {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  margin-top: 2rem;
}

.related-card {
  display: block;
  background: var(--bg2);
  transition: background .2s;
  color: inherit;
}
.related-card:hover {
  background: var(--bg3);
  color: inherit;
}

.related-img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s;
  filter: saturate(.8);
}
.related-card:hover .related-img img {
  transform: scale(1.05);
  filter: saturate(1);
}

.related-body {
  padding: 1.25rem;
}
.related-body h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin: .4rem 0 .75rem;
}

/* === READING PROGRESS BAR === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 999;
  width: 0%;
  transition: width .1s linear;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .art-layout {
    grid-template-columns: 1fr;
  }
  .art-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
  }
  .sidebar-card { border: none; }
}

@media (max-width: 700px) {
  .art-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .art-figure--duo { grid-template-columns: 1fr; }
  .art-title { font-size: 3rem; }
  .art-meta-bar { flex-wrap: wrap; gap: .3rem; }
}
