code,pre{word-break:break-word;white-space:pre-wrap}body,figure{margin:0}.public .container,body{padding:0}.search>ul>li:hover,.search>ul>li[aria-selected=true]{background-color:rgba(79,158,175,.15)}.mobile,.search,.search__button,.search__input{background:#fff}html{height:100%}body{display:flex;flex-direction:column;font-family:Arial,sans-serif;min-height:100%;word-break:break-word}iframe{max-width:100%}pre{padding:10px;color:#353535;background:hsla(0,0%,78%,.3);border:1px solid #c4c4c4;border-radius:2px;text-align:left;direction:ltr;tab-size:4;font-style:normal}.header__lng-switcher select,.header__login a{border-radius:3px;height:30px;box-sizing:border-box}.container{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:75px;padding-right:10px;width:100%;box-sizing:border-box;flex:1}.mobile.inner .container_search{padding:0 10px;max-height:60px;margin-bottom:0;margin-top:10px}.mobile .container{padding:10px}.container_search{max-height:40px;margin-bottom:10px}.container_category{flex:none;flex-direction:column}.container_article,.container_news,.container_search-results{flex-direction:column}.header{height:80px;display:flex}.header .container{gap:10px}.header__logo{display:flex;align-items:center;flex:1}.mobile .header__logo img{max-height:30px}.mobile.inner .header{display:none}.header__lng-switcher select{outline:0}.header__lng-switcher{flex:1;max-width:45px;text-align:right;display:flex;align-items:center}.header__login{display:flex;align-items:center}.header__login a{padding:0 15px;font-size:16px;color:#fff;background-color:#23869b;border-color:#23869b;display:block;line-height:30px}.category li,.category-article__icon,.category-article__name{line-height:1.5;font-size:14px}.header__login a:hover{background-color:#4f9eaf;border-color:#4f9eaf}.search{display:flex;flex-direction:row;width:100%;border-radius:20px;height:40px;border:1px solid #dcdfe6;box-sizing:border-box;box-shadow:0 12px 32px 4px rgba(0,0,0,.04),0 8px 20px rgba(0,0,0,.08);position:relative}.search>ul{position:absolute;max-height:226px;overflow-y:scroll;box-sizing:border-box;left:0;right:0;margin:.5rem 0 0;top:40px;padding:0;z-index:1;list-style:none;border-radius:.6rem;background-color:#fff;border:1px solid rgba(33,33,33,.07);box-shadow:0 3px 6px rgba(149,157,165,.15);outline:0;transition:opacity .15s ease-in-out;-moz-transition:opacity .15s ease-in-out;-webkit-transition:opacity .15s ease-in-out}.breadcrumbs ul,.category ul{list-style:none;margin:0;padding:0}.search>ul[hidden],.search__input-container>ul:empty{display:block;opacity:0;transform:scale(0)}.search>ul>li{margin:.3rem;padding:.3rem .5rem;text-align:left;font-size:1rem;color:#212121;border-radius:.35rem;background-color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.2s}.search .icon{max-height:18px}.search>ul>li mark{background-color:transparent;color:#23869b;font-weight:700}.search>ul>li:hover{cursor:pointer}.search__input{border-top-left-radius:20px;border-bottom-left-radius:20px;border:none;outline:0;padding-left:20px;font-size:16px;height:100%;width:100%;box-sizing:border-box}.search__button{max-width:60px;min-width:60px;cursor:pointer;border-top-right-radius:20px;border-bottom-right-radius:20px;border:none;font-size:16px}.breadcrumbs{margin-top:20px}.breadcrumbs ul{display:flex;gap:5px;font-size:14px;flex-wrap:wrap}.breadcrumbs li:after{content:'>';padding-left:5px;color:#d9d9d9}.breadcrumbs li:last-child:after{content:'';padding:0}.categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:40px 20px;grid-auto-rows:max-content;max-width:100%;width:100%;flex:1;padding:20px 0}.article-author,.article-content{padding:10px 0;gap:10px;display:flex}.category a{color:#303133}.article-file__download:hover,.article-file__preview:hover,.article-header__name a:hover,.category a:hover,.category-article_is-active a,.news-pagination__button:hover{color:#4f9eaf}.category-article,.category-header{display:flex;flex-direction:row;gap:10px}.category-article__icon{width:14px;height:14px;text-align:center}.category-article__icon img{max-width:14px;max-height:14px}.category-header{font-size:16px;margin-bottom:5px;font-weight:400;color:#303133;margin-top:0}.category-header__name{line-height:25px}.category-header__icon img{max-width:20px;max-height:20px}.category-header__icon{max-width:20px;height:20px;text-align:center;font-size:20px;line-height:20px}.article-files,.category__show-more{margin-top:10px}.category__show-more a{color:#23869b;font-size:12px}.container_category .categories{gap:0 20px}.article{display:flex;flex-direction:column;flex:1}.article-header{display:flex;font-size:24px;gap:10px;margin-bottom:10px;margin-top:20px}.article-header__icon,.article-header__icon img{max-width:24px;min-width:24px}.article-header__name{flex:1;font-size:24px;margin:0;font-weight:400}.article-header__id{color:#23869b}.article-file__icon,.article-header__name a{color:#303133}.article-author{border-top:1px solid #dcdfe6;border-bottom:1px solid #dcdfe6}.article-author__avatar{height:45px;width:45px;border-radius:90%;margin:auto;box-sizing:border-box;max-width:45px;box-shadow:0 0 12px rgba(0,0,0,.12)}.article-author__name{flex:1;font-size:16px;margin-top:5px}.article-author__last-updated{margin-top:5px;font-size:12px;color:#909399}.article-content{flex-wrap:wrap;flex:1}.article-content__text{flex:1;line-height:24px;font-size:14px}.article-content__text p,.article-content__text ul{line-height:1.5}.article-content__text .image-style-block-align-right{margin-right:0;margin-left:auto;text-align:right}.article-content__text .image-style-block-align-left{margin-right:auto;margin-left:0;text-align:left}.article-content__text .image-style-align-center{margin-right:auto;margin-left:auto;text-align:center}.article-content__text img{max-width:100%;height:100%}.article-content__text .text-huge{font-size:1.8em}.article-content__text .text-big{font-size:1.4em}.article-content__text .text-small{font-size:.85em}.article-content__text .text-tiny{font-size:.7em}.article-content__text code{background-color:#c7c7c780}.article-content__text pre code{background-color:unset}.article-content__text .table{margin:10px auto;display:table}.article-content__text .table table{width:100%;height:100%;border-collapse:collapse;border-spacing:0}.article-content__text .table table td,.article-content__text .table table th{min-width:2em;padding:.4em}.article-content__text blockquote{box-sizing:border-box;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.article-content__sidebar{flex:1;max-width:250px;min-width:250px}@media (max-width:594px){.article-content{flex-direction:column}.article-content__sidebar{max-width:unset}}.article-content__sidebar .category:last-child{margin-bottom:0}.article-content__sidebar .category{margin-bottom:20px}.article-useful__buttons button{cursor:pointer}.article-footer{padding:20px 0;display:flex;border-top:1px solid #dcdfe6}.article-footer__views{flex:1;font-size:12px;color:#909399;text-align:right}.article-favorite__button{background:0 0;border:none;cursor:pointer;color:#909399;padding:0;margin:0;font-size:20px;outline:0}.article-file,.article-useful__buttons,.article-useful__heading,.inner .hero{margin-bottom:10px}.article-favorite__button_active{color:red}.article-file{display:flex;flex-direction:column;font-size:14px}.article-file__meta{display:flex;gap:10px;flex-direction:row}.article-file__buttons{display:flex;gap:10px}.article-file__download,.article-file__preview{color:#303133;font-size:12px}.article-useful{border-top:1px solid #dcdfe6;padding:20px 0;text-align:center;font-size:14px}.article-useful__stats{font-size:12px}.article-useful__buttons{display:flex;gap:10px;justify-content:center}.article-useful__button{border-radius:3px;color:#23869b;background-color:#e9f3f5;border:1px solid #bddbe1;padding:3px 5px;width:60px;outline:0}.article-useful__button_active{color:#fff;background-color:#23869b;border-color:#23869b}.article-useful__button_active:hover{background-color:#4f9eaf;border-color:#4f9eaf}.article-footer__read-more{text-align:right;font-size:14px;width:100%}.access-denied,.news__no-news{text-align:center;flex:1;padding-top:20px}.access-denied h2{font-size:20px;font-weight:400}.inner .hero{background:0 0;height:40px}.mobile.inner .hero{height:60px;margin-bottom:0}.mobile .hero{height:100px}.hero{height:150px;display:flex;justify-items:center;align-items:center;width:100%;background:-moz-linear-gradient(left,#2c9b75 0,#23879a 100%);background:-webkit-linear-gradient(left,#2c9b75 0,#23879a 100%);background:linear-gradient(to right,#2c9b75 0,#23879a 100%)}.search-results__total-found{margin-top:20px;font-size:14px}.search-results__total-found span{font-weight:700}.news__no-news h2,.search-results__no-results h2{font-size:20px;font-weight:400}.search-results__no-results{text-align:center;padding-top:20px}.news-pagination{margin-bottom:20px;text-align:center;display:flex;gap:10px;justify-content:center}.news-pagination__button{cursor:pointer;font-size:14px;border:none;background:0 0}.kb-management{border-bottom:1px solid #dcdfe6;background:#fff}.kb-management__buttons{display:flex;justify-content:end;align-items:center;height:30px;width:100%;gap:10px}.kb-management__button{font-size:12px;border-right:1px solid #dcdfe6;padding-right:10px}.kb-management__button:last-child{border:none}.mobile .footer{height:30px}.footer{height:60px;border-top:1px solid #dcdfe6;display:flex;align-items:center}.footer__copyright{text-align:center;width:100%;color:#909399;font-size:12px}
/* ==========================================================================
   OLX green тема для базы знаний HelpDeskEddy
   Бренд: https://smartchoice.olx.com/brandguidelines/

   Принципы брендбука, заложенные в тему:
   • Палитра: charcoal #002F34 + teal #23E5DB + tint #CBF7EE.
     Только одна фирменная зелёная цветовая тема на всём интерфейсе.
   • Без градиентов и теней. Белый не заменяет тинты.
   • Заголовок: Platform Headline, ЗАГЛАВНЫЕ, по центру, leading 100%.
   • Шрифт: Platform; запасной Poppins (+ Montserrat для кириллицы).

   Структура разметки взята с главной страницы базы знаний:
   .header · .hero / .container_search > form.search · .categories > .category ·
   .article (header, content, sidebar, useful) · .breadcrumbs · .footer
   Служебные элементы HelpDeskEddy (#menu-app, .kb-management) не трогаем.
   Типографика статей ограничена областью .article-content__text.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Poppins:ital,wght@0,400;0,500;0,700;0,800;1,400&display=swap");

/* Platform: раскомментируйте url(...) и загрузите лицензионные файлы */
@font-face {
  font-family: "Platform";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local("Platform Regular"), local("Platform");
  /* , url("/custom/fonts/Platform-Regular.woff2") format("woff2") */
}
@font-face {
  font-family: "Platform";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: local("Platform Italic");
}
@font-face {
  font-family: "Platform";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local("Platform Medium");
}
@font-face {
  font-family: "Platform Headline";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: local("Platform Headline");
}

/* ==========================================================================
   1. Токены
   ========================================================================== */
:root {
  /* Фирменные значения OLX: HEX указан справочно, рендеринг — OKLCH. */
  --p-olx-charcoal: oklch(0.27868 0.04768 205.97); /* #002F34 */
  --p-olx-teal: oklch(0.83348 0.13991 189.08); /* #23E5DB */
  --p-olx-teal-tint: oklch(0.94282 0.04673 181.45); /* #CBF7EE */
  --p-olx-neutral-tint: oklch(0.94712 0.0035 219.53); /* #EBEEEF */
  --p-olx-coral-tint: oklch(0.90744 0.04948 38.34); /* #FFD6C9 */

  /* Семантические токены с HEX-fallback для старых браузеров. */
  --charcoal: #002f34;
  --accent: #23e5db;
  --accent-tint: #cbf7ee;
  --neutral-tint: #ebeeef;
  --coral-tint: #ffd6c9;
  --charcoal: var(--p-olx-charcoal);
  --accent: var(--p-olx-teal);
  --accent-tint: var(--p-olx-teal-tint);
  --neutral-tint: var(--p-olx-neutral-tint);
  --coral-tint: var(--p-olx-coral-tint);
  --on-accent: var(--charcoal);

  --text: var(--charcoal);
  --text-muted: rgb(0 47 52 / 0.72);
  --line-soft: rgb(0 47 52 / 0.2);
  --border: 2px solid var(--charcoal);

  --font-body: "Platform", "Poppins", "Montserrat", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-headline: "Platform Headline", "Platform", "Poppins", "Montserrat",
    system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  --radius: 8px;
  --radius-lg: 16px;
  --ease: 160ms ease-out;

  /* Подложка страницы. Хотите нейтральную — var(--neutral-tint). */
  --page-bg: var(--accent-tint);
}

/* Зелёная тема закреплена: другие цветовые темы не подключаются. */

/* ==========================================================================
   2. База (только безопасные глобальные правила)
   ========================================================================== */
body {
  background: var(--page-bg) !important;
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* Общая типографика областей базы знаний (меню HelpDeskEddy не затрагивается) */
:is(.header, .hero, .footer, body > .container) {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6; /* для чтения; в брендбуке 120% — для коротких макетов */
  letter-spacing: 0.04em; /* tracking 40 */
  color: var(--text);
  -webkit-font-smoothing: antialiased;

  :focus-visible {
    outline: 3px solid var(--charcoal);
    outline-offset: 3px;
  }
}

/* ==========================================================================
   3. Шапка
   ========================================================================== */
body .header {
  background: var(--neutral-tint);
  border-bottom: var(--border);
}
body .header .container {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
body .header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
body .header__logo:hover {
  background: transparent;
}
body .header__logo img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 0;
}

/* ==========================================================================
   4. Hero и поиск
   ========================================================================== */
body .hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: var(--accent) !important;
  background-image: none !important;
  text-align: center;
}

/* Внутренние страницы: поиск лежит в узком .container.
   Тема даёт ему почти нулевую высоту, а поле выносит за границы — возвращаем в поток.
   Фон на всю ширину рисуем псевдоэлементом (он не обрезает подсказки поиска). */
body .container_search {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  /* Фиксированная высота = поле 3.5rem + отступы 1.5rem сверху и снизу.
     Тема раскладывает страницу так, что блок растягивался на свободное место
     экрана (на коротких страницах — на сотни пикселей). */
  flex: 0 0 auto !important;
  height: 6.5rem !important;
  min-height: 0 !important;
  max-height: 6.5rem !important;
  overflow: visible !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: transparent !important;
  text-align: center;
}
body .container_search::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--accent);
}
/* 100vw включает ширину полосы прокрутки — не даём появиться горизонтальному скроллу */
body {
  overflow-x: clip;
}
body .hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Бренд-заголовок. Не нужен — удалите правило целиком. Не более 10 слов. */
body .hero .container::before {
  content: "Чем мы можем помочь?";
  display: block;
  width: 100%;
  margin: 0 0 1.75rem;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.25rem);
  line-height: 1; /* leading 100% */
  letter-spacing: 0; /* tracking 0 */
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--on-accent);
}

body :is(.hero, .container_search) .search {
  position: relative !important;
  display: block !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100%;
  max-width: 40rem;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
}
body :is(.hero, .container_search) .search__input {
  display: block;
  width: 100%;
  height: 3.5rem !important;
  min-height: 3.5rem !important;
  max-height: 3.5rem !important;
  margin: 0 !important;
  padding: 0.65rem 4.25rem 0.65rem 1.5rem !important;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  box-sizing: border-box;
  border-radius: 999px;
  box-shadow: none !important;
  font: 400 1.125rem/1.4 var(--font-body);
  letter-spacing: 0.04em;
  transition: background-color var(--ease);
}
body :is(.hero, .container_search) .search__input::placeholder {
  color: var(--text-muted);
}
body :is(.hero, .container_search) .search__input:hover,
body :is(.hero, .container_search) .search__input:focus {
  background: var(--accent-tint);
}
body :is(.hero, .container_search) .search__input:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}
body :is(.hero, .container_search) .search__button {
  position: absolute;
  box-sizing: border-box;
  top: 0.375rem;
  right: 0.375rem;
  bottom: auto;
  left: auto;
  margin: 0;
  transform: none;
  box-shadow: none;
  display: grid;
  place-items: center;
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  max-width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  aspect-ratio: 1;
  padding: 0 !important;
  background: var(--charcoal);
  color: var(--neutral-tint);
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
body :is(.hero, .container_search) .search__button:hover {
  background: var(--accent-tint);
  color: var(--charcoal);
}

/* Подсказки поиска (autoComplete.js). Имена классов стандартные для библиотеки —
   если не сработало, пришлите разметку выпадающего списка. */
body [id^="autoComplete_list"] {
  margin-top: 0.5rem;
  padding: 0.25rem;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  list-style: none;
  text-align: left;
}
body [id^="autoComplete_list"] li {
  padding: 0.6rem 0.9rem;
  background: transparent !important;
  color: var(--charcoal) !important;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
body [id^="autoComplete_list"] .icon,
body [id^="autoComplete_list"] i {
  color: var(--charcoal) !important;
}
body [id^="autoComplete_list"] li:hover,
body [id^="autoComplete_list"] li[aria-selected="true"],
body [id^="autoComplete_list"] .autoComplete_selected {
  background: var(--accent-tint) !important;
}
body [id^="autoComplete_list"] mark {
  background: transparent !important;
  color: inherit !important;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.15em;
}

/* ==========================================================================
   5. Категории
   ========================================================================== */
body .categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 3.5rem;
}

body .category {
  position: relative;
  padding: 1.5rem;
  background: var(--neutral-tint);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: background-color var(--ease);
}
body .categories .category:hover .category-header__icon {
  background: var(--charcoal);
}
body .categories .category:hover .category-header__icon .icon,
body .categories .category:hover .category-header__icon .icon::before {
  color: var(--neutral-tint) !important;
}
body .categories .category:hover .category-header__name a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}

body .category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
body .category-header__icon {
  box-sizing: border-box;
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  background: var(--accent);
  border: var(--border);
  border-radius: 50%;
}
/* Иконки задают цвет inline (#2EA6F1) — перебиваем через !important */
body .category .icon,
body .category .icon::before {
  color: var(--on-accent) !important;
}
body .category-header__icon .icon {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
}

body .category-header__name {
  min-width: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em; /* tracking 20 */
  overflow-wrap: anywhere;
}
body .category-header__name a {
  color: var(--charcoal);
  text-decoration: none;
}
body .category-header__name a:hover {
  background: transparent;
}
/* вся карточка кликабельна */
body .category-header__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
body .category-header__name a:focus-visible {
  outline: none;
}
body .category-header__name a:focus-visible::after {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

body .category ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
body .category ul:empty,
body .category ul:not(:has(li)) {
  margin: 0;
}
body .category-article {
  position: relative;
  z-index: 1; /* выше растянутой ссылки категории */
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
}
body .category-article::before {
  display: none;
}
body .category-article__icon .icon {
  font-size: 1rem;
}
body .category .category-article__icon .icon,
body .category .category-article__icon .icon::before {
  color: var(--charcoal) !important;
}
body .category-article__name {
  min-width: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
body .category-article__name a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
body .category-article__name a:hover {
  background: var(--accent-tint);
}

/* ==========================================================================
   6. Подвал
   ========================================================================== */
body .footer {
  padding: 1.75rem 0;
  background: var(--accent);
  color: var(--on-accent);
  border-top: var(--border);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}
body .footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
body .footer a:hover {
  background: var(--charcoal);
  color: var(--neutral-tint);
}

/* ==========================================================================
   7. Страницы категорий и статей  (область: body > .container)
   Применяется к тексту статьи (.article-content__text), набранному в HTML-редакторе.
   Нативная вложенность CSS: Chrome 120+, Safari 17.2+, Firefox 117+.
   ========================================================================== */
.article-content__text {
  box-sizing: border-box;
  min-width: 0;

  /* Заголовок страницы — по брендбуку */
  h1 {
    margin: 2rem 0 1rem;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    text-wrap: balance;
  }

  /* Подзаголовки — Platform Medium, sentence case */
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 2.5rem 0 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-wrap: balance;
  }
  h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    padding-bottom: 0.5rem;
    border-bottom: var(--border);
  }
  h3 {
    font-size: 1.375rem;
  }
  h4 {
    font-size: 1.125rem;
  }
  h5,
  h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  p,
  ul,
  ol,
  dl,
  table,
  pre,
  blockquote,
  figure,
  details {
    margin-top: 0;
    margin-bottom: 1.25rem;
  }

  strong,
  b {
    font-weight: 500;
  }

  small {
    color: var(--text-muted);
    font-size: 0.875rem;
  }

  /* Ссылки: charcoal + акцентное подчёркивание */
  p a,
  li a,
  td a,
  dd a,
  blockquote a {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 0.18em;
    text-underline-offset: 0.2em;
    transition: background-color var(--ease);

    &:hover {
      background: var(--accent-tint);
    }
    &:active {
      background: var(--accent);
      color: var(--on-accent);
    }
  }

  /* Списки внутри текста (не в категориях) */
  :is(p, div, article, section) > ul:not(.categories ul),
  li > ul {
    list-style: none;
    padding-left: 1.5rem;

    > li {
      position: relative;
      margin: 0.35rem 0;
    }
    > li::before {
      content: "";
      position: absolute;
      left: -1.1rem;
      top: 0.72em;
      width: 0.45rem;
      height: 0.45rem;
      background: var(--accent);
      border-radius: 50%;
    }
  }
  ol {
    padding-left: 1.75rem;

    > li::marker {
      font-weight: 500;
    }
  }

  blockquote {
    padding: 1rem 1.25rem;
    background: var(--accent-tint);
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;

    > :last-child {
      margin-bottom: 0;
    }
  }

  hr {
    border: 0;
    border-top: var(--border);
    margin: 2.5rem 0;
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
  }
  figcaption {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
  }

  /* Код */
  code,
  kbd,
  samp,
  pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    letter-spacing: 0;
  }
  :not(pre) > code {
    padding: 0.15em 0.4em;
    background: var(--accent-tint);
    border-radius: 4px;
  }
  kbd {
    display: inline-block;
    padding: 0.1em 0.5em;
    background: var(--neutral-tint);
    border: var(--border);
    border-bottom-width: 4px;
    border-radius: 6px;
    font-size: 0.8em;
    line-height: 1.4;
  }
  pre {
    padding: 1.25rem;
    overflow-x: auto;
    background: var(--charcoal);
    color: var(--neutral-tint);
    border-radius: var(--radius);
    line-height: 1.5;
  }
  pre code {
    padding: 0;
    background: none;
    color: inherit;
  }

  /* Таблицы */
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
  th,
  td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
  }
  thead th {
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 500;
    border-bottom: var(--border);
  }
  tbody tr:nth-child(even) td {
    background: rgb(0 47 52 / 0.04);
  }
  tbody tr:last-child td {
    border-bottom: 0;
  }

  /* Кнопка (класс для HTML-редактора статей): <a class="kb-btn" href="…"> */
  .kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: var(--on-accent);
    border: var(--border);
    border-radius: var(--radius);
    font: 500 1rem/1.2 var(--font-body); /* Platform Medium для CTA */
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color var(--ease), color var(--ease);

    &:hover {
      background: var(--charcoal);
      color: var(--neutral-tint);
    }
  }

  /* Заметки (HTML-редактор): <div class="callout callout--tip"> */
  .callout {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--accent-tint);
    border: var(--border);
    border-radius: var(--radius);

    > :last-child {
      margin-bottom: 0;
    }
    &::before {
      content: "Информация";
      display: block;
      margin-bottom: 0.35rem;
      font-size: 0.75rem;
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
  }
  .callout--tip {
    background: var(--accent-tint);
  }
  .callout--tip::before {
    content: "Совет";
  }
  .callout--warning {
    background: var(--accent-tint);
  }
  .callout--warning::before {
    content: "Важно";
  }
  .callout--danger {
    background: var(--accent-tint);
  }
  .callout--danger::before {
    content: "Осторожно";
  }

  /* Шаги: <ol class="steps"> */
  ol.steps {
    padding-left: 0;
    list-style: none;
    counter-reset: step;

    > li {
      position: relative;
      min-height: 2.5rem;
      margin: 0 0 1.25rem;
      padding-left: 3.5rem;
      counter-increment: step;
    }
    > li::before {
      content: counter(step);
      position: absolute;
      left: 0;
      top: 0;
      display: grid;
      place-items: center;
      width: 2.5rem;
      height: 2.5rem;
      background: var(--accent);
      color: var(--on-accent);
      border: var(--border);
      border-radius: 50%;
      font-weight: 500;
      letter-spacing: 0;
    }
  }

  /* FAQ на <details> */
  details {
    background: var(--neutral-tint);
    border: var(--border);
    border-radius: var(--radius);

    > summary {
      position: relative;
      padding: 1rem 3.25rem 1rem 1.25rem;
      font-weight: 500;
      cursor: pointer;
      list-style: none;
      transition: background-color var(--ease);

      &::-webkit-details-marker {
        display: none;
      }
      &::after {
        content: "+";
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        line-height: 1;
      }
      &:hover {
        background: var(--accent-tint);
      }
    }
    &[open] > summary {
      background: var(--accent-tint);
      border-bottom: var(--border);
    }
    &[open] > summary::after {
      content: "\2212";
    }
    > :not(summary) {
      margin-left: 1.25rem;
      margin-right: 1.25rem;
    }
    > summary + * {
      margin-top: 1rem;
    }
    > :last-child {
      margin-bottom: 1rem;
    }
  }
}

/* ==========================================================================
   7b. Страница статьи и категории: структура из реальной разметки
   ========================================================================== */

/* Хлебные крошки */
body .breadcrumbs {
  margin: 1.5rem 0 1rem;
  font-size: 0.875rem;
}
body .breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
body .breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
body .breadcrumbs li::before,
body .breadcrumbs li::after {
  content: none;
}
body .breadcrumbs li + li::before {
  content: "/";
  position: static;
  width: auto;
  height: auto;
  background: none;
  color: var(--text-muted);
}
body .breadcrumbs a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
body .breadcrumbs a:hover {
  background: var(--neutral-tint);
}
body .breadcrumbs li:last-child a {
  font-weight: 500;
  text-decoration: none;
}

/* Заголовок статьи */
body .article-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
body .article-header__icon {
  box-sizing: border-box;
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  background: var(--accent);
  border: var(--border);
  border-radius: 50%;
}
body .article-header .icon,
body .article-header .icon::before {
  color: var(--on-accent) !important;
}
body .article-header__icon .icon {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
}
body .article-header__name {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
body .article-header__id {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.6rem;
  background: var(--neutral-tint);
  border: 2px solid var(--charcoal);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}

/* Избранное */
body .article-favorite__button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
body .article-favorite__button i {
  color: inherit !important;
}
body .article-favorite__button:hover,
body .article-favorite__button_active,
body .article-favorite__button_active:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* Тело статьи — карточка */
body .article-content__text {
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: var(--neutral-tint);
  border: var(--border);
  border-radius: var(--radius-lg);
}

/* Боковая панель категории */
body .article-content__sidebar .category {
  padding: 1rem;
  background: var(--neutral-tint);
}
body .article-content__sidebar .category-header {
  margin-bottom: 0.5rem;
}
body .article-content__sidebar .category-header__icon {
  flex-basis: 2.25rem;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
}
body .article-content__sidebar .category-header__icon .icon {
  font-size: 1.05rem;
}
body .article-content__sidebar .category-header__name {
  font-size: 1.0625rem;
}
body .category-article_is-active {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background: var(--accent);
  border-top-color: transparent;
  border-radius: var(--radius);
}
body .category-article_is-active .category-article__name a {
  color: var(--on-accent);
  text-decoration-color: var(--on-accent);
  font-weight: 500;
}
body .category-article_is-active .category-article__name a:hover {
  background: transparent;
}
body .category .category-article_is-active .category-article__icon .icon,
body .category .category-article_is-active .category-article__icon .icon::before {
  color: var(--on-accent) !important;
}

/* «Была ли статья полезной?» */
body .article-useful {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--neutral-tint);
  border: var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
body .article-useful__heading {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
body .article-useful__buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
body .article-useful__button {
  box-sizing: border-box;
  min-width: 6rem;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: 999px;
  box-shadow: none;
  font: 500 1rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
body .article-useful__button:hover {
  background: var(--accent-tint);
}
body .article-useful__button_active,
body .article-useful__button_active:hover {
  background: var(--accent);
  color: var(--on-accent);
}
body .article-useful__stats {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
body .article-footer {
  margin-top: 1rem;
}
body .article-footer__views {
  font-size: 0.875rem;
  text-align: right;
}

/* Пустой блок категорий (на странице категории он идёт первым, без карточек) */
body .categories:not(:has(.category)) {
  display: none;
}

/* Многоцветные иконки темы: все слои красим в цвет иконки */
body .icon::before,
body .icon::after {
  color: inherit !important;
}

/* Результаты поиска */
body .container_search-results {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
body .search-results__no-results {
  text-align: center;
}
body .search-results__no-results h2 {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
body .search-results__no-results a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  border: var(--border);
  border-radius: var(--radius);
  font: 500 1rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
body .search-results__no-results a:hover {
  background: var(--charcoal);
  color: var(--neutral-tint);
}

/* Подчёркивание сплошной линией (без разрывов у выносных элементов букв) */
body :where(.category, .breadcrumbs, .footer, .article-content__text, .search-results,
    .search-results__no-results, [id^="autoComplete_list"]) :is(a, mark) {
  text-decoration-skip-ink: none;
}

/* Результаты поиска: найденные статьи */
body .search-results__total-found {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
body .search-results__total-found span {
  font-weight: 500;
}
body .search-results .article {
  margin: 0 0 2.5rem;
}
body .article-header__name a {
  color: var(--charcoal);
  text-decoration: none;
}
body .article-header__name a:hover {
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
body .article-header__id {
  color: var(--charcoal);
}
body .search-results .article-header__name {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
body .search-results .article-footer {
  margin-top: 0.75rem;
  padding: 0;
  border-top: 0;
  text-align: right;
}
body .article-footer__read-more a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 1.25rem;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: 999px;
  font: 500 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color var(--ease), color var(--ease);
}
body .article-footer__read-more a:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* ==========================================================================
   8. Адаптив, доступность, печать
   ========================================================================== */
@media (max-width: 640px) {
  body .article-header {
    align-items: flex-start;
  }
  body .article-useful__buttons {
    flex-direction: column;
  }
  body .categories {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.5rem;
  }
  body :is(.hero, .container_search) .search__input {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
  }
  body .hero,
  body .footer {
    display: none !important;
  }
  .article-content__text a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ==========================================================================
   9. Главная страница OLX: бренд, новости, важное, категории
   Блоки создаются script.js из существующей разметки HelpDeskEddy.
   ========================================================================== */

/* Шапка и текстовый lockup */
body .header .header__logo {
  gap: 1rem;
  min-height: 44px;
  color: var(--charcoal);
}
.olx-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.olx-brand svg {
  display: block;
  width: 4.25rem;
  height: 2.5rem;
}
.olx-brand__label {
  max-width: 10rem;
  padding-left: 1rem;
  border-left: 2px solid var(--charcoal);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Доступный заголовок вместо текста в псевдоэлементе */
body .hero {
  position: relative;
  overflow: hidden;
}
body .hero .container::before {
  content: none;
}
body .hero .olx-hero__title {
  max-width: 62rem;
  margin: 0 0 1rem;
  color: var(--on-accent);
  font-family: var(--font-headline);
  font-size: clamp(2rem, 1.1rem + 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
body .hero .olx-hero__subtitle {
  max-width: 44rem;
  margin: 0 0 2rem;
  color: var(--on-accent);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}
body :is(.hero, .container_search) .search {
  max-width: 46rem;
}

/* Верхний информационный блок на всю ширину категорий */
body .olx-priority {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}
body .olx-priority__panel {
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius-lg);
}
body .olx-priority__news {
  grid-column: 1 / -1;
  background: var(--coral-tint);
}
body .olx-priority__important {
  display: none;
}
body .olx-priority__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
body .olx-priority__heading h2 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-headline);
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}
body .olx-priority__caption {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body .olx-priority__all,
body .olx-priority__template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--charcoal);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}
body .olx-priority__all {
  flex: 0 0 auto;
  font-size: 0.875rem;
}
body .olx-priority__all span,
body .olx-priority__template span {
  display: inline-block;
  transition: transform var(--ease);
}
body .olx-priority__all:hover span,
body .olx-priority__template:hover span {
  transform: translateX(3px);
}
body .olx-priority__template {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: var(--border);
}
body .olx-priority .olx-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
body .olx-priority .category-article {
  min-width: 0;
  padding: 0.8rem 0;
}
body .olx-priority .category-article__name {
  font-size: 1rem;
  line-height: 1.5;
}
body .olx-priority .category-article__icon {
  padding-top: 0.25rem;
}
body .olx-priority__empty {
  margin: 0;
  line-height: 1.6;
}

/* Заголовок перед основной навигацией */
body .olx-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 3.5rem 0 1.5rem;
}
body .olx-section-heading h2 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-headline);
  font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
body .olx-section-heading p {
  max-width: 28rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: right;
}
body.olx-home-enhanced .categories {
  margin-top: 0;
}
body.olx-home-enhanced .categories .category {
  display: flex;
  flex-direction: column;
  transition: background-color var(--ease), transform var(--ease);
}
body.olx-home-enhanced .categories .category:hover {
  transform: translateY(-2px);
}
body.olx-home-enhanced .categories .category > ul {
  flex: 1 1 auto;
}
body .category__show-more {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.75rem;
}
body .category__show-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
body .category__show-more a:hover {
  background: var(--accent-tint);
}

/* Общие состояния добавленных ссылок */
body :is(.olx-priority, .olx-section-heading) a:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}
body :is(.olx-priority__all, .olx-priority__template):active {
  background: var(--accent);
}

/* Предпросмотр: локальные результаты и пояснение внутренних ссылок */
body .olx-preview-results {
  margin-top: 2rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--neutral-tint);
  border: var(--border);
  border-radius: var(--radius-lg);
}
body .olx-preview-results[hidden] {
  display: none;
}
body .olx-preview-results__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
body .olx-preview-results h2 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}
body .olx-preview-results__clear,
body .olx-preview-dialog__close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius);
  font: 500 0.95rem/1.2 var(--font-body);
  cursor: pointer;
}
body .olx-preview-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .olx-preview-results__list li {
  border-top: 1px solid var(--line-soft);
}
body .olx-preview-results__list a {
  display: block;
  padding: 0.85rem 0;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.2em;
}
body .olx-preview-dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 0;
  background: var(--neutral-tint);
  color: var(--charcoal);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
body .olx-preview-dialog::backdrop {
  background: rgb(0 47 52 / 0.64);
}
body .olx-preview-dialog__body {
  padding: 1.5rem;
}
body .olx-preview-dialog h2 {
  margin: 0 0 1rem;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}
body .olx-preview-dialog__path {
  padding: 0.75rem;
  overflow-wrap: anywhere;
  background: var(--accent-tint);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0;
}
body .olx-preview-dialog__close {
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  body .olx-priority__news,
  body .olx-priority__important {
    grid-column: 1 / -1;
  }
  body .olx-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  body .olx-section-heading p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body .header .header__logo {
    gap: 0.75rem;
  }
  .olx-brand svg {
    width: 3.5rem;
    height: 2.25rem;
  }
  .olx-brand__label {
    max-width: 8rem;
    padding-left: 0.75rem;
    font-size: 0.75rem;
  }
  body .hero {
    padding: 2.5rem 0;
  }
  body .hero .olx-hero__subtitle {
    margin-bottom: 1.5rem;
  }
  body .olx-priority {
    margin-top: 1.5rem;
  }
  body .olx-priority .olx-news-list {
    grid-template-columns: minmax(0, 1fr);
  }
  body .olx-priority__heading {
    flex-direction: column;
    gap: 0.5rem;
  }
  body .olx-priority__all {
    justify-content: flex-start;
  }
  body .olx-section-heading {
    margin-top: 2.5rem;
  }
  body .olx-preview-results__top {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.olx-home-enhanced .categories .category:hover {
    transform: none;
  }
}


/* Финальная геометрия контейнеров и автономные обозначения иконок */
body :is(.header, .hero, .footer) .container,
body > .container {
  box-sizing: border-box;
  width: calc(100% - 2rem);
  max-width: 75rem;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}
body .category-header__icon .icon,
body .category-article__icon .icon,
body .search__button .hde-kb-search {
  display: none;
}
body .category-header__icon::after {
  content: "→";
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}
body .category-article__icon {
  flex: 0 0 0.5rem;
  width: 0.5rem;
  padding-top: 0.65rem;
}
body .category-article__icon::before {
  content: "";
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--charcoal);
  border-radius: 50%;
}
body :is(.hero, .container_search) .search__button::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
body :is(.hero, .container_search) .search__button::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(7px, 7px) rotate(45deg);
}
body .olx-priority__template {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
body .olx-priority .category-article__icon {
  padding-top: 0.65rem;
}

body :is(.olx-preview-results__clear, .olx-preview-dialog__close):hover {
  background: var(--charcoal);
  color: var(--neutral-tint);
}
body :is(.olx-preview-results__clear, .olx-preview-dialog__close):active {
  background: var(--accent-tint);
  color: var(--charcoal);
}


/* ==========================================================================
   10. Совместимость с родительским layout HelpDeskEddy
   На рабочей главной .container может быть flex/grid-контейнером. Верхние
   блоки обязаны занимать всю строку, а не сжиматься до ширины содержимого.
   ========================================================================== */
body.olx-home-enhanced .olx-home-container {
  display: block !important;
}
body.olx-home-enhanced .olx-home-container > .olx-priority,
body.olx-home-enhanced .olx-home-container > .olx-section-heading,
body.olx-home-enhanced .olx-home-container > .categories {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: 0 0 100%;
  grid-column: 1 / -1;
}
body.olx-home-enhanced .olx-priority > .olx-priority__news,
body.olx-home-enhanced .olx-priority > .olx-priority__important {
  min-width: 0;
}
body.olx-home-enhanced .olx-priority .olx-news-list {
  display: grid;
}
