/* Blog — Glass Pavilion by Quartz */
:root {
  --ink: #1E2226;
  --paper: #F7F5F1;
  --gold: #B89665;
  --line: #E8E4DC;
  --muted: #5C6166;
  --soft: #FAF8F4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden; width: 100%; max-width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

.blog-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.blog-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.blog-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.blog-logo em { font-style: italic; color: var(--gold); font-weight: 400; }
.blog-nav { display: flex; gap: 22px; font-size: 14px; letter-spacing: 0.02em; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 900px) { .blog-nav { gap: 16px; font-size: 13px; } }
@media (max-width: 820px) { .blog-nav { gap: 14px; } .blog-nav a:nth-child(3), .blog-nav a:nth-child(4) { display: none; } }
.blog-nav a { color: var(--muted); }
.blog-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .blog-nav { display: none; } .blog-header__inner { padding: 16px 20px; } }

.blog-hero {
  max-width: 880px; margin: 0 auto; padding: 80px 32px 20px;
  text-align: center;
}
.blog-hero .eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px); font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.15; color: var(--ink);
  margin-bottom: 18px;
}
.blog-hero p {
  font-size: 17px; color: var(--muted); max-width: 640px; margin: 0 auto;
}

.blog-list {
  max-width: 1120px; margin: 0 auto; padding: 40px 32px 100px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px;
}
@media (max-width: 480px) {
  .blog-hero { padding: 56px 18px 28px; }
  .blog-list { padding: 28px 18px 70px; grid-template-columns: 1fr; gap: 22px; }
  .blog-card__body { padding: 22px; }
  .blog-card__title { font-size: 22px; }
  .blog-footer { padding: 36px 18px; }
}
@media (max-width: 360px) {
  .blog-hero { padding: 48px 14px 22px; }
  .blog-list { padding: 22px 14px 60px; }
  .blog-card__body { padding: 18px; }
}
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 50px rgba(30,34,38,0.08); }
.blog-card__cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #E8E4DC, #FAF8F4);
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.blog-card__cover::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,34,38,0.05) 0%, rgba(30,34,38,0.15) 55%, rgba(30,34,38,0.45) 100%);
  transition: opacity .35s ease;
}
.blog-card:hover .blog-card__cover::before { opacity: 0.75; }
.blog-card__cover-num {
  position: absolute; bottom: 18px; right: 24px;
  font-family: 'Cormorant Garamond', serif; font-size: 64px;
  color: rgba(255,255,255,0.92); font-weight: 500; line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 0 2px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}
.blog-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.blog-card__tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.blog-card__title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.blog-card__excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.blog-card__meta { display: flex; justify-content: space-between; font-size: 12px; color: #8A8F94; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }

/* Article page */
.article {
  max-width: 760px; margin: 0 auto; padding: 60px 32px 100px;
}
.article__back {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--muted); margin-bottom: 36px; letter-spacing: 0.03em;
}
.article__back:hover { color: var(--gold); }
.article__tag {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.article h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 500;
  line-height: 1.18; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 22px;
}
.article__meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); margin-bottom: 50px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.article__lead {
  font-size: 20px; line-height: 1.55; color: var(--ink);
  font-weight: 400; margin-bottom: 36px;
  padding-left: 22px; border-left: 3px solid var(--gold);
}
.article h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500; color: var(--ink);
  margin: 50px 0 18px; letter-spacing: -0.005em; line-height: 1.25;
}
.article h3 {
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 32px 0 12px; letter-spacing: 0.005em;
}
.article p { margin-bottom: 22px; color: #2E3539; font-size: 17px; line-height: 1.75; }
.article ul, .article ol { margin: 0 0 24px 22px; }
.article li { margin-bottom: 10px; font-size: 17px; line-height: 1.7; color: #2E3539; }
.article strong { font-weight: 600; color: var(--ink); }
.article em { font-style: italic; color: #3A4147; }

.callout {
  background: var(--soft); border-left: 3px solid var(--gold);
  padding: 24px 28px; border-radius: 0 10px 10px 0;
  margin: 36px 0; font-size: 16px; color: #2E3539;
}
.callout strong { color: var(--ink); }

.fact-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 15px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.fact-table th { background: var(--soft); padding: 14px 18px; text-align: left; font-weight: 600; color: var(--ink); font-size: 13px; letter-spacing: 0.04em; }
.fact-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: #2E3539; }
.fact-table tr:nth-child(even) td { background: #fcfaf6; }

.article__cta {
  background: var(--ink); color: #fff; padding: 44px;
  border-radius: 14px; margin: 60px 0 0; text-align: center;
}
.article__cta h3 { color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.article__cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 15px; }
.article__cta .btn {
  display: inline-block; background: var(--gold); color: var(--ink);
  padding: 14px 32px; border-radius: 8px; font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em; transition: all .2s;
}
.article__cta .btn:hover { background: #C9A574; transform: translateY(-2px); }

.related {
  margin-top: 80px; padding-top: 50px; border-top: 1px solid var(--line);
}
.related__title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 24px; }
.related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.related__card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; transition: all .25s; display: block; }
.related__card:hover { border-color: var(--gold); background: var(--soft); }
.related__card h4 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--ink); line-height: 1.3; }
.related__card span { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .related__grid { grid-template-columns: 1fr; } .article { padding: 40px 22px 70px; } }
@media (max-width: 480px) {
  .article { padding: 32px 16px 60px; }
  .article h1 { font-size: 28px; }
  .article h2 { font-size: 24px; margin: 36px 0 14px; }
  .article__lead { font-size: 17px; padding-left: 16px; }
  .article p, .article li { font-size: 16px; }
  .article__cta { padding: 28px 22px; }
  .article__cta h3 { font-size: 22px; }
  .fact-table { font-size: 13px; }
  .fact-table th, .fact-table td { padding: 10px 12px; }
}
@media (max-width: 360px) {
  .article { padding: 24px 12px 50px; }
  .article h1 { font-size: 24px; }
}

.blog-footer {
  background: var(--soft); padding: 50px 32px; text-align: center;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.blog-footer a { color: var(--gold); }

/* ───── Читайте также (внутренняя перелинковка) ───── */
.read-also{
  max-width:760px;
  margin:64px auto 0;
  padding:32px 24px;
  border-top:1px solid #e9e4d9;
  border-bottom:1px solid #e9e4d9;
}
.read-also__title{
  font-family:"Cormorant Garamond",serif;
  font-size:28px;
  font-weight:500;
  color:#2a2620;
  margin:0 0 16px;
  letter-spacing:-0.01em;
}
.read-also__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.read-also__list li{
  padding:0;
}
.read-also__list a{
  color:#7d6549;
  text-decoration:none;
  font-family:"Inter",sans-serif;
  font-size:16px;
  font-weight:500;
  border-bottom:1px solid transparent;
  transition:border-color .2s ease, color .2s ease;
  display:inline-block;
  padding:6px 0;
}
.read-also__list a:hover{
  color:#2a2620;
  border-bottom-color:#7d6549;
}
.read-also__list a::before{
  content:"→ ";
  color:#bba78a;
  margin-right:6px;
}
@media (max-width:640px){
  .read-also{margin-top:48px;padding:24px 16px;}
  .read-also__title{font-size:24px;}
  .read-also__list a{font-size:15px;}
}

/* ============ Динамический пост (Phase 4) ============ */
.blog-post {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.blog-post h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 12px 0 24px;
  color: #1a1a1a;
}
.blog-post .eyebrow {
  font-size: 13px;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.blog-post__cover {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin: 24px 0 32px;
}
.blog-post__body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #222;
}
.blog-post__body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  margin: 36px 0 16px;
  color: #1a1a1a;
}
.blog-post__body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  margin: 28px 0 12px;
}
.blog-post__body p { margin: 0 0 18px; }
.blog-post__body ul, .blog-post__body ol { margin: 0 0 18px; padding-left: 24px; }
.blog-post__body li { margin: 6px 0; }
.blog-post__body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.blog-post__body blockquote {
  border-left: 4px solid #c9a45a;
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}
.blog-post__body code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.blog-post__body a {
  color: #c9a45a;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .blog-post { padding: 0 16px; margin-top: 24px; }
  .blog-post__body { font-size: 16px; }
}

/* Phase 4c: новая карточка из админки — лёгкая золотая полоса сверху */
.blog-card--new { position: relative; }
.blog-card--new::before {
  content: 'Свежее';
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #c9a45a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
