/*
Theme Name: Casebook Help
Theme URI: https://gitlab.pravo.tech/Casebook/casebook-frontend/-/tree/develop/casebook-help
Author: Pravo Tech
Author URI: https://pravo.tech
Version: 1.0.0
*/
@charset 'UTF-8';

@font-face {
  font-family: 'Roboto';
  font-weight: 400;
  font-style: normal;
  src: url('roboto-regular-webfont.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-weight: 700;
  font-style: normal;
  src: url('roboto-bold-webfont.woff2') format('woff2');
}

:root {
  --gradient-from-color: #3a7bd5;
  --gradient-to-color: #00d2ff;
  --link-color: #4183d7;
  --logo-url: url(casebook.svg);
  --logo-inactive-url: url(casebook_inactive.svg);
  --logo-inverted-url: url(casebook_inverted.svg);
}

[data-theme="caselook"] {
  --gradient-from-color: #ff9e00;
  --gradient-to-color: #ffcc4a;
  --link-color: #469bff;
  --logo-url: url(caselook.svg);
  --logo-inactive-url: url(caselook_inactive.svg);
  --logo-inverted-url: url(caselook_inverted.svg);
}

[data-theme="npa"] {
  --gradient-from-color: #ff9e00;
  --gradient-to-color: #ffcc4a;
  --link-color: #469bff;
  --logo-url: url(npa.svg);
  --logo-inactive-url: url(npa_inactive.svg);
  --logo-inverted-url: url(npa_inverted.svg);
}

[data-theme="caseone"] {
  --gradient-from-color: #653c9e;
  --gradient-to-color: #6f61b5;
  --link-color: #6a4ea9;
  --logo-url: url(caseone.svg);
  --logo-inactive-url: url(caseone_inactive.svg);
  --logo-inverted-url: url(caseone_inverted.svg);
}

[data-theme="botone"] {
  --gradient-from-color: #381642;
  --gradient-to-color: #fc8947;
  --link-color: #cf4933;
  --logo-url: url(botone.svg);
  --logo-inactive-url: url(botone_inactive.svg);
  --logo-inverted-url: url(botone_inverted.svg);
}

[data-theme="docone"] {
  --gradient-from-color: #381695;
  --gradient-to-color: #006af4;
  --link-color: #2b86fc;
  --logo-url: url(docone.svg);
  --logo-inactive-url: url(docone_inactive.svg);
  --logo-inverted-url: url(docone_inverted.svg);
}

[data-theme="pravodocs"] {
  --gradient-from-color: #381695;
  --gradient-to-color: #006af4;
  --link-color: #2b86fc;
  --logo-url: url(pravodocs.svg);
  --logo-inactive-url: url(pravodocs_inactive.svg);
  --logo-inverted-url: url(pravodocs_inverted.svg);
}

[data-theme="kartoteka"] {
  --gradient-from-color: #6738bd;
  --gradient-to-color: #6738bd;
  --link-color: #2b86fc;
  --logo-url: url(kartoteka.svg);
  --logo-inactive-url: url(kartoteka_inactive.svg);
  --logo-inverted-url: url(kartoteka_inverted.svg);
}

body {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  color: #24313e;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
}

html {
  overflow-x: auto;
}

body {
  min-width: 1010px;
  position: relative;
  overflow-y: auto;
}

body,
input,
textarea,
p {
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

/* Убираем отступы у таблиц по умолчанию */
table {
  border-spacing: 0;
  border-collapse: collapse;
}

td,
th {
  padding: 0;
}

/* Стиль для выделенного текста */
::selection {
  background: #ceeafe;
}

/* Нативные плейсхолдеры */
::-webkit-input-placeholder {
  color: #b9b9b9;
  font-weight: 400;
}

::-moz-placeholder {
  opacity: 1;
  color: #b9b9b9;
  font-weight: 400;
}

:-moz-placeholder {
  color: #b9b9b9;
  font-weight: 400;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Подсветка невалидных полей в Firefox */
input:invalid,
textarea:invalid {
  box-shadow: none;
}

/* Стили ссылок по умолчанию */
a,
a:link,
a:visited,
a:hover,
a:active {
  cursor: pointer;
  color: var(--link-color);
  text-decoration: none;
  outline: 0;
}

a:hover,
a:active {
  text-decoration: underline;
}

/* Стили списков по умолчанию (отображение без маркеров) */
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Каркас */
.l-body {
  min-height: calc(100% - 70px);
  position: relative;
}

.l-container {
  width: 936px;
  margin: 0 auto;
  position: relative;
}

.l-context--tight {
  width: 628px;
  overflow: hidden;
  float: left;
}

/* Шапка */
.l-header {
  height: 66px;
  top: 0;
  position: sticky;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.home .l-header {
  background: linear-gradient(to right, var(--gradient-from-color), var(--gradient-to-color));
  box-shadow: none;
}

.stucked .l-header {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.l-header .ui-textbox {
  right: 238px;
  top: 13px;
  position: absolute;
}

.home .l-header .ui-textbox {
  display: none;
}

.stucked .l-header .ui-textbox {
  display: block;
}

/* Логотип */
.l-logo {
  height: 22px;
  left: 0;
  top: 19px;
  padding-left: 185px;
  position: absolute;
  background: no-repeat var(--logo-url);
  background-size: 100% 100%;
  transition: all 0.1s ease;
}

.home .l-logo {
  background-image: var(--logo-inverted-url);
}

.stucked .l-logo {
  background-image: var(--logo-url);
}

.l-logo::before {
  width: 1px;
  height: 24px;
  left: 168px;
  top: 2px;
  position: absolute;
  content: '';
  background: #b9b9b9;
  transition: all 0.1s ease;
}

[data-theme="botone"] .l-logo::before {
  left: 155px;
}

[data-theme="docone"] .l-logo::before {
  left: 165px;
}

.home .l-logo::before {
  background: #fff;
}

.stucked .l-logo::before {
  background: #b9b9b9;
}

.l-footer .l-logo::before {
  background: #b9b9b9 !important;
}

.l-logo-description {
  height: 24px;
  line-height: 24px;
  left: 100%;
  top: 2px;
  margin-left: -4px;
  position: absolute;
  color: #b9b9b9;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.1s ease;
}

.home .l-logo-description {
  color: #fff;
}

.stucked .l-logo-description {
  color: #b9b9b9;
}

.l-footer .l-logo-description {
  color: #b9b9b9 !important;
}

.l-logo h1 {
  display: none;
}

/* Ссылка обратно */
.l-back,
.l-back:link,
.l-back:visited,
.l-back:hover,
.l-back:active {
  height: 24px;
  line-height: 24px;
  right: 28px;
  top: 22px;
  position: absolute;
  color: var(--link-color);
  font-size: 15px;
  white-space: nowrap;
  transition: all 0.1s ease;
}

.home .l-back,
.home .l-back:link,
.home .l-back:visited,
.home .l-back:hover,
.home .l-back:active {
  color: #fff;
}

.stucked .l-back,
.stucked .l-back:link,
.stucked .l-back:visited,
.stucked .l-back:hover,
.stucked .l-back:active {
  color: var(--link-color);
}

/* Поиск на главной странице */
.l-search {
  line-height: 44px;
  padding: 94px 0 111px;
  box-sizing: border-box;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.6px;
  background: linear-gradient(to right, var(--gradient-from-color), var(--gradient-to-color));
}

/* Популярные статьи */
.l-popular {
  line-height: 24px;
  font-size: 18px;
  letter-spacing: 0;
}

.l-popular a,
.l-popular a:link,
.l-popular a:visited,
.l-popular a:hover,
.l-popular a:active {
  opacity: 0.8;
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
}

.l-popular a:hover,
.l-popular a:active {
  opacity: 1;
}

/* Меню */
.l-menu {
  padding-top: 40px;
  border-bottom: 1px solid #d1dae4;
  background: #f6f3f8;
}

.l-menu ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.l-menu-item,
.l-menu-item:link,
.l-menu-item:visited,
.l-menu-item:hover,
.l-menu-item:active {
  width: calc(50% - 20px);
  min-height: 106px;
  margin-bottom: 40px;
  padding: 20px 24px 20px 100px;
  position: relative;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #d1dae4;
  background: #fdfdfd;
  transition: all 0.1s ease;
}

.l-menu-item:hover,
.l-menu-item:active {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.l-menu-item::before {
  width: 48px;
  height: 48px;
  left: 20px;
  top: 20px;
  position: absolute;
  content: '';
  background-color: var(--link-color);
  -webkit-mask: no-repeat url(description.svg);
  mask: no-repeat url(description.svg);
  transform: scale(1.3333);
  transform-origin: top left;
}

[data-theme="casebook"] .l-menu-item--5::before {
  -webkit-mask: no-repeat url(rocket.svg);
  mask: no-repeat url(rocket.svg);
}

[data-theme="casebook"] .l-menu-item--11::before {
  -webkit-mask: no-repeat url(faq.svg);
  mask: no-repeat url(faq.svg);
}

[data-theme="casebook"] .l-menu-item--12::before {
  -webkit-mask: no-repeat url(service.svg);
  mask: no-repeat url(service.svg);
}

[data-theme="casebook"] .l-menu-item--13::before {
  -webkit-mask: no-repeat url(mobile.svg);
  mask: no-repeat url(mobile.svg);
}

[data-theme="casebook"] .l-menu-item--15::before {
  -webkit-mask: no-repeat url(webinar.svg);
  mask: no-repeat url(webinar.svg);
}

.l-menu-item-description {
  padding-top: 8px;
  color: #24313e;
  font-size: 15px;
  font-weight: 400;
}

/* Заголовок */
.l-title {
  min-height: 204px;
  padding: 74px 0 56px;
  box-sizing: border-box;
  background: linear-gradient(to right, var(--gradient-from-color), var(--gradient-to-color));
}

.l-title p {
  margin: 0;
}

.l-title h1 {
  line-height: 44px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
}

.l-title-description {
  line-height: 20px;
  padding-top: 8px;
  color: #fff;
  font-size: 18px;
}

/* Навигация */
.l-breadcrumbs {
  padding: 29px 0 8px;
  color: #b8b8b8;
  font-size: 18px;
}

/* Контент */
.l-content {
  line-height: 27px;
  padding-bottom: 10px;
  font-size: 18px;
  word-wrap: break-word;
}

.home .l-content {
  padding: 20px 0 18px;
}

.l-content--search {
  padding-top: 11px;
}

.l-content ul,
.l-content ol {
  padding-left: 34px;
}

.l-content--search ol {
  padding-top: 6px;
}

.l-content ul > li {
  position: relative;
  list-style: none;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}

.l-content ol > li {
  position: relative;
  list-style: none;
  counter-increment: list 1;
}

.l-content ul > li::before {
  width: 6px;
  height: 6px;
  left: -27px;
  top: 12px;
  position: absolute;
  content: '';
  border-radius: 4px;
  background: var(--link-color);
}

.l-content ol > li::before {
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  left: -33px;
  top: 5px;
  padding: 0 4px;
  position: absolute;
  box-sizing: border-box;
  content: counter(list);
  color: #fff;
  font-size: 13px;
  text-align: center;
  border-radius: 9px;
  background: var(--link-color);
}

.l-content figure {
  margin-right: 1px;
  margin-left: 1px;
}

.l-content img {
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
}

.l-content blockquote {
  margin-right: 1px;
  margin-left: 1px;
  padding: 15px 20px;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.l-content figure > blockquote {
  background: #fafafa;
}

.l-content blockquote > p:empty {
  display: none;
}

.l-content blockquote > p:first-child {
  margin-top: 0;
  font-weight: 700;
}

.l-content blockquote > p:last-child {
  margin-bottom: 0;
}

.l-content cite {
  font-style: normal;
}

.l-content ul + figure,
.l-content ol + figure,
.l-content ul + figure + figure,
.l-content ol + figure + figure,
.l-content ul + figure + figure + figure,
.l-content ol + figure + figure + figure,
.l-content ul + figure + figure + figure + figure,
.l-content ol + figure + figure + figure + figure,
.l-content ul + figure + figure + figure + figure + figure,
.l-content ol + figure + figure + figure + figure + figure {
  margin-left: 34px;
}

.l-content article {
  padding: 16px 0;
  border-top: 1px solid #d1dae4;
}

.l-content article:first-of-type {
  margin-top: -16px;
  border-top-color: transparent;
}

.l-content article:first-child {
  margin-top: 0;
}

.l-content section {
  border-top: 1px solid #d1dae4;
}

.l-content section:first-of-type {
  padding-top: 30px;
  border-top: 0;
}

.l-content section:last-of-type {
  padding-bottom: 30px;
}

.l-content section ul {
  margin-top: -4px;
  padding-bottom: 30px;
}

.l-content section ul > li {
  padding: 4px 56px 4px 0;
}

.l-content section ul > li::before {
  top: 15px;
}

/* Оглавление */
.l-contents {
  width: 300px;
  top: 66px;
  padding: 36px 0;
  position: sticky;
  float: right;
  box-sizing: border-box;
}

.l-contents--nav {
  padding-top: 72px;
}

.l-contents-link,
.l-contents-link:link,
.l-contents-link:visited,
.l-contents-link:hover,
.l-contents-link:active {
  min-height: 31px;
  line-height: 20px;
  margin: 5px 0;
  padding: 5px 10px 6px;
  display: block;
  box-sizing: border-box;
  font-size: 17px;
  text-decoration: none;
  border-radius: 15px;
}

.l-contents-link:hover,
.l-contents-link:active,
.l-contents-link--active,
.l-contents-link--active:link,
.l-contents-link--active:visited,
.l-contents-link--active:hover,
.l-contents-link--active:active {
  color: #fff;
  background: var(--link-color);
}

ul.l-contents {
  padding-left: 32px;
}

/* Подвал */
.l-footer {
  height: 70px;
  margin-top: -1px;
  position: relative;
  border-top: 1px solid #d1dae4;
  background: #f6f3f8;
}

.l-footer .l-logo {
  height: 17px;
  top: 25px;
  padding-left: 158px;
  background: no-repeat var(--logo-inactive-url);
  background-size: 100% 100%;
}

.l-footer .l-logo::before {
  left: 140px;
  top: -2px;
}

[data-theme="botone"] .l-footer .l-logo::before {
  left: 130px;
}

[data-theme="docone"] .l-footer .l-logo::before {
  left: 138px;
}

.l-footer .l-logo-description {
  top: -1px;
  font-size: 14px;
}

/* Иконки соцсетей */
.l-social {
  right: 28px;
  top: 50%;
  margin-top: -16px;
  position: absolute;
}

.l-social-icon {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  float: left;
  opacity: 0.65;
  background: no-repeat;
  background-size: 100% 100%;
}

.l-social-icon:hover,
.l-social-icon:active {
  opacity: 1;
}

.l-social-icon--vk {
  background-image: url(icon_social_vkontakte.svg);
}

.l-social-icon--youtube {
  background-image: url(icon_social_youtube.svg);
}

.l-social-icon--telegram {
  background-image: url(icon_social_telegram.svg);
}

/* Текстовое поле */
.ui-textbox {
  width: 300px;
  height: 40px;
  padding: 0 8px 2px 40px;
  position: relative;
  display: block;
  box-sizing: border-box;
  cursor: text;
  border: 1px solid #b9b9b9;
  border-radius: 8px;
  background: #fff;
}

.ui-textbox--large {
  width: 620px;
  height: 62px;
  margin: 29px auto;
  padding: 0 16px 4px 59px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ui-textbox::before {
  width: 26px;
  height: 26px;
  left: 7px;
  top: 6px;
  position: absolute;
  content: '';
  background: no-repeat 0 -1px url(search.svg);
  background-size: 100% 100%;
}

.ui-textbox--large::before {
  width: 28px;
  height: 28px;
  left: 28px;
  top: 17px;
}

.ui-textbox-input {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  box-sizing: border-box;
  cursor: text;
  color: #24313e;
  caret-color: #24313e;
  font-size: 16px;
  letter-spacing: 0.15px;
  border: 0;
  outline: 0;
  background: none;
}

.ui-textbox--large .ui-textbox-input {
  font-size: 18px;
}

/* Глобальные стили */
.g-hidden {
  display: none;
}

.g-columns {
  columns: 2;
}

.g-columns--3 {
  columns: 3;
}

.g-clearfix::before,
.g-clearfix::after {
  display: table;
  content: ' ';
}

.g-clearfix::after {
  clear: both;
}

.g-anchor {
  top: -78px;
  position: relative;
  display: block;
  visibility: hidden;
}
