/* Лёгкие цифры — стиль страницы статьи блога. Общий для всех статей. */
:root {
  --green: #13AE7F;
  --green-hover: #0A7A58;
  --green-light: #E6F7F2;
  --green-dark: #0D1A14;
  --black: #1A2620;
  --gray: #6B7280;
  --gray-bg: #F4FBF8;
  --gray-border: #DFF0EA;
  --white: #FFFFFF;
  --yellow-bg: #FFFBE6;
  --yellow-border: #F59E0B;
  --red: #DC2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--black); background: var(--white); line-height: 1.6; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-light); border-bottom: 1px solid var(--gray-border);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 1px 8px rgba(19,174,127,.1);
}
.header-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--green); text-decoration: none; letter-spacing: -.02em; }
.header-nav { display: flex; gap: 32px; }
.header-nav a { font-size: 15px; font-weight: 500; color: var(--black); text-decoration: none; }
.header-nav a:hover, .header-nav a.active { color: var(--green); }
.btn-primary {
  background: var(--green); color: var(--white); border: none; border-radius: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .2s; display: inline-block;
}
.btn-primary:hover { background: var(--green-hover); }

/* Article header */
.art-header-bg { background: var(--green-light); padding: 44px 40px 0; border-bottom: 1px solid var(--gray-border); }
.art-header-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { color: var(--gray-border); }
.breadcrumbs .cur { color: var(--black); font-weight: 500; }
.art-meta-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-badge { background: var(--green); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.meta-item { font-size: 13px; color: var(--gray); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-border); }
.art-h1 { font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 800; color: var(--black); line-height: 1.25; max-width: 860px; margin-bottom: 36px; }
.art-cover-strip { display: flex; align-items: flex-end; }
.art-cover-img { width: 400px; flex-shrink: 0; height: 210px; border-radius: 14px 14px 0 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--green-dark); }
.art-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cover gradients (brand) */
.cov-a { background: linear-gradient(135deg,#0D1A14,#0A7A58); }
.cov-d { background: linear-gradient(135deg,#1A1A08,#6A5E18); }
.cov-g { background: linear-gradient(135deg,#071A10,#13AE7F); }
.cov-h { background: linear-gradient(135deg,#080D1A,#1A5070); }
.cov-i { background: linear-gradient(135deg,#0D0820,#4A1A6A); }
.cov-b { background: linear-gradient(135deg,#1A0D0D,#7A2A2A); }

/* Layout */
.art-layout { max-width: 1200px; margin: 0 auto; padding: 48px 40px; display: grid; grid-template-columns: 1fr 270px; gap: 48px; align-items: start; }

/* TOC */
.toc-box { position: sticky; top: 80px; background: var(--gray-bg); border-radius: 14px; padding: 22px; border: 1px solid var(--gray-border); }
.toc-label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 4px; }
.toc-list a { font-size: 13px; color: var(--black); text-decoration: none; display: block; padding: 5px 8px; border-radius: 6px; border-left: 3px solid transparent; line-height: 1.4; transition: all .15s; }
.toc-list a:hover, .toc-list a.active { background: var(--green-light); border-left-color: var(--green); color: var(--green); }
.toc-divider { margin: 18px 0; border: none; border-top: 1px solid var(--gray-border); }
.toc-cta-btn { display: block; background: var(--green); color: var(--white); text-align: center; padding: 11px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s; }
.toc-cta-btn:hover { background: var(--green-hover); }
.toc-cta-note { text-align: center; font-size: 11px; color: var(--gray); margin-top: 7px; }

/* Content */
.art-content { font-size: 17px; line-height: 1.7; color: var(--black); }
.art-content .lead-block { font-size: 18px; font-weight: 500; line-height: 1.6; color: #2A2A2A; padding: 18px 22px; margin-bottom: 32px; background: var(--green-light); border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; }
.art-content h2 { font-family: 'Montserrat', sans-serif; font-size: 25px; font-weight: 800; color: var(--black); margin: 40px 0 14px; line-height: 1.3; }
.art-content h3 { font-size: 19px; font-weight: 700; color: var(--green); margin: 26px 0 10px; }
.art-content p { margin-bottom: 16px; }
.art-content ul, .art-content ol { padding-left: 22px; margin-bottom: 16px; }
.art-content li { margin-bottom: 8px; }
.art-content strong { font-weight: 700; }
.art-content code { background: var(--gray-bg); border: 1px solid var(--gray-border); border-radius: 6px; padding: 2px 6px; font-size: 14px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.art-content pre { background: var(--green-dark); color: #CFE5DB; border-radius: 12px; padding: 18px 20px; overflow-x: auto; margin: 18px 0; font-size: 14px; line-height: 1.6; }
.art-content pre code { background: none; border: none; padding: 0; color: inherit; }

.warn-block { background: var(--yellow-bg); border-left: 4px solid var(--yellow-border); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 24px 0; font-size: 15px; line-height: 1.55; }

/* Inline CTA */
.cta-block { background: var(--green-light); border: 1px solid rgba(19,174,127,.3); border-radius: 16px; padding: 28px 32px; margin: 40px 0; text-align: center; }
.cta-block-title { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.cta-block-sub { font-size: 15px; color: var(--gray); margin-bottom: 20px; }
.cta-block .btn-primary { font-size: 15px; padding: 14px 32px; }
.cta-terms { font-size: 12px; color: var(--gray); margin-top: 10px; }

/* Table */
.art-content table { width: 100%; border-collapse: collapse; margin: 22px 0; border-radius: 12px; overflow: hidden; font-size: 15px; display: table; }
.table-scroll { overflow-x: auto; }
.art-content th { background: var(--green); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 700; }
.art-content td { padding: 11px 16px; border-bottom: 1px solid var(--gray-border); }
.art-content tr:nth-child(even) td { background: var(--gray-bg); }
.art-content tr:last-child td { border-bottom: none; }
.art-content .row-total td { font-weight: 700; color: var(--green); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 14px 0 22px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--gray-border); font-size: 16px; }
.checklist li:last-child { border-bottom: none; }
.ck-y { color: var(--green); font-weight: 700; flex-shrink: 0; }
.ck-n { color: var(--red); font-weight: 700; flex-shrink: 0; }

/* FAQ */
.faq-item { border: 1px solid var(--gray-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-details { display: block; }
.faq-details > summary { list-style: none; }
.faq-details > summary::-webkit-details-marker { display: none; }
.faq-q { padding: 15px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background .15s; gap: 12px; }
.faq-q:hover { background: var(--gray-bg); }
.faq-details[open] > .faq-q { background: var(--green-light); color: var(--green); }
.faq-icon { font-size: 20px; flex-shrink: 0; transition: transform .2s; }
.faq-details[open] > .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 20px; font-size: 15px; line-height: 1.6; color: var(--gray); }
.faq-details[open] > .faq-a,
.faq-a.open { padding: 14px 20px; }

/* Related */
.related-section { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--gray-border); }
.related-title { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card { border: 1px solid var(--gray-border); border-radius: 12px; overflow: hidden; text-decoration: none; transition: all .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.rel-cover { height: 90px; }
.rel-body { padding: 14px; }
.rel-cat { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.rel-title { font-size: 14px; font-weight: 700; color: var(--black); line-height: 1.4; }

/* Share */
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; background: var(--gray-bg); border-radius: 12px; margin: 28px 0; }
.share-label { font-size: 14px; font-weight: 600; color: var(--gray); }
.share-btn { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.share-btn:hover { opacity: .85; }
.share-tg { background: #2CA5E0; color: var(--white); }
.share-vk { background: #0077FF; color: var(--white); }

/* Footer */
.site-footer { background: var(--green-dark); padding: 36px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--white); font-size: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.4); }

/* Float CTA */
.cta-float { position: fixed; bottom: 28px; right: 28px; z-index: 50; background: var(--green); color: var(--white); border-radius: 12px; padding: 13px 22px; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px rgba(19,174,127,.35); text-decoration: none; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cta-float:hover { background: var(--green-hover); transform: translateY(-2px); }
.cta-float .cf-sub { font-size: 11px; opacity: .8; font-weight: 500; }

/* Responsive */
@media (max-width: 960px) {
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .toc-box { position: static; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 16px; }
  .header-nav { display: none; }
  .art-layout { padding: 24px 16px; }
  .art-header-bg { padding: 32px 16px 0; }
  .art-h1 { font-size: 24px; }
  .cta-float { right: 12px; bottom: 12px; }
  .art-cover-img { display: none; }
}
