/* =========================================================================
   Moscow-City Club — страницы статей (/post/...) и раздел «Статьи» (/post/)
   Палитра совпадает с premium.css: тёмный фон + фирменное золото.
   После правок увеличьте ?v= в шаблоне _autopost/tools/build_queue.py
   и в _autopost/publish.php (хаб /post/).
   ========================================================================= */

:root {
  --bg: #0A0B0D;
  --bg-2: #101216;
  --bg-3: #15181E;
  --surface: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .10);
  --border-2: rgba(255, 255, 255, .18);
  --gold: #FFD600;
  --gold-soft: #F7E7A8;
  --gold-grad: linear-gradient(135deg, #F7E7A8 0%, #FFD600 42%, #C08F1E 100%);
  --ink: #F5F2EA;
  --ink-2: #C9C6BE;
  --ink-3: #93908A;
  --go: #2BD86A;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* — Шапка — */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 11, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr__in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 20px; }
.logo { font: 700 15px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--gold); }
.hdr__tel {
  flex: none; padding: 9px 16px; border-radius: 999px; background: var(--gold-grad); color: #111;
  font: 600 14px/1 var(--sans); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s;
}
.hdr__tel:hover { color: #111; transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(255, 214, 0, .6); }
@media (max-width: 860px) { .nav { display: none; } .hdr__tel { margin-left: auto; } }
@media (max-width: 520px) { .hdr__tel { display: none; } }   /* внизу есть плавающие «Позвонить / WhatsApp» */

/* — Обложка — */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.25) 0%, rgba(10,11,13,.55) 45%, var(--bg) 100%); }
.hero__in { position: relative; z-index: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 120px 16px 36px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.chip {
  display: inline-block; padding: 5px 12px; border: 1px solid rgba(255, 214, 0, .45); border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; text-decoration: none;
}
h1 { font: 600 clamp(30px, 5vw, 50px)/1.12 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 14px; }

/* — Текст статьи — */
.wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink); margin: 18px 0 28px; }
.art h2 { font: 600 clamp(24px, 3.4vw, 32px)/1.2 var(--serif); margin: 48px 0 14px; scroll-margin-top: 80px; }
.art h3 { font: 600 20px/1.3 var(--sans); margin: 32px 0 10px; color: var(--gold-soft); }
.art p, .art li { color: var(--ink-2); }
.art p { margin: 0 0 18px; }
.art strong { color: var(--ink); font-weight: 600; }
.art ul, .art ol { padding-left: 22px; margin: 0 0 20px; }
.art li { margin-bottom: 8px; }
.art li::marker { color: var(--gold); }
.art blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-style: italic;
}
.art blockquote p { color: var(--ink); margin: 0; }
.art table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.art th, .art td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.art th { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.art td { color: var(--ink-2); }
.art figure { margin: 28px 0; }
.art figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.art figcaption { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* — Оглавление — */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.toc__t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; color: var(--ink-3); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--gold); }

/* — Карточка объекта — */
.obj {
  display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 28px 0; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .25s, transform .25s var(--ease);
}
.obj:hover { border-color: rgba(255, 214, 0, .5); transform: translateY(-2px); color: inherit; }
.obj img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.obj__b { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.obj__t { font: 600 18px/1.3 var(--sans); color: var(--ink); }
.obj__d { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.obj__go { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--gold); }
@media (max-width: 560px) { .obj { grid-template-columns: 1fr; } .obj img { aspect-ratio: 16 / 9; height: auto; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.grid .obj { display: flex; flex-direction: column; margin: 0; }
.grid .obj img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }

/* — Вопросы — */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 24px; color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* — Призыв к действию — */
.cta {
  margin: 48px 0 8px; padding: 30px 26px; border-radius: 24px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255, 214, 0, .14) 0%, rgba(255, 214, 0, 0) 60%), var(--bg-3);
  border: 1px solid rgba(255, 214, 0, .28);
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--ink-2); margin: 0 auto 20px; max-width: 520px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold-grad); color: #111; }
.btn--gold:hover { color: #111; transform: translateY(-1px); box-shadow: 0 12px 32px -12px rgba(255, 214, 0, .6); }
.btn--line { border: 1px solid var(--border-2); color: var(--ink); }
.btn--line:hover { color: var(--ink); border-color: var(--gold); }

.author { display: flex; gap: 14px; align-items: center; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: 14px; }
.author b { color: var(--ink); display: block; font-size: 15px; }
.author__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: #111; font-weight: 700; flex: none; }

/* — Хаб «Статьи» — */
.hub-h { max-width: 1180px; margin: 0 auto; padding: 56px 16px 12px; }
.hub-h p { color: var(--ink-2); max-width: 680px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.filters a { padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.filters a:hover, .filters a.on { border-color: var(--gold); color: var(--gold); }
.cards { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: rgba(255, 214, 0, .5); transform: translateY(-3px); color: inherit; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card__b { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__c { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.card__t { font: 600 20px/1.3 var(--serif); color: var(--ink); }
.card__d { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.card__date { margin-top: auto; font-size: 13px; color: var(--ink-3); }

/* — Подвал — */
.ftr { border-top: 1px solid var(--border); margin-top: 40px; }
.ftr__in { max-width: 1180px; margin: 0 auto; padding: 28px 16px 90px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; color: var(--ink-3); }
.ftr a { color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--gold); }

/* Плавающая кнопка звонка на телефоне */
.fab { display: none; }
@media (max-width: 860px) {
  .fab { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; justify-content: center; gap: 10px; }
  .fab .btn { flex: 1; justify-content: center; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8); }
  .fab .btn--line { background: rgba(16, 18, 22, .92); }
  body { font-size: 16.5px; }
  .hero { min-height: 360px; }
  .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
