/* ══════════════════════════════════════════════════
   article.css — стили страниц-статей блога nsp-shine.com
   Шапка / подвал / cookie — 1:1 с index.html (бренд-консистентность).
   Плюс типографика статьи под чтение 40+ (18px / line-height 1.7).
   Бренд-токены: --green #8dc63f, --green-dark #6aa600, --dark #1a1a1a.
   Шрифты: body Roboto, заголовки Oswald.
══════════════════════════════════════════════════ */

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Onest', sans-serif; color: #333; line-height: 1.6; background: #f5f8f2 url('../images/bg-lines.svg') fixed center / cover no-repeat; }
a { text-decoration: none; color: inherit; }

:root {
  --green: #8dc63f;
  --green-dark: #6aa600;
  --dark: #1a1a1a;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--green);
  color: #fff;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .2s, color .2s;
  border-radius: 2px;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ── HEADER TOP ── */
.header-top { background: #fff; border-bottom: 1px solid #e8e8e8; padding: 8px 0; }
.header-top .container { display: flex; align-items: center; gap: 24px; }
.h-contacts { display: flex; gap: 32px; margin-left: 16px; flex: 1; }
.h-contact { display: flex; align-items: center; gap: 9px; }
.h-contact-icon { font-size: 20px; color: var(--green); }
.h-contact-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: .8px; }
.h-contact-val { font-size: 14px; font-weight: 500; color: var(--green); }

/* ── NAV ── */
.header-nav { background: #fff; border-bottom: 2px solid #ebebeb; position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.nav-list { display: flex; list-style: none; }
.nav-list a { display: block; padding: 15px 17px; font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .6px; color: #444; text-transform: uppercase; transition: color .2s; }
.nav-list a:hover, .nav-list a.active { color: var(--green); }
.nav-list .nav-cta a { color: var(--green); border-left: 1px solid #eee; }
.nav-burger { display: none; background: transparent; border: none; padding: 12px 16px; cursor: pointer; font-size: 22px; color: #444; line-height: 1; }
.nav-burger:focus { outline: none; }

/* ══════════════════════════════════════════════════
   ARTICLE — типографика статьи
══════════════════════════════════════════════════ */
.article-main { background: transparent; padding: 40px 0 64px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.post { font-size: 18px; line-height: 1.7; color: #2a2a2a; }

.post-meta { font-size: 13.5px; color: #8a8a8a; letter-spacing: .2px; margin-bottom: 22px; }

.post-cover { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 30px; }

.post h1 {
  font-family: 'Onest', sans-serif;
  font-size: clamp(30px, 5.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .4px;
  color: var(--dark);
  margin: 0 0 22px;
}

.post h2 {
  font-family: 'Onest', sans-serif;
  font-size: clamp(23px, 3.4vw, 29px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .3px;
  color: var(--dark);
  margin: 46px 0 16px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}
.post h2:first-of-type { border-top: none; }

.post h3 {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
  margin: 30px 0 10px;
}

.post p { margin: 0 0 18px; }

.post ol, .post ul { margin: 0 0 22px; padding-left: 26px; }
.post li { margin-bottom: 10px; }

.post a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.post a:hover { color: var(--green); }

.post-note {
  background: #f4f9ec;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #45542e;
  margin: 0 0 30px;
}

/* Источники — компактнее */
.post h2:last-of-type + ul { font-size: 16px; }
.post ul a { word-break: break-word; }

/* ══════════════════════════════════════════════════
   FOOTER — 1:1 с index.html
══════════════════════════════════════════════════ */
.footer { background: #111; padding: 44px 0 22px; }
.footer-inner { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 44px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; }
.footer-logo-desc { font-size: 13px; color: rgba(255,255,255,.35); margin-top: 14px; line-height: 1.6; }
.footer-col h4 { font-family: 'Onest', sans-serif; font-size: 15px; color: #fff; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-col ul a:hover { color: var(--green); }
.footer-bottom { text-align: center; font-size: 11px; color: rgba(255,255,255,.25); line-height: 1.8; }
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--green); }
.footer-disclaimer { margin-top: 14px; padding: 10px 14px; background: rgba(255,255,255,.04); border-left: 3px solid var(--green); font-size: 11px; color: rgba(255,255,255,.45); text-align: left; max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ══════════════════════════════════════════════════
   COOKIE BANNER + MODAL — 1:1 с index.html
══════════════════════════════════════════════════ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid #e0e0e0; border-top: 4px solid var(--green); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 22px; z-index: 9000; display: none; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.55; color: #333; }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--green-dark); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn { font-family: 'Onest', sans-serif; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; padding: 9px 16px; border-radius: 4px; border: 1px solid var(--green); background: var(--green); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cookie-btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.cookie-btn.ghost { background: #fff; color: var(--green-dark); }
.cookie-btn.ghost:hover { background: var(--green); color: #fff; }
.cookie-btn.text { background: transparent; border: 1px solid #ccc; color: #555; }
.cookie-btn.text:hover { background: #f0f0f0; color: #222; border-color: #aaa; }

.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9500; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.show { display: flex; }
.cookie-modal-box { background: #fff; border-radius: 10px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 28px 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.cookie-modal-box h3 { font-family: 'Onest', sans-serif; font-size: 22px; color: var(--dark); margin-bottom: 6px; letter-spacing: .4px; }
.cookie-modal-box > p { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.6; }
.cookie-cat { border: 1px solid #e8e8e8; border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.cookie-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-cat-name { font-family: 'Onest', sans-serif; font-size: 14px; font-weight: 600; color: var(--dark); letter-spacing: .4px; }
.cookie-cat-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-cat-toggle input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.cookie-cat-toggle input:disabled { cursor: not-allowed; opacity: .65; }
.cookie-cat-toggle label { font-size: 12px; color: #777; cursor: pointer; }
.cookie-cat-desc { font-size: 12.5px; color: #666; margin-top: 8px; line-height: 1.55; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — только для шапки/подвала/cookie/статьи
══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; font-size: 13px; }
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner .cookie-btn { width: 100%; }
  .cookie-modal-box { padding: 20px 18px; }
  .cookie-modal-actions { flex-direction: column; }
  .cookie-modal-actions .cookie-btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 24px; }
}

@media (max-width: 900px) {
  .container { padding: 0 16px; }
  html, body { overflow-x: hidden; }

  /* Header top */
  .header-top .container { flex-wrap: wrap; gap: 12px; }
  .h-contacts { flex-wrap: wrap; gap: 14px; margin-left: 0; flex: 1 1 100%; order: 3; }

  /* Header nav — burger */
  .header-nav .container { display: flex; justify-content: flex-end; align-items: center; padding: 0 8px; }
  .nav-burger { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    border-top: 1px solid #ebebeb;
    z-index: 199;
  }
  .header-nav.open .nav-list { display: flex; }
  .nav-list li { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { display: block; padding: 14px 20px; min-height: 44px; align-items: center; }
  .nav-list .nav-cta a { border-left: none; color: var(--green); }

  /* Footer + spacing */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-main { padding: 32px 0 48px; }
  .cookie-btn { min-height: 44px; }
}

@media (max-width: 600px) {
  /* Logo in header-top — shrink to fit */
  .header-top .container > a { flex-shrink: 1 !important; min-width: 0; }
  .header-top .container > a > img { height: 48px !important; }
  .header-top .container > a > div > div:first-child { font-size: 16px !important; }
  .header-top .container > a > div > div:last-child { font-size: 7.5px !important; letter-spacing: 1.2px !important; }

  /* Header top compact */
  .h-contacts { flex-direction: column; align-items: flex-start; gap: 8px; }
  .h-contact { font-size: 13px; }

  /* Article — comfortable on phone */
  .post { font-size: 17px; }
  .post-cover { border-radius: 8px; }
}
