/* =========================================================
   Портал педагога — общий каркас сайта (2026)
   Шапка/подвал/типографика для всех страниц
   ========================================================= */

:root {
  --brand: #1e628d;
  --brand-d: #154a6b;
  --brand-l: #78bbe6;
  --sky: #a9d6ef;
  --tab-hover: #a9d6ef;
  --navy: #204964;
  --navy-d: #173a52;
  --red: #c9030c;
  --yellow: #ffc103;

  --bg: #eef4f8;
  --surface: #fff;
  --text: #1d2f3c;
  --muted: #5b7285;
  --line: #dce8f0;
  --line-2: #eaf2f7;
  --heading: #204964;
  --tint: #eef5fa;
  --tint-2: #f0f7fc;
  --tint-3: #dceef9;
  --tint-4: #eaf3f9;
  --tint-5: #fbfdfe;
  --theme-btn-bg: #56768e; /* было #5c7f99: белый текст давал 4.24:1, стало 4.80:1 */
  --theme-btn-fg: #ffffff;
  --search-bg: rgba(255, 255, 255, .96);
  --cookie-bg: rgba(255, 255, 255, .97);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(23, 58, 82, .05), 0 3px 10px rgba(23, 58, 82, .05);
  --shadow-md: 0 2px 6px rgba(23, 58, 82, .06), 0 12px 28px rgba(23, 58, 82, .09);
  --shadow-lg: 0 10px 30px rgba(23, 58, 82, .14);
  --wrap: 1120px;
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --brand: #4fa8dc;
  --brand-d: #74c4ef;
  --brand-l: #6fb8e2;
  --sky: #b7dff5;
  --tab-hover: #24506a;
  --navy: #142b3a;
  --navy-d: #0c1720;

  --bg: #0e1a24;
  --surface: #15232e;
  --text: #e6eef4;
  --muted: #a9bdcc;
  --line: #263a4b;
  --line-2: #1f3140;
  --heading: #dbe7f0;
  --tint: #1c2c39;
  --tint-2: #223542;
  --tint-3: #1b3648;
  --tint-4: #1b2f3e;
  --tint-5: #182833;
  --theme-btn-bg: #a9bcc9;
  --theme-btn-fg: #223340;
  --search-bg: rgba(28, 44, 57, .92);
  --cookie-bg: rgba(18, 29, 38, .97);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 3px 10px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .5), 0 12px 28px rgba(0, 0, 0, .38);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }

:focus-visible { outline: 3px solid rgba(30, 98, 141, .45); outline-offset: 3px; border-radius: 6px; }

.s2026-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 28px);
}

/* ---------- верхняя полоса ---------- */
.s2026-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
.s2026-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding-block: 5px;
}
.s2026-strip__right { display: inline-flex; align-items: center; gap: 12px; }
/* легаси styles.css объявляет * { font-size: 14px } — из-за него вложенные
   элементы верхней полосы на внутренних страницах крупнее, чем на главной */
.s2026-strip__inner, .s2026-strip__left, .s2026-strip__right, .s2026-date { font-size: 12.5px; }
.s2026-theme, .s2026-theme * { font-size: 12.5px; }
.s2026-date { font-weight: 500; color: var(--text); white-space: nowrap; }

.s2026-theme {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  flex: none;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--theme-btn-bg);
  color: var(--theme-btn-fg);
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .16s;
}
.s2026-theme:hover { filter: brightness(1.07); }
.s2026-theme svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* старый styles.css ставит * { color: #959595 } — дети кнопки иначе серые на сером */
.s2026-theme, .s2026-theme * { color: var(--theme-btn-fg); }
.s2026-search__btn svg, .s2026-scroll__btn svg { color: inherit; }
.s2026-theme__sun { display: none; }
html[data-theme="dark"] .s2026-theme__sun { display: block; }
html[data-theme="dark"] .s2026-theme__moon { display: none; }
.s2026-theme__to-light { display: none; }
html[data-theme="dark"] .s2026-theme__to-dark { display: none; }
html[data-theme="dark"] .s2026-theme__to-light { display: inline; }

/* ---------- шапка ---------- */
.s2026-head { position: relative; z-index: 45; }

.s2026-tabs { background: var(--surface); padding: 10px 0 8px; border-bottom: 3px solid var(--brand); }
.s2026-tabs__inner { display: flex; flex-wrap: wrap; gap: 6px; }
.s2026-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 8px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* тень вокруг кнопки: контур + мягкое свечение со всех сторон */
  box-shadow: 0 0 0 1px rgba(30, 98, 141, .12), 0 0 10px rgba(23, 58, 82, .18);
  transition: background-color .16s, color .16s, box-shadow .16s, transform .16s;
}
.s2026-tab:hover {
  background: var(--tab-hover);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(30, 98, 141, .22), 0 0 14px rgba(23, 58, 82, .28);
  transform: translateY(-1px);
}
.s2026-tab.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(30, 98, 141, .40), 0 0 14px rgba(30, 98, 141, .45);
}
.s2026-tab--cta { background: #fff4d2; color: #8a5c00; }
.s2026-tab--cta:hover { background: var(--yellow); color: #3a2800; }
/* равные доли ширины контейнера сайта (не экрана) */
.s2026-tabs .s2026-tab { flex: 1 1 0; }
html[data-theme="dark"] .s2026-tab--cta { background: #3a2f12; color: #ffd45e; }
html[data-theme="dark"] .s2026-tab { box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 0 12px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .s2026-tab:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 16px rgba(0, 0, 0, .65); }
html[data-theme="dark"] .s2026-tab.is-active { background: #2a76a2; color: #fff; box-shadow: 0 0 0 1px rgba(116, 196, 239, .40), 0 0 16px rgba(0, 0, 0, .60); }

.s2026-brandbar { background: linear-gradient(100deg, #5fa9d6 0%, var(--brand) 62%, var(--brand-d) 100%); }
html[data-theme="dark"] .s2026-brandbar { background: linear-gradient(100deg, #1c3e52 0%, #143141 62%, #0e2431 100%); }
.s2026-brandbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.s2026-brand { display: inline-flex; align-items: center; gap: 16px; color: #fff; flex: 0 0 auto; }
.s2026-brand:hover { color: #fff; }
.s2026-brand__logo { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.s2026-brand__name {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

.s2026-search {
  display: flex;
  align-items: center;
  flex: 0 1 340px;
  min-width: 200px;
  height: 44px;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  background: var(--search-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.s2026-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: #16232e;
  outline: none;
}
.s2026-search__input::placeholder { color: #6c8496; }
.s2026-search__btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.s2026-search__btn:hover { background: var(--brand-d); }
.s2026-search__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .s2026-search__btn { background: #1d5d85; }
html[data-theme="dark"] .s2026-search { border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .38); }
html[data-theme="dark"] .s2026-search__input { color: var(--text); }
html[data-theme="dark"] .s2026-search__input::placeholder { color: var(--muted); }

.s2026-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}
.s2026-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
body.s2026-nav-open .s2026-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.s2026-nav-open .s2026-burger span:nth-child(2) { opacity: 0; }
body.s2026-nav-open .s2026-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- контент ---------- */
.s2026-main:not(.s2026-main--home) {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 28px) clamp(36px, 5vw, 64px);
}

.s2026-main--home { max-width: none; padding: 0; }

.s2026-main:not(.s2026-main--home) h1, .s2026-main:not(.s2026-main--home) h2, .s2026-main:not(.s2026-main--home) h3, .s2026-main:not(.s2026-main--home) h4 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.s2026-main:not(.s2026-main--home) h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.s2026-main:not(.s2026-main--home) h2 { font-size: clamp(21px, 2.4vw, 27px); margin: 28px 0 12px; }
.s2026-main:not(.s2026-main--home) h3 { font-size: clamp(18px, 2vw, 21px); margin: 22px 0 10px; }
.s2026-main:not(.s2026-main--home) h4 { font-size: 17px; margin: 18px 0 8px; }
.s2026-main:not(.s2026-main--home) p { margin: 0 0 12px; line-height: 1.65; }
.s2026-main:not(.s2026-main--home) ul, .s2026-main:not(.s2026-main--home) ol { margin: 0 0 14px; padding-left: 22px; }
.s2026-main:not(.s2026-main--home) li { margin-bottom: 6px; line-height: 1.6; }
.s2026-main:not(.s2026-main--home) a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(30, 98, 141, .35); }
.s2026-main:not(.s2026-main--home) a:hover { text-decoration-color: currentColor; }
.s2026-main:not(.s2026-main--home) img { max-width: 100%; height: auto; }
.s2026-main:not(.s2026-main--home) hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.s2026-main:not(.s2026-main--home) b, .s2026-main:not(.s2026-main--home) strong { color: var(--text); }

.s2026-main:not(.s2026-main--home) table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 14.5px;
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.s2026-main:not(.s2026-main--home) td, .s2026-main:not(.s2026-main--home) th {
  border: 1px solid var(--line);
  padding: 9px 11px;
  vertical-align: top;
  color: var(--text);
  overflow-wrap: anywhere;
}
.s2026-main:not(.s2026-main--home) tr:nth-child(even) td { background: var(--tint-5); }

.s2026-main:not(.s2026-main--home) input[type="text"], .s2026-main:not(.s2026-main--home) input[type="email"], .s2026-main:not(.s2026-main--home) input[type="password"],
.s2026-main:not(.s2026-main--home) input[type="tel"], .s2026-main:not(.s2026-main--home) input[type="number"], .s2026-main:not(.s2026-main--home) select, .s2026-main:not(.s2026-main--home) textarea {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.s2026-main:not(.s2026-main--home) input[type="submit"], .s2026-main:not(.s2026-main--home) button, .s2026-main:not(.s2026-main--home) .button12, .s2026-main:not(.s2026-main--home) .button {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #6fb5df, var(--brand));
  color: #fff !important;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 16px rgba(30, 98, 141, .28);
}
.s2026-main:not(.s2026-main--home) input[type="submit"]:hover, .s2026-main:not(.s2026-main--home) button:hover, .s2026-main:not(.s2026-main--home) .button12:hover, .s2026-main:not(.s2026-main--home) .button:hover { filter: brightness(1.06); }

/* старые обёртки контента */
.s2026-main:not(.s2026-main--home) .panel-content1 { width: auto; max-width: 100%; margin: 0 auto; }
.s2026-main:not(.s2026-main--home) .clearing { clear: both; }
.s2026-main:not(.s2026-main--home) .block_left_index { float: left; margin: 0 24px 16px 0; }
/* form.css держит фикс. height:300px — из-за этого на obrazec_svidetelstva
   обрезался весь текст ниже первого шага; на внутренних страницах высота свободная */
.s2026-main:not(.s2026-main--home) .block_right_index { float: none; width: auto; height: auto; margin-bottom: 20px; overflow: hidden; }
.s2026-main:not(.s2026-main--home) .block_left_index { height: auto; }

/* убрать остатки старого каркаса, если где-то ещё выводятся */
.vert, .vert2, .footer-wrapper, .footer-strip-wrapper, .logo-wrapper, .header-wrapper2, .socseti { display: none !important; }

/* ---------- подвал ---------- */
.s2026-footer { background: var(--navy-d); color: rgba(255, 255, 255, .72); padding-top: 34px; margin-top: 24px; }
.s2026-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, .8fr));
  gap: 34px;
  padding-bottom: 30px;
}
.s2026-footer .s2026-brand { gap: 10px; margin-bottom: 12px; }
.s2026-footer .s2026-brand__logo { width: 40px; height: 40px; }
.s2026-footer .s2026-brand__name { font-size: 19px; letter-spacing: .06em; }
.s2026-footer__brand p { font-size: 12.5px; line-height: 1.6; margin: 0 0 8px; max-width: 36em; color: rgba(255, 255, 255, .65); }
.s2026-footer__col { display: flex; flex-direction: column; gap: 9px; }
.s2026-footer__col h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 600; }
.s2026-footer__col a { color: rgba(255, 255, 255, .7); font-size: 14px; text-decoration: none; }
.s2026-footer__col a:hover { color: #fff; }
.s2026-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- кнопки прокрутки ---------- */
.s2026-scroll { position: fixed; right: clamp(12px, 2vw, 24px); bottom: calc(var(--cookie-h, 0px) + 18px); z-index: 55; display: flex; flex-direction: column; gap: 8px; }
body { --cookie-h: 76px; padding-bottom: var(--cookie-h, 0px); }
body.s2026-cookie-off { --cookie-h: 0px; }
.s2026-scroll__btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s, background-color .16s, color .16s;
}
.s2026-scroll__btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.s2026-scroll__btn:hover { background: var(--brand); color: #fff; }
.s2026-scroll__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.s2026-nav-open .s2026-scroll { opacity: 0; visibility: hidden; }

/* ---------- cookie ---------- */
.s2026-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--cookie-bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(23, 58, 82, .12);
  backdrop-filter: blur(8px);
}
.s2026-cookie.is-hidden { display: none; }
.s2026-cookie__inner { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.s2026-cookie p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.s2026-cookie__btn {
  flex: none;
  padding: 9px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.s2026-cookie__btn:hover { background: var(--brand-d); }
/* тёмная тема: --brand светлый (#4fa8dc), белый текст на нём нечитаем (2.6:1) */
html[data-theme="dark"] .s2026-cookie__btn:not(.s2026-cookie__btn--ghost):not(.s2026-cookie__btn--link) { background: #2a76a2; }
html[data-theme="dark"] .s2026-cookie__btn:not(.s2026-cookie__btn--ghost):not(.s2026-cookie__btn--link):hover { background: #1e628d; }
.s2026-cookie__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: none; margin-left: auto; }
.s2026-cookie__btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.s2026-cookie__btn--ghost:hover { background: var(--tint); }
.s2026-cookie__btn--link { padding-inline: 6px; background: transparent; color: var(--brand); text-align: center; text-decoration: underline; text-underline-offset: 2px; }
.s2026-cookie__btn--link:hover { background: transparent; color: var(--brand-d); }


/* тёмная тема: контент легаси-страниц тоже тёмный */
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) {
  background: var(--surface);
  color: var(--text);
  margin-block: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h1,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h2,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h3,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h4,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h5,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) h6 { color: var(--heading) !important; }
/* старый styles.css красит тексты в #444/#959595 инлайном — на тёмном фоне не читается */
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) p,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) li,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) td,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) th,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) dt,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) dd,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) label,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) legend,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) small,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) b,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) strong { color: var(--text) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a { color: var(--brand) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) table { background: transparent !important; border-color: var(--line) !important; box-shadow: none; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) td,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) th { border-color: var(--line) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) tr:nth-child(even) td { background: rgba(255, 255, 255, .035) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) input[type="text"],
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) input[type="email"],
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) input[type="password"],
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) input[type="tel"],
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) input[type="number"],
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) select,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) textarea {
  background: var(--tint) !important; color: var(--text) !important; border-color: var(--line) !important;
}
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) ::placeholder { color: var(--muted) !important; opacity: 1; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .panel,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .blok_zayavka { background: var(--tint) !important; border-color: var(--line); }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .panel p { color: var(--muted) !important; }
/* «Принимаем к оплате» — белая картинка логотипов на тёмной теме не нужна */
html[data-theme="dark"] .s2026-main img[src*="varianty_oplaty"] { display: none !important; }
html[data-theme="dark"] .s2026-main center:has(+ img[src*="varianty_oplaty"]) { display: none !important; }
/* градиентные кнопки form.css: в тёмной теме общий color ссылок делает текст невидимым */
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.button12,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.button13,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.button14,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.button15 { color: #fff !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.more1,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .block_polosa a,
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .block_polosa14 a { color: #fff !important; }


.s2026-main:not(.s2026-main--home) input[type="submit"],
.s2026-main:not(.s2026-main--home) input.bbotre,
.s2026-main:not(.s2026-main--home) button[type="submit"] {
  background: linear-gradient(180deg, #6fb5df, var(--brand)) !important;
  background-image: linear-gradient(180deg, #6fb5df, var(--brand)) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 10px 22px !important;
  border-radius: 10px !important;
  font-family: var(--font) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

/* старый styles.css ставит * { font-family: Arial; color: #959595 } —
   перебиваем шрифт и явно задаём цвета элементов каркаса */
* { font-family: var(--font); }
.s2026-brand, .s2026-brand:hover { color: #fff; }
.s2026-brand__name { color: #fff; }
.s2026-strip__inner { color: var(--muted); }
.s2026-strip__left { color: var(--muted); }
.s2026-date { color: var(--text); }
.s2026-footer__inner { color: rgba(255, 255, 255, .72); }
.s2026-footer__brand p { color: rgba(255, 255, 255, .65); }
.s2026-footer__col a { color: rgba(255, 255, 255, .7); }
.s2026-footer__bottom { color: rgba(255, 255, 255, .45); }
.s2026-cookie p { color: var(--muted); }
.s2026-search__input { color: #16232e; }


/* ---------- осовремененные легаси-компоненты ---------- */
.s2026-main:not(.s2026-main--home) .block_polosa,
.s2026-main:not(.s2026-main--home) .block_polosa14 {
  width: auto !important;
  max-width: 100%;
  margin: 12px auto !important;
  padding: 14px 20px !important;
  border-radius: 12px;
  background: linear-gradient(180deg, #2d6f99, #1d5b80) !important;
  color: #fff !important;
  font-size: clamp(17px, 2vw, 22px) !important;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: filter .16s, transform .16s;
}
.s2026-main:not(.s2026-main--home) .block_polosa:hover,
.s2026-main:not(.s2026-main--home) .block_polosa14:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff !important; }
.s2026-main:not(.s2026-main--home) .block_polosa a,
.s2026-main:not(.s2026-main--home) .block_polosa14 a { color: #fff !important; }

.s2026-main:not(.s2026-main--home) .block_polosa2 {
  width: auto !important;
  max-width: 100%;
  margin: 10px auto 0 !important;
  padding: 10px 18px !important;
  border-radius: 10px 10px 0 0;
  background: var(--tint-3) !important;
  color: var(--brand-d) !important;
  font-size: 16px !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.s2026-main:not(.s2026-main--home) .block_polosa2 a { color: var(--brand) !important; font-size: 14px !important; }

.s2026-main:not(.s2026-main--home) .block_polosa3 {
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 9px 18px !important;
  background: var(--surface) !important;
  border-bottom: 1px dashed var(--line) !important;
  color: var(--text) !important;
  font-size: 14.5px !important;
  transition: background-color .14s;
}
.s2026-main:not(.s2026-main--home) .block_polosa3:hover { background: var(--tint-2) !important; }
.s2026-main:not(.s2026-main--home) .block_polosa3 a { color: var(--brand) !important; font-size: 14.5px !important; }
.s2026-main:not(.s2026-main--home) .block_polosa3 a:hover { color: var(--brand-d) !important; }

.s2026-main:not(.s2026-main--home) .panel-wrapper { background: transparent !important; }
.s2026-main:not(.s2026-main--home) .panel-content,
.s2026-main:not(.s2026-main--home) .panel-content1,
.s2026-main:not(.s2026-main--home) .panel-content2 { width: auto !important; max-width: 100% !important; }

.s2026-main:not(.s2026-main--home) .panel-content {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.s2026-main:not(.s2026-main--home) .panel {
  display: flex;
  flex-direction: column;
  width: min(300px, 100%) !important;
  float: none !important;
  margin: 0 !important;
  background: var(--surface) !important;
  background-image: none !important;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .16s, transform .16s;
}
/* кнопка «В раздел» прижата к низу карточки — ровный ряд независимо от длины текста */
.s2026-main:not(.s2026-main--home) .panel > p { flex: 1 1 auto; }
.s2026-main:not(.s2026-main--home) .panel > a.more1 { margin-top: auto !important; margin-bottom: 22px !important; align-self: flex-start; }
.s2026-main:not(.s2026-main--home) .panel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.s2026-main:not(.s2026-main--home) .panel-bottom {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
}


.s2026-main:not(.s2026-main--home) .blok_zayavka {
  border: 1px solid var(--line) !important;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 34px) !important;
  max-width: 760px;
  margin: 0 auto !important;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}


.s2026-main:not(.s2026-main--home) a.boton22,
.s2026-main:not(.s2026-main--home) a.boton1 {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface) !important;
  background-image: none !important;
  color: var(--brand) !important;
  font-size: 14.5px !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, color .16s;
}
.s2026-main:not(.s2026-main--home) a.boton22:hover,
.s2026-main:not(.s2026-main--home) a.boton1:hover { border-color: var(--brand); color: var(--brand-d) !important; }

/* ряд кнопок «Оплатить / Принять участие / …» на страницах мероприятий.
   form.css делает .blok_center float:right + боттоны float:left — из-за этого
   ряд уезжает от центра. Возвращаем обычное центрирование по тексту. */
.s2026-main:not(.s2026-main--home) .blok_center {
  float: none;
  right: auto;
  text-align: center;
}
.s2026-main:not(.s2026-main--home) .blok_center a.boton1,
.s2026-main:not(.s2026-main--home) .blok_center a.boton22 {
  float: none;
  margin: 0 4px 10px;
  vertical-align: top;
}

.s2026-main:not(.s2026-main--home) a.more1 {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 9px 18px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #6fb5df, var(--brand)) !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  text-decoration: none !important;
}

/* блок «Разработчик программ…» на /about (раньше был картинкой) */
.s2026-main:not(.s2026-main--home) .about-soteh { max-width: 900px; margin: 0 auto 20px; line-height: 1.65; }

/* ---------- страница 404 ---------- */
.s2026-main:not(.s2026-main--home) .s2026-404 { max-width: 760px; margin: 0 auto; padding: 10px 0 18px; text-align: center; }
.s2026-main:not(.s2026-main--home) .s2026-404__code {
  font-size: clamp(84px, 16vw, 150px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--brand);
  opacity: .9;
}
.s2026-main:not(.s2026-main--home) .s2026-404__title { margin: 6px 0 12px !important; font-size: clamp(24px, 3.4vw, 34px) !important; }
.s2026-main:not(.s2026-main--home) .s2026-404__text { max-width: 46em; margin: 0 auto; color: var(--muted) !important; font-size: 16.5px; }
.s2026-main:not(.s2026-main--home) .s2026-404__search { flex: 0 1 420px; max-width: 420px; margin: 26px auto 0; }
.s2026-main:not(.s2026-main--home) .s2026-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.s2026-main:not(.s2026-main--home) .s2026-404__btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}
.s2026-main:not(.s2026-main--home) .s2026-404__btn:hover { border-color: var(--brand); }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .s2026-404__btn--primary { color: #fff !important; }
.s2026-main:not(.s2026-main--home) .s2026-404__btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #6fb5df, var(--brand));
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(30, 98, 141, .28);
}
.s2026-main:not(.s2026-main--home) .s2026-404__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-top: 30px; }
.s2026-main:not(.s2026-main--home) .s2026-404__links a { color: var(--brand) !important; font-size: 14.5px; }
.s2026-main:not(.s2026-main--home) .s2026-404__hint { margin-top: 26px; color: var(--muted) !important; font-size: 13.5px; }

/* ---------- адаптив каркаса ---------- */
@media (max-width: 820px) {
  .s2026-burger { display: inline-flex; }
  .s2026-head { position: relative; }
  .s2026-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    z-index: 60;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px 16px 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: var(--surface);
  }
  body.s2026-nav-open .s2026-tabs { display: block; }
  .s2026-tabs__inner { flex-direction: column; gap: 5px; }
  .s2026-tab { flex: none; width: 100%; padding: 13px 16px; border-radius: 10px; font-size: 16px; text-align: left; }
  /* desktop-правило .s2026-tabs .s2026-tab{flex:1 1 0} специфичнее — в мобильном меню
     оно сплющивало пункты до 26px и обрезало текст */
  .s2026-tabs .s2026-tab { flex: 0 0 auto; height: auto; }

  .s2026-brandbar__inner { min-height: 84px; gap: 12px; }
  .s2026-brand__logo { width: 48px; height: 48px; }
  .s2026-search { flex: 1 1 200px; }
  .s2026-footer__inner { grid-template-columns: 1fr 1fr; }
  .s2026-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .s2026-strip__inner { justify-content: flex-end; }
  .s2026-strip__right { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
  body { --cookie-h: 250px; }
  .s2026-brandbar__inner { flex-wrap: wrap; }
  .s2026-brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .s2026-brand__logo { width: 40px; height: 40px; }
  .s2026-brand__name { font-size: 16px; letter-spacing: .03em; }
  .s2026-search { flex: 1 1 100%; order: 3; }
  .s2026-footer__inner { grid-template-columns: 1fr; }
  .s2026-cookie__inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .s2026-cookie__actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; margin-left: 0; }
  .s2026-cookie__btn { width: 100%; }
  .s2026-main:not(.s2026-main--home) table { display: block; overflow-x: auto; }
}

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

/* ---------- постраничная навигация (список новостей) ---------- */
.s2026-pager__meta { text-align: center; color: var(--muted); font-size: 13.5px; margin: 22px 0 12px; }
.s2026-main:not(.s2026-main--home) .s2026-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 10px;
}
.s2026-main:not(.s2026-main--home) .s2026-pager__link,
.s2026-main:not(.s2026-main--home) .s2026-pager__cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, background-color .16s, color .16s;
}
.s2026-main:not(.s2026-main--home) .s2026-pager__link:hover {
  border-color: var(--brand);
  background: var(--tint);
  color: var(--brand-d) !important;
}
.s2026-main:not(.s2026-main--home) .s2026-pager__cur {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff !important;
  cursor: default;
}
.s2026-main:not(.s2026-main--home) .s2026-pager__nav { padding: 0 18px; }
.s2026-main:not(.s2026-main--home) .s2026-pager__dots { color: var(--muted); padding: 0 2px; font-size: 16px; letter-spacing: .06em; }

@media (max-width: 620px) {
  .s2026-main:not(.s2026-main--home) .s2026-pager { gap: 6px; }
  .s2026-main:not(.s2026-main--home) .s2026-pager__link,
  .s2026-main:not(.s2026-main--home) .s2026-pager__cur { min-width: 38px; height: 38px; padding: 0 10px; font-size: 14px; }
  .s2026-main:not(.s2026-main--home) .s2026-pager__nav { padding: 0 12px; }
}

/* ---------- таблицы на узких экранах ---------- */
@media (max-width: 820px) {
  .s2026-main:not(.s2026-main--home) table { width: 100%; max-width: 100%; font-size: 13px; }
  .s2026-main:not(.s2026-main--home) td,
  .s2026-main:not(.s2026-main--home) th {
    padding: 7px 9px !important;
    font-size: 13px;
    border: 1px solid var(--line) !important;
  }
}

@media (max-width: 620px) {
  /* широкие таблицы не сжимаются в нечитаемые столбцы, а прокручиваются */
  .s2026-main:not(.s2026-main--home) table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0 !important;
    border-radius: 10px;
    box-shadow: none;
    background: transparent;
  }
  .s2026-main:not(.s2026-main--home) table > thead,
  .s2026-main:not(.s2026-main--home) table > tbody,
  .s2026-main:not(.s2026-main--home) table > tfoot {
    display: table;
    width: 100%;
    min-width: 560px;
  }
  .s2026-main:not(.s2026-main--home) td,
  .s2026-main:not(.s2026-main--home) th {
    padding: 6px 8px !important;
    font-size: 12.5px;
    line-height: 1.4;
  }
  /* выключка по ширине на узком экране даёт «рваные» пробелы */
  .s2026-main:not(.s2026-main--home) [style*="text-align:justify"],
  .s2026-main:not(.s2026-main--home) [style*="text-align: justify"] { text-align: left !important; }

  /* Таблица цен (/ceny): на телефоне 4 колонки не помещаются и цена уезжает
     за край. Превращаем строки в карточки: название — цена — кнопка. */
  .s2026-main:not(.s2026-main--home) table.ceny-tbl {
    display: block;
    overflow: visible;
    border: 0 !important;
    background: transparent;
  }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody { display: block; width: 100%; min-width: 0; }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr:first-child { display: none; }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td {
    display: block;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    font-size: 13.5px;
    line-height: 1.45;
  }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(1) { display: none; }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(2) { grid-column: 1; color: var(--text) !important; }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(3) {
    grid-column: 2;
    text-align: right !important;
    white-space: nowrap;
    font-weight: 700;
    color: var(--brand) !important;
  }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(4) { grid-column: 1 / -1; margin-top: 6px; }
  .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(4) a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
  }
  html[data-theme="dark"] .s2026-main:not(.s2026-main--home) .ceny-tbl > tbody > tr > td:nth-child(4) a {
    background: #2a76a2;
    color: #fff !important;
  }
}

/* =========================================================
   Онлайн-мероприятия: фильтр, таблица выдачи, пагинация
   (страница /servisy/online/spisok_meropriyatii)
   ========================================================= */

.mero-page { width: 100%; max-width: 1100px; }
.mero-page > h1 { text-align: center; }

.mero-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  width: 100%;
  max-width: 1100px;
  margin: 14px auto 0;
}
.mero-help a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand) !important;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.mero-help a:hover { background: var(--tint); border-color: var(--brand); }

.mero-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .mero-layout { grid-template-columns: 1fr; gap: 18px; }
  /* на мобильном поиск и список важнее длинного меню фильтров */
  .mero-layout .mero-content { order: -1; }
}

/* ---------- левый фильтр ---------- */
.mero-side { font-size: 14px; }
.mero-side__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--brand) !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.mero-side__all:hover,
.mero-side__all.is-active { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.mero-side__all .mero-side__n { background: var(--tint-3); color: var(--brand-d); }
.mero-side__all:hover .mero-side__n,
.mero-side__all.is-active .mero-side__n { background: rgba(255, 255, 255, .2); color: #fff; }
.mero-side__n {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  color: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mero-side__group {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mero-side__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--tint-3);
  color: var(--heading) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.mero-side__title:hover,
.mero-side__title.is-active { background: var(--brand); color: #fff !important; }
.mero-side__title .mero-side__n { background: rgba(32, 73, 100, .12); color: var(--navy); }
.mero-side__title:hover .mero-side__n,
.mero-side__title.is-active .mero-side__n { background: rgba(255, 255, 255, .22); color: #fff; }
.mero-side__list { list-style: none; margin: 0; padding: 6px; }
.mero-side__list li { margin: 0; }
.mero-side__list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}
.mero-side__list a:hover { background: var(--tint); color: var(--brand-d) !important; }
.mero-side__list a.is-active { background: var(--brand); color: #fff !important; font-weight: 600; }
.mero-side__list .mero-side__n { background: var(--tint-2); color: var(--muted); }
.mero-side__list a:hover .mero-side__n { background: var(--surface); color: var(--brand-d); }
.mero-side__list a.is-active .mero-side__n { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- заголовок выдачи ---------- */
.mero-content { min-width: 0; }
.mero-head { margin-bottom: 16px; }
.mero-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  color: var(--heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
}
.mero-head__count {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--tint-3);
  color: var(--brand-d);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mero-head__note { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- таблица ---------- */
.mero-tablewrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: auto;
}
.s2026-main .mero-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: var(--surface);
}
.s2026-main .mero-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 14px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.s2026-main .mero-table td {
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  vertical-align: middle;
}
.s2026-main .mero-table tr.mero-row:hover td { background: var(--tint-2); }
.s2026-main .mero-table tr:last-child td { border-bottom: 0; }

.mero-table__num {
  width: 54px;
  color: var(--muted) !important;
  font-size: 13px !important;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.mero-table__type { width: 110px; }
.mero-table__act { width: 150px; text-align: right; }

.s2026-main .mero-table tr.mero-table__group td {
  padding: 9px 14px;
  background: var(--tint-3);
  border-bottom: 1px solid var(--line);
}
.mero-table__group span {
  color: var(--brand-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.s2026-main .mero-table__name a {
  color: var(--brand-d);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.s2026-main .mero-table__name a:hover { color: var(--brand); text-decoration: underline; }
.mero-table__razdel {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.mero-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mero-badge--quiz { background: #e3f0fa; color: #17557c; }
.mero-badge--contest { background: #fdeaea; color: #a3242a; }
.mero-badge--olymp { background: #e6f4ee; color: #1f6a51; }
html[data-theme="dark"] .mero-badge--quiz { background: #1b3648; color: #9fd2f2; }
html[data-theme="dark"] .mero-badge--contest { background: #43201f; color: #f2a9a9; }
html[data-theme="dark"] .mero-badge--olymp { background: #173a30; color: #9bddc2; }

.mero-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.mero-go:hover { background: var(--brand); color: #fff !important; }
.mero-go span { transition: transform .15s; }
.mero-go:hover span { transform: translateX(3px); }

.mero-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

/* ---------- пагинация ---------- */
.mero-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.mero-pager__nums { display: flex; flex-wrap: wrap; gap: 4px; }
.s2026-main .mero-pager__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  text-decoration: none;
}
.s2026-main .mero-pager__num:hover { border-color: var(--brand); color: var(--brand); }
.s2026-main .mero-pager__num.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.s2026-main .mero-pager__step {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.s2026-main .mero-pager__step:hover { border-color: var(--brand); background: var(--tint); }
.mero-pager__step.is-off { color: var(--muted); opacity: .5; }
.mero-pager__gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }
.mero-pager__meta { margin-top: 8px; text-align: center; color: var(--muted); font-size: 12.5px; }

@media (max-width: 720px) {
  .mero-table__num, .mero-table__type { display: none; }
  .mero-table__act { width: auto; }
  .s2026-main .mero-table td { padding: 10px; }
  .s2026-main .mero-table th { padding: 9px 10px; }
  .mero-go { padding: 6px 10px; font-size: 12px; }
  .mero-pager { justify-content: center; }
}

/* на узких экранах таблица мероприятий не уходит в горизонтальную прокрутку:
   скрытые колонки освобождают место, название переносится по словам */
@media (max-width: 620px) {
  .s2026-main:not(.s2026-main--home) .mero-table { display: table; overflow: visible; background: var(--surface); }
  .s2026-main:not(.s2026-main--home) .mero-table > thead { display: table-header-group; min-width: 0; }
  .s2026-main:not(.s2026-main--home) .mero-table > tbody { display: table-row-group; min-width: 0; }
}

/* тёмная тема: заливка активных пунктов фильтра — тёмно-синяя, иначе белый текст теряется */
html[data-theme="dark"] .mero-side__all:hover,
html[data-theme="dark"] .mero-side__all.is-active,
html[data-theme="dark"] .mero-side__title:hover,
html[data-theme="dark"] .mero-side__title.is-active,
html[data-theme="dark"] .mero-side__list a.is-active {
  background: #1f5d85;
  border-color: #1f5d85;
}
/* общее правило тёмной темы «a { color: var(--brand) !important }» перебивает
   цвета меню фильтра — возвращаем текст и белый на активных пунктах */
html[data-theme="dark"] .s2026-main .mero-side a.mero-side__title,
html[data-theme="dark"] .s2026-main .mero-side .mero-side__list a { color: var(--text) !important; }
html[data-theme="dark"] .s2026-main .mero-side a.mero-side__all:hover,
html[data-theme="dark"] .s2026-main .mero-side a.mero-side__all.is-active,
html[data-theme="dark"] .s2026-main .mero-side a.mero-side__title:hover,
html[data-theme="dark"] .s2026-main .mero-side a.mero-side__title.is-active,
html[data-theme="dark"] .s2026-main .mero-side .mero-side__list a.is-active { color: #fff !important; }
html[data-theme="dark"] .s2026-main .mero-side .mero-side__list a:hover { color: var(--brand-d) !important; }
html[data-theme="dark"] .s2026-main .mero-side__title .mero-side__n {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}

/* ссылки блока мероприятий — без подчёркивания из общей типографики .s2026-main */
.s2026-main .mero-side a,
.s2026-main .mero-side__all,
.s2026-main .mero-table a,
.s2026-main .mero-pager a { text-decoration: none !important; }

/* старый styles.css ставит * { color:#959595 } — подписи внутри ссылок фильтра
   наследуют цвет ссылки, иначе серый текст сливается с синей заливкой/фоном */
.s2026-main .mero-side a span:not(.mero-side__n) { color: inherit; }
.s2026-main .mero-table__name a:hover { text-decoration: underline !important; }

/* ---------- карточки конкурсов (servisy/meropriyatiya/prevu) ---------- */
.mero-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.s2026-main .mero-search__input {
  flex: 1 1 280px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
.s2026-main .mero-search__input:focus {
  border-color: var(--brand) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 98, 141, .18);
}
.mero-search__btn { min-height: 44px; }
.s2026-main .mero-search__reset {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.s2026-main .mero-search__reset:hover { border-color: var(--brand); background: var(--tint); }

.mero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.s2026-main .mero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color .15s, background-color .15s, color .15s;
}
.s2026-main .mero-chip:hover { border-color: var(--brand); color: var(--brand); }
.s2026-main .mero-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
  font-weight: 600;
}
.mero-chip__n {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.s2026-main .mero-chip.is-active .mero-chip__n { background: rgba(255, 255, 255, .22); color: #fff; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.mero-chip { color: var(--text) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.mero-chip.is-active {
  background: #1f5d85;
  border-color: #1f5d85;
  color: #fff !important;
}
html[data-theme="dark"] .mero-chip__n { background: #223542; color: #a9bdcc; }
html[data-theme="dark"] .mero-chip.is-active .mero-chip__n { background: rgba(255, 255, 255, .22); color: #fff; }

.mero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.mero-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.mero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.mero-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mero-card__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint-3);
  color: var(--brand-d);
  font-size: 11.5px;
  font-weight: 600;
}
.mero-card__razdel { background: var(--tint-2); color: var(--muted); }
html[data-theme="dark"] .mero-card__badge { background: #1b3648; color: #9fd2f2; }
html[data-theme="dark"] .mero-card__razdel { background: #223542; color: #a9bdcc; }
.mero-card__title { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.mero-card__desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mero-card__price { margin: auto 0 14px; color: var(--muted); font-size: 13.5px; }
.mero-card__price b { color: var(--heading); font-size: 16px; }
.mero-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.s2026-main .mero-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .15s, border-color .15s, color .15s;
}
.s2026-main .mero-card__btn:hover { border-color: var(--brand); background: var(--tint); color: var(--brand-d); }
.s2026-main .mero-card__btn--primary { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.s2026-main .mero-card__btn--primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.mero-card__btn--primary { color: #fff !important; }
.mero-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
}
.s2026-main .mero-card__links a { color: var(--brand); text-decoration: none !important; }
.s2026-main .mero-card__links a:hover { text-decoration: underline !important; }

@media (max-width: 520px) {
  .mero-cards { grid-template-columns: 1fr; }
  .mero-search__input { flex-basis: 100%; }
}

/* ---------- «Мероприятия с бланками» — каталог-указатель (третий вид списка) ---------- */
.cat-block {
  margin: 0 0 18px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.cat-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 11px 12px 10px;
  border-bottom: 1px solid var(--line-2);
}
.cat-block__title { margin: 0; color: var(--heading) !important; font-size: 16px; font-weight: 700; }
.cat-block__title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 17px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--brand);
  vertical-align: -2px;
}
.cat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-list li { margin: 0; }
.s2026-main .cat-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 14.5px;
  text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.s2026-main .cat-list a:hover { background: var(--tint); color: var(--brand-d) !important; }
.cat-list__n {
  flex: 0 0 26px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cat-list__body { min-width: 0; flex: 1 1 auto; }
.s2026-main .cat-list a .cat-list__body { color: inherit; }
.s2026-main .cat-list a .cat-list__name { display: block; color: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; }
.cat-list__razdel { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.cat-list__go { flex: 0 0 auto; margin-left: auto; padding-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.s2026-main .cat-list a:hover .cat-list__go { color: var(--brand); }
html[data-theme="dark"] .s2026-main .cat-list a { color: var(--text) !important; }
html[data-theme="dark"] .s2026-main .cat-list a:hover { color: var(--brand-d) !important; }
@media (max-width: 900px) {
  .cat-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cat-list__go { display: none; }
}

/* ---------- лендинг «Опубликуйте материал» (obrazec_svidetelstva) ---------- */
.land { padding-bottom: 40px; }
.land-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.land-h1,
.panel-content1 .land-h1 {
  margin: 0 0 14px;
  color: var(--heading) !important;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  text-align: left;
}
.land-lead {
  max-width: 62ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.land-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.land-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
  padding: 8px 0 26px;
}
.land-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.land-hero__media { display: flex; justify-content: center; }
.land-doc-preview {
  position: relative;
  display: block;
  max-width: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tint-2);
  box-shadow: var(--shadow-md);
  text-decoration: none !important;
  transform: rotate(-1.5deg);
  transition: transform .2s;
}
.land-doc-preview:hover { transform: rotate(0) translateY(-3px); }
.land-doc-preview img { display: block; width: 100%; height: auto; border-radius: 8px; }
.land-doc-preview__badge {
  display: block;
  margin-top: 10px;
  color: var(--brand-d);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.s2026-main .land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .16s, border-color .16s, color .16s;
}
.s2026-main .land-btn:hover { border-color: var(--brand); background: var(--tint); color: var(--brand-d); }
.s2026-main .land-btn--primary { border-color: var(--brand); background: var(--brand); color: #fff !important; }
.s2026-main .land-btn--primary:hover { border-color: var(--brand-d); background: var(--brand-d); color: #fff !important; }
.s2026-main .land-btn--accent { border-color: #e0b100; background: #ffe08a; color: #4a3a00 !important; }
.s2026-main .land-btn--accent:hover { border-color: #c9a000; background: #ffd45e; color: #4a3a00 !important; }
.s2026-main .land-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.land-btn { color: var(--brand) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.land-btn--primary { border-color: #1f5d85; background: #1f5d85; color: #fff !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.land-btn--accent { border-color: #c9a000; background: #ffd45e; color: #4a3a00 !important; }

.land-section { padding: 28px 0; border-top: 1px solid var(--line-2); }
.land-h2 { margin: 0 0 8px; color: var(--heading) !important; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.25; }
.land-sub { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }

.land-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.land-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.land-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.land-step h3 { margin: 0 0 6px; color: var(--heading) !important; font-size: 16px; line-height: 1.3; }
.land-step p { flex: 1 1 auto; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.s2026-main .land-step__link { color: var(--brand); font-size: 14px; font-weight: 600; text-decoration: none !important; }
.s2026-main .land-step__link:hover { text-decoration: underline !important; }
@media (min-width: 861px) {
  .land-step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 26px;
    right: -12px;
    color: var(--muted);
    font-size: 15px;
  }
}
@media (max-width: 860px) {
  .land-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .land-hero { grid-template-columns: 1fr; }
  .land-hero__media { order: -1; justify-content: flex-start; }
  .land-doc-preview { max-width: 240px; transform: none; }
}
@media (max-width: 520px) {
  .land-steps { grid-template-columns: 1fr; }
  .land-btn { width: 100%; }
}

.land-inline-link { margin: 20px 0 0; color: var(--muted); font-size: 14.5px; }

.land-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.land-doc {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.s2026-main .land-doc__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 210 / 297;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tint-2);
  cursor: zoom-in;
  text-decoration: none !important;
}
.land-doc__img img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.s2026-main .land-doc__img:hover { border-color: var(--brand); }
.land-doc h3 { margin: 12px 0 4px; color: var(--heading) !important; font-size: 14.5px; line-height: 1.3; }
.land-doc p { flex: 1 1 auto; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.s2026-main .land-doc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.s2026-main .land-doc__btn:hover { border-color: var(--brand); background: var(--tint); }

.land-cta {
  margin-top: 8px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tint-2);
}
.land-cta__text { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.land-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.land-sticky {
  position: fixed;
  left: 50%;
  bottom: calc(var(--cookie-h, 0px) + 14px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 24px);
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.land-sticky.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.land-sticky__t { color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
  .land-sticky { display: none; }
}
html[data-theme="dark"] .land-doc__btn,
html[data-theme="dark"] .land-step,
html[data-theme="dark"] .land-doc,
html[data-theme="dark"] .land-cta { background: var(--surface); }
html[data-theme="dark"] .land-doc-preview { background: var(--tint-2); }

/* ---------- предупреждение о переходе на внешний сайт ---------- */
.s2026-ext {
  width: min(92vw, 440px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font);
}
.s2026-ext::backdrop { background: rgba(9, 20, 29, .62); backdrop-filter: blur(2px); }
.s2026-ext__body { padding: 24px 24px 20px; }
.s2026-ext__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tint-3);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.s2026-ext__title { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--heading); }
.s2026-ext__text { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.s2026-ext__text b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.s2026-ext__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.s2026-ext__btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.s2026-ext__btn:hover { background: var(--brand-d); }
html[data-theme="dark"] .s2026-ext__btn:not(.s2026-ext__btn--ghost) { background: #2a76a2; }
html[data-theme="dark"] .s2026-ext__btn:not(.s2026-ext__btn--ghost):hover { background: #1e628d; }
.s2026-ext__btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.s2026-ext__btn--ghost:hover { background: var(--tint-2); border-color: var(--brand-l); color: var(--brand); }

/* ---------- статьи /servisy/stati (inline-стили .article-container) ---------- */
/* шапка таблиц: inline-стиль задаёт тёмный фон, общее правило ниже — тёмный текст */
.s2026-main:not(.s2026-main--home) .article-container th {
  background: #1b2a3a;
  color: #ffffff;
  border-color: #2e4a63;
}

html[data-theme="dark"] .article-wrapper { background: transparent; }
html[data-theme="dark"] .s2026-main .article-container {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .s2026-main .article-container h1,
html[data-theme="dark"] .s2026-main .article-container h2,
html[data-theme="dark"] .s2026-main .article-container h3,
html[data-theme="dark"] .s2026-main .article-container .toc h3,
html[data-theme="dark"] .s2026-main .article-container .keywords strong,
html[data-theme="dark"] .s2026-main .article-container .references li::before {
  color: var(--heading);
}
html[data-theme="dark"] .s2026-main .article-container .subtitle {
  color: var(--muted);
  border-bottom-color: var(--heading);
}
html[data-theme="dark"] .s2026-main .article-container h2 { border-bottom-color: #8a7a5e; }
html[data-theme="dark"] .s2026-main .article-container .abstract,
html[data-theme="dark"] .s2026-main .article-container .keywords,
html[data-theme="dark"] .s2026-main .article-container .toc {
  background: var(--tint-5);
  border-color: var(--line);
}
html[data-theme="dark"] .s2026-main .article-container .abstract { border-left-color: var(--brand); }
html[data-theme="dark"] .s2026-main .article-container .abstract p { color: var(--text); }
html[data-theme="dark"] .s2026-main .article-container td { border-color: var(--line); }
html[data-theme="dark"] .s2026-main .article-container tr:hover td { background: var(--tint-3); }
html[data-theme="dark"] .s2026-main .article-container th {
  background: #22455f;
  border-color: #2c5674;
  color: #eaf4fb;
}
html[data-theme="dark"] .s2026-main .article-container caption,
html[data-theme="dark"] .s2026-main .article-container .table-note { color: var(--muted); }
html[data-theme="dark"] .s2026-main .article-container .chart-emulation {
  background: var(--tint-5);
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"] .s2026-main .article-container .chart-emulation .bars-label { color: var(--muted); }
html[data-theme="dark"] .s2026-main .article-container .toc a { color: var(--brand); }
html[data-theme="dark"] .s2026-main .article-container .toc a:hover { color: var(--yellow); }
html[data-theme="dark"] .s2026-main .article-container .attention-banner {
  background: #3a3220;
  border-left-color: #ffd700;
}
html[data-theme="dark"] .s2026-main .article-container .attention-banner h2 { color: #ffd54f; }
html[data-theme="dark"] .s2026-main .article-container .attention-banner p { color: #e8d6a3; }
html[data-theme="dark"] .s2026-main .article-container [style*="color:#555"] { color: var(--muted) !important; }

/* CTA-кнопки статьи: глобальные a { color } перекрашивали текст в синий на синем */
.s2026-main:not(.s2026-main--home) .article-container a.cta-button {
  background: #1e628d;
  color: #ffffff !important;
}
.s2026-main:not(.s2026-main--home) .article-container a.cta-button:hover {
  background: #154a6b;
  color: #ffffff !important;
}

/* ---------- форма заявки /servisy/stati/forma_zayavki_stati_s_publ ---------- */
html[data-theme="dark"] .s2026-main .form-wrapper {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .s2026-main .form-title,
html[data-theme="dark"] .s2026-main .form-section__title { color: var(--heading); }
html[data-theme="dark"] .s2026-main .form-section__title { border-bottom-color: var(--line); }
html[data-theme="dark"] .s2026-main .form-section--highlighted {
  background: var(--tint-5);
  border-color: var(--line);
}
html[data-theme="dark"] .s2026-main .form-group label { color: var(--text); }
html[data-theme="dark"] .s2026-main .form-control {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
html[data-theme="dark"] .s2026-main .form-control::placeholder { color: var(--muted); }
html[data-theme="dark"] .s2026-main select.form-control option { color: var(--text); background: var(--surface); }
html[data-theme="dark"] .s2026-main .form-hint { color: var(--muted); }
html[data-theme="dark"] .s2026-main .form-wrapper .divider { border-top-color: var(--line); }
/* глобальное button[type=submit] { … !important } перебивает оформление кнопки формы */
.s2026-main .form-wrapper .btn-submit[type="submit"] {
  background: #2c6e9e !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 50px !important;
  font-size: 17px !important;
}
.s2026-main .form-wrapper .btn-submit[type="submit"]:hover {
  background: #1e5a7e !important;
  background-image: none !important;
  color: #ffffff !important;
}

/* ---------- тарифы /servisy/stati/forma_zayavki_dve_knopki ---------- */
html[data-theme="dark"] .s2026-main .order-card {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
html[data-theme="dark"] .s2026-main .price {
  background: var(--tint-3);
  color: var(--heading);
}
html[data-theme="dark"] .s2026-main .card-title { color: var(--heading); }
html[data-theme="dark"] .s2026-main .card-desc { color: var(--muted); }
html[data-theme="dark"] .s2026-main .info-text {
  background: var(--tint-5);
  border-left-color: var(--brand);
  color: var(--text);
}
.s2026-main .centered-buttons a.order-btnor,
html[data-theme="dark"] .s2026-main .centered-buttons a.order-btnor {
  color: #ffffff !important;
}
html[data-theme="dark"] .s2026-main .sample-btn {
  background: var(--tint-2);
  color: var(--heading);
  border-color: var(--brand);
}
html[data-theme="dark"] .s2026-main .sample-btn:hover {
  background: #1e628d;
  color: #ffffff;
}

/* заголовок формы заявки с публикацией — компактнее общего h1 */
.s2026-main .form-wrapper .form-title {
  font-size: 20px;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .s2026-main .form-wrapper .form-title { font-size: 17px; }
}

/* ---------- мобильная адаптация старых двухколоночных страниц ----------
   block_left_index + block_right_index (сервисные лендинги, образцы документов)
   и b_left + b_right (тестирование педагогов): на узких экранах колонки
   складываются в одну, иначе правая часть сжимается до ~88px. */
@media (max-width: 820px) {
  .s2026-main:not(.s2026-main--home) .block_left_index,
  .s2026-main:not(.s2026-main--home) .block_right_index,
  .s2026-main:not(.s2026-main--home) .b_left,
  .s2026-main:not(.s2026-main--home) .b_right {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 16px 0 !important;
  }
  .s2026-main:not(.s2026-main--home) .block_left_index { text-align: center; }
  .s2026-main:not(.s2026-main--home) .block_left_index img,
  .s2026-main:not(.s2026-main--home) .block_right_index img {
    max-width: 100%;
    height: auto;
  }
}

/* ---------- карточки курсов / вебинаров / семинаров ----------
   styles.css задаёт .bl_vebinar_vn height:160px + overflow:hidden —
   длинные названия обрезались. Позволяем карточке расти. */
.s2026-main:not(.s2026-main--home) .bl_vebinar {
  display: flex;
  flex-direction: column;
}
.s2026-main:not(.s2026-main--home) .bl_vebinar_vn {
  height: auto !important;
  min-height: 160px;
  margin-bottom: 10px !important;
  overflow: visible !important;
}
@media (max-width: 620px) {
  .s2026-main:not(.s2026-main--home) .bl_vebinar {
    float: none !important;
    width: auto !important;
    max-width: 360px;
    margin: 0 auto 20px !important;
  }
}

/* ---------- варианты публикации: карточки (страница proverka_email/varianty_publikacii) ---------- */
.s2026-main:not(.s2026-main--home) .vp-intro {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  margin: 14px 0 26px;
}
.s2026-main .vp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 30px;
}
.s2026-main .vp-card {
  position: relative;
  flex: 1 1 290px;
  max-width: 305px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.s2026-main .vp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: var(--navy);
}
.s2026-main .vp-card2::before { background: #6bbae1; }
.s2026-main .vp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9dbea;
}
.s2026-main .vp-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6b93, var(--navy));
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  margin: 0 0 14px;
  box-shadow: 0 4px 10px rgba(32, 72, 100, .25);
}
.s2026-main .vp-card2 .vp-num {
  background: linear-gradient(135deg, #8fcdec, #4ea6d8);
  box-shadow: 0 4px 10px rgba(107, 186, 225, .35);
}
.s2026-main .vp-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}
.s2026-main .vp-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1 1 auto;
}
.s2026-main .vp-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(32, 72, 100, .22);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.s2026-main .vp-btn:hover {
  background: #2f6b93;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 72, 100, .28);
  color: #fff !important;
}
.s2026-main .vp-btn2 {
  /* было #4ea6d8 — белый текст давал 2.7:1; #2f7ba8 даёт 4.65:1 */
  background: #2f7ba8;
  box-shadow: 0 4px 12px rgba(47, 123, 168, .30);
}
.s2026-main .vp-btn2:hover {
  background: #26749f;
  box-shadow: 0 8px 18px rgba(47, 123, 168, .36);
}
html[data-theme="dark"] .s2026-main .vp-card { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .s2026-main .vp-card:hover { border-color: #33566f; }
html[data-theme="dark"] .s2026-main .vp-card::before { background: #3e87b5; }
html[data-theme="dark"] .s2026-main .vp-card2::before { background: #6bbae1; }
html[data-theme="dark"] .s2026-main .vp-title { color: var(--heading) !important; }
html[data-theme="dark"] .s2026-main .vp-text,
html[data-theme="dark"] .s2026-main .vp-intro { color: var(--muted) !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.vp-btn { color: #fff !important; }
html[data-theme="dark"] .s2026-main:not(.s2026-main--home) a.vp-btn:hover { color: #fff !important; }
@media (max-width: 768px) {
  .s2026-main .vp-grid { flex-direction: column; align-items: stretch; }
  .s2026-main .vp-card { flex: 0 0 auto; max-width: none; width: 100%; }
}

/* ---------- контакты: адрес редакции текстом (вместо картинки-полоски) ---------- */
.s2026-contact-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  width: min(100%, 620px);
  max-width: 620px;
  box-sizing: border-box;
  margin: 2px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  vertical-align: top;
}
.s2026-contact-address__icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--brand);
}
.s2026-contact-mail { display: inline-block; max-width: 100%; white-space: nowrap; }
.s2026-contact-address__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.s2026-contact-address__value {
  margin: 0;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.45;
}
html[data-theme="dark"] .s2026-contact-address { background: var(--tint-2); }
@media (max-width: 620px) {
  .s2026-contact-address { display: flex; width: 100%; box-sizing: border-box; padding: 14px 16px; }
  .s2026-contact-address__value { font-size: 15px; }
  /* «mail@portalpedagoga.ru» при 26px не влезает и рвётся на «…r / u» */
  .s2026-contact-mail { font-size: 21px !important; }
}
