/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/**** Responsive Table ****/

/* Стили для контейнера, чтобы была тень и скругления */
/* --- Стили для больших экранов (Desktop) --- */

.table-scroll-wrapper {
  /* Включает горизонтальную прокрутку, если нужно */
  overflow-x: auto; 
  
  /* Плавная прокрутка на iOS */
  -webkit-overflow-scrolling: touch; 
}
.responsive-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-color: #fff;
}

.responsive-comparison-table thead {
  background-color: #f8f9fa;
}

.responsive-comparison-table th,
.responsive-comparison-table td {
  color: #000;
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #dee2e6;
}

.responsive-comparison-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

/* --- Стили для маленьких экранов (Mobile) --- */
@media (max-width: 768px) {

  .responsive-comparison-table {
  box-shadow: 0 0px 0px rgba(0,0,0,0.1);
  background-color: #fff;
}
  /* 1. Скрываем стандартный заголовок таблицы */
  .responsive-comparison-table thead {
    display: none;
  }

  /* 2. Превращаем каждую строку в отдельную карточку */
  .responsive-comparison-table tbody tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden; /* Чтобы скруглить углы и у дочерних элементов */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* 3. Превращаем ячейки в блочные элементы */
  .responsive-comparison-table td,
  .responsive-comparison-table th {
    display: block;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e9ecef; /* Разделитель между полями в карточке */
    padding: 12px 15px;
  }
  
  .responsive-comparison-table tr td:last-child,
  .responsive-comparison-table tr th:last-child {
      border-bottom: none; /* Убираем нижнюю границу у последнего элемента */
  }

  /* 4. Создаем заголовок для каждой ячейки из data-label */
  .responsive-comparison-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
  }
  
  /* 5. Главный заголовок строки делаем заголовком карточки */
  .responsive-comparison-table tr th[scope="row"] {
      background-color: #f8f9fa;
      font-size: 1.2em;
      text-align: center;
  }
  
  /* Для заголовка карточки нам не нужен псевдоэлемент "Параметр:" */
  .responsive-comparison-table tr th[scope="row"]::before {
      display: none;
  }
}





.message.is-dark .message-body {
background-color: #f3f4f6 !important;
color: #270000 !important;
border-color: #020203 !important;
}

strong {color: #000 !important; font-weight: 600 !important; opacity: 1 !important;}

/* CSS */
/* Базовая гибкая раскладка */
.flex-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Порядок: картинка слева/справа */
.flex-block--image-left  { flex-direction: row; }
.flex-block--image-right { flex-direction: row-reverse; }

/* Картинка */
.flex-block__image {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s;
}
.flex-block__image:hover {
  transform: scale(1.03);
}

/* Содержимое */
.flex-block__content {
  flex: 1;
  padding: 3rem 3rem; 
}
.flex-block__title {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
}
.flex-block__text {
  margin: 0;
  line-height: 1.6;
}


/* Адаптив */
/* Tablet и ниже — стекаем блоки */
@media (max-width: 1024px) {
  .flex-block {
    flex-direction: column !important;
  }
  .flex-block__image {
    max-width: 100%;
  }
  .flex-block__content {
    padding: 1rem 0;
  }
}


/* TablePress */

.tablepress th {padding-left: 0.5rem;}
.tablepress td {padding-left: 0.5rem;}
/* Tooltip Tailwind */

.tooltip-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-bubble {
  display: inline-block;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 9999;
  background-color: #000;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  max-width: 240px;
  text-align: center;
}

.tooltip-wrapper:hover .tooltip-bubble {
  visibility: visible;
  opacity: 1;
}



.alert {
  border-radius: 6px;
  padding: 1em 1.5em;
  margin: 1em 0;
  position: relative;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
}

.alert-callout {
  padding-left: 3.5em;
}

.alert-callout::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 1.3em;
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
}

.alert-danger {
  background: #fcebea;
  color: #cc1f1a;
  border-left: 6px solid #cc1f1a;
}
.alert-danger::before {
  content: '\f057'; /* fa-exclamation-circle */
  color: #cc1f1a;
}

.alert-warning {
  background: #fff9eb;
  color: #8d6c1f;
  border-left: 6px solid #8d6c1f;
}
.alert-warning::before {
  content: '\f071'; /* fa-exclamation-triangle */
  color: #8d6c1f;
}

.alert-success {
  background: #ecfdf5;
  color: #059669;
  border-left: 6px solid #059669;
}
.alert-success::before {
  content: '\f058'; /* fa-check-circle */
  color: #059669;
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
  border-left: 6px solid #0369a1;
}
.alert-info::before {
  content: '\f05a'; /* fa-info-circle */
  color: #0369a1;
}

/* Callout with Icon */

.callout-with-icon .message-body {
  position: relative;
  padding-left: 3em;
}

.callout-with-icon.danger .message-body::before {
  content: "\26A0"; /* ⚠ */
  position: absolute;
  left: 1em;
  top: 0.7em;
  font-size: 1.3em;
  color: #b71c1c;
}

.callout-with-icon.warning .message-body::before {
  content: "\26A0"; /* ⚠ */
  position: absolute;
  left: 1em;
  top: 0.7em;
  font-size: 1.3em;
  color: #b58900;
}

.callout-with-icon.success .message-body::before {
  content: "\2705"; /* ✅ */
  position: absolute;
  left: 1em;
  top: 0.7em;
  font-size: 1.3em;
  color: #2e7d32;
}

.callout-with-icon.info .message-body::before {
  content: "\2139"; /* ℹ */
  position: absolute;
  left: 1em;
  top: 0.7em;
  font-size: 1.3em;
  color: #01579b;
}

/* Emoji Callout */

.et-callout-emoji {
  display: flex;
  align-items: flex-start;
  padding: 1em;
  background: #fefefe;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 1.5em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.et-callout-emoji .emoji-box {
  margin-right: 1em;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
}
.et-callout-emoji .emoji-text {
  flex: 1;
}



/* Emoji Callout 2 */

.et-callout {
  display: flex;
  align-items: flex-start;
  background-color: #f1f5f9;
  border-radius: 12px;
  padding: 1em;
  margin: 1em 0;
  font-family: sans-serif;
  gap: 0.75em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  min-width: 280px; /* защита от слишком узкого сжатия */
  max-width: 100%;
}

.et-callout-icon {
  flex-shrink: 0; /* не сжимать иконку */
}

.et-callout-icon img {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  display: block;
}

.et-callout-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #1e293b;
  word-break: break-word;
}

/* Адаптивность */
@media (max-width: 600px) {
  .et-callout {
    flex-direction: row;
    align-items: flex-start;
  }
}




/* Emoji Gallery */
.emoji-gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  max-width: 100%;
}
.emoji-btn {
  border: none;
  background: #fff;
  cursor: pointer;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
  position: relative;
  outline: none;
}
.emoji-btn:hover,
.emoji-btn:focus {
  background: #f5f6fa;
  box-shadow: 0 4px 20px rgba(100,100,140,0.13);
  transform: translateY(-1.5px) scale(1.05);
}
.emoji-btn img {
  display: block;
  width: 2.5em;
  height: 2.5em;
  margin: 0 auto;
}
#emoji-copy-notice {
  display: none;
  position: fixed;
  left: 50%;
  top: 8%;
  transform: translate(-50%, 0);
  background: #262626;
  color: #fff;
  font-size: 1.07em;
  padding: 9px 22px;
  border-radius: 8px;
  z-index: 9999;
  opacity: 0.96;
  box-shadow: 0 2px 16px rgba(80,70,70,0.13);
  pointer-events: none;
}

/* Toggle */

.toggle-block {
  margin: 1em 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5em 1em;
  background: #fdfdfd;
}

.toggle-summary {
  cursor: pointer;
  font-weight: 600;
}

.toggle-content {
  margin-top: 0.5em;
}

/* Блок toggle */
.et-toggle {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75em 1em;
  background: #fdfdfd;
  margin: 1em 0;
}

/* Summary как кнопка */
.et-toggle summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  position: relative;
  padding-left: 1.2em;
}

/* Стрелка */
.et-toggle-arrow {
  display: inline-block;
  margin-right: 0.5em;
  transition: transform 0.3s ease;
  font-size: 0.9em;
  position: absolute;
  left: 0;
}

/* При раскрытии — поворот стрелки */
.et-toggle[open] .et-toggle-arrow {
  transform: rotate(90deg);
}

/* Контент */
.et-toggle-content {
  margin-top: 1em;
  color: #333;
  font-size: 0.95em;
}


     /* ===== Стили для меню Eterno ===== */

.eterno-menu {
  font-size: 15px;
  border-radius: 8px;
  padding: 12px;
}

.eterno-menu ul {
  margin-left: 0.5rem;
  border-left: 1px solid #eee;
  padding-left: 0.75rem;
}

.eterno-menu li {
  margin: 4px 0;
}

.eterno-menu button,
.eterno-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: left;
  background: transparent;
  color: #333;
  transition: background 0.2s;
  font-weight: normal;
}

.eterno-menu button:hover,
.eterno-menu a:hover {
  background: #f5f5f5;
  color: #000;
}

.eterno-menu a.active {
  background: #eaeaea;
  font-weight: 600;
  color: #000;
}

.eterno-chevron {
  margin-left: auto;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease-in-out;
  color: #aaa;
}

.eterno-menu span {
  text-transform: none !important;
}


/* Обёртка: Grid-сетка из 3 колонок — лево, центр, право */
.container-full.page-wrapper {
  display: grid;
  min-height: 100vh;
  transition: all 0.3s ease;
  position: relative;
padding: 0;
}

/* Оба сайдбара видимы */
.page-wrapper.grid-3 {
  grid-template-columns: 250px 1fr 350px;
}

/* Только левый */
.page-wrapper.grid-left {
  grid-template-columns: 250px 1fr 0;
}

/* Только правый */
.page-wrapper.grid-right {
  grid-template-columns: 0 1fr 350px;
}

/* Оба скрыты */
.page-wrapper.grid-1 {
  grid-template-columns: 0 1fr 0;
}

/* При скрытии одного или обоих сайдбаров */
#leftSidebar.closed {
  display: none !important;
}
#rightSidebar.closed {
  display: none !important;
}



html { scroll-behavior: smooth; }

.main-content {
  scroll-behavior: smooth;
min-height: 100vh;
  padding: 32px 24px;
  background: #fff;
}



/* Внутренний контент */
.centered-content {
  width: 100%;
  max-width: 100%;
  z-index: 1;
}


/* ========================== */
/* 📌 Фиксированные сайдбары */
/* ========================== */

html, body {
min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}


.container-full.page-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr 350px;
    min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

.fixed-sidebar {
  position: fixed;
  top: 50px; /* учёт высоты header */
  height: calc(100vh - 50px);
  width: auto;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  z-index: 10;
}

/* Слева */
#leftSidebar {
 position: fixed;
  left: 0;
  top: 0;
  width: 350px;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  background: #fafbfc;
  box-shadow: 0 0 8px rgba(0,0,0,0.03);
    text-align: center;
}

/* Справа */
#rightSidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 350px;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
  background: #fafbfc;
  box-shadow: 0 0 8px rgba(0,0,0,0.03);
}

#leftSidebar,
#rightSidebar {
  position: fixed;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 2;
  background: #fafbfc;
  box-shadow: 0 0 8px rgba(0,0,0,0.03);
}

#leftSidebar > div {margin-top: 35px;}
#rightSidebar > div {margin-top: 60px;}

#rightSidebar {
  scrollbar-width: thin;                /* Для Firefox */
  scrollbar-color: #bbb #fafbfc;        /* Для Firefox */
  overflow-y: auto;
}

#rightSidebar {
  /* Скрыть скроллбар по умолчанию */
  scrollbar-width: none;           /* Firefox */
}
#rightSidebar::-webkit-scrollbar {
  width: 0px;                      /* Chrome/Safari/Opera */
  background: transparent;
}

/* Показывать только при наведении */
#rightSidebar:hover {
  scrollbar-width: thin;            /* Firefox */
}
#rightSidebar:hover::-webkit-scrollbar {
  width: 8px;                       /* Chrome/Safari/Opera */
  background: #fafbfc;
}
#rightSidebar:hover::-webkit-scrollbar-thumb {
  background: #bbb;
    border-radius: 6px;}

/* Центральная зона: только она скроллится */
.main-wrapper {
  grid-column: 2;
/*  height: 100vh;*/
/*  overflow-y: auto;*/
  margin: 0px 0px;
  box-sizing: border-box;
scrollbar-gutter: stable;
  width: 100%;
  padding: 0 5%;
scroll-behavior: smooth;
}


/* Кнопки управления */
/* Современные кнопки управления сайдбарами */
.sidebar-toggle {
  position: absolute;
  top: 40px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 100;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
    display: none;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.08);
}

/* Левая кнопка у границы левого сайдбара */
.toggle-left {
  left: calc(215px + 10px); /* отступ от скрываемого блока */
}

/* Правая кнопка у границы правого сайдбара */
.toggle-right {
  right: calc(215px + 10px);
}

/* Кнопка смещается к краю, когда левый сайдбар скрыт */
#leftSidebar.closed ~ .toggle-left {
  left: 10px;
}

/* Кнопка смещается к краю, когда правый сайдбар скрыт */
#rightSidebar.closed ~ .toggle-right {
  right: 10px;
}

/* Стрелка по умолчанию */
/* Стиль для стрелок */
.sidebar-toggle i {
  transition: transform 0.3s ease;
}

/* Поворот при закрытии */
#leftSidebar.closed ~ .toggle-left i {
  transform: rotate(180deg);
}

#rightSidebar.closed ~ .toggle-right i {
  transform: rotate(180deg);
}

/* Адаптация для мобильных устройств */
@media (max-width: 1024px) {
  .sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .toggle-left {
    left: 10px;
  }

  .toggle-right {
    right: 10px;
  }
}


#leftSidebar {
  grid-column: 1;
}

#rightSidebar {
  grid-column: 3;
}


:root {
  --wket-font-main: 'Inter', sans-serif;
  --wket-color-dark: #111;
  --wket-color-light: #fff;
  --wket-color-accent: #AB2421;
  --wket-line-height: 1.5;
}

body {
  font-family: var(--wket-font-main);
  color: var(--wket-color-dark);
  background-color: var(--wket-color-light);
  margin: 0;
  padding: 0;
}

.wket-content {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

.wket-heading {
  font-family: var(--wket-font-main);
  font-weight: 600;
  color: var(--wket-color-dark);
  line-height: 1.2;
  margin: 2.2em 0 0.9em;
}

.wket-heading.wket-h1 {
  margin: 1.2em 0 0.9em;  
}

.wket-h1 { font-size: 2.25rem; border-bottom: 2px solid var(--wket-color-accent); padding-bottom: 0.2em; }
.wket-h2 { font-size: 1.9rem; border-left: 4px solid var(--wket-color-accent); padding-left: 0.6em; }
.wket-h3 { font-size: 1.6rem; color: var(--wket-color-accent); }
.wket-h4 { font-size: 1.3rem; font-style: italic; }
.wket-h5 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.wket-h6 { font-size: 1rem; color: #555; }

.wket-text {
  font-size: 1rem;
  line-height: var(--wket-line-height);
  margin: 0.8em 0;
}

@media (max-width: 768px) {
  .wket-h1 { font-size: 1.8rem; }
  .wket-h2 { font-size: 1.5rem; }
  .wket-h3 { font-size: 1.3rem; }
  .wket-h4 { font-size: 1.1rem; }
  .wket-h5 { font-size: 1rem; }
  .wket-h6 { font-size: 0.95rem; }
  .wket-text { font-size: 0.95rem; }
.page-wrapper.grid-right {
    grid-template-columns: 0 1fr 0px;
}
}

@media (max-width: 1024px) {
/*
  #leftSidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: 4px 0 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }
*/

/*
  #leftSidebar.open {
    display: block;
    transform: translateX(0%);
  }
*/

  .toggle-left,
  .toggle-right {
    display: none;
  }
}

.wket-list {
  padding-left: 1.5em;
  margin: 1em 0;
  line-height: 1.6;
  font-size: 1rem;
}

.wket-list--numbered {
  list-style-type: decimal;
  counter-reset: wket-counter;
}

.wket-list--numbered li {
  counter-increment: wket-counter;
  margin: 0.4em 0;
  position: relative;
}

.wket-list--numbered li::marker {
  color: var(--wket-color-accent);
  font-weight: 600;
}

.wket-list--bulleted {
  list-style: none;
  padding-left: 1.2em;
}

.wket-list--bulleted li {
  position: relative;
  margin: 0.4em 0;
  padding-left: 1.2em;
}

.wket-list--bulleted li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--wket-color-accent);
  border-radius: 50%;
}

/* TOC */

  .eterno-toc { background: #fafbfc; border:1px solid #eee; border-radius:10px; padding:16px; margin-bottom:2em; font-size:.955rem; }
    .eterno-toc-title { font-weight:700; margin-bottom:8px; font-size:1.1em; }
    .eterno-toc-list ul { list-style: none; margin: 0 0 0 1em; padding: 0; }
    .eterno-toc-list li { margin: 0.3em 0; }
    .eterno-toc-list a { color: #2967a2; text-decoration: underline dotted; }
    .eterno-toc-list a:hover { color: #4e92da; text-decoration: underline; }

    /* Современное решение — чтобы заголовки не прятались под фиксированный header */
    h1[id], h2[id], h3[id], h4[id], h5[id], h6[id] { scroll-margin-top: 90px; }



body, .main-content {
  padding-top: 20px; /* подгони под высоту шапки */
}

#footer {display: none;}

/* Progress Bar */

#progress-container {
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    background: #ffffff;
    z-index: 9999;
}

#progress-bar {
    height: 100%;
    width: 0;
    background: #4caf50;
    transition: width 0.25s;
}
/* TOC */

.leftblcol {
    padding: 0px 50px 0px 0px !important;
}

.toc {
    float: left;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.toc h2 {
    margin-top: 0;
}

.toc-title {    
font-size: 1.2rem;
    font-weight: 400;
padding: 10px 10px 10px 20px;
    color: #1A1919;
margin-bottom: 0 !important;}

.toc ul {
    max-width: 310px;
    list-style: none;
}

.toc ul li {
    margin-bottom: 10px;
    position: relative;
    margin-left: 0 !important;
}

.toc ul li a {
    text-decoration: none;
    color: #0073aa;
    display: block;
padding-left: 30px;
}

.toc ul li a:hover {
    color: #d96666;
    transition: width 0.2s ease 0s;
text-decoration: none;
}

.toc ul li a:before {
content: "";
    display: block;
    position: absolute;
    top: 0.7em;
    left: 0px;
    width: 20px;
    height: 1.3px;
    background: #333;}


.header-wrapper, .header, header {
display: none;
}

.sidebar-close {display: none;}



@media (max-width: 768px) {
  .wket-list {
    font-size: 0.95rem;
  }
}







@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

    .sidebar-logo img {max-width: 30% !important;}

.header-wrapper, .header, header {
display: flex;
}

    .header-main {width: 100%;}

   #leftSidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 80vw !important;
    max-width: 420px !important;
    min-width: 0 !important;
    height: 100vh !important;
    z-index: 10002 !important;
    background: #fff !important;
    transform: translateX(-100%) !important;
    transition: transform 0.33s cubic-bezier(.45,.03,.52,.96) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }
  #leftSidebar.active {
    transform: translateX(0) !important;
  }
  #leftSidebar * {
    max-width: 100% ;
    box-sizing: border-box;
    word-break: break-word;
  }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}
  /* Крестик */
  #leftSidebar .sidebar-close {
    position: absolute;
        top: 0px;
        right: -30px;
    background: none;
    border: none;
    font-size: 1.8em;
    margin-bottom: 0;
    color: #888;
    cursor: pointer;
    z-index: 1;
      display: block;
  }

    #rightSidebar .sidebar-close {
       display: block; 
    }


#rightSidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;           /* справа */
  width: 80vw !important;        /* ширина 80% экрана */
  max-width: 420px !important;   /* максимум 420px */
  min-width: 0 !important;
  height: 100vh !important;
  z-index: 10002 !important;
  background: #fff !important;
  transform: translateX(100%) !important; /* скрыт справа за экраном */
  transition: transform 0.33s cubic-bezier(.45,.03,.52,.96) !important;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12) !important; /* тень слева от сайдбара */
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

#rightSidebar.active {
  transform: translateX(0) !important; /* видим */
}

#rightSidebar * {
  max-width: 100% !important;
  box-sizing: border-box;
  word-break: break-word;
}

#rightSidebar > div {
    margin-top: 0px;
    padding: 25px;
}

    .sidebar-close {font-size: 1.8em;
    margin-bottom: 0;
}

    .toggle-right {display: none;}

.page-wrapper.grid-3 {
  grid-template-columns: 0px 1fr 0px;
}
}

