/* =========================================================
   Components — Налоги ИП 2026
   Depends on tokens.css
   ========================================================= */

*,*::before,*::after{ box-sizing: border-box; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: inherit; font-size: var(--fs-base); font-weight: 500;
  letter-spacing: -.005em; cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.btn.primary, .btn--primary{
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary-600);
  box-shadow: 0 1px 0 rgba(0,0,0,.04) inset, 0 1px 2px rgba(15,92,74,.3);
}
.btn.primary:hover, .btn--primary:hover{ background: var(--color-primary-600); }
.btn.ghost, .btn--ghost{ background: transparent; color: var(--color-text-2); border-color: var(--color-line); }
.btn.ghost:hover, .btn--ghost:hover{ background: var(--color-surface-2); }
.btn.sm, .btn--sm{ height: 34px; padding: 0 12px; font-size: var(--fs-sm); border-radius: 8px; }
.btn.btn-success{ background: var(--color-success); color: #fff; border-color: #12652f; }
.btn[disabled], .btn[aria-disabled="true"]{ opacity: .4; pointer-events: none; }

/* ---------- Card ---------- */
.card{
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

/* ---------- Form fields ---------- */
.field{ padding: 14px 0; border-top: 1px solid var(--color-line-2); }
.field:first-child{ border-top: 0; }
.field-row{ display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.field label{ font-size: 13px; color: var(--color-text-2); font-weight: 500; }
.field .hint{ font-size: 11px; color: var(--color-text-faint); font-family: var(--font-mono); }

.field .input{
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-surface-2);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field .input input{
  flex: 1; border: 0; background: transparent; outline: 0;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 600; color: var(--color-text); letter-spacing: -.01em;
}
.field .input .unit{ color: var(--color-text-muted); font-size: 13px; font-family: var(--font-mono); }
.field .input.focus, .field .input:focus-within{
  background: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-050);
}

/* Slider */
.slider{ position: relative; height: 28px; margin-top: 10px; }
.slider .track{ position: absolute; top: 12px; left: 0; right: 0; height: 4px; background: var(--color-line); border-radius: 999px; }
.slider .fill{ position: absolute; top: 12px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-600)); }
.slider .thumb{ position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--color-primary); box-shadow: 0 2px 6px rgba(15,92,74,.25); }
.slider .ticks{ position: absolute; top: 22px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 10px; color: var(--color-text-faint); font-family: var(--font-mono); }
.slider .ticks.ticks-pos{ display: block; height: 14px; }
.slider .ticks.ticks-pos > span,
.slider .ticks.ticks-pos > .tick-btn{ position: absolute; transform: translateX(-50%); white-space: nowrap; }
.slider .ticks.ticks-pos > :first-child{ transform: translateX(0); }
.slider .ticks.ticks-pos > :last-child{ transform: translateX(-100%); }

/* Кликабельные подписи-пороги */
.slider .tick-btn{
  background: none; border: 0; padding: 0 3px; margin: 0;
  font: inherit; color: var(--color-text-faint);
  font-family: var(--font-mono); cursor: pointer;
  border-radius: 3px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.slider .tick-btn:hover{ color: var(--color-text); background: var(--color-surface-2); }
.slider .tick-btn[data-regime="npd"]:hover{  color: var(--mode-npd); }
.slider .tick-btn[data-regime="vat"]:hover{  color: var(--color-warning); }
.slider .tick-btn[data-regime="ausn"]:hover{ color: var(--mode-ausn); }

/* Вертикальные якоря на самой дорожке */
.slider-marker{
  position: absolute; top: 8px;
  width: 2px; height: 12px; padding: 0; margin: 0;
  border: 0; border-radius: 1px;
  background: var(--color-line);
  transform: translateX(-50%);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              height var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  z-index: 1;
}
.slider-marker[data-regime="npd"]  { background: var(--mode-npd); }
.slider-marker[data-regime="vat"]  { background: var(--color-warning); height: 14px; top: 7px; width: 3px; }
.slider-marker[data-regime="ausn"] { background: var(--mode-ausn); }

.slider-marker:hover,
.slider-marker.is-near{
  height: 18px; top: 5px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}
.slider-marker[data-regime="npd"]:hover,  .slider-marker[data-regime="npd"].is-near  { color: var(--mode-npd); }
.slider-marker[data-regime="vat"]:hover,  .slider-marker[data-regime="vat"].is-near  { color: var(--color-warning); box-shadow: 0 0 0 5px rgba(180,83,9,.22); }
.slider-marker[data-regime="ausn"]:hover, .slider-marker[data-regime="ausn"].is-near { color: var(--mode-ausn); }

/* Состояние «порог превышен» — метка становится заливкой */
.slider-marker.is-past{ opacity: .55; }

/* Легенда под слайдером */
.slider-legend{
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 26px;
  font-size: 11px; color: var(--color-text-muted);
}
.slider-legend .leg-item{
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur-fast) var(--ease);
}
.slider-legend .leg-dot{
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-line);
  flex-shrink: 0;
}
.slider-legend .leg-item[data-regime="npd"]  .leg-dot{ background: var(--mode-npd); }
.slider-legend .leg-item[data-regime="vat"]  .leg-dot{ background: var(--color-warning); }
.slider-legend .leg-item[data-regime="ausn"] .leg-dot{ background: var(--mode-ausn); }

/* Подсветка легенды при приближении */
.slider-legend .leg-item.is-near{ color: var(--color-text); font-weight: 600; }
.slider-legend .leg-item[data-regime="npd"].is-near { color: var(--mode-npd); }
.slider-legend .leg-item[data-regime="vat"].is-near { color: var(--color-warning); }
.slider-legend .leg-item[data-regime="ausn"].is-near{ color: var(--mode-ausn); }

@media (max-width: 480px){
  .slider-legend{ gap: 10px; font-size: 10px; }
}

/* Segmented / Toggle group */
.segmented{
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: 44px; padding: 4px; gap: 2px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
}
.segmented button{
  border: 0; background: transparent; font: inherit;
  font-size: 13px; font-weight: 500; color: var(--color-text-2);
  border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.segmented button.active,
.segmented button[aria-pressed="true"]{
  background: var(--color-primary); color: #fff;
  box-shadow: 0 1px 2px rgba(12,42,34,.15);
}
.segmented.lg{ height: 52px; }
.segmented.lg button{ font-size: 14px; font-weight: 600; }

/* ---------- Hero recommendation ---------- */
.hero{
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: var(--sh-hero);
  overflow: hidden;
}
.hero::before{ content:''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--color-accent), var(--color-primary)); }
.hero-body{ padding: 24px 28px 26px; }
.hero-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-accent-050); color: var(--color-accent-600);
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.hero-mode{ margin-top: 14px; font-size: 14px; color: var(--color-text-muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.hero-mode b{ color: var(--color-text); font-weight: 600; }
.modedot{ display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.hero-figure{ display: flex; align-items: baseline; gap: 10px; margin: 8px 0 10px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hero-figure .value{ font-size: var(--fs-hero); line-height: 1; letter-spacing: -.03em; color: var(--color-text); font-weight: 600; }
.hero-figure .unit{ font-size: 20px; color: var(--color-text-muted); font-weight: 500; }
.hero-sub{ color: var(--color-text-2); font-size: 14px; max-width: 520px; line-height: 1.5; }
.hero-delta{ display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: #eaf6ef; color: var(--color-success); font-weight: 500; font-size: 13px; }
.hero-delta b{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hero-actions{ display: flex; gap: 10px; margin-top: 20px; align-items: center; border-top: 1px dashed var(--color-line); padding-top: 18px; }
.hero-jump-compare{ display: none; }

/* Hero alternative states */
.hero.empty{ border-style: dashed; box-shadow: none; }
.hero.empty::before{ background: var(--color-line); }
.hero.alert::before{ background: linear-gradient(180deg, var(--color-warning) 0%, var(--color-accent) 100%); width: 5px; }
.hero.alert .alert-strip{ display: flex; gap: 10px; align-items: center; padding: 12px 28px; background: linear-gradient(90deg, #fff6e8, #fff); color: #7a3f04; border-bottom: 1px solid #f2d9ac; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.hero.alert .alert-link{ color: var(--color-accent-600); text-decoration: none; font-weight: 600; white-space: nowrap; padding: 2px 8px; border: 1px solid #e8c38a; border-radius: 999px; background: #fff; transition: background var(--dur-fast) var(--ease); }
.hero.alert .alert-link:hover{ background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ── Near-VAT strip: доход близок к порогу НДС (превентивное предупреждение) ── */
.hero.near-vat::before{
  background: linear-gradient(180deg, #e2a039 0%, var(--color-warning) 100%);
  width: 4px;
}
.hero.near-vat .near-vat-strip{
  display: block;
  padding: 12px 28px 14px;
  background: linear-gradient(90deg, #fffaf0, #fff);
  color: #7a5a1e;
  border-bottom: 1px solid #f4e4c1;
  font-size: 13px;
}
.hero .near-vat-strip__top{
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero .near-vat-strip__text{
  font-weight: 500;
}
.hero .near-vat-strip__text b{
  color: var(--color-warning);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hero .near-vat-strip__link{
  margin-left: auto;
  color: #7a5a1e;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 10px;
  border: 1px solid #e4c98a;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.hero .near-vat-strip__link:hover{
  background: var(--color-warning);
  color: #fff;
  border-color: var(--color-warning);
}
.hero .near-vat-strip__bar{
  position: relative;
  height: 4px;
  background: rgba(180,83,9,.12);
  border-radius: 999px;
  overflow: hidden;
}
.hero .near-vat-strip__bar-fill{
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, #eab366, var(--color-warning));
  border-radius: 999px;
  transition: width var(--dur-med) var(--ease);
}

@media (max-width: 520px){
  .hero.near-vat .near-vat-strip{ padding: 10px 18px 12px; font-size: 12px; }
  .hero .near-vat-strip__link{ margin-left: 0; width: 100%; text-align: center; }
}
.hero.deadend::before{ background: var(--color-text-muted); }

/* ---------- Compare list (6 modes) ---------- */
.mode-list{
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.mode-row{
  display: grid;
  grid-template-columns: 26px 1fr 140px 120px 120px 120px 32px;
  gap: 18px; align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--color-line-2);
  position: relative;
}
.mode-row:first-child{ border-top: 0; }
.mode-row.header{ background: var(--color-surface-2); padding: 10px 22px; color: var(--color-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.mode-row .name{ font-weight: 600; font-size: 14px; color: var(--color-text); }
.mode-row .name .rate{ color: var(--color-text-muted); font-weight: 500; font-size: 12px; margin-left: 6px; font-family: var(--font-mono); }
.mode-row .num{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--color-text-2); text-align: right; }
.mode-row .num.big{ color: var(--color-text); font-weight: 600; font-size: 15px; }
.mode-row.best{ background: linear-gradient(90deg, rgba(180,95,6,.05), transparent 40%); }
.mode-row.best::before{ content:''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--color-accent); }
.mode-row.best .name::after{
  content: 'рекомендуем';
  font-size: 10px; font-weight: 600; color: var(--color-accent);
  background: var(--color-accent-050);
  padding: 2px 6px; border-radius: 999px; margin-left: 8px;
  letter-spacing: .02em; text-transform: uppercase;
}
.mode-row.unavailable .name,
.mode-row.unavailable .num{ color: var(--color-text-faint); }

/* Expanded state */
.mode-row + .expand{ display: none; }
.mode-row[aria-expanded="true"] + .expand,
.mode-row + .expand.is-open{
  display: block;
  border-top: 1px solid var(--color-line-2);
  background: linear-gradient(180deg, #fcfcfa, #ffffff);
}
.expand-grid{ display: grid; grid-template-columns: 1.1fr 1fr 1fr; padding: 18px 22px 20px; }
.expand-col + .expand-col{ border-left: 1px dashed var(--color-line); padding-left: 22px; margin-left: 22px; }
.expand-h{ font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: 600; margin-bottom: 10px; }
.formula{ display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-text-2); line-height: 1.5; }
.formula b{ font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-text); }
.expand-npa a{ color: var(--color-primary); text-decoration: none; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-item-rich{
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: 10px; margin-bottom: 6px; overflow: hidden;
  box-shadow: var(--sh-1);
}
.faq-item-rich.open{ border-color: var(--color-primary-100); }
.faq-item-rich .q-wrap{ display: grid; grid-template-columns: 36px 1fr 22px; gap: 12px; padding: 14px 18px; align-items: center; cursor: pointer; }
.faq-item-rich .q-num{ font-family: var(--font-mono); font-size: 12px; color: var(--color-text-faint); font-weight: 500; }
.faq-item-rich .q{ font-size: 14px; font-weight: 500; color: var(--color-text); }
.faq-item-rich .plus{ width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.faq-item-rich.open .plus{ background: var(--color-primary); color: #fff; }
.faq-item-rich .a{ padding: 12px 18px 16px 66px; font-size: 13px; color: var(--color-text-2); line-height: 1.55; border-top: 1px solid var(--color-line-2); }

/* ---------- Toast ---------- */
.toast{
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; gap: 10px; padding: 12px;
  background: var(--color-text); color: #eaf2ee;
  border-radius: 10px; align-items: center;
  box-shadow: 0 8px 28px -12px rgba(12,42,34,.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}
.toast.show{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-icon{ width: 26px; height: 26px; border-radius: 50%; background: var(--color-success); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.toast-body b{ color: #fff; font-weight: 600; display: block; margin-bottom: 2px; font-size: 13px; }
.toast-body div{ color: #a3c3b6; font-size: 12px; }

/* ---------- Mobile ---------- */
@media (max-width: 768px){
  .mode-row{ grid-template-columns: 16px 1fr auto 20px; gap: 10px; padding: 14px 16px; }
  .mode-row.header{ display: none; }
  .mode-row .num:not(.big){ display: none; }
  .hero-figure .value{ font-size: var(--fs-3xl); }
  .hero-actions{ flex-wrap: wrap; }
  .btn{ height: 48px; font-size: 14px; }
  .field .input{ height: 52px; }
  .segmented.lg{ height: 56px; }
  .expand-grid{ grid-template-columns: 1fr; gap: 18px; }
  .expand-col + .expand-col{ border-left: 0; border-top: 1px dashed var(--color-line); padding: 14px 0 0; margin: 0; }
}

/* ---------- Reset button (в форме) ---------- */
.field-reset{ margin-top: 4px; }
.btn-reset-full{
  width: 100%;
  justify-content: center;
  font-size: 13px;
  color: var(--color-text-muted);
}
.btn-reset-full:hover{ color: var(--color-danger, #b45252); }

/* ---------- Regime table (альтернатива карточкам) ---------- */
.regime-table-wrap{
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  background: var(--color-surface);
}
.regime-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.regime-table thead th{
  text-align: right;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  padding: 12px 16px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-line);
  white-space: nowrap;
}
.regime-table thead th:first-child{ text-align: left; }
.regime-table tbody td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  text-align: right;
  white-space: nowrap;
}
.regime-table tbody tr:last-child td{ border-bottom: 0; }
.regime-table tbody td:first-child{
  text-align: left;
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
}
.regime-badge{
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.regime-table tbody tr.regime-row--best{
  background: rgba(15, 92, 74, .04);
}
.regime-table tbody tr.regime-row--best td{ font-weight: 600; }
.regime-table tbody tr.regime-row--unavail td{
  color: var(--color-text-muted);
  font-size: 13px;
}
.regime-table tbody tr.regime-row--unavail td:first-child{ opacity: .6; }
.regime-unavail{
  text-align: left !important;
  font-style: italic;
  white-space: normal !important;
}
@media (max-width: 640px){
  .regime-table{ font-size: 13px; }
  .regime-table thead th,
  .regime-table tbody td{ padding: 10px 12px; }
}

/* ---------- Result card (wrapper for form / info blocks) ---------- */
.result-card{
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
}
@media (max-width: 640px){
  .result-card{ padding: var(--sp-4); }
}

/* ══════════════════════════════════════════════════════════════════════════
   Contact Form — форма обратной связи на /contact/
   ══════════════════════════════════════════════════════════════════════════ */
.contact-intro {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}
.contact-intro strong { color: var(--color-text); font-weight: 600; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.contact-form__label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.contact-form__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  font-weight: 400;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-line);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-base);
  background: var(--color-surface-2);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-050);
}
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-sans);
}
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form__captcha {
  display: flex;
  justify-content: center;
}
.contact-form__submit {
  align-self: flex-start;
  min-width: 200px;
}
.contact-form__status {
  min-height: 1.5em;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding: var(--sp-2) 0;
}
.contact-form__status.is-error {
  color: var(--color-danger);
}
.contact-form__status.is-success {
  color: var(--color-success);
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-primary-050);
  border-radius: var(--r-md);
  font-weight: 500;
}

/* Hide socials block on nalog-ip — duplicated in footer */
h2:has(+ .contact-socials),
.contact-socials { display: none !important; }

.contact-socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
@media (min-width: 560px) {
  .contact-socials { grid-template-columns: 1fr 1fr; }
}
.contact-social {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.contact-social:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.contact-social__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-social__icon--tg { background: #e1f4fd; color: #2AABEE; }
.contact-social__icon--vk { background: #e8efff; color: #0077FF; }
.contact-social__title {
  font-weight: 600;
  margin: 0 0 2px;
  font-size: var(--fs-base);
}
.contact-social__handle {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* Footer CTA — «Напишите нам» */
.site-footer__cta {
  background: var(--color-primary-050);
  color: var(--color-text);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.5;
}
.site-footer__cta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.site-footer__cta a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT HUB — тематическая навигация по статьям и разделам
   ═══════════════════════════════════════════════════════════════ */
.content-hub {
  padding: 3rem 0;
  background: var(--color-surface-2, #f8fafc);
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.content-hub__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.content-hub__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text, #111827);
  margin: 0;
}
.content-hub__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-primary, #1a3a5c);
  margin-bottom: 0.5rem;
}
.content-hub__group { margin-bottom: 2rem; }
.content-hub__group:last-child { margin-bottom: 0; }
.content-hub__group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim, #9ca3af);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.content-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.content-hub__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text, #111827);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.content-hub__card:hover {
  border-color: var(--color-primary, #1a3a5c);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.content-hub__card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--color-primary-bg, #eef4fb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #1a3a5c);
}
.content-hub__card-icon svg { display: block; }
.content-hub__card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.content-hub__card-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text, #111827);
}
.content-hub__card:hover .content-hub__card-name { color: var(--color-primary, #1a3a5c); }
.content-hub__card-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.45;
}
@media (max-width: 639px) {
  .content-hub__grid { grid-template-columns: 1fr; }
  .content-hub__header { flex-direction: column; gap: 0.5rem; }
}
