/* Холензим 20000 — сторінки статей */

:root {
  --blue: #1e40af;
  --blue-light: #3b82f6;
  --green: #059669;
  --text: #111827;
  --text-muted: #6b7280;
  --rule: #e6eaf0;
  --bg-soft: #f7f9fc;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

.art-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ─────────────── шапка */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e8ecf2;
  padding: 0 20px;
}
.header-inner { max-width: 1060px; margin: 0 auto; height: 64px; display: flex; align-items: center; }
.logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 19px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo span { font-size: 15px; font-weight: 700; color: var(--blue); }

.header-nav { display: flex; gap: 2px; margin-left: 36px; margin-right: auto; }
.header-nav a {
  white-space: nowrap;
  position: relative; font-size: 14.5px; font-weight: 500; color: #55606f;
  text-decoration: none; padding: 8px 13px; border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
.header-nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform .22s ease;
}
.header-nav a:hover, .header-nav a:focus-visible { color: var(--blue); background: #f2f6fc; }
.header-nav a:hover::after, .header-nav a:focus-visible::after { transform: scaleX(1); }
.header-nav a.is-current { color: var(--blue); }
.header-nav a.is-current::after { transform: scaleX(1); }

.header-contact { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .18s;
}
.header-phone svg { color: var(--green); flex-shrink: 0; }
.header-phone:hover { color: var(--green); }
.btn-order {
  background: var(--green); color: #fff; padding: 11px 24px; border-radius: 50px;
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(5,150,105,.28);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-order:hover { background: #047857; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(5,150,105,.36); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ─────────────── мобільне меню */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid #e2e8f0; border-radius: 10px;
  cursor: pointer; padding: 0;
  transition: background .18s, border-color .18s;
}
.nav-toggle:hover { background: #f2f6fc; border-color: #cfe0f8; }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .26s ease, opacity .16s ease, top .26s ease;
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 5px; }
.nav-toggle-bars i:nth-child(3) { top: 10px; }
.nav-open .nav-toggle-bars i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
  box-shadow: 0 18px 44px rgba(16,32,60,.16);
  padding: 6px 18px 18px;
  transform: translateY(-14px);
  opacity: 0; visibility: hidden;
  transition: transform .26s ease, opacity .2s ease, visibility .26s;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}
.nav-open .mobile-nav { transform: translateY(0); opacity: 1; visibility: visible; }
.mn-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  font-size: 17px; font-weight: 600; color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #eef1f5;
}
.mn-link::after {
  content: ''; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid #c3ccd8; border-bottom: 2px solid #c3ccd8;
  transform: rotate(-45deg);
}
.mn-link.is-current { color: var(--blue); }
.mobile-nav-foot { display: flex; gap: 10px; margin-top: 18px; }
.mn-phone, .mn-order {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.mn-phone { border: 1px solid #e2e8f0; color: var(--text); }
.mn-phone svg { color: var(--green); }
.mn-order { background: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(5,150,105,.28); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(15,23,42,.42);
  opacity: 0; visibility: hidden;
  transition: opacity .26s ease, visibility .26s;
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ─────────────── хлібні крихти */
.crumbs { border-bottom: 1px solid var(--rule); background: var(--bg-soft); }
.crumbs .art-wrap { display: flex; gap: 8px; align-items: center; padding-top: 11px; padding-bottom: 11px; font-size: 13px; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: #c3ccd8; }
.crumbs-current { color: var(--text); font-weight: 600; }

/* ─────────────── шапка статті */
.art-head { padding: 46px 0 30px; border-bottom: 1px solid var(--rule); }
.art-head .art-wrap { max-width: 800px; }
.art-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue); background: #eef4ff;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.art-head h1 {
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; line-height: 1.18;
  letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance;
}
.art-lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.art-meta { display: flex; gap: 9px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.art-dot { color: #c3ccd8; }

/* ─────────────── текст статті */
.art-body { max-width: 800px; padding-top: 34px; padding-bottom: 8px; }
.art-body h2 {
  font-size: 25px; font-weight: 800; line-height: 1.28; letter-spacing: -0.015em;
  margin: 40px 0 14px; text-wrap: balance;
}
.art-body h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 28px 0 8px; color: var(--blue); }
.art-body h4 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.art-body > :first-child { margin-top: 0; }
.art-body p { font-size: 17px; line-height: 1.72; margin-bottom: 18px; }
.art-body ul { margin: 0 0 20px; padding-left: 22px; }
.art-body li { font-size: 17px; line-height: 1.7; margin-bottom: 9px; }
.art-body li::marker { color: var(--blue-light); }
.art-body strong { font-weight: 700; }

.art-body blockquote {
  border-left: 3px solid var(--green);
  background: #f0fdf4;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 26px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #14532d;
}

.art-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.art-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.art-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; padding: 12px 18px;
  background: var(--bg-soft); border-bottom: 1px solid var(--rule);
}
.art-table td { padding: 14px 18px; border-bottom: 1px solid #eff2f7; font-size: 15px; vertical-align: top; }
.art-table tbody tr:last-child td { border-bottom: none; }

/* застереження */
.art-notice {
  border: 1px solid #fde68a; background: #fffbeb; border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 28px;
}
.art-notice p { font-size: 14.5px; line-height: 1.6; color: #78350f; margin: 0; }
.art-notice.is-pro { border-color: #bfdbfe; background: #eff6ff; }
.art-notice.is-pro p { color: #1e3a5f; }
.art-notice-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--blue);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

/* згорнутий науковий блок */
.art-details { border: 1px solid var(--rule); border-radius: var(--radius); margin: 30px 0; overflow: hidden; }
.art-details summary {
  cursor: pointer; padding: 16px 20px; font-size: 16px; font-weight: 700;
  background: var(--bg-soft); list-style: none; display: flex; align-items: center; gap: 10px;
  transition: background .18s;
}
.art-details summary::-webkit-details-marker { display: none; }
.art-details summary::before {
  content: '+'; font-size: 19px; font-weight: 400; color: var(--blue);
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #cfe0f8; border-radius: 6px; line-height: 1;
}
.art-details[open] summary::before { content: '−'; }
.art-details summary:hover { background: #eef3fa; }
.art-details-body { padding: 6px 20px 20px; border-top: 1px solid var(--rule); }
.art-details-body h3 { font-size: 16.5px; margin-top: 22px; }
.art-details-body p, .art-details-body li { font-size: 15.5px; }

/* ─────────────── блок замовлення */
.art-cta {
  display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center;
  border: 1px solid var(--rule); border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  padding: 26px 30px; margin: 40px 0 22px;
}
.art-cta-media img { max-height: 150px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0,0,0,.13)); }
.art-cta-text h2 { font-size: 22px; font-weight: 800; margin-bottom: 7px; }
.art-cta-text p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.art-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  background: var(--green); color: #fff; padding: 14px 30px; border-radius: 50px;
  font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(5,150,105,.32);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(5,150,105,.4); }
.art-cta-note { font-size: 13px; color: var(--text-muted); }

.art-disclaimer {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  padding-top: 18px; border-top: 1px solid var(--rule); margin-bottom: 8px;
  max-width: 800px;
}

/* ─────────────── схожі */
.related { background: var(--bg-soft); border-top: 1px solid var(--rule); padding: 44px 0 52px; margin-top: 40px; }
.related-title { font-size: 21px; font-weight: 800; margin-bottom: 22px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card {
  display: flex; flex-direction: column; gap: 7px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,32,60,.09); border-color: #cfe0f8; }
.rel-cat { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.rel-title { font-size: 16.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.rel-lead { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ─────────────── сторінка списку */
.hub-head { padding: 48px 0 30px; }
.hub-head .art-wrap { max-width: 800px; }
.hub-head h1 { font-size: clamp(30px, 4.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.hub-lead { font-size: 18px; color: var(--text-muted); line-height: 1.65; }
.hub { padding-bottom: 10px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; gap: 9px;
  border: 1px solid var(--rule); border-radius: 14px; padding: 24px 26px;
  text-decoration: none; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,32,60,.09); border-color: #cfe0f8; }
.hub-card h2 { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.3; }
.hub-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.hub-cat {
  display: flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue);
}
.hub-pro {
  font-size: 10.5px; letter-spacing: .04em; color: #7c5c12;
  background: #fef3c7; border: 1px solid #fcd97b; padding: 2px 8px; border-radius: 20px;
  text-transform: none; font-weight: 700;
}
.hub-card.is-pro { background: #fcfcfd; }
.hub-meta { font-size: 12.5px; color: #98a2b3; margin-top: 2px; }
.hub-cta-wrap { padding-bottom: 20px; }

/* ─────────────── підвал */
.footer { background: #111827; color: #9ca3af; padding: 46px 20px 34px; margin-top: 0; }
.footer-links {
  max-width: 1060px; margin: 0 auto 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: #9ca3af; text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: 1060px; margin: 0 auto; font-size: 13px; padding-top: 20px; border-top: 1px solid #1f2937; }
.footer-disclaimer { max-width: 1060px; margin: 12px auto 0; font-size: 12px; line-height: 1.6; opacity: .75; }
.footer-legal { max-width: 1060px; margin: 14px auto 0; font-size: 12px; opacity: .6; }
.footer-legal a { color: #9ca3af; }

/* ─────────────── планшет і нижче: бургер замість меню */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .rel-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) {
  .mobile-nav, .nav-backdrop { display: none !important; }
}

/* ─────────────── мобільний */
@media (max-width: 640px) {
  .header { padding: 0 14px; }
  .header-inner { height: 56px; }
  .logo { font-size: 16px; gap: 4px; }
  .logo span { font-size: 13px; }
  .header-contact { gap: 10px; margin-left: auto; }
  .header-phone { font-size: 0; gap: 0; }
  .header-phone svg { width: 19px; height: 19px; }
  .btn-order { padding: 9px 17px; font-size: 13.5px; }

  .art-wrap { padding: 0 16px; }
  .art-head { padding: 30px 0 22px; }
  .art-lead { font-size: 16.5px; }
  .art-body { padding-top: 26px; }
  .art-body p, .art-body li { font-size: 16.5px; }
  .art-body h2 { font-size: 22px; margin-top: 32px; }
  .art-body h3 { font-size: 17px; }

  .art-cta { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; text-align: center; }
  .art-cta-media img { max-height: 120px; }
  .art-cta-row { justify-content: center; }
  .btn-primary { width: 100%; text-align: center; }

  .hub-head { padding: 30px 0 20px; }
  .hub-lead { font-size: 16.5px; }
  .hub-card { padding: 20px; }
  .hub-card h2 { font-size: 18px; }

  .footer-links { grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
