/* ── Общие переменные (совпадают с лендингом) ──────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #262220;
  --navy-light:  #3a3634;
  --burgundy:    #a1403c;
  --cream:       #F1ECE2;
  --cream-dark:  #e7e0d3;
  --charcoal:    #262220;
  --gray:        #6b625a;
  --border:      #e7e0d3;
  --white:       #FFFFFF;
  --btn-dark:       #262220;
  --btn-dark-hover: #3a3634;
  --bg:          #FAF7F1;
  --ink-faint:   #8a8078;
  --line-soft:   #ddd3c1;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; }

/* ── Шапка (как на лендинге) ────────────────────────────────── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 22px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 38px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); }
.logo-sub { font-size: 11px; color: var(--gray); font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 36px; font-size: 14px; color: var(--charcoal); }
.header-nav a { color: inherit; text-decoration: none; }
.header-nav a:hover { color: var(--burgundy); }
.header-nav a.active { color: var(--burgundy); }
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-phone { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--burgundy); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--navy); }
.header-cta { padding: 11px 22px; background: var(--btn-dark); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta:hover { background: var(--btn-dark-hover); }
@media (max-width: 900px) { .header-nav { display: none; } }
@media (max-width: 640px) { .header-cta { display: none; } }

/* ── Кнопки ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--btn-dark); color: #fff; font-size: 15px; font-weight: 600;
  padding: 16px 32px; border: 2px solid var(--btn-dark); border-radius: 0; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .15s, border-color .15s;
  font-family: 'Manrope', sans-serif; letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--btn-dark-hover); border-color: var(--btn-dark-hover); }
.btn-outline {
  background: transparent; color: var(--btn-dark); font-size: 15px; font-weight: 600;
  padding: 16px 32px; border: 1px solid var(--btn-dark); border-radius: 0; cursor: pointer;
  text-decoration: none; display: inline-block; transition: background .15s, color .15s;
  font-family: 'Manrope', sans-serif;
}
.btn-outline:hover { background: var(--btn-dark); color: #fff; }

/* ── Хлебные крошки ─────────────────────────────────────────── */
.breadcrumbs {
  max-width: 760px; margin: 0 auto; padding: 24px 64px 0;
  font-size: 13px; color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--burgundy); }

/* ── Шапка статьи ───────────────────────────────────────────── */
.article-hero { padding: 20px 64px 40px; border-bottom: 1px solid var(--border); }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 18px; display: block;
}
.article-h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.2; font-weight: 300; color: var(--navy); margin-bottom: 18px; }
.article-h1 strong { font-weight: 700; }
.article-meta { font-size: 14px; color: var(--ink-faint); display: flex; gap: 16px; flex-wrap: wrap; }
.article-meta span::before { content: '·'; margin-right: 16px; color: var(--line-soft); }
.article-meta span:first-child::before { content: none; margin-right: 0; }

/* ── Тело статьи ────────────────────────────────────────────── */
.article-body { max-width: 760px; margin: 0 auto; padding: 48px 64px 24px; }
.article-body p { font-size: 17px; line-height: 1.75; color: var(--charcoal); margin-bottom: 22px; }
.article-body h2 { font-size: 26px; font-weight: 700; color: var(--navy); margin: 44px 0 18px; line-height: 1.3; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { font-size: 17px; line-height: 1.7; color: var(--charcoal); margin-bottom: 10px; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--burgundy); }

.stat-highlight {
  display: flex; gap: 28px; flex-wrap: wrap; background: var(--cream);
  padding: 28px 32px; margin: 32px 0; border-left: 3px solid var(--burgundy);
}
.stat-highlight .stat-item { display: flex; flex-direction: column; }
.stat-highlight .stat-num { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.stat-highlight .stat-label { font-size: 13px; color: var(--gray); line-height: 1.4; }

.callout {
  background: var(--cream); padding: 24px 28px; margin: 32px 0;
  border-left: 3px solid var(--navy);
}
.callout p { margin-bottom: 0; font-size: 16px; }
.callout p + p { margin-top: 14px; }
.callout strong { color: var(--navy); }

.quote-block {
  font-size: 18px; font-style: italic; color: var(--navy); line-height: 1.6;
  border-left: 3px solid var(--burgundy); padding-left: 20px; margin: 32px 0;
}

.article-cta {
  max-width: 760px; margin: 8px auto 0; padding: 0 64px 64px;
}
.article-cta-box {
  background: var(--navy); padding: 36px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.article-cta-box h3 { color: #fff; font-size: 20px; font-weight: 800; }
.article-cta-box p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; max-width: 460px; }
.article-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-white {
  background: #fff; color: var(--btn-dark); font-size: 15px; font-weight: 700; padding: 14px 28px;
  border: 2px solid #fff; border-radius: 0; cursor: pointer; text-decoration: none; display: inline-block;
  font-family: 'Manrope', sans-serif; transition: background .15s;
}
.btn-white:hover { background: var(--cream); border-color: var(--cream); }
.btn-outline-white {
  background: transparent; color: #fff; font-size: 15px; font-weight: 600; padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 0; cursor: pointer; text-decoration: none;
  display: inline-block; transition: border-color .15s; font-family: 'Manrope', sans-serif;
}
.btn-outline-white:hover { border-color: #fff; }

/* ── Похожие статьи / назад к списку ───────────────────────── */
.article-related { max-width: 760px; margin: 0 auto; padding: 0 64px 64px; }
.article-related-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-faint); margin-bottom: 18px; }
.article-related-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.article-related-list a {
  background: var(--white); padding: 16px 20px; text-decoration: none; color: var(--navy);
  font-size: 15px; font-weight: 600; display: block; transition: background .15s;
}
.article-related-list a:hover { background: var(--cream); }

/* ── Каталог статей ─────────────────────────────────────────── */
.articles-index-hero { padding: 56px 64px 32px; border-bottom: 1px solid var(--border); text-align: center; }
.articles-index-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 300; color: var(--navy); margin-bottom: 14px; }
.articles-index-hero h1 strong { font-weight: 700; }
.articles-index-hero p { font-size: 16px; color: var(--gray); max-width: 560px; margin: 0 auto; }

.articles-grid-wrap { max-width: 900px; margin: 0 auto; padding: 56px 64px 80px; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.article-card {
  background: var(--white); padding: 28px 26px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px; transition: background .15s;
}
.article-card:hover { background: var(--cream); }
.article-card-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--burgundy); }
.article-card h2 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.article-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.article-card .article-card-meta { font-size: 12px; color: var(--ink-faint); margin-top: auto; padding-top: 6px; }
@media (max-width: 768px) { .articles-grid { grid-template-columns: 1fr; } }

/* ── Футер ──────────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,0.4); font-size: 12px; text-align: center; padding: 20px 40px; line-height: 1.8; }
footer a { color: rgba(255,255,255,0.4); }

/* ── Мобильная CTA-панель ───────────────────────────────────── */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; display: none; background: #fff;
  border-top: 1px solid var(--border); padding: 10px 16px; z-index: 200; gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-cta-bar a { flex: 1; text-align: center; padding: 13px 8px; border-radius: 0; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s; }
.mcta-phone { background: var(--btn-dark); color: #fff; }
.mcta-tg { background: var(--cream); color: var(--btn-dark); border: 1.5px solid var(--cream-dark); }

/* ── Меню выбора мессенджера ────────────────────────────────── */
.write-menu-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  align-items: flex-end; justify-content: center; animation: fadeIn .2s ease;
}
.write-menu-backdrop.active { display: flex; }
.write-menu { background: #fff; width: 100%; max-width: 480px; border-radius: 0; padding: 20px 16px 24px; animation: slideUp .25s ease; }
@media (min-width: 641px) { .write-menu-backdrop { align-items: center; } .write-menu { border-radius: 0; margin: 20px; } }
.write-menu-title { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; color: var(--navy); text-align: center; margin-bottom: 16px; }
.write-menu-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 0; text-decoration: none;
  margin-bottom: 8px; color: #fff; font-family: 'Manrope', sans-serif; transition: transform .12s ease, filter .12s ease;
}
.write-menu-item:hover, .write-menu-item:active { transform: scale(0.98); filter: brightness(1.05); }
.write-menu-item b { font-size: 15px; font-weight: 700; }
.write-menu-item small { font-size: 12px; opacity: 0.85; }
.write-menu-item .wm-icon { font-size: 26px; flex-shrink: 0; }
.wm-tg { background: #229ED9; }
.wm-wa { background: #25D366; }
.wm-max { background: #1FB871; }
.write-menu-cancel {
  width: 100%; padding: 14px; background: transparent; border: 1.5px solid var(--border); border-radius: 0;
  color: var(--gray); font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; font-family: 'Manrope', sans-serif;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes slideUp { from {transform:translateY(40px)} to {transform:translateY(0)} }

/* ── Плавающие соцсети ──────────────────────────────────────── */
.floating-social { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 180; }
.floating-social a {
  width: 52px; height: 52px; border-radius: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: transform .2s ease; font-size: 24px; position: relative;
}
.floating-social a:hover { transform: scale(1.08); }
.floating-social a::after {
  content: attr(data-label); position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 0;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; font-family: 'Manrope', sans-serif;
}
.floating-social a:hover::after { opacity: 1; }
.fs-wa { background: #25D366; }
.fs-tg { background: #229ED9; }
.fs-max { background: transparent; }
.fs-max img { width: 52px; height: 52px; border-radius: 0; display: block; }
.fs-phone { background: var(--navy); }
.floating-social a svg { width: 26px; height: 26px; fill: #fff; }
@media (max-width: 640px) { .floating-social { display: none; } }

@media (max-width: 640px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 68px; }
  header { padding: 12px 20px; }
  .breadcrumbs, .article-hero, .article-body, .article-cta, .article-related,
  .articles-index-hero, .articles-grid-wrap { padding-left: 20px; padding-right: 20px; }
}
