/* VideoKG.pro — стили сайта */
:root {
  --navy: #12304F;
  --navy-d: #0B2036;
  --navy-l: #1C4370;
  --red: #D62828;
  --red-d: #B51F1F;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --text: #1B2733;
  --muted: #5B6875;
  --line: #DDE3EA;
  --sky: #AFC0D3;
  --ok: #1F8A4C;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 48, 79, .06), 0 6px 20px rgba(18, 48, 79, .07);
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Montserrat, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-l); }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Шапка ---------- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav > a, .nav .dd > button {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 11px; border-radius: 8px; white-space: nowrap;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav > a:hover, .nav .dd > button:hover, .nav > a.on { background: rgba(255,255,255,.1); color: #fff; }
.dd { position: relative; }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.dd:hover .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 15px; }
.dd-menu a:hover { background: var(--bg); color: var(--red); }
.top-phone { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 15px; }
.top-phone:hover { color: var(--sky); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger svg { width: 30px; height: 30px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-dark .btn-line { color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; color: #fff; background: var(--navy-d); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--bgimg); background-size: cover; background-position: center;
  opacity: .28;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,32,54,.96) 0%, rgba(11,32,54,.75) 55%, rgba(11,32,54,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 720px; color: #E3EAF2; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(214,40,40,.25); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-weight: 600; color: #fff; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts b { color: var(--sky); font-weight: 800; }
.page-hero { background: var(--navy-d); color: #fff; }
.page-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #E3EAF2; font-size: 18px; max-width: 760px; margin-bottom: 22px; }
.crumbs { font-size: 14px; color: var(--sky); margin-bottom: 14px; }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ---------- Секции ---------- */
section { padding: 56px 0; }
section.alt { background: #fff; }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(18,48,79,.14); color: var(--text); }
.card .price { margin-top: auto; padding-top: 12px; font-weight: 800; color: var(--red); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: 14px; height: 14px; top: 5px; transform: none;
  background: linear-gradient(45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--muted) 43% 57%, transparent 57%); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
section.alt .steps li { background: var(--bg); box-shadow: none; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; color: var(--navy); margin-bottom: 4px; }
.note { border-left: 4px solid var(--red); background: #fff; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
section.alt .note { background: var(--bg); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }

/* ---------- Таблицы цен ---------- */
.ptable { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; }
.ptable caption { text-align: left; font-weight: 800; color: var(--navy); font-size: 20px; padding: 0 0 10px; }
.ptable td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable tr:first-child td { border-top: 0; }
.ptable td:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--navy); }
.ptable .u { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- Фото ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.photos figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.photos a { display: block; aspect-ratio: 3 / 4; overflow: hidden; cursor: zoom-in; }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photos a:hover img { transform: scale(1.04); }
.photos figcaption { padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.photos .bad figcaption { border-top: 4px solid var(--red); }
.photos .warn figcaption { border-top: 4px solid #E8A33D; }
.photos .good figcaption { border-top: 4px solid var(--ok); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-bottom: 4px; }
.tag.bad { background: #FBE3E3; color: var(--red-d); }
.tag.warn { background: #FCEFD9; color: #9A5D00; }
.tag.good { background: #DDF2E5; color: var(--ok); }
.lb { position: fixed; inset: 0; background: rgba(5,14,24,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lb.open { display: flex; }
.lb img { max-height: 88vh; width: auto; border-radius: 8px; }
.lb button { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb .cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 15px; padding: 0 16px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 230px)); gap: 14px; }
.certs figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.certs a { display: block; aspect-ratio: 3 / 4; padding: 10px; cursor: zoom-in; }
.certs img { width: 100%; height: 100%; object-fit: contain; }
.certs figcaption { padding: 8px 12px 12px; font-size: 14px; line-height: 1.4; }
.certs .ph { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #e9edf2 0 12px, #f4f6f9 12px 24px); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-weight: 600; text-align: center; padding: 16px; }

/* ---------- Формы ---------- */
.form { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 1.4; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-l); box-shadow: 0 0 0 3px rgba(28,67,112,.15); }
.form .btn { width: 100%; }
.form .fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.form .msg { margin-top: 12px; font-weight: 600; }
.form .msg.ok { color: var(--ok); }
.form .msg.err { color: var(--red-d); }
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #E3EAF2; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.q { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.q h3 { display: flex; gap: 10px; align-items: center; }
.q h3 i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; flex: 0 0 auto; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; background: #fff; }
.opts input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(28,67,112,.3); }
.counter { display: flex; align-items: center; gap: 10px; margin: 6px 22px 6px 0; }
.counter button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 22px; cursor: pointer; color: var(--navy); }
.counter output { min-width: 30px; text-align: center; font-weight: 800; font-size: 20px; color: var(--navy); }
.counters { display: flex; flex-wrap: wrap; align-items: center; }
.result { position: sticky; top: 88px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.result h3 { color: #fff; }
.result .sum { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 6px 0 14px; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 16px; font-size: 15px; }
.result dt { color: var(--sky); }
.result dd { margin: 0; text-align: right; font-weight: 700; }
.result .fine { font-size: 13px; color: var(--sky); }
.result .btn { width: 100%; margin-top: 10px; }

/* ---------- Вопросы ---------- */
details.faq { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 10px; }
section.alt details.faq { background: var(--bg); box-shadow: none; }
details.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--red); }
details.faq[open] summary::after { content: "–"; }
details.faq div { padding: 0 20px 18px; }

/* ---------- Подвал ---------- */
.foot { background: var(--navy-d); color: #C9D5E2; padding: 44px 0 90px; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--sky); }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }

/* ---------- Плашка на телефоне ---------- */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 8px; gap: 8px; }
.mbar a { flex: 1; padding: 12px 8px; font-size: 15px; }

/* ---------- Языки ---------- */
.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 700; margin-left: 8px; order: 3; }
.langs a, .langs b { padding: 5px 7px; border-radius: 6px; color: #C9D5E2; text-decoration: none; }
.langs b { background: rgba(255,255,255,.14); color: #fff; }
.langs a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav { order: 2; }
.burger { order: 4; }
.lhint { background: #FFF6D6; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.lhint a { color: var(--navy); }
.lhint button { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
@media (max-width: 1000px) { .langs { margin-left: auto; } .burger { margin-left: 4px; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .top-phone { display: none; }
  .nav > a, .nav .dd > button { padding: 10px 8px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; text-align: left; width: 100%; }
  .dd-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 6px 12px; min-width: 0; }
  .dd-menu a { color: #DCE5EF; padding: 10px 4px; }
  .dd-menu a:hover { background: none; color: #fff; }
  .g3, .two, .calc { grid-template-columns: 1fr; }
  .result { position: static; }
  .foot .cols { grid-template-columns: 1fr; }
  .mbar { display: flex; }
}
@media (max-width: 600px) {
  .g2, .g4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 44px; }
  .btns .btn { flex: 1 1 100%; }
  .logo img { height: 40px; }
  .ptable td { padding: 11px 12px; font-size: 15px; }
  .photos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .photos figcaption { font-size: 13px; padding: 8px; }
}

/* «Нашли ошибку» */
.typo-hint { font-size: 14px; opacity: .85; margin: 22px 0 0; }
.typo-hint a { text-decoration: underline; }
.typo-dlg { position: fixed; inset: 0; background: rgba(5,14,24,.6); display: flex; align-items: center; justify-content: center; z-index: 210; padding: 16px; }
.typo-dlg .form { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }
.typo-dlg blockquote { margin: 6px 0 14px; padding: 10px 14px; background: #F4F6F9; border-left: 4px solid var(--red); font-size: 15px; line-height: 1.45; }
.typo-dlg .btns { display: flex; gap: 10px; margin-top: 12px; }
.typo-dlg .btns .btn { flex: 1; }
.typo-dlg .fine { margin: 0 0 6px; }

/* ---------- Тест по электробезопасности (/ru/test-elektrobezopasnost/) ---------- */
.ebt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ebt-chips button, .ebt-bar button {
  font: 600 15px Montserrat, "Segoe UI", Arial, sans-serif; min-height: 44px; padding: 8px 16px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer;
}
.ebt-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ebt-bar button:disabled { opacity: .45; cursor: default; }
.ebt-chips button:focus-visible, .ebt-bar button:focus-visible, .ebt-opt:focus-within { outline: 3px solid var(--navy-l); outline-offset: 2px; }
.ebt-q { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; }
.ebt-q[hidden] { display: none; }
.ebt-q h3 { font-size: 17px; line-height: 1.4; margin: 0 0 6px; color: var(--text); }
.ebt-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; margin-right: 8px; vertical-align: 2px; }
.ebt-multi { font-size: 13px; color: var(--navy-l); font-weight: 700; margin: 0 0 4px; }
.ebt-opt { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; min-height: 44px; cursor: pointer; border: 1px solid transparent; }
.ebt-opt:hover { background: var(--bg); }
.ebt-opt input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ok); }
.ebt-opt.right { background: #E3F3E9; border-color: var(--ok); }
.ebt-opt.wp { background: #FBE4E2; border-color: var(--red); }
.ebt-opt.wp input { accent-color: var(--red); }
.ebt-opt.wp span::after { content: " — неверно"; color: var(--red); font-weight: 700; }
.ebt-opt.right:not(.miss) span::after { content: " — верно"; color: var(--ok); font-weight: 700; }
.ebt-opt.miss span::after { content: " — правильный ответ"; color: var(--ok); font-weight: 700; }
.ebt-q.ok { border-left-color: var(--ok); }
.ebt-q.bad { border-left-color: var(--red); }
.ebt.js .ebt-expl { display: none; }
.ebt-expl { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ebt.js .ebt-q.done .ebt-expl { display: block; }
.ebt-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); }
.ebt-prog { flex: 1 1 220px; font-size: 15px; }
.ebt-res { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: var(--card); }
.ebt-res b { font-size: 30px; color: var(--navy); }
.ebt-res span { font-size: 18px; color: var(--muted); margin-left: 8px; }
.ebt-res p { margin: 6px 0 0; }
.ebt-res ul { margin: 8px 0 0; padding-left: 20px; }
.ebt-res li { margin: 2px 0; }
.ebt-res b.ebt-part { font-size: 17px; }
.ebt-chips button small { font-size: 12px; font-weight: 400; opacity: .75; margin-left: 4px; white-space: nowrap; }
.ebt-res.good { border-color: var(--ok); } .ebt-res.mid { border-color: #E0A800; } .ebt-res.low { border-color: var(--red); }
.eb-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.eb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0 0 16px; }
.eb-grid b.big { display: block; font-size: 24px; color: var(--navy); white-space: nowrap; }
.eb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.eb-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.eb-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: #FFCC00; color: var(--navy-d); display: grid; place-items: center; font-weight: 800; }
.eb-steps small { display: block; font-weight: 400; color: #D6E0EA; font-size: 13px; }
.eb-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; margin: 0 0 16px; }
.eb-table th, .eb-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.eb-table th { background: #EEF2F6; color: var(--navy); }
.eb-scroll { overflow-x: auto; }
.eb-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eb-toc a { display: inline-block; padding: 7px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; color: #fff; text-decoration: none; font-size: 14px; }
.eb-toc a:hover { background: rgba(255,255,255,.12); color: #fff; }
.eb-note { border-left: 4px solid #FFCC00; background: var(--card); padding: 10px 14px; margin: 12px 0; border-radius: 0 10px 10px 0; }
@media (max-width: 1000px) { .ebt-bar { bottom: 62px; } }
@media (max-width: 600px) { .eb-table { font-size: 13px; } .eb-table.stack thead { display: none; } .eb-table.stack tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); } .eb-table.stack td { border: 0; padding: 2px 4px; } .eb-table.stack td:first-child { font-weight: 700; color: var(--navy); } }
