/* ============================================================
   Образовательный портал для специалистов — общие стили
   Палитра наследует лендинг (quiet luxury greige), но чуть
   более «клиническая»: больше белого для атласа и таблиц.
   ============================================================ */
:root {
  --bg: #ece6dc;
  --bg-2: #e5ddd0;
  --panel: #f4f0e8;
  --paper: #fbf9f4;     /* чистый «лист атласа» */
  --line: #d6ccbd;
  --ink: #2e2820;
  --muted: #8a8175;
  --sage: #8a9a7b;
  --sage-dark: #6c7b5b;
  --espresso: #3b3027;
  --cream: #f4f0e8;
  --artery: #b5453b;    /* артерии */
  --vein: #4a6f9c;      /* вены */
  --muscle: #c98a6d;    /* мышцы */
  --muscle-2: #b06f52;
  --danger: #c0392b;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", 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.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: .5px; color: var(--espresso); }
.eyebrow { color: var(--sage-dark); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }

/* Header */
.edu-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,230,220,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.edu-nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.edu-logo { font-family: var(--serif); font-size: 21px; letter-spacing: 1px; color: var(--espresso); }
.edu-logo span { color: var(--sage-dark); }
.edu-logo small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.edu-back { font-size: 13px; color: var(--muted); letter-spacing: .5px; transition: color .2s; }
.edu-back:hover { color: var(--sage-dark); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--sage-dark); }
.crumbs span { color: var(--espresso); }

/* Buttons */
.btn { display: inline-block; background: var(--espresso); color: var(--cream); padding: 12px 26px;
  border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  transition: all .25s; border: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: #4a3d31; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--espresso); border: 1px solid var(--sage-dark); }
.btn-ghost:hover { background: rgba(138,154,123,.16); }

/* Hero / intro */
.edu-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.edu-hero h1 { font-size: 46px; line-height: 1.08; margin: 14px 0 14px; }
.edu-hero p { color: #5c554b; font-size: 17px; max-width: 680px; }

/* Catalog grid */
.cat-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.cat-section h2 { font-size: 34px; margin-bottom: 6px; }
.cat-section .sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.subhead { font-family: var(--serif); font-size: 22px; color: var(--espresso); margin: 38px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.subhead:first-of-type { margin-top: 8px; }
.brands { color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.ecard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column; transition: background .2s, transform .2s, box-shadow .2s;
}
a.ecard:hover { background: var(--paper); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59,48,39,.07); }
.ecard .tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--sage-dark); border: 1px solid var(--sage); border-radius: 999px; padding: 4px 11px; margin-bottom: 16px; }
.ecard h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.ecard p { color: var(--muted); font-size: 14px; }
.ecard .go { margin-top: auto; padding-top: 16px; color: var(--sage-dark); font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .6; transition: opacity .2s, transform .2s; }
a.ecard:hover .go { opacity: 1; transform: translateX(3px); }
.ecard.soon { opacity: .6; cursor: default; }
.ecard.soon .go { color: var(--muted); }

/* Content page */
.edu-main { padding: 48px 0 80px; }
.lead-block { max-width: 760px; margin-bottom: 40px; }
.lead-block .role-line { color: var(--muted); letter-spacing: 1px; font-size: 14px; margin-bottom: 18px; }
.section { margin: 56px 0; }
.section h2 { font-size: 30px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section h3 { font-size: 22px; margin: 30px 0 12px; }
.section p { color: #5c554b; font-size: 16px; margin-bottom: 14px; max-width: 820px; }
.section ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; max-width: 820px; }
.section ul li { position: relative; padding-left: 24px; margin-bottom: 9px; color: #5c554b; }
.section ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 11px; height: 6px;
  border-left: 1.5px solid var(--sage-dark); border-bottom: 1.5px solid var(--sage-dark); transform: rotate(-45deg); }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-family: var(--sans); font-weight: 600; color: var(--espresso); letter-spacing: .3px;
  font-size: 12px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }
td b { color: var(--espresso); }

/* Callouts */
.note { border-left: 3px solid var(--sage); background: var(--panel); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 15px; color: #5c554b; }
.note.verify { border-left-color: #c79a3a; background: #f6efdd; }
.note.danger { border-left-color: var(--danger); background: #f7e7e4; }
.note b { color: var(--espresso); }
.badge-verify { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: #8a6d1f; background: #f1e4c0; border-radius: 999px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }

/* Footer */
.edu-footer { background: var(--espresso); color: #c8bfb1; padding: 40px 0; font-size: 13px; }
.edu-footer a { color: var(--sage); border-bottom: 1px solid rgba(138,154,123,.4); }
.edu-footer .disclaimer { margin-top: 14px; line-height: 1.6; max-width: 880px; }

/* ===================== Глоссарий (кликабельные сноски) ===================== */
.term { color: var(--sage-dark); border-bottom: 1px dashed var(--sage); cursor: help; }
.term:hover, .term:focus { color: var(--espresso); border-bottom-color: var(--sage-dark); outline: none; }
.term::after { content: "?"; font-size: 9px; vertical-align: super; color: var(--sage-dark); margin-left: 1px; font-weight: 600; }
.term-pop { position: absolute; z-index: 200; max-width: 330px; background: var(--espresso); color: #efe7da;
  font-size: 14px; line-height: 1.55; padding: 15px 17px; border-radius: 6px; box-shadow: 0 14px 36px rgba(40,30,20,.3); font-weight: 300; }
.term-pop .tp-title { font-family: var(--serif); font-size: 18px; display: block; margin-bottom: 7px; color: #fff; }
.term-pop b { color: #fff; }
.term-pop::before { content: ""; position: absolute; top: -7px; left: var(--ax, 22px); border: 7px solid transparent; border-bottom-color: var(--espresso); border-top: 0; }
.term-pop.below::before { top: auto; bottom: -7px; border-bottom-color: transparent; border-top-color: var(--espresso); border-bottom: 0; }
/* Параметрические таблицы и подписи устройств */
table.params td:first-child { white-space: nowrap; }
.dev-fig { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0; max-width: 560px; }
.dev-fig svg { width: 100%; height: auto; display: block; }
.dev-cap { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }

/* ===================== Gate (специалистам) ===================== */
.gate {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.gate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 460px; width: 100%; padding: 44px 40px; text-align: center; }
.gate-card .eyebrow { display: block; margin-bottom: 14px; }
.gate-card h1 { font-size: 30px; margin-bottom: 12px; }
.gate-card p { color: #5c554b; font-size: 15px; margin-bottom: 22px; }
.gate-card label.chk { display: flex; gap: 10px; text-align: left; font-size: 13px; color: #5c554b; margin: 18px 0; }
.gate-card input[type=password] { width: 100%; font-family: inherit; font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.gate-card input[type=password]:focus { outline: none; border-color: var(--sage); }
.gate-card .btn { width: 100%; margin-top: 6px; }
.gate-err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 10px; }
.gate-foot { font-size: 12px; color: var(--muted); margin-top: 18px; }
body.locked { overflow: hidden; }
[data-protected] { display: none; }
body.unlocked [data-protected] { display: block; }

@media (max-width: 720px) {
  .edu-hero h1 { font-size: 34px; }
  .crumbs { display: none; }
}
