:root {
  --blue: #1f6fd1;
  --blue-dark: #134a92;
  --blue-soft: #e8f1fc;
  --teal: #12a38f;
  --teal-soft: #e3f6f2;
  --coral: #ef6b55;
  --coral-soft: #fdecea;
  --sun: #f6b73c;
  --sun-soft: #fef5e1;
  --ink: #1d2738;
  --muted: #5a6577;
  --line: #dfe5ee;
  --bg: #fbfcfe;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 2px 10px rgba(29, 39, 56, .06), 0 1px 2px rgba(29, 39, 56, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: 19px; }
html.big { font-size: 23px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6; -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: 2rem; margin-top: .6em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: .6em 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 10; }

/* Шапка */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.logo svg { width: 38px; height: 38px; }
.logo small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); line-height: 1.1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.nav a:hover, .nav a.on { background: var(--blue-soft); color: var(--blue-dark); }
.tools { display: flex; gap: 6px; }
.tool { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); }
.tool:hover { background: var(--blue-soft); }

/* Кнопки и формы */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 14px; padding: 12px 22px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.btn.light { background: var(--blue-soft); color: var(--blue-dark); }
.btn.teal { background: var(--teal); }
.btn.coral { background: var(--coral); }
.btn.small { padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
form.card label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(31, 111, 209, .25); border-color: var(--blue); }
textarea { min-height: 170px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; margin: 14px 0 !important; }
.check input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 3px; accent-color: var(--blue); }
.hint { color: var(--muted); font-size: .88rem; }
.errors { background: var(--coral-soft); border-radius: 12px; padding: 12px 18px; color: #9b2c1c; }
.hp { position: absolute; left: -9999px; }

/* Карточки */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid #eef1f6; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.topic { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); padding: 0; overflow: hidden; transition: transform .15s; }
.topic:hover { transform: translateY(-3px); color: var(--ink); }
.topic .pic { background: var(--blue-soft); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.topic .pic img { width: 100%; height: 100%; object-fit: contain; }
.topic .txt { padding: 14px 18px 18px; }
.topic h3 { margin: 0 0 4px; font-size: 1.05rem; }
.topic p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Главная */
.hero { background: linear-gradient(160deg, #eaf3fe 0%, #f4fbf9 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.hero h1 { font-size: 2.3rem; margin: 0 0 .3em; }
.hero p.big { font-size: 1.15rem; color: #354055; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.section { padding: 26px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tip { background: var(--sun-soft); border: 0; display: flex; gap: 18px; align-items: center; }
.tip img { width: 84px; flex: 0 0 84px; }
.tip b { display: block; color: #8a5a00; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.alarm { background: var(--coral-soft); border: 0; }
.alarm h2 { margin-top: 0; color: #b23a26; }

/* Статьи */
.article-head { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.article-head .pic { background: var(--blue-soft); border-radius: var(--radius); padding: 10px; }
.lead { font-size: 1.15rem; color: #354055; }
.main-box { background: var(--teal-soft); border-radius: var(--radius); padding: 18px 24px; margin: 22px 0; }
.main-box h2 { margin-top: 0; font-size: 1.15rem; color: #0b6b5e; }
.warn-box { background: var(--coral-soft); border-radius: var(--radius); padding: 18px 24px; margin: 22px 0; }
.warn-box h2, .warn-box h3 { margin-top: 0; color: #b23a26; }
.info-box { background: var(--sun-soft); border-radius: var(--radius); padding: 18px 24px; margin: 22px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 58px; min-height: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.icon-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.icon-card img { width: 72px; height: 72px; display: block; margin: 0 auto 6px; }
.icon-card b { display: block; }
.icon-card span { color: var(--muted); font-size: .86rem; }
table.nums { border-collapse: collapse; width: 100%; margin: 12px 0; background: #fff; border-radius: 12px; overflow: hidden; }
table.nums th, table.nums td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.nums th { background: var(--blue-soft); }
.ok { color: #0b7a4b; font-weight: 600; } .mid { color: #a86b00; font-weight: 600; } .bad { color: #c0392b; font-weight: 600; }
.next { margin: 34px 0 10px; }
.lecture { background: var(--teal-soft); border-radius: 16px; padding: 12px 16px; margin-top: 10px; }
.lecture b { display: block; color: #0b6b5e; }
.lecture .hint { display: block; margin: 2px 0 8px; }
.lecture audio { width: 100%; }
.badge { display: inline-block; font-size: .78rem; background: var(--teal-soft); color: #0b6b5e; border-radius: 99px; padding: 1px 10px; margin-top: 6px; }
.myth { border-left: 6px solid var(--coral); padding: 6px 0 6px 18px; margin: 18px 0; }
.myth b { color: #b23a26; }
.myth p.truth::before { content: "Правда: "; font-weight: 700; color: #0b7a4b; }
figure { margin: 18px 0; }
figure.wide { background: var(--blue-soft); border-radius: var(--radius); padding: 14px; }
figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 6px; }

/* Новости и вопросы */
.news-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.news-item h3 a { text-decoration: none; color: var(--ink); }
.news-item h3 a:hover { color: var(--blue); }
.meta { color: var(--muted); font-size: .82rem; }
.qa { margin: 18px 0; }
.qa .q { font-weight: 600; white-space: pre-line; }
.qa .a { background: var(--teal-soft); border-radius: 14px; padding: 12px 16px; margin-top: 10px; white-space: pre-line; }
.pager { display: flex; gap: 8px; margin: 20px 0; }
.doc { white-space: pre-wrap; font-size: .95rem; line-height: 1.55; }

/* Тест риска */
.risk fieldset { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; padding: 12px 18px; background: #fff; }
.risk legend { font-weight: 700; padding: 0 6px; }
.risk label { display: flex; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; }
.risk input[type=radio] { width: 22px; height: 22px; accent-color: var(--blue); }
.result { font-size: 1.1rem; }

/* Подвал */
.foot { margin-top: 40px; background: #1d2738; color: #c9d2e0; padding: 28px 0; font-size: .86rem; }
.foot a { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot .sos { background: rgba(239, 107, 85, .18); border-radius: 12px; padding: 12px 16px; color: #fff; }

/* Управление */
.admin-nav { background: #24324a; }
.admin-nav .wrap { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 20px; }
.admin-nav a { color: #e6ecf5; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .85rem; }
.admin-nav a:hover { background: rgba(255, 255, 255, .12); }
table.list { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
table.list th { background: #f3f6fa; }
.stat { font-size: 2rem; font-weight: 700; color: var(--blue); }
.warning { background: var(--sun-soft); border-radius: 12px; padding: 10px 16px; margin: 8px 0; }
.inline { display: inline; }
.pill { display: inline-block; border-radius: 99px; padding: 1px 10px; font-size: .78rem; background: #eef1f6; }
.pill.green { background: #dcf5e8; color: #0b6b3a; } .pill.red { background: var(--coral-soft); color: #9b2c1c; }

@media (max-width: 820px) {
  html { font-size: 18px; }
  .hero .wrap, .two, .article-head, .foot .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.6rem; }
  .nav { margin-left: 0; }
  .wrap { padding: 0 16px; }
  .top { position: static; }
}
@media print { .top, .foot, .tools, .lecture { display: none; } }
.break { word-break: break-all; }
.hero img { border-radius: var(--radius); }
@media (max-width: 820px) {
  .top .wrap { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 8px; }
}
.wide-audio { width: 100%; }
.region-box { border-left: 6px solid var(--teal); margin-bottom: 18px; }
.region-box h2, .region-box h3 { margin-top: 0; color: #0b6b5e; }
.region-box .news-item:last-child { border-bottom: 0; }
.region-badge { display: inline-block; background: var(--teal-soft); color: #0b6b5e; border-radius: 99px; padding: 0 8px; font-weight: 600; }
