/* Стили раздела «Статьи» — nikishyn.ru
   Палитра KW (финальная: деним #3E6796 на белом), шапка/футер как на
   основных страницах. Плюс типографика для длинного текста, которой на
   лендинге нет. Подключается из /stati/*.html — пути к шрифтам и
   ассетам относительные, с ../ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F4F4F4;
  --ink: #212328;
  --muted: #6B7078;
  --navy: #3E6796;
  --navy-deep: #2E4C74;
  --blue: #3E6796;
  --blue-soft: #C6D4E5;
  --marker-stroke: #A9C4E3;
  --tint: rgba(62, 103, 150, 0.06);
  --band-grad1: #2C4568;
  --band-grad2: #3A5A85;
  --band-accent: #A9C4E3;
  --green: #1E7A4F;
  --line: rgba(33, 35, 40, 0.12);
  --head: 'Golos Text', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.015em; line-height: 1.14; }
h1 { font-size: clamp(30px, 3.6vw, 44px); }
h2 { font-size: clamp(24px, 2.6vw, 31px); }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.sub { font-size: 18px; color: var(--muted); max-width: 620px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px; font-family: var(--sans);
  font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all .16s ease; white-space: nowrap;
}
.btn-fill { background: var(--navy); color: #fff; }
.btn-fill:hover { background: var(--navy-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- шапка ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: var(--head); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.logo span { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.on { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; border-radius: 8px; }
.burger { display: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 6px; user-select: none; }

/* ---------- хлебные крошки ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---------- список статей ---------- */
.art-head { padding: 26px 0 8px; }
.art-list { display: grid; gap: 18px; margin-top: 34px; max-width: 860px; }
.art-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; transition: all .16s ease;
}
.art-card:hover { border-color: var(--navy); box-shadow: 0 10px 30px rgba(20,57,94,0.09); }
.art-card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.art-card h2 { font-size: 23px; margin-bottom: 9px; line-height: 1.2; }
.art-card p { font-size: 15px; color: var(--muted); }
.art-card .more { display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--navy); }

/* ---------- тело статьи ---------- */
.post { padding: 18px 0 0; }
.post-head { max-width: 760px; }
.post-head h1 { margin-bottom: 16px; }
.post-lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 720px; margin-bottom: 6px; }
.post-meta {
  font-size: 13px; color: var(--muted); margin-top: 20px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; max-width: 760px;
}
.post-meta b { color: var(--ink); font-weight: 600; }

/* Читаемая колонка: ~70 знаков в строке — предел комфортного чтения */
.post-body { max-width: 720px; padding: 34px 0 0; font-size: 17.5px; line-height: 1.68; }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { margin-top: 46px; }
.post-body h3 { margin-top: 34px; font-size: 19px; }
.post-body h2 + p, .post-body h3 + p { margin-top: 14px; }
.post-body a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-body ul, .post-body ol { padding-left: 4px; list-style: none; }
.post-body li { position: relative; padding-left: 22px; margin-bottom: 11px; }
.post-body ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--blue); border-radius: 2px;
}
.post-body ol { counter-reset: li; }
.post-body ol li { counter-increment: li; padding-left: 30px; }
.post-body ol li::before {
  content: counter(li) '.'; position: absolute; left: 0; top: 0;
  font-family: var(--head); font-weight: 800; color: var(--navy); font-size: 16px;
}
.post-body b, .post-body strong { font-weight: 700; }

/* Врезка «из практики» — то, чего нет у конкурентов: личный опыт */
.callout {
  background: var(--bg-soft); border-left: 3px solid var(--navy);
  border-radius: 0 12px 12px 0; padding: 22px 26px; font-size: 16.5px; line-height: 1.6;
}
.callout .t {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 9px;
}
.callout p + p { margin-top: 12px; }

/* Таблица с цифрами */
.post-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.post-table th, .post-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.post-table th:first-child, .post-table td:first-child { text-align: left; font-weight: 600; }
.post-table thead th { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.post-table tr:last-child td { border-bottom: none; }
.post-table .total td { font-weight: 700; background: var(--tint); }
.post-table .dn { color: #B0463C; font-weight: 600; }
.table-wrap { overflow-x: auto; }
.table-note { font-size: 13.5px; color: var(--muted); margin-top: -10px; }

/* ---------- FAQ в статье ---------- */
.post-faq { max-width: 760px; margin-top: 56px; }
.post-faq h2 { margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 18px 0;
  font-family: var(--head); font-size: 17.5px; font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--blue); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .a { padding: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA и связанное ---------- */
.post-cta {
  max-width: 760px; margin-top: 56px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px;
}
.post-cta h3 { font-size: 22px; margin-bottom: 10px; }
.post-cta p { font-size: 16px; color: var(--muted); margin-bottom: 20px; }
.post-cta .cta-more { font-size: 14.5px; margin: 16px 0 0; }
.post-cta .cta-more a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--blue-soft); }
.post-cta .cta-more a:hover { border-bottom-color: var(--navy); }
.post-author {
  max-width: 760px; margin-top: 34px; display: flex; gap: 18px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.post-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; }
.post-author .n { font-weight: 700; font-size: 16px; }
.post-author .d { font-size: 14px; color: var(--muted); margin-top: 3px; }
.post-next { max-width: 760px; margin-top: 48px; }
.post-next h3 { font-size: 17px; margin-bottom: 16px; }

/* ---------- футер ---------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 48px 0 36px; margin-top: 80px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 36px; }
.foot-grid h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 14px; }
.foot-grid a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.foot-grid a:hover { color: #fff; }
.foot-logo { font-family: var(--head); font-weight: 800; font-size: 19px; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  section { padding: 52px 0; }
  .post-body { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  }
  .nav-links a { font-size: 16px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}
@media (max-width: 600px) {
  .nav-cta .btn-line { display: none; }
  .art-card { padding: 22px 20px; }
  .art-card h2 { font-size: 20px; }
  .post-cta { padding: 24px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
