@charset "UTF-8";
/* ==========================================================================
   Lil_default — стандартный шаблон сайта Lil_CMS.
   Всё оформление опирается на живые переменные темы (--lil-*), которые
   владелец сайта меняет в панели. Свои значения — только с префиксом --ds-.
   Классы разметки не менялись.
   ========================================================================== */

:root {
  /* Значения по умолчанию — если панель темы что-то не передала */
  --lil-font-body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --lil-font-headings: var(--lil-font-body);
  --lil-font-size: 17px;
  --lil-line-height: 1.6;
  --lil-heading-scale: 1.25;
  --lil-width-page: 72rem;
  --lil-width-text: 44rem;
  --lil-gap: 1.5rem;
  --lil-radius: 8px;
  --lil-color-text: #1b1b1f;
  --lil-color-background: #fff;
  --lil-color-accent: #0a58ca;
  --lil-color-muted: #5c5c66;
  --lil-logo-height: 40px;

  /* Производные оттенки — считаются из живых переменных, не хардкод */
  --ds-line: color-mix(in oklab, var(--lil-color-text) 14%, var(--lil-color-background));
  --ds-line-soft: color-mix(in oklab, var(--lil-color-text) 8%, var(--lil-color-background));
  --ds-surface: color-mix(in oklab, var(--lil-color-text) 3%, var(--lil-color-background));
  --ds-accent-soft: color-mix(in oklab, var(--lil-color-accent) 10%, var(--lil-color-background));
  --ds-accent-ink: color-mix(in oklab, var(--lil-color-accent) 78%, #000);
  --ds-shadow: 0 1px 2px color-mix(in oklab, var(--lil-color-text) 12%, transparent);
  --ds-shadow-lg: 0 14px 34px color-mix(in oklab, var(--lil-color-text) 14%, transparent);
  --ds-h1: calc(var(--lil-font-size) * var(--lil-heading-scale) * var(--lil-heading-scale) * 1.28);
  --ds-h2: calc(var(--lil-font-size) * var(--lil-heading-scale) * var(--lil-heading-scale));
  --ds-h3: calc(var(--lil-font-size) * var(--lil-heading-scale));
}

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

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

body {
  margin: 0;
  font: var(--lil-font-size)/var(--lil-line-height) var(--lil-font-body);
  color: var(--lil-color-text);
  background: var(--lil-color-background);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--lil-font-headings);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--ds-h1); }
h2 { font-size: var(--ds-h2); }
h3 { font-size: var(--ds-h3); }
p, ul, ol, blockquote, figure, table { margin: 0 0 var(--lil-gap); }
img, video, iframe { max-width: 100%; }
img { height: auto; border-radius: var(--lil-radius); }
iframe { border: 0; aspect-ratio: 16 / 9; height: auto; width: 100%; border-radius: var(--lil-radius); }

a { color: var(--lil-color-accent); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ds-accent-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lil-color-accent); outline-offset: 3px; }

blockquote {
  padding: .2em 0 .2em 1.1em;
  border-left: 3px solid var(--lil-color-accent);
  color: var(--lil-color-muted);
  font-style: italic;
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { padding: .1em .4em; border-radius: 4px; background: var(--ds-surface); }
pre { padding: 1em 1.1em; border-radius: var(--lil-radius); background: var(--ds-surface); overflow: auto; }
hr { border: 0; border-top: 1px solid var(--ds-line); margin: calc(var(--lil-gap) * 1.5) 0; }
.muted { color: var(--lil-color-muted); }

.skip {
  position: absolute;
  left: -10000px;
  padding: .7em 1em;
  border-radius: var(--lil-radius);
  background: var(--lil-color-accent);
  color: #fff;
  text-decoration: none;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
.hp-wrap { position: absolute !important; left: -10000px !important; }

/* ----------------------------------------------------------- Обёртка сетки */
.wrap {
  width: 100%;
  max-width: var(--lil-width-page);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* --------------------------------------------------------------- Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--lil-color-background) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ds-line-soft);
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  gap: var(--lil-gap) 1rem;
  flex-wrap: wrap;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--lil-font-headings);
  font-size: calc(var(--lil-font-size) * 1.15);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--lil-color-text);
  text-decoration: none;
}
.site-header .brand img { height: var(--lil-logo-height); width: auto; border-radius: 0; }

.site-menu { margin-left: auto; }
.site-menu .module { margin: 0; }
.site-menu .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu .menu > li { position: relative; }
.site-menu .menu > li > a,
.site-menu .menu > li > span {
  display: block;
  padding: .5em .8em;
  border-radius: var(--lil-radius);
  color: var(--lil-color-text);
  text-decoration: none;
  font-weight: 500;
}
.site-menu .menu > li > a:hover { background: var(--ds-accent-soft); color: var(--lil-color-accent); }
.site-menu .menu > li.current > a,
.site-menu .menu > li.current > span {
  background: var(--ds-accent-soft);
  color: var(--lil-color-accent);
  font-weight: 650;
}
.site-menu .has-children > a::after,
.site-menu .has-children > span::after {
  content: "";
  display: inline-block;
  margin-left: .45em;
  width: .38em;
  height: .38em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
  opacity: .6;
}
.menu-children {
  margin: 0;
  padding: .4rem;
  list-style: none;
}
.site-menu .menu-children {
  position: absolute;
  left: 0;
  top: calc(100% + .3rem);
  min-width: 14rem;
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--lil-color-background);
  box-shadow: var(--ds-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
  z-index: 30;
}
.site-menu .menu > li:hover > .menu-children,
.site-menu .menu > li:focus-within > .menu-children { opacity: 1; visibility: visible; transform: none; }
.site-menu .menu-children a {
  display: block;
  padding: .5em .7em;
  border-radius: calc(var(--lil-radius) - 2px);
  color: var(--lil-color-text);
  text-decoration: none;
}
.site-menu .menu-children a:hover { background: var(--ds-accent-soft); color: var(--lil-color-accent); }

/* Мегаменю (mod_megamenu): строка пунктов, панель открывается наведением
   или фокусом. Классы — по настоящей разметке модуля (доводка D-046). */
.megamenu__row {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.megamenu__row > li { position: relative; }
.megamenu__row > li > a,
.megamenu__row > li > span {
  display: block;
  padding: .5em .8em;
  border-radius: var(--lil-radius);
  color: var(--lil-color-text);
  text-decoration: none;
  font-weight: 500;
}
.megamenu__row > li > a:hover { background: var(--ds-accent-soft); color: var(--lil-color-accent); }
.megamenu__row > li.current > span,
.megamenu__row > li.active > a { background: var(--ds-accent-soft); color: var(--lil-color-accent); font-weight: 650; }
.megamenu__panel {
  position: absolute;
  left: 0;
  top: calc(100% + .3rem);
  z-index: 30;
  display: none;
  min-width: min(48rem, 90vw);
  grid-template-columns: repeat(var(--mega-cols, 3), minmax(10rem, 1fr));
  gap: var(--lil-gap);
  padding: var(--lil-gap);
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--lil-color-background);
  box-shadow: var(--ds-shadow-lg);
}
.megamenu__row > li:hover > .megamenu__panel,
.megamenu__row > li:focus-within > .megamenu__panel { display: grid; }
.megamenu__col-title {
  display: block;
  margin-bottom: .35rem;
  font-weight: 650;
  color: var(--lil-color-text);
  text-decoration: none;
}
a.megamenu__col-title:hover { color: var(--lil-color-accent); }
.megamenu__heading {
  font-size: .82em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lil-color-muted);
}
.megamenu__links { margin: 0; padding: 0; list-style: none; }
.megamenu__links a {
  display: block;
  padding: .3em 0;
  color: var(--lil-color-text);
  text-decoration: none;
  border-radius: calc(var(--lil-radius) - 4px);
}
.megamenu__links a:hover { color: var(--lil-color-accent); }
.megamenu__note { margin: .1rem 0 .4rem; font-size: .82em; color: var(--lil-color-muted); }

/* --------------------------------------------------------- Основная часть */
.site-middle {
  display: block;
  padding: calc(var(--lil-gap) * 2) 0 calc(var(--lil-gap) * 3);
}
.site-middle > .wrap + .wrap { margin-top: calc(var(--lil-gap) * 1.5); }

.layout-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--lil-gap);
  align-items: start;
}
.layout-col { grid-column: span var(--col, 12); min-width: 0; }

.content { max-width: var(--lil-width-text); }
.layout-col[style*="--col:12"] > .content { max-width: none; }
.content > article + article {
  margin-top: calc(var(--lil-gap) * 1.5);
  padding-top: calc(var(--lil-gap) * 1.5);
  border-top: 1px solid var(--ds-line-soft);
}
.content h2 a { color: inherit; text-decoration: none; }
.content h2 a:hover { color: var(--lil-color-accent); text-decoration: underline; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: -.4em 0 .8em;
  color: var(--lil-color-muted);
  font-size: .86em;
  letter-spacing: .01em;
}
.intro > :last-child { margin-bottom: 0; }

/* Модули в позициях */
.module { margin-bottom: var(--lil-gap); }
.module:last-child { margin-bottom: 0; }
.module-title {
  font-size: var(--ds-h3);
  margin-bottom: .5em;
}
.position-top .module,
.position-bottom .module {
  padding: calc(var(--lil-gap) * .9) var(--lil-gap);
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--ds-surface);
}
.position-top .module-title,
.position-bottom .module-title { margin-top: 0; }
.mod-html > :last-child { margin-bottom: 0; }

/* --------------------------------------------------- Карточки конструктора */
.pb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--lil-gap);
}
.pb-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--lil-color-background);
  box-shadow: var(--ds-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pb-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--lil-color-accent);
  box-shadow: var(--ds-shadow-lg);
  text-decoration: none;
}
.pb-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--lil-radius) - 2px);
  background: var(--ds-surface);
}
.pb-card__title { margin: 0; font-size: calc(var(--lil-font-size) * 1.05); }
.pb-card__text { margin: 0; color: var(--lil-color-muted); font-size: .92em; }

/* Метки-фильтры портфолио */
.pf-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-tag {
  display: inline-block;
  padding: .35em .9em;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  color: var(--lil-color-text);
  text-decoration: none;
  font-size: .9em;
}
.pf-tag:hover { border-color: var(--lil-color-accent); background: var(--ds-accent-soft); color: var(--lil-color-accent); text-decoration: none; }
.pf-tag--active {
  border-color: var(--lil-color-text);
  background: var(--lil-color-text);
  color: var(--lil-color-background);
  font-weight: 600;
}

/* ----------------------------------------------------- Поиск, формы, кнопки */
.site-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-search input[type="search"] { flex: 1 1 16rem; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  padding: .65em .85em;
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--lil-color-background);
  color: var(--lil-color-text);
  font: inherit;
}
textarea { min-height: 8em; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--lil-color-accent);
  box-shadow: 0 0 0 3px var(--ds-accent-soft);
}
label { display: block; }
form label > span { display: block; margin-bottom: .3em; font-size: .9em; font-weight: 600; }
form label + label { margin-top: var(--lil-gap); }
label.inline { display: inline-flex; align-items: center; gap: .5rem; }
label.inline > span { margin: 0; font-weight: 400; }

button, .button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.3em;
  border: 1px solid var(--lil-color-accent);
  border-radius: var(--lil-radius);
  background: var(--lil-color-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover, input[type="submit"]:hover {
  background: var(--ds-accent-ink);
  border-color: var(--ds-accent-ink);
  color: #fff;
  text-decoration: none;
}
button.secondary, .button.secondary {
  background: transparent;
  color: var(--lil-color-accent);
}
button.secondary:hover { background: var(--ds-accent-soft); color: var(--ds-accent-ink); }
button:disabled { opacity: .55; cursor: not-allowed; }

.msg-ok, .msg-error, .pb-form__msg, .pb-form__msg--error, .pb-form__msg--ok {
  padding: .8em 1em;
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  background: var(--ds-surface);
}
.msg-ok, .pb-form__msg--ok {
  border-color: color-mix(in oklab, #2f9257 40%, transparent);
  background: color-mix(in oklab, #2f9257 10%, var(--lil-color-background));
  color: color-mix(in oklab, #2f9257 70%, #000);
}
.msg-error, .pb-form__msg--error {
  border-color: color-mix(in oklab, #c0492a 45%, transparent);
  background: color-mix(in oklab, #c0492a 10%, var(--lil-color-background));
  color: color-mix(in oklab, #c0492a 72%, #000);
}

/* Крошки и разбивка на страницы */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--lil-gap); font-size: .88em; color: var(--lil-color-muted); }
.crumbs a { color: var(--lil-color-muted); }
.crumbs a + a::before { content: "›"; margin-right: .5rem; }
.pages { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; list-style: none; padding: 0; }
.pages a, .pages span {
  display: inline-block;
  min-width: 2.4em;
  padding: .4em .7em;
  border: 1px solid var(--ds-line);
  border-radius: var(--lil-radius);
  text-align: center;
  text-decoration: none;
  color: var(--lil-color-text);
}
.pages a:hover { border-color: var(--lil-color-accent); background: var(--ds-accent-soft); }
.pages .current, .pages [aria-current] {
  border-color: var(--lil-color-text);
  background: var(--lil-color-text);
  color: var(--lil-color-background);
  font-weight: 600;
}

/* Таблицы в тексте */
.content table { width: 100%; border-collapse: collapse; }
.content th, .content td { padding: .6em .8em; border-bottom: 1px solid var(--ds-line-soft); text-align: left; }
.content thead th { border-bottom: 2px solid var(--lil-color-text); font-size: .84em; letter-spacing: .06em; text-transform: uppercase; color: var(--lil-color-muted); }

/* ----------------------------------------------------------------- Подвал */
.site-footer {
  padding: calc(var(--lil-gap) * 1.6) 0;
  border-top: 1px solid var(--ds-line);
  background: var(--ds-surface);
  color: var(--lil-color-muted);
  font-size: .92em;
}
.site-footer > .wrap { display: flex; flex-wrap: wrap; gap: var(--lil-gap); align-items: center; justify-content: space-between; }
.site-footer a { color: var(--lil-color-muted); }

/* ----------------------------------------------------------------- Адаптив */
@media (max-width: 900px) {
  .layout-col { grid-column: span 12; }
}
@media (max-width: 640px) {
  :root { --lil-gap: 1.15rem; }
  .site-header > .wrap { padding-top: .7rem; padding-bottom: .7rem; }
  .site-menu { margin-left: 0; width: 100%; }
  .site-menu .menu { gap: .1rem; }
  .site-menu .menu-children {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 .8rem;
    border-left: 2px solid var(--ds-line);
  }
  .pb-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ======================================================================
   Мобильное меню, лайтбокс, плавные картинки, печать (ds-site.js)
   ====================================================================== */

/* --- Кнопка меню и панель ---------------------------------------------- */
.ds-burger { display: none; }
.ds-burger-bars, .ds-burger-bars::before, .ds-burger-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.ds-burger-bars { position: relative; }
.ds-burger-bars::before, .ds-burger-bars::after { content: ""; position: absolute; left: 0; }
.ds-burger-bars::before { top: -6px; }
.ds-burger-bars::after { top: 6px; }
.ds-sub-toggle-site { display: none; }

@media (max-width: 860px) {
  .ds-burger {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
    padding: .5em .9em;
    border: 1px solid var(--ds-line);
    border-radius: var(--lil-radius);
    background: var(--lil-color-background);
    color: var(--lil-color-text);
    font: inherit;
    font-size: .92em;
    font-weight: 600;
    cursor: pointer;
  }
  .site-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    z-index: 60;
    margin: 0;
    padding: 4.5rem 1rem 2rem;
    overflow-y: auto;
    background: var(--lil-color-background);
    border-left: 1px solid var(--ds-line);
    box-shadow: var(--ds-shadow-lg);
    transform: translateX(102%);
    transition: transform .2s ease;
  }
  body.ds-menu-open .site-menu { transform: none; }
  body.ds-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 55;
    background: color-mix(in oklab, var(--lil-color-text) 45%, transparent);
  }
  body.ds-menu-open { overflow: hidden; }
  .site-menu .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-menu .menu > li { position: relative; }
  .site-menu .menu > li > a,
  .site-menu .menu > li > span { padding: .75em .8em; font-size: 1.02em; }

  /* Аккордеон подпунктов */
  .ds-sub-toggle-site {
    display: block;
    position: absolute;
    right: .3rem;
    top: .35rem;
    width: 2.2em;
    height: 2.2em;
    border: 0;
    border-radius: var(--lil-radius);
    background: transparent;
    cursor: pointer;
  }
  .ds-sub-toggle-site::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .45em;
    height: .45em;
    margin: -.35em 0 0 -.25em;
    border-right: 2px solid var(--lil-color-muted);
    border-bottom: 2px solid var(--lil-color-muted);
    transform: rotate(45deg);
    transition: transform .15s ease;
  }
  .site-menu .has-children.ds-open > .ds-sub-toggle-site::after { transform: rotate(-135deg); }
  .site-menu .has-children > a::after,
  .site-menu .has-children > span::after { display: none; }
  .site-menu .menu-children {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    border-left: 2px solid var(--ds-line);
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 .3rem .8rem;
    margin: 0 0 .2rem .8rem;
  }
  .site-menu .has-children.ds-open > .menu-children { display: block; }
  .site-menu .menu > li:hover > .menu-children,
  .site-menu .menu > li:focus-within > .menu-children { display: none; }
  .site-menu .has-children.ds-open:hover > .menu-children { display: block; }
}

/* --- Плавное проявление картинок --------------------------------------- */
.ds-img { opacity: 0; transition: opacity .4s ease; background: var(--ds-surface); }
.ds-img-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ds-img { opacity: 1; transition: none; } }

/* --- Лайтбокс ---------------------------------------------------------- */
.ds-zoomable { cursor: zoom-in; }
.ds-zoomable:focus-visible { outline: 3px solid var(--lil-color-accent); outline-offset: 3px; }
body.ds-lb-on { overflow: hidden; }
.ds-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklab, #0c0d10 88%, transparent);
}
.ds-lb-box { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: .8rem; }
.ds-lb-img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--lil-radius);
  background: #17181c;
  object-fit: contain;
  opacity: 1;
}
.ds-lb-cap { margin: 0; color: #e7e7ea; font-size: .92em; text-align: center; }
.ds-lb-num { position: absolute; left: 1.2rem; top: 1.1rem; color: #a9abb2; font-size: .85em; letter-spacing: .06em; }
.ds-lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ds-lb-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.ds-lb-close { right: 1.1rem; top: 1.1rem; }
.ds-lb-prev { left: 1.1rem; top: 50%; margin-top: -23px; }
.ds-lb-next { right: 1.1rem; top: 50%; margin-top: -23px; }
@media (max-width: 640px) {
  .ds-lb-prev { left: .6rem; }
  .ds-lb-next { right: .6rem; }
  .ds-lb-btn { width: 40px; height: 40px; }
}

/* --- Печатная версия страницы ------------------------------------------ */
@media print {
  .site-header, .site-footer, .pf-tags, .site-search, .ds-burger,
  .position-top, .position-bottom, .site-menu, .skip, .pages, .ds-lb { display: none !important; }
  html, body { background: #fff !important; color: #000; font-size: 11.5pt; }
  body { line-height: 1.42; }
  .wrap { max-width: none; padding: 0; }
  .layout-row { display: block; }
  .content { max-width: none; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  h1 { font-size: 20pt; }
  h2 { font-size: 15pt; }
  h3 { font-size: 12.5pt; }
  p, blockquote, figure, table, .pb-card { break-inside: avoid; page-break-inside: avoid; }
  img { max-width: 100% !important; max-height: 9cm; }
  iframe, video { display: none !important; }
  .pb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
  .pb-card { border: 1px solid #bbb; box-shadow: none; }
  a { color: #000; text-decoration: underline; }
  /* Адрес ссылки печатаем рядом — читатель бумаги его не увидит иначе */
  .content a[data-ds-url]::after {
    content: " (" attr(data-ds-url) ")";
    font-size: 9pt;
    color: #444;
    word-break: break-all;
  }
  .meta { color: #444; }
}
