/* ============================================================
   КОИНРУС · Раздел «Статьи»
   Общие стили. Наследуют дизайн-систему сайта zolotoy-georgiy.ru:
   тёмная тема + золото, Playfair Display + Montserrat.
   ============================================================ */
:root {
  --gold-primary: #D4AF37;
  --gold-light: #F4E4BA;
  --gold-dark: #8B7355;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #D4AF37 100%);
  --dark-bg: #0D0D0D;
  --dark-secondary: #1A1A1A;
  --dark-card: #141414;
  --text-light: #FFFFFF;
  --text-muted: #A0A0A0;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.3; }
a { color: var(--gold-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
::selection { background: rgba(212, 175, 55, 0.35); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 999px; }

/* ── HEADER ─────────────────────────────────────────────── */
header#header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 15px 50px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transition);
}
header#header.scrolled { padding: 10px 50px; background: rgba(13, 13, 13, 0.98); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 50px; width: auto; object-fit: contain; }
nav { display: flex; gap: 25px; flex-wrap: nowrap; }
nav a {
  color: var(--text-light); text-decoration: none;
  font-weight: 500; font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px; position: relative; padding: 5px 0;
  white-space: nowrap;
  transition: var(--transition);
}
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold-primary); transition: var(--transition); }
nav a:hover { color: var(--gold-primary); }
nav a:hover::after { width: 100%; }
nav a.is-active { color: var(--gold-primary); }
nav a.is-active::after { width: 100%; }
.header-contact { display: flex; align-items: center; gap: 15px; flex-wrap: nowrap; white-space: nowrap; }
.header-phone { color: var(--gold-primary); text-decoration: none; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.header-phone:hover { color: var(--gold-light); }
.btn-telegram {
  background: var(--gold-gradient); color: var(--dark-bg);
  padding: 12px 25px; border-radius: 30px; text-decoration: none;
  font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 8px; transition: var(--transition);
}
.btn-telegram:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3); color: var(--dark-bg); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; padding: 6px; }
.mobile-menu-btn span { width: 25px; height: 3px; background: var(--gold-primary); border-radius: 2px; transition: var(--transition); }

/* === Единый адаптив шапки/меню (как на главной странице index.html) === */
#header { flex-wrap: nowrap; }
@media (max-width: 1300px) {
  .btn-telegram { display: none; }
}
@media (max-width: 1250px) {
  header#header { padding: 10px 25px; }
  header#header.scrolled { padding: 8px 25px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; letter-spacing: 0; }
  .header-phone { font-size: 13px; }
  .logo-img { height: 40px; }
}
@media (max-width: 1100px) {
  nav { gap: 10px; }
  nav a { font-size: 11px; }
  .header-phone { font-size: 12px; }
  .logo-img { height: 36px; }
}
@media (max-width: 992px) {
  header#header { padding: 12px 25px; }
  nav { display: none; }
  .header-contact { display: none; }
  .mobile-menu-btn { display: flex; }
  nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    /* сплошной (не rgba) фон: под backdrop-filter шапки полупрозрачный rgba(...,0.98)
       рендерится с эффектом "просвечивания" текста страницы сквозь панель меню */
    background: var(--dark-bg, #0D0D0D); padding: 18px 24px 22px; gap: 4px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
  }
  nav.open a { padding: 12px 0; font-size: 13px; white-space: normal; }
}
/* === /Единый адаптив шапки/меню === */

/* ── СТРАНИЦА СТАТЬИ ────────────────────────────────────── */
.page-head { max-width: 860px; margin: 0 auto; padding: 150px 24px 30px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-primary); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-primary); }
.page-head h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 600; line-height: 1.18;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead {
  font-size: 17px; line-height: 1.75; color: var(--text-muted);
  border-left: 4px solid var(--gold-primary); padding-left: 20px;
  margin-bottom: 22px;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding: 14px 0; border-top: 2px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  letter-spacing: .03em;
}
.breadcrumbs { max-width: 860px; margin: 0 auto; padding: 0 24px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--gold-primary); }
.breadcrumbs span { color: var(--text-muted); }

.fig { max-width: 860px; margin: 26px auto 40px; padding: 0 24px; }
.fig img {
  display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  background: var(--dark-card);
}
.fig figcaption { font-size: 13px; color: var(--text-muted); margin-top: 10px; font-style: italic; text-align: center; }

.body { max-width: 860px; margin: 0 auto; padding: 0 24px 40px; font-size: 16px; line-height: 1.9; }
.body p { margin-bottom: 22px; }
.body h2 {
  font-size: 24px; margin: 44px 0 18px; padding-left: 16px;
  border-left: 4px solid var(--gold-primary);
  color: var(--text-light);
}
.body h3 { font-size: 18px; margin: 30px 0 12px; color: var(--gold-light); }
.body ul, .body ol { margin: 0 0 22px 22px; }
.body li { margin-bottom: 8px; }
.body li::marker { color: var(--gold-primary); }
.body strong { color: var(--gold-light); font-weight: 600; }
.body blockquote {
  margin: 26px 0; padding: 18px 22px;
  border-left: 4px solid var(--gold-primary);
  background: var(--dark-card); border-radius: 0 14px 14px 0;
  color: var(--text-muted); font-style: italic;
}

/* Оглавление */
.toc {
  margin: 26px 0 30px; padding: 20px 24px;
  background: var(--dark-card); border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
}
.toc-title { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--gold-primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.toc ol { margin: 0 0 0 20px; }
.toc li { margin-bottom: 6px; font-size: 14.5px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--gold-light); }

/* Таблицы */
.table-wrap { overflow-x: auto; margin: 24px 0 28px; border-radius: 16px; border: 1px solid rgba(212, 175, 55, 0.15); background: var(--dark-card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th {
  text-align: left; background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light); padding: 12px 16px;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 2px solid rgba(212, 175, 55, 0.25);
}
td { padding: 12px 16px; border-bottom: 1px solid rgba(212, 175, 55, 0.08); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }

/* Чек-лист */
.checklist { list-style: none; margin: 0 0 24px !important; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold-primary);
  color: var(--gold-primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* CTA-блок */
.cta {
  margin: 36px 0 20px; padding: 28px 30px;
  background: linear-gradient(135deg, #1A1A1A 0%, #141414 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
}
.cta-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold-light); margin-bottom: 10px; }
.cta p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 18px; max-width: 560px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 30px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: var(--transition);
}
.btn-gold { background: var(--gold-gradient); color: var(--dark-bg); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3); color: var(--dark-bg); }
.btn-ghost { border: 1px solid rgba(212, 175, 55, 0.45); color: var(--gold-primary); }
.btn-ghost:hover { background: rgba(212, 175, 55, 0.08); color: var(--gold-light); }

/* FAQ */
.faq { margin: 24px 0 30px; }
.faq-item {
  margin-bottom: 12px; border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 14px; background: var(--dark-card); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 46px 16px 20px;
  font-weight: 600; font-size: 15.5px; color: var(--text-light);
  position: relative; transition: var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gold-primary); color: var(--gold-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; transition: var(--transition);
}
.faq-item[open] summary { color: var(--gold-light); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: rgba(212, 175, 55, 0.12); }
.faq-item .faq-a { padding: 0 20px 18px; font-size: 14.5px; color: var(--text-muted); }

/* ── ЧИТАЙТЕ ТАКЖЕ ──────────────────────────────────────── */
.also-section { background: var(--dark-secondary); border-top: 1px solid rgba(212, 175, 55, 0.1); padding: 60px 50px; }
.also-wrap { max-width: 1400px; margin: 0 auto; }
.also-title {
  font-size: 26px; margin-bottom: 28px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.also-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 20px;
  background: var(--dark-card); border: 1px solid rgba(212, 175, 55, 0.15);
  text-decoration: none; color: inherit; transition: var(--transition);
}
.also-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); }
.also-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.1); background: var(--dark-bg); }
.also-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.also-date { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.also-card h3 { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text-light); }
.also-go { font-size: 13px; font-weight: 600; color: var(--gold-primary); margin-top: auto; }
.also-card:hover .also-go { color: var(--gold-light); }

/* ── КАТАЛОГ СТАТЕЙ (index) ─────────────────────────────── */
.articles-hero { max-width: 860px; margin: 0 auto; padding: 150px 24px 36px; text-align: left; }
.articles-grid { max-width: 1400px; margin: 0 auto; padding: 0 50px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.article-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 20px;
  background: var(--dark-card); border: 1px solid rgba(212, 175, 55, 0.15);
  text-decoration: none; color: inherit; transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); }
.article-card .card-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.1); }
.article-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-cat { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-primary); }
.article-card h3 { font-size: 18px; line-height: 1.35; color: var(--text-light); }
.article-card p { font-size: 14px; color: var(--text-muted); }
.article-card .card-go { font-size: 13px; font-weight: 600; color: var(--gold-primary); margin-top: auto; }
.article-card:hover .card-go { color: var(--gold-light); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--dark-secondary); border-top: 1px solid rgba(212, 175, 55, 0.1); padding: 60px 50px 30px; }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }
.footer-column h4 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: var(--text-light); margin-bottom: 16px; }
.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-column a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-column a:hover { color: var(--gold-primary); }
.footer-disclaimer { max-width: 1400px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid rgba(212, 175, 55, 0.08); text-align: center; font-size: 12.5px; color: var(--text-muted); }

/* ── Анимации ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .also-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .also-section { padding: 40px 30px; }
  .articles-grid { padding: 0 30px 50px; }
}
@media (max-width: 640px) {
  .page-head { padding: 120px 16px 26px; }
  .articles-hero { padding: 120px 16px 30px; }
  .body { padding: 0 16px 30px; font-size: 15px; }
  .fig { padding: 0 16px; }
  .also-section { padding: 30px 20px; }
  .articles-grid { padding: 0 20px 40px; grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 40px 20px 20px; }
  .cta { padding: 22px 20px; }
}

/* Цены из модуля price/price.js */
.price-set{color:var(--gold-primary);font-weight:600;white-space:nowrap;}
.price-empty{color:var(--text-muted);font-style:italic;}
.prices-date{font-size:12px;color:var(--text-muted);}


/* ===== Пагинация статей ===== */
.pagination{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin:34px auto 0; flex-wrap:wrap;
}
.pagination a, .pagination .pag-current{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:44px; height:44px; padding:0 14px;
  border:1px solid rgba(212,175,55,.35); border-radius:8px;
  color:var(--gold-light); text-decoration:none; font-size:14px; font-weight:600;
  transition:all .25s ease;
}
.pagination a:hover{
  border-color:var(--gold-primary); background:rgba(212,175,55,.12);
  transform:translateY(-2px);
}
.pagination .pag-current{
  background:var(--gold-primary); color:#0D0D0D; border-color:var(--gold-primary);
  cursor:default;
}
.pagination .pag-arrow{ min-width:auto; }


/* ===== HUB SELLING BLOCKS ===== */
.articles-hero .breadcrumbs{ margin-bottom:16px; }
.articles-hero .breadcrumbs a{ color:var(--gold-primary); text-decoration:none; }
.articles-hero .breadcrumbs a:hover{ color:var(--gold-light); }
.articles-hero .breadcrumbs span{ color:var(--text-muted); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; align-items:center; }
.hero-actions .btn{ padding:14px 26px; font-size:14px; }
.hero-phone{ color:var(--gold-light); text-decoration:none; font-weight:600; font-size:15px; margin-left:6px; }
.hero-phone:hover{ color:var(--gold-primary); }
.hero-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.hero-badge{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid rgba(212,175,55,.4); border-radius:20px;
  padding:5px 12px; font-size:11.5px; font-weight:600; color:var(--gold-light);
  white-space:nowrap;
}
@media (min-width: 920px){
  .hero-badges{ flex-wrap:nowrap; }
  .hero-badge{ padding:5px 11px; }
}
.hero-badge::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold-primary); }
.hub-popular{ max-width:1200px; margin:40px auto 0; padding:0 30px; }
.hub-popular-title{
  font-family:var(--font-display); font-size:22px; color:var(--gold-primary);
  margin-bottom:18px; display:flex; align-items:center; gap:10px;
}
.hub-popular-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.hub-popular-grid a{
  display:flex; align-items:center; gap:12px;
  background:var(--dark-card); border:1px solid rgba(212,175,55,.18); border-radius:10px;
  padding:14px 16px; color:var(--text-main); text-decoration:none; font-size:14px;
  transition:all .25s ease;
}
.hub-popular-grid a::before{ content:"\2192"; color:var(--gold-primary); font-weight:700; flex:none; }
.hub-popular-grid a:hover{ border-color:var(--gold-primary); transform:translateX(4px); color:var(--gold-light); }
.hub-cta{
  max-width:1200px; margin:30px auto 0; padding:24px 30px;
  background:linear-gradient(135deg, rgba(212,175,55,.14) 0%, rgba(212,175,55,.05) 100%);
  border:1px solid rgba(212,175,55,.35); border-radius:14px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px;
}
.hub-cta-text{ flex:1 1 420px; font-size:15px; line-height:1.6; }
.hub-cta-text strong{ color:var(--gold-light); font-size:16px; }
.hub-cta-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hub-cta-actions .btn{ padding:13px 24px; font-size:14px; white-space:nowrap; }
.hub-seo{
  max-width:860px; margin:34px auto 0; padding:0 30px;
  font-size:13.5px; color:var(--text-muted); line-height:1.75;
}
.hub-seo p{ margin-bottom:10px; }
.hub-seo a{ color:var(--gold-primary); text-decoration:none; border-bottom:1px dashed rgba(212,175,55,.5); }
.hub-seo a:hover{ color:var(--gold-light); }


/* ===== CONTACT MODAL ===== */
        .contact-modal-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }
        .contact-modal-overlay.active {
            display: flex;
        }
        .contact-modal {
            background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
            border: 1px solid rgba(212,175,55,0.3);
            border-radius: 20px;
            padding: 40px 35px 30px;
            max-width: 520px;
            width: 90%;
            position: relative;
            box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.1);
            animation: modalSlideIn 0.4s cubic-bezier(0.4,0,0.2,1);
        }
        @keyframes modalSlideIn {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .contact-modal-close {
            position: absolute;
            top: 14px; right: 18px;
            background: none;
            border: none;
            color: #888;
            font-size: 24px;
            cursor: pointer;
            transition: color 0.3s;
            width: 36px; height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
        .contact-modal-close:hover {
            color: #D4AF37;
            background: rgba(212,175,55,0.1);
        }
        .contact-modal-title {
            text-align: center;
            font-family: 'Playfair Display', serif;
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 6px;
            background: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .contact-modal-subtitle {
            text-align: center;
            color: #999;
            font-size: 13px;
            margin-bottom: 28px;
        }
        .contact-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            margin-bottom: 20px;
        }
        .contact-option {
            background: #141414;
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px;
            padding: 20px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }
        .contact-option:hover {
            border-color: rgba(212,175,55,0.4);
            background: #1c1c1c;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212,175,55,0.08);
        }
        .contact-option-icon {
            width: 48px; height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }
        .contact-option-icon.tg  { background: rgba(0,136,204,0.15);  color: #2AABEE; }
        .contact-option-icon.max { background: rgba(139,63,242,0.15); color: #8B3FF2; }
        .contact-option-icon.form{ background: rgba(212,175,55,0.12); color: #D4AF37; }
        .contact-option-label {
            font-size: 14px;
            font-weight: 600;
        }
        .contact-option-desc {
            font-size: 11px;
            color: #777;
            margin-top: -2px;
        }

        /* Form area */
        .contact-form-wrap {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .contact-form-wrap.active {
            display: block;
        }
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .contact-form-field {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .contact-form-field label {
            font-size: 12px;
            color: #999;
            font-weight: 500;
        }
        .contact-form-field input,
        .contact-form-field textarea {
            background: #0d0d0d;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 12px 15px;
            color: #fff;
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            transition: border 0.3s;
            outline: none;
        }
        .contact-form-field input:focus,
        .contact-form-field textarea:focus {
            border-color: rgba(212,175,55,0.5);
            box-shadow: 0 0 0 3px rgba(212,175,55,0.05);
        }
        .contact-form-field textarea {
            resize: vertical;
            min-height: 80px;
        }
        .contact-submit {
            background: linear-gradient(135deg, #D4AF37 0%, #F4E4BA 50%, #D4AF37 100%);
            color: #0D0D0D;
            border: none;
            border-radius: 50px;
            padding: 14px 30px;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
        }
        /* Consent checkbox */
        .consent-checkbox-wrap {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 4px 0;
            padding: 10px 12px;
            background: rgba(212,175,55,0.05);
            border: 1px solid rgba(212,175,55,0.15);
            border-radius: 10px;
            font-size: 12px;
            color: #aaa;
            line-height: 1.5;
            cursor: pointer;
            transition: border-color 0.3s;
        }
        .consent-checkbox-wrap:hover {
            border-color: rgba(212,175,55,0.3);
        }
        .consent-checkbox-wrap input[type="checkbox"] {
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            margin-top: 1px;
            accent-color: #D4AF37;
            cursor: pointer;
            border: 1px solid rgba(212,175,55,0.4);
            border-radius: 4px;
            background: #0d0d0d;
        }
        .consent-checkbox-wrap a {
            color: #D4AF37;
            text-decoration: underline;
        }
        .consent-checkbox-wrap a:hover {
            color: #F4E4BA;
        }
        .contact-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212,175,55,0.25);
        }
        .contact-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        .contact-form-success {
            display: none;
            text-align: center;
            padding: 20px;
        }
        .contact-form-success.active {
            display: block;
            animation: fadeIn 0.4s ease;
        }
        .contact-form-success .success-icon {
            font-size: 48px;
            color: #4CAF50;
            margin-bottom: 15px;
        }
        .contact-form-success .success-text {
            font-size: 16px;
            color: #ccc;
            line-height: 1.6;
        }
        .contact-form-error {
            display: none;
            color: #ff6b6b;
            font-size: 13px;
            text-align: center;
            padding: 8px 0;
        }
        .contact-form-error.active {
            display: block;
        }
        .contact-back-btn {
            background: none;
            border: none;
            color: #888;
            font-size: 13px;
            cursor: pointer;
            margin-bottom: 16px;
            padding: 0;
            transition: color 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .contact-back-btn:hover { color: #D4AF37; }

        /* --- Contact modal phone row (aligned icon + text) --- */
        .contact-modal-phone {
            display: flex; align-items: center; gap: 14px;
            width: 100%; text-align: left;
            background: rgba(212,175,55,0.08);
            border: 1px solid rgba(212,175,55,0.25);
            border-radius: 14px;
            padding: 14px 18px;
            margin: 18px 0 20px;
            text-decoration: none;
            transition: background 0.2s ease, border-color 0.2s ease;
        }
        .contact-modal-phone:hover { background: rgba(212,175,55,0.16); border-color: rgba(212,175,55,0.45); }
        .contact-modal-phone-icon {
            width: 48px; height: 48px; flex: 0 0 48px;
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            background: rgba(212,175,55,0.15); color: #D4AF37; font-size: 22px;
        }
        .contact-modal-phone-info {
            display: flex; flex-direction: column; justify-content: center;
            gap: 2px; min-width: 0;
        }
        .contact-modal-phone-label {
            font-size: 12px; color: #A0A0A0;
            text-transform: uppercase; letter-spacing: 0.5px;
        }
        .contact-modal-phone-number {
            font-size: 18px; font-weight: 700; color: #fff;
            white-space: nowrap; line-height: 1.2;
        }

/* --- Articles filter bar (hub) --- */
.articles-filter { max-width: 1200px; margin: 26px auto 6px; padding: 0 24px; }
.af-inner {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--dark-card, #161b22);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 16px; padding: 14px 16px;
}
.af-search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 260px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 10px; padding: 10px 14px;
}
.af-search i { color: #D4AF37; font-size: 14px; }
.af-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; font-size: 14px; font-family: inherit;
}
.af-search input::placeholder { color: #8b949e; }
.af-inner select {
  flex: 0 1 240px; background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.22); border-radius: 10px;
  color: #fff; font-size: 14px; padding: 10px 12px; font-family: inherit;
  cursor: pointer;
}
.af-inner select option { background: #161b22; color: #fff; }
.af-count { font-size: 13px; color: #8b949e; white-space: nowrap; }
.article-card.is-hidden { display: none; }
.af-empty {
  max-width: 1200px; margin: 10px auto; padding: 24px; text-align: center;
  color: #8b949e; font-size: 15px; display: none;
}

/* --- Unified article content width (CTA / FAQ / bare h2) --- */
article > .cta, article > h2, article > .faq {
  max-width: 860px; margin-left: auto; margin-right: auto;
}
article > h2 {
  padding-left: 24px; padding-right: 24px;
}
/* --- Legal fine print (unobtrusive) --- */
article > p.legal-note, .body p.legal-note {
  max-width: 860px; margin-left: auto; margin-right: auto;
  font-size: 12px; line-height: 1.5;
  color: #7d8590;
  background: transparent;
  border: none;
  border-left: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: 0;
  padding: 4px 0 4px 16px;
  margin-top: 18px; margin-bottom: 26px;
}
article > p.legal-note { padding-left: 24px; }
.body p.legal-note { padding-left: 16px; }
article > p.legal-note em, .body p.legal-note em {
  color: inherit; font-style: normal;
}
article > p.legal-note::before {
  content: none;
}

    /* --- Quick tags / show-all / pagination --- */
    .af-tags { max-width: 1200px; margin: 8px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
    .af-tags .tag {
      background: rgba(212,175,55,0.07); color: var(--gold-light, #F4E4BA);
      border: 1px solid rgba(212,175,55,0.25); border-radius: 18px;
      padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit;
      transition: background 0.2s, border-color 0.2s;
    }
    .af-tags .tag:hover { background: rgba(212,175,55,0.18); border-color: rgba(212,175,55,0.5); }
    .af-tags .tag.active {
      background: #D4AF37; color: #141414; font-weight: 600; border-color: #D4AF37;
    }

    .af-showall {
      background: linear-gradient(135deg, #D4AF37, #b8952e); color: #141414;
      border: none; border-radius: 10px; padding: 10px 18px;
      font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
      white-space: nowrap;
    }
    .af-showall:hover { filter: brightness(1.1); }
    .af-pages { max-width: 1200px; margin: 14px auto 0; padding: 0 24px;
      display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
    .af-pages button {
      min-width: 34px; padding: 7px 10px; border-radius: 8px;
      background: #161b22; border: 1px solid #30363d; color: #e1e4e8;
      font-size: 13px; cursor: pointer; font-family: inherit;
    }
    .af-pages button:hover { border-color: rgba(212,175,55,0.5); }
    .af-pages button.active { background: #D4AF37; color: #141414; font-weight: 700; border-color: #D4AF37; }
    .af-pages span { color: #8b949e; padding: 7px 4px; }

    /* --- Sections tiles (variant A) + chips + price --- */
    .af-sections { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .af-sections .sec {
      display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
      background: rgba(212,175,55,0.06); border: 1px solid rgba(212,175,55,0.22);
      border-radius: 12px; padding: 12px 14px; cursor: pointer;
      color: var(--text, #e1e4e8); font-family: inherit; text-align: left;
      transition: background 0.2s, border-color 0.2s;
    }
    .af-sections .sec:hover { background: rgba(212,175,55,0.14); border-color: rgba(212,175,55,0.5); }
    .af-sections .sec.active { background: rgba(212,175,55,0.18); border-color: #D4AF37; }
    .af-sections .sec i { color: #D4AF37; font-size: 18px; }
    .af-sections .sec span { font-size: 13px; font-weight: 600; line-height: 1.25; }
    .af-sections .sec b { font-size: 11px; color: #8b949e; font-weight: 500; }
    .af-chips { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .af-chips .chips-label { font-size: 12px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.4px; }
    .af-chips .chip {
      background: rgba(212,175,55,0.07); border: 1px solid rgba(212,175,55,0.25);
      border-radius: 18px; padding: 6px 13px; font-size: 12.5px; color: var(--text, #e1e4e8);
      cursor: pointer; font-family: inherit; transition: background 0.2s;
    }
    .af-chips .chip:hover { background: rgba(212,175,55,0.16); }
    .af-chips .chip.active { background: #D4AF37; color: #141414; font-weight: 600; border-color: #D4AF37; }
    .af-chips .chip i { font-style: normal; opacity: 0.55; font-size: 11px; }
    .card-price {
      position: absolute; left: 10px; right: 10px; bottom: 10px;
      display: flex; gap: 6px; justify-content: center;
      font-size: 11.5px; font-weight: 700; line-height: 1;
    }
    .card-price span {
      background: rgba(13,13,13,0.82); border: 1px solid rgba(212,175,55,0.45);
      color: #F4E4BA; border-radius: 8px; padding: 5px 9px; white-space: nowrap;
      backdrop-filter: blur(3px);
    }
    .card-price .sell b { color: #D4AF37; }
    .card-price .buy b { color: #b8c4d4; font-weight: 600; }
    .card-price .order { color: #A0A0A0; font-weight: 600; border-color: #30363d; }

    /* --- Show-more under grid --- */
    .af-more-wrap { text-align: center; margin: 30px auto 10px; }
    .af-more-wrap .af-showall { padding: 13px 34px; font-size: 15px; }

/* === Блок «быстрый ответ» и мягкий CTA (страницы монет) === */
.quick-answer{max-width:860px;margin:16px auto 0;padding:14px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;justify-content:space-between;background:rgba(212,175,55,.06);border:1px solid rgba(212,175,55,.28);border-left:3px solid #D4AF37;border-radius:12px;font-size:.95rem;line-height:1.6;color:#A0A0A0;box-sizing:border-box}
.quick-answer b{color:#F4E4BA;font-weight:600}
.quick-answer .qa-link{color:#D4AF37;font-weight:600;white-space:nowrap;cursor:pointer;text-decoration:none}
.quick-answer .qa-link:hover{color:#F4E4BA}
@media(max-width:640px){.quick-answer{font-size:.9rem;padding:12px 18px}}
.cta.cta-soft{max-width:860px;margin:34px auto 22px;padding:22px 26px}
.cta.cta-soft .cta-title{font-size:18px;margin-bottom:6px}
.cta.cta-soft p{font-size:.95rem;margin:0 0 14px;color:#A0A0A0}
@media(max-width:640px){.cta.cta-soft{padding:18px 18px}}
