/* ============================================================
   Статьи блога — общий слой (2026-08-13)

   Раньше каждая из 32 статей несла собственный <style> на 7–11 КБ. Они
   писались по одной и разошлись: h1 то 26px, то 28, часть блоков
   минифицирована, часть нет. Отсюда и ощущение, что у каждой статьи свой
   дизайн.

   Здесь сведён канонический набор: для каждого селектора взят вариант,
   который встречался чаще. Мёртвые правила (кнопка Telegram-бота, старые
   карточки «читайте также») не перенесены.

   Файл собирается tools/blog_style_unify.py — правки вносите там или прямо
   здесь, но не возвращайте <style> обратно в статьи.
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display:block;
  padding:0;
}
.wrap {
  margin-left:auto;
  margin-right:auto;
  padding-left:20px;
  padding-right:20px;
}
.breadcrumbs {
  font-size: 12px;
  color: #6B6B6B;
  margin: 18px 0 14px;
  line-height: 1.5;
}
.breadcrumbs a {
  color: #6B6B6B;
  text-decoration: none;
  border: none;
}
.breadcrumbs a:hover {
  color: #C75B39;
}
.breadcrumbs .sep {
  color: #6B6B6B;
  margin: 0 4px;
}
.breadcrumbs .current {
  color: #4A4A4A;
}
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #C75B39;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
h1 {
  font-size: 28px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: #2D2D2D;
  line-height: 1.3;
  margin: 8px 0 14px;
}
.article-meta {
  font-size: 12px;
  color: #6B6B6B;
  margin-bottom: 24px;
}
.article-intro {
  font-size: 16px;
  color: #4A4A4A;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #EFE7DA;
}
h2 {
  font-size: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: #2D2D2D;
  margin: 32px 0 12px;
  line-height: 1.3;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: #C75B39;
  margin: 22px 0 8px;
}
p {
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.75;
  margin-bottom: 14px;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.75;
  margin-bottom: 6px;
}
li strong, p strong {
  color: #2D2D2D;
  font-weight: 600;
}
.info-box {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-left: 3px solid #C75B39;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.6;
}
.info-box strong {
  color: #2D2D2D;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}
.compare-box {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 11px;
  padding: 14px 16px;
}
.compare-box-title {
  font-size: 14px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 8px;
}
.compare-box ul {
  padding-left: 16px;
  margin: 0;
}
.compare-box li {
  font-size: 13px;
  color: #6B6B6B;
  margin-bottom: 4px;
}
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}
.cost-table th {
  text-align: left;
  padding: 10px 12px;
  background: #F5F0EB;
  color: #6B6B6B;
  font-weight: 600;
  border-bottom: 1px solid #E8DFD1;
}
.cost-table td {
  padding: 10px 12px;
  color: #4A4A4A;
  border-bottom: 1px solid #F5F0EB;
  vertical-align: top;
}
.cost-table td:first-child {
  color: #2D2D2D;
  font-weight: 500;
}
.cost-table tr:last-child td {
  border-bottom: none;
}
.divider {
  width: 100%;
  height: 1px;
  background: #EFE7DA;
  margin: 32px 0;
}
.cta-block {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 11px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #2D2D2D;
}
.cta-sub {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.6;
  margin-top: -6px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 11px;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover {
  transform: translateX(3px);
}
.btn-wa {
  background: #C75B39;
  border-color: #C75B39;
  color: #FFFBF7;
}
.btn-wa:hover {
  background: #B04E2F;
}
.btn-ig {
  background: #F5F0EB;
  border-color: #E8DFD1;
  color: #2D2D2D;
}
.btn-ig:hover {
  background: #EFE7DA;
}
.btn-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.btn-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.btn-title {
  font-size: 14px;
  font-weight: 700;
}
.btn-sub-text {
  font-size: 12px;
  opacity: 0.7;
}
.faq-item {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #2D2D2D;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #C75B39;
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover {
  color: #C75B39;
}
.faq-a {
  padding: 0 16px 14px;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.7;
}
.compare-table {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.compare-table th {
  background: #F5F0EB;
  color: #C75B39;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #E8DFD1;
}
.compare-table td {
  padding: 10px 14px;
  border: 1px solid #E8DFD1;
  color: #4A4A4A;
  line-height: 1.55;
  vertical-align: top;
}
.compare-table tr:nth-child(even) td {
  background: #F5F0EB;
}
.compare-table td strong {
  color: #2D2D2D;
}
.bank-card {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 11px;
  padding: 16px 18px;
  margin: 12px 0;
}
.bank-name {
  font-size: 16px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 6px;
}
.bank-verdict {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.verdict-good {
  background: rgba(34,197,94,0.15);
  color: #15803D;
}
.verdict-ok {
  background: rgba(199, 91, 57,0.15);
  color: #C75B39;
}
.verdict-bad {
  background: rgba(239,68,68,0.15);
  color: #B91C1C;
}
.compare-row {
  display: grid;
  /* minmax(0, 1fr), а не 1fr: обычный 1fr не сжимается уже своего min-content,
     и строка «Sociedad de gananciales (по умолчанию)» выталкивала таблицу
     за экран на 9px при ширине 360. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 0;
  border-bottom: 1px dashed #E8DFD1;
  font-size: 14px;
  gap: 12px;
}
.compare-row:first-child {
  font-weight: 700;
  color: #2D2D2D;
}
.compare-row:last-child {
  border-bottom: none;
}
.compare-cell {
  color: #4A4A4A;
}
.compare-cell.highlight {
  color: #C75B39;
  font-weight: 600;
}
.price-table {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #E8DFD1;
  font-size: 14px;
}
.price-row:last-child {
  border-bottom: none;
}
.price-label {
  color: #4A4A4A;
}
.price-value {
  color: #2D2D2D;
  font-weight: 600;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
.comparison-table th, .comparison-table td {
  padding: 10px 8px;
  border: 1px solid #E8DFD1;
  text-align: left;
}
.comparison-table th {
  background: #F5F0EB;
  color: #C75B39;
  font-weight: 700;
}
.comparison-table td {
  color: #4A4A4A;
}
.comparison-table tr:hover {
  background: #F5F0EB;
}
.cmp-yes, .cmp-no {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.cmp-yes {
  color: #15803D;
}
.cmp-no {
  color: #B91C1C;
}
ul,ol {
  padding-left:20px;
  margin-bottom:16px;
}
li strong,p strong {
  color:#2D2D2D;
  font-weight:600;
}
.warning-box {
  background:rgba(239,68,68,0.07);
  border:1px solid rgba(239,68,68,0.2);
  border-left:3px solid #ef4444;
  border-radius:8px;
  padding:14px 16px;
  margin:20px 0;
  font-size:14px;
  color:#4A4A4A;
  line-height:1.6;
}
.warning-box strong {
  color:#B91C1C;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0 24px;
  position: relative;
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F0EB;
  border: 2px solid #C75B39;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #C75B39;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.timeline-content {
  flex: 1;
}
.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.6;
}
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}
.right-item {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #4A4A4A;
  line-height: 1.5;
}
.right-item strong {
  display: block;
  font-size: 12px;
  color: #C75B39;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .compare-grid { grid-template-columns: 1fr; }
  .rights-grid { grid-template-columns: 1fr; }
}

@media (max-width:719px) {
  body { padding:0 16px 0; }
  h1 { font-size:22px; line-height:1.25; margin-bottom:10px; }
  h2 { font-size:18px; margin:28px 0 12px; }
  h3 { font-size:14.5px; margin:18px 0 6px; }
  p { font-size:14px; line-height:1.65; margin-bottom:11px; }
  li { font-size:14px; line-height:1.6; }
  .article-intro { font-size:14.5px; line-height:1.6; margin-bottom:22px; padding-bottom:16px; }
  .article-meta { font-size:11.5px; margin-bottom:18px; }
  .tag { font-size:10.5px; margin-bottom:10px; }
  .cta-block { padding:16px 14px; }
  .cta-title { font-size:16px; }
  .cta-sub { font-size:13px; line-height:1.5; }
  .btn { padding:12px 14px; font-size:13.5px; gap:8px; }
  .btn-title { font-size:13px; }
  .btn-icon svg { width:18px; height:18px; }
  .faq-item summary { padding:11px 13px; font-size:13.5px; }
  .faq-a { padding:0 13px 11px; font-size:13px; line-height:1.6; }
  .article-card { padding:13px 14px; }
  .article-card .article-title { font-size:14px; }
  .article-card .article-desc { font-size:12.5px; line-height:1.5; }
  .cost-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:14px -16px 18px; padding:0 16px; }
  .cost-table { font-size:13px; min-width:480px; }
  .cost-table th,.cost-table td { padding:8px 10px; font-size:12.5px; }
  .wrap { padding-left:16px; padding-right:16px; }
}

/* ── Таблицы: один вид на все статьи ──
   Их писали по-разному от статьи к статье: .cost-table 14px с нижними
   линиями, .comparison-table 13px в рамку, .compare-table своя коробка.
   Читатель, идущий по блогу подряд, видел три разные таблицы. Ниже — общий
   вид; частные правила выше остаются, но перекрываются этим блоком. */
.article-body table,
.cost-table,
.comparison-table,
.price-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
  line-height: 1.5;
}
.article-body th,
.cost-table th,
.comparison-table th {
  text-align: left;
  padding: 10px 12px;
  background: #F5F0EB;
  color: #6B6B6B;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #E8DFD1;
}
.article-body td,
.cost-table td,
.comparison-table td {
  padding: 10px 12px;
  color: #4A4A4A;
  border-bottom: 1px solid #EFE7DA;
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body td strong { color: #2D2D2D; }

/* Таблица шире колонки прокручивается внутри обёртки: у самой таблицы
   display оставляем табличным, иначе колонки перестают выравниваться. */
.table-wrap,
.cost-table-wrap {
  overflow-x: auto;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  margin: 18px 0 22px;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table,
.cost-table-wrap table { margin: 0; min-width: 460px; }

/* Аккордеон вопросов — тот же контур, что у остальных блоков статьи. */
.faq-item {
  background: #F5F0EB;
  border: 1px solid #E8DFD1;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

/* Подпись под названием строки в таблице — была инлайновым font-size. */
.table-note { font-size: 12.5px; color: #6B6B6B; }


/* Блок сравнения на телефоне: три колонки по 100 пикселей нечитаемы —
   разворачиваем в строки, первая ячейка становится подписью. */
.compare-cell { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .compare-row:first-child { display: none; }
  .compare-cell:first-child { font-weight: 700; color: #2D2D2D; }
}
