:root {
  --dark-color: #191919;
  /* --blue-color: #1875e2; */
  --blue-color: #2994e6;
  --black-color: #000000;
  --white-color: #ffffff;
  --border-color: #e5e7eb;
  --bg-grey-color: #F2F2F2;
  --grey-color: #646464;
  --border-color-2: #E6E6E6;
  --blue-color-2: #2994e6;
  --color-titles: #0A192F;

  --font-titles: 'Lora';
  --font-weight-titles: 600;
  --line-height-titles: 130%
}

[data-theme="dark"] {
  --dark-color: #e1e1e1;
  /* --blue-color: #5b9dd9; */
  --black-color: #ffffff;
  --white-color: #121212;
  --border-color: #333333;
  --bg-grey-color: #1e1e1e;
  --grey-color: #a0a0a0;
  --border-color-2: #2a2a2a;
  --color-titles: #ccd6f6;
}

[data-theme="book"] {
  --dark-color: #433422;
  /* --blue-color: #8b5a2b; */
  --black-color: #2d2419;
  --white-color: #f4ecd8;
  --border-color: #d8caba;
  --bg-grey-color: #e8dfcc;
  --grey-color: #7a6855;
  --border-color-2: #cfc1b0;
  --color-titles: #2c1e12;
}

html,
body {
  background-color: var(--white-color);
  color: var(--dark-color);
}

* {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: inherit;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

button,
[role="button"] {
  cursor: pointer;
  background: none;
}

:disabled {
  cursor: default;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none;
}

.hidden {
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  line-height: 1.5;
}

body {
  line-height: inherit;
  font-family: 'Google Sans';
}

.full-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.custom-check input {
  display: none;
}

.custom-check input:checked~span {
  border-color: var(--dark-color);
  background-color: var(--dark-color);
}

.input,
.select {
  display: block;
  width: 100%;
  border-radius: 9999px;
  border-width: 1px;
  border-color: var(--border-color-2);
  background-color: var(--bg-grey-color);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--dark-color);
}

.input::-moz-placeholder {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
  opacity: 0.7;
}

.input::placeholder {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
  opacity: 0.7;
}

.input:focus {
  border-color: rgb(0 128 0 / 0.3);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.form__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  width: 100%;
}

.form-group>label {
  display: flex;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--dark-color);
}

.textarea {
  display: block;
  min-height: 150px;
  width: 100%;
  border-radius: 1rem;
  border-width: 1px;
  border-color: var(--border-color-2);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--dark-color);
}

.textarea::-moz-placeholder {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
  opacity: 0.7;
}

.textarea::placeholder {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
  opacity: 0.7;
}

.textarea:focus {
  border-color: rgb(0 128 0 / 0.3);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.mobile-search input:focus~.search-popup {
  display: block;
}

/* buttons */

.post__page__detail a,
.page_content a,
.text a,
.mail_info__box-item a,
.channel__dots__popup__link {
  color: var(--blue-color);
}

.post__page__detail a:visited,
.page_content a:visited,
.text a:visited,
.mail_info__box-item a:visited,
.channel__dots__popup__link:visited {
  color: #6347aa;
}

.post__page__detail a:hover,
.page_content a:hover,
.text a:hover,
.mail_info__box-item a:hover,
.channel__dots__popup__link:hover {
  color: #004fc7;
}

.btn-primary {
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid var(--dark-color);
  background-color: var(--dark-color);
  padding: 8px 22px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: var(--white-color) !important;
  cursor: pointer;
  max-width: fit-content;
  transition: .3s;
}

.btn-primary:hover {
  background-color: var(--white-color);
  color: var(--dark-color) !important;
}

.btn-primary--grey {
  background-color: var(--bg-grey-color);
  border-color: var(--bg-grey-color);
  color: var(--dark-color) !important;
}

.btn-primary--grey:hover {
  background-color: var(--dark-color);
  color: var(--white-color) !important;
}

.btn-small {
  display: flex;
  align-items: center;
  border-radius: 9999px;
  background-color: var(--bg-grey-color);
  color: var(--bg-grey-color);
  padding: 8px 18px;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 400;
  width: fit-content;
  color: var(--black-color) !important;
  transition: .3s;
}

.btn-small:hover {
  background-color: var(--dark-color);
  color: var(--white-color) !important;
}

.btn-small.following {
  background-color: var(--dark-color);
  color: var(--white-color) !important;
}

.btn-small-dark {
  display: flex;
  align-items: center;
  border-radius: 9999px;
  border-width: 1px;
  border-color: var(--dark-color);
  background-color: var(--dark-color);
  padding: 7px 18px;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: var(--white-color);
  transition: .3s;
}

.btn-small-dark:hover {
  background-color: var(--white-color);
  color: var(--dark-color);
}

.see-more-btn {
  font-size: 1rem;
  color: var(--blue-color);
  font-weight: 300;
  padding: 10px 12px;
  cursor: pointer;
}

.btn-primary--icon {
  padding: 8px 22px;
  gap: 4px;
}

.btn-primary__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
}

.btn-primary__icon svg {
  width: 20px;
  height: 20px;
}

.h3,
.h4 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1rem;
  padding-bottom: 6px;
}

.h4 {
  font-style: italic;
}

@media (min-width: 480px) {

  .h3,
  .h4 {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {

  .h3,
  .h4 {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }
}

.h2 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1.25rem;
  padding-bottom: 6px;
}

@media (min-width: 480px) {
  .h2 {
    font-size: 1.375rem;
  }
}

@media (min-width: 640px) {
  .h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
  }
}

.text p {
  font-size: 1rem;
  color: var(--grey-color);
  margin-bottom: 12px;
}

.text h3,
.text h4 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1rem;
  padding-bottom: 6px;
}

.text h4 {
  font-style: italic;
}

@media (min-width: 480px) {

  .text h3,
  .text h4 {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {

  .text h3,
  .text h4 {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }
}

.text h2 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1.25rem;
  padding-bottom: 6px;
}

@media (min-width: 480px) {
  .text h2 {
    font-size: 1.375rem;
  }
}

@media (min-width: 640px) {
  .text h2 {
    font-size: 1.75rem;
    padding-bottom: 10px;
  }
}

@media (min-width: 480px) {
  .text p {
    margin-bottom: 20px;
  }
}

@media (min-width: 640px) {
  .text p {
    font-size: 1.125rem;
  }
}

.text blockquote {
  padding: .5rem;
  padding-left: 1.5rem;
  margin-bottom: 12px;
  margin-left: 10px;
  position: relative;
  background-color: var(--bg-grey-color);
}

@media (min-width: 480px) {
  .text blockquote {
    margin-bottom: 20px;
  }
}

.text blockquote::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background-color: var(--blue-color-2);
  left: 0;
  top: 0;
}

.text blockquote>*:last-child {
  margin-bottom: 0;
}

.text blockquote::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='20' viewBox='0 0 512 512'%3E%3Cpath d='M119.472 66.59C53.489 66.59 0 120.094 0 186.1c0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.135 26.435 15.945 30.418 9.089 2.859 18.653.08 24.829-6.389 82.925-90.7 115.385-197.448 115.385-251.8 0-66.006-53.488-119.51-119.517-119.51M392.482 66.59c-65.983 0-119.472 53.505-119.472 119.51 0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.136 26.435 15.945 30.418 9.089 2.859 18.653.08 24.828-6.389C479.539 347.2 512 240.452 512 186.1c0-66.006-53.489-119.51-119.518-119.51' fill='%232994e6'/%3E%3C/svg%3E"), var(--white-color);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

@media (min-width: 480px) {
  .text blockquote p {
    margin-bottom: 20px;
  }
}

@media (min-width: 640px) {
  .text blockquote p {
    font-size: 1.125rem;
  }
}

.text figure {
  margin-bottom: 12px;
}

@media (min-width: 480px) {
  .text figure {
    margin-bottom: 20px;
  }
}

.text ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

@media (min-width: 480px) {
  .text ul {
    margin-bottom: 20px;
  }
}

.text ul li {
  font-size: 1rem;
  color: var(--grey-color);
}

.text ul li::marker {
  color: var(--blue-color);
}

@media (min-width: 640px) {
  .text ul li {
    font-size: 1.125rem;
  }
}


/* alerts */

.alert {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border-left-width: 4px;
  border-left-style: solid;
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0;
  width: fit-content;
}

.alert-success {
  background-color: #dcfce7;
  border-color: #22c55e;
  color: #14532d;
}

.alert-primary {
  background-color: #dbeafe;
  border-color: #3b82f6;
  color: #1e3a8a;
}

.alert-danger {
  background-color: #fef9c3;
  border-color: #eab308;
  color: #713f12;
}

.alert-error {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #7f1d1d;
}

/* accordion */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.accordion-header {
  padding: 1rem;
  cursor: pointer;
}

.accordion-content {
  display: none;
  padding: 1rem;
  padding-top: 0;
}

.accordion-item {
  background-color: var(--bg-grey-color);
}

.accordion-header {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 1rem;
  padding-right: 36px;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
}

.accordion-header::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='36px' viewBox='0 -960 960 960' width='36px' fill='%23000'%3E%3Cpath d='M459-381 314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7Z'/%3E%3C/svg%3E");
  transition: .3s;
}

.accordion-header.active::before {
  transform: translateY(-50%) rotate(180deg);
}

/* ====== buttons ====== */

.plus-btn:hover svg path {
  fill: var(--white-color);
}

.date:before {
  position: absolute;
  top: 11px;
  inset-inline-start: 6px;
  height: 3px;
  width: 3px;
  border-radius: 9999px;
  background-color: var(--dark-color);
}

@media (min-width: 480px) {

  .date:before {
    content: '';
  }
}

.search-popup .date:before {
  position: absolute;
  top: 9px;
  inset-inline-start: 3px;
  height: 2px;
  width: 2px;
  border-radius: 9999px;
  background-color: var(--dark-color);
  content: '';
}

.more-less {
  position: absolute;
  bottom: 0px;
  inset-inline-end: 0px;
  cursor: pointer;
  background-color: var(--white-color);
  padding-inline-start: 0.5rem;
  color: var(--blue-color);
}

ul.post-action li a {
  display: flex;
  height: 24px;
  width: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--bg-grey-color);
}

ul.post-action li a:hover {
  background-color: var(--dark-color);
}

ul.post-action li a.delfavarite {
  background-color: var(--dark-color);
}

@media (min-width: 480px) {

  ul.post-action li a {
    height: 34px;
    width: 34px;
  }
}

ul.post-action li a:hover {
  color: var(--white-color);
}

ul.post-action li a.delfavarite {
  color: var(--white-color);
}

ul.topic-tabs li a.active {
  border-bottom-width: 2px;
  border-color: var(--dark-color);
  color: var(--dark-color);
}



.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 20;
}

@media (min-width: 640px) {
  .header {
    padding: 15px 20px;
  }
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
  max-width: 250px;
  width: 100%;
}

.header__burger {
  margin-right: 0.75rem;
  width: 20px;
}

.header__burger__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.375rem;
}

@media (min-width: 480px) {
  .header__burger {
    margin-right: 1rem;
  }
}

@media (min-width: 1280px) {
  .header__burger {
    display: none;
  }
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
}

.header__logo {
  display: flex;
  width: 50px;
  height: 30px;
}

@media (min-width: 480px) {
  .header__logo {
    width: 118px;
    height: 40px;
  }
}

.header__logo svg {
  transition: .3s;
  color: #fe0000;
  width: 100%;
  height: 100%;
}

.header__center {
  display: flex;
  align-items: center;
  width: 100%;
}

.header__search {
  width: 100%;
}

@media (min-width: 1280px) {
  .header__search {
    max-width: 320px;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }
}

@media (min-width: 1536px) {
  .header__search {
    max-width: 500px;
  }
}

.header__search__form {
  width: 100%;
}

.header__search__form__wrap {
  position: relative;
}

.header__search__form__input {
  width: 100%;
  background-color: var(--bg-grey-color);
  padding-top: 15px;
  padding-bottom: 15px;
  padding-inline-start: 2.5rem;
  padding-inline-end: 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-color);
  border: 1px solid var(--bg-grey-color);
}

.header__search__form__input::placeholder {
  font-size: 1rem;
  font-weight: 300;
  color: var(--grey-color);
}

.header__search__form__input:focus-visible {
  outline: none;
}

.header__search__form__input:focus {
  border-color: var(--border-color-2);
}

@media (min-width: 480px) {
  .header__search__form__input {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (min-width: 768px) {
  .header__search__form__input {
    padding-top: 23px;
    padding-bottom: 23px;
  }
}

@media (min-width: 1280px) {
  .header__search__form__input {
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 9999px;
  }
}

.header__search__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1rem;
  color: var(--grey-color);
}

.header__search__close {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 20px;
  color: var(--dark-color);
}

@media (min-width: 1280px) {
  .header__search__close {
    display: none;
  }
}

.header__nav {
  display: none;
}

@media (min-width: 1280px) {
  .header__nav {
    display: flex;
  }
}

@media (min-width: 1536px) {
  .header__nav {
    padding-inline-start: 0.75rem;
  }
}

.header__nav>ul {
  display: flex;
}

.header__nav>ul>li>a {
  font-size: 1rem;
  color: var(--grey-color);
  padding: 0.75rem;
}

.header__nav>ul>li>a:hover {
  color: var(--dark-color);
}

@media (min-width: 480px) {
  .header__nav>ul>li>a {
    font-size: 1rem;
  }
}

@media (min-width: 1536px) {
  .header__nav>ul>li>a {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.header__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 12px 12px 0 12px;
}

.header__social__item {
  width: 30px;
  height: 30px;
  display: block;
  color: var(--grey-color);
}

.header__social__item svg {
  width: 100%;
  height: 100%;
  transition: .3s;
}

.header__social__item.header__social__item--dzen:hover {
  color: #000000;
}

.header__social__item.header__social__item--vk:hover {
  color: #0077FF;
}

.header__social__item.header__social__item--odn:hover {
  color: #F79A38;
}

.header__right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

@media (min-width: 768px) {
  .header__right {
    gap: 1rem;
  }
}

.header__user {
  position: relative;
}

.header__user__avatar {
  display: flex;
  width: 34px;
  height: 34px;
  position: relative;
  background: var(--border-color);
  padding: 2px;
  border-radius: 50%;
  border: 1px solid var(--border-color-2);
}

@media (min-width: 480px) {
  .header__user__avatar {
    width: 42px;
    height: 42px;
  }
}

.header__user__avatar.user-pro {
  background: linear-gradient(180deg, #ffffff 0%, #1875e2 50%, #FF0000 100%);
}

.header__user__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border: 2px solid white;
}

.header__user__avatar svg {
  position: absolute;
  width: 24px;
  height: 24px;
  top: -5px;
  right: -5px;
}

.header__search-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  border: 1px solid var(--border-color-2);
  border-radius: 9999px;
  color: var(--dark-color);
}

@media (min-width: 1280px) {
  .header__search-btn {
    display: none;
  }
}

/*Сайдбар*/
@media (max-width:1280px) {
  .sidebar {
    left: -285px;
  }

  .sidebar.show {
    left: 0;
  }
}

.sidebar__wrap {
  position: fixed;
  top: 55px;
  height: calc(100% - 55px);
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  max-width: 285px;
  background-color: var(--white-color);
  border-inline-end: 1px solid var(--border-color-2);
  z-index: 10;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar__wrap:hover {
  scrollbar-color: var(--border-color) transparent;
}

@media (min-width: 480px) {
  .sidebar__wrap {
    top: 67px;
    height: calc(100% - 67px);
  }
}

@media (min-width: 768px) {
  .sidebar__wrap {
    top: 73px;
    height: calc(100% - 73px);
  }
}

.sidebar__nav {
  padding: 15px;
  width: 100%;
  overflow: auto;
}

.sidebar__nav__group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color-2);
}

.sidebar__nav__group__title {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--grey-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-item .nav-link {
  margin-bottom: 0.25rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  border-radius: 0.5rem;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
  transition: .3s;
}

.nav-item.active>a {
  background-color: var(--dark-color);
  color: var(--white-color);
}

.chevron {
  display: flex;
  margin-inline-start: auto;
  color: var(--grey-color);
}

.nav-item.active a .chevron {
  transform: translate(180deg);
}

.nav-item.active a .chevron {
  color: var(--white-color);
}

.nav-item.active a div>svg path {
  fill: var(--white-color);
}

.sub-menu {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-inline-start: 20px;
}

.sub-menu-ul {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--border-color-2);
}

.sub-menu ul li a {
  display: flex;
  border-radius: 0.375rem;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--grey-color);
}

.sub-menu ul li a:hover {
  background-color: var(--bg-grey-color);
}

.sub-menu ul li.active-child a {
  background-color: var(--dark-color);
  color: var(--white-color);
}

.sub-separator {
  height: 1px;
  width: 100%;
  background-color: var(--border-color);
  margin: .5rem 0;
}

#sidebarRubrics .nav-menu .nav-item:nth-child(n+8) {
  display: none;
}

#sidebarRubrics .nav-menu.show-all .nav-item:nth-child(n+8) {
  display: list-item;
}

.sidebar__bottom {
  padding: 20px 30px;
}

.sidebar__bottom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sidebar__bottom p {
  font-size: .75rem;
  color: var(--grey-color);
}

/*Контент*/

.content {
  padding: 1rem;
}

@media (min-width: 480px) {
  .content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .content {
    margin-inline-start: 285px;
  }
}

.content__wrap {
  display: flex;
  justify-content: center;
}

.content__center {
  max-width: 710px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .content__center {
    margin-inline-end: 30px;
  }
}

@media (min-width: 1536px) {
  .content__center {
    margin-inline-end: 60px;
  }
}

/*Блог*/

.posts {
  max-width: 100%;
  width: 100%;
}

.post {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .post {
    margin-bottom: 1.5rem;
  }
}

.post__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: .5rem;
}

.post__user {
  display: flex;
  align-items: center;
}

.post__avatar {
  display: flex;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  overflow: hidden;
  margin-inline-end: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .post__avatar {
    width: 30px;
    height: 30px;
  }
}

.post__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__user-info {
  display: block;
}

@media (min-width: 480px) {
  .post__user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

.post__user-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-color);
}

.post__user-name:hover {
  color: var(--grey-color);
}

@media (min-width: 640px) {
  .post__user-name {
    font-size: 1rem;
  }
}

.post__user-name a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post__user-name a span {
  max-width: 124px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .post__user-name a span {
    max-width: 210px;
  }
}

.post__date {
  position: relative;
  font-size: 0.75rem;
  color: var(--grey-color);
}

@media (min-width: 480px) {
  .post__date {
    font-size: 1rem;
    padding-inline-start: 1rem;
  }
}

@media (min-width: 640px) {
  .post__date {
    font-size: 1rem;
  }
}

.post__header-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .post__header-btns {
    flex-direction: row;
  }
}

.del-ch-subscribe {
  background-color: var(--dark-color);
  color: var(--white-color) !important;
}

.post__body {
  margin-bottom: 0.75rem;
}

@media (min-width: 480px) {
  .post__body {
    margin-bottom: 1rem;
  }
}

.post__title {
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.post__title:hover {
  color: var(--grey-color);
}

.post__title img {
  width: 24px;
  display: inline;
}


.post__preview-text {
  color: var(--dark-color);
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 1rem;
}

.post__description {
  position: relative;
}

.post__description-content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  color: var(--grey-color);
}

@media (min-width: 480px) {

  .post__description-content,
  .post__preview-text {
    font-size: 1rem;
  }
}

.post__description-content p:not(:last-child) {
  margin-bottom: 0.5rem;
}

.post__media img {
  width: 100%;
}

.post__img__descrition {
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 4px;
  color: var(--grey-color);
}

@media (min-width: 640px) {
  .post__img__descrition {
    font-size: 1rem;
  }
}

.post__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color-2);
}

@media (min-width: 480px) {
  .post__footer-inner {
    gap: 1rem;
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

.post__actions {
  display: flex;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--border-color-2);
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (min-width: 480px) {
  .post__actions {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border: 0;
  }
}

.post__actions-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post__stats {
  display: flex;
  justify-content: space-between;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  gap: 4px;
}

@media (min-width: 480px) {
  .post__stats {
    width: fit-content;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.post__stats-item,
.post__actions-item .countblock {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  color: var(--grey-color);
  gap: 4px;
}

.post__stats-item:hover {
  color: var(--dark-color);
}

@media (min-width: 480px) {

  .post__stats-item,
  .post__actions-item .countblock {
    font-size: 1rem;
  }
}

.post__social-share {
  display: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color-2);
}

.post__social-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post__social-item {
  display: flex;
  align-items: center;
  color: var(--grey-color);
  font-size: 0px;
}

@media (min-width: 640px) {
  .post__footer__social__list__item {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .post__social-item {
    font-size: 1rem;
  }
}

.post__social-item>div {
  max-width: 24px;
  height: 24px;
  margin-inline-end: 0.5rem;
}

.post__social-item>div>svg {
  width: 24px;
  height: 24px;
}

.morebutt .btn-small {
  margin: 0 auto;
}

/*Правая колонка*/

.content__right {
  display: none;
  max-width: 350px;
  width: 100%;
  padding-inline-start: 30px;
  border-inline-start: 1px solid var(--border-color-2);
}

@media (min-width: 1024px) {
  .content__right {
    display: block;
  }
}

/*Блок с новостями маленький*/

.posts-small {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color-2);
  margin-bottom: 1.25rem;
}

.posts-small__title {
  font-size: 1.125rem;
  color: var(--dark-color);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.posts-small__title img {
  display: inline;
}

.post-small {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.post-small__img {
  display: flex;
  width: 100%;
  min-width: 60px;
  max-width: 60px;
  height: 60px;
}

.post-small__img img {
  width: 100%;
  object-fit: cover;
}

.post-small__text {
  padding-inline-start: 1rem;
}

.post-small__text__name {
  color: var(--dark-color);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-small__text__name:hover {
  color: var(--grey-color);
}

.post-small__text__date {
  font-size: 1rem;
  color: var(--grey-color);
}

.admin-editable:hover .post-small .post-small__img {
  filter: blur(1px);
}

.admin-editable:hover .post-small .post-small__text {
  filter: blur(1px);
}

.post-small .block-controle {
  position: absolute;
  width: fit-content;
  height: fit-content;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.admin-editable:hover .post-small .block-controle {
  opacity: 1;
  pointer-events: unset;
}

/*Тэги*/

.tags {
  margin-bottom: 1.25rem;
}

.tags__title {
  font-size: 1.125rem;
  color: var(--dark-color);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.tags__list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 6px;
}

.tags__list__item a {
  display: flex;
  font-size: 1rem;
  color: var(--dark-color);
  border-radius: 9999px;
  padding-left: 13px;
  padding-right: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
  background-color: var(--bg-grey-color);
  border: 1px solid var(--bg-grey-color);
  text-transform: capitalize;
}

/* Реклама создания канала */

.create-chanel-ad {
  border: 1px solid var(--border-color-2);
  padding: 1rem;
  border-radius: 16px;
  flex-direction: column;
  display: flex;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.create-chanel-ad__text {
  font-weight: 600;
}

.create-chanel-ad__btns {
  display: flex;
  gap: 8px;
}

/* Рекламный блок справа  */

.right-ad {
  position: sticky;
  top: 100px;
}

/*Молния*/

.flash {
  position: relative;
  margin-bottom: 20px;
}

.flash__item {
  position: relative;
  width: 300px;
  height: 230px;
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;
}

.flash__item>a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flash__item__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition: .3s;
  z-index: -1;
}

.flash__item:hover img {
  filter: brightness(0.7);
  transform: scale(1.05);
}

.flash__item__title {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

.flash__item__rubrik {
  display: flex;
  font-size: 1rem;
  color: var(--dark-color);
  border-radius: 9999px;
  padding: 4px 8px;
  background-color: var(--bg-grey-color);
  border: 1px solid var(--bg-grey-color);
  width: fit-content;
}

.swiper-button-prev-flash,
.swiper-button-next-flash {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  background-color: var(--dark-color);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: .3s;
  cursor: pointer;
  user-select: none;
  display: none;
}

@media (min-width: 768px) {

  .swiper-button-prev-flash,
  .swiper-button-next-flash {
    display: block;
    opacity: 1;
    pointer-events: unset;
  }
}

.swiper-button-prev-flash {
  left: 10px;
}

.swiper-button-next-flash {
  right: 10px;
}

.swiper-button-prev-flash.swiper-button-disabled,
.swiper-button-next-flash.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.swiper-button-prev-flash svg,
.swiper-button-next-flash svg {
  fill: var(--white-color);
}


/* Категория */

.categories {
  position: relative;
}

.categories__list {
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .categories__list {
    padding: 2.5rem 0;
  }
}

.categories__list__item {
  width: fit-content;
}

@media (min-width: 768px) {
  .categories__list__item a {
    font-size: 1rem;
    padding: 8px 22px;
  }
}

.categories__list__item--special a {
  padding-left: 40px;
  position: relative;
}

.categories__list__item--special a::before {
  content: '';
  position: absolute;
  background-image: url('/images/molnia.png');
  width: 24px;
  height: 24px;
  background-size: contain;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.swiper-button-prev-categories,
.swiper-button-next-categories {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  background-color: var(--dark-color);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: .3s;
  cursor: pointer;
  user-select: none;
  display: none;
}

@media (min-width: 768px) {

  .swiper-button-prev-categories,
  .swiper-button-next-categories {
    display: block;
  }
}

.swiper-button-prev-categories {
  left: 0;
}

.swiper-button-next-categories {
  right: 0;
}

.swiper-button-prev-categories.swiper-button-disabled,
.swiper-button-next-categories.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.categories:hover .swiper-button-prev-categories,
.categories:hover .swiper-button-next-categories {
  opacity: 1;
  pointer-events: unset;
}

.swiper-button-prev-categories svg,
.swiper-button-next-categories svg {
  fill: var(--white-color);
}

/*Канал*/

.channel {
  padding-bottom: 0.5rem;
}

.channel__img {
  display: block;
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .channel__img {
    height: 150px;
  }
}

@media (min-width: 640px) {
  .channel__img {
    height: 200px;
  }
}

.channel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channel__wrap__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-grow: 1;
}

@media (min-width: 480px) {
  .channel__wrap__left {
    flex-wrap: nowrap;
  }
}

.channel__avatar {
  width: 100%;
  max-width: 90px;
  height: 90px;
  border-radius: 9999px;
  overflow: hidden;
  border-width: 3px;
  border-color: var(--white-color);
  margin-inline-start: 15px;
  margin-inline-end: 0.5rem;
  margin-top: -55px;
}

@media (min-width: 480px) {
  .channel__avatar {
    max-width: 100px;
    height: 100px;
  }
}

@media (min-width: 640px) {
  .channel__avatar {
    max-width: 130px;
    height: 130px;
    border-width: 4px;
    margin-inline-start: 30px;
    margin-inline-end: 1rem;
    margin-top: -72px;
  }
}

.channel__avatar img {
  width: 100%;
  height: 100%;
}

.channel__name {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .channel__name {
    font-size: 22px;
    margin-bottom: 0.25rem;
  }
}

.channel__title {
  color: var(--grey-color);
  font-size: 0.75rem;
}

@media (min-width: 480px) {
  .channel__title {
    font-size: 1rem;
  }
}

.channel__right {
  display: flex;
  align-items: center;
}

.channel__right__dots {
  margin-left: 7px;
  margin-right: 7px;
}

@media (min-width: 480px) {
  .channel__right__dots {
    margin-inline-end: 10px;
  }
}

.channel__right__dots>a {
  display: flex;
  width: 16px;
}

@media (min-width: 480px) {
  .channel__right__dots>a {
    width: 20px;
  }
}

.channel__right__dots {
  position: relative;
}

.channel__dots__popup {
  position: absolute;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  top: 100%;
  right: -30px;
  background: var(--white-color);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

@media (min-width: 768px) {
  .channel__dots__popup {
    left: 0;
    right: unset;
  }
}

.channel__right__dots:hover .channel__dots__popup {
  opacity: 1;
  pointer-events: unset;
}

.channel__dots__popup__wrap {
  display: flex;
  align-items: center;
  gap: 8px
}

.channel__dots__popup__wrap a {
  width: 24px;
  height: 24px;
}

.channel__dots__popup__link {
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid var(--border-color);
  margin-top: .5rem;
  padding-top: .25rem;
}

.channel__bar__title {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-size: 2rem;
  font-weight: var(--font-weight-titles);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel__bar__descr {
  color: var(--grey-color);
}

.channel__tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color-2);
}

@media (min-width: 640px) {
  .channel__tabs {
    margin-top: 0.5rem;
  }
}

.channel__tabs__list {
  display: flex;
  width: calc(100% - 80px);
  overflow-x: auto;
}

.channel__tabs__item {
  margin-inline-end: 1.25rem;
}

@media (min-width: 480px) {
  .channel__tabs__item {
    margin-inline-end: 2rem;
  }
}

.channel__tabs__item>a {
  display: flex;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--grey-color);
}

@media (min-width: 480px) {
  .channel__tabs__item>a {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
  }
}

.topic-content {
  width: 100%;
}

/*Детальный пост*/

.post-title {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color-2);
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .post-title {
    padding-bottom: 1rem;
  }
}

@media (min-width: 640px) {
  .post-title {
    padding-bottom: 1rem;
  }
}

.post-title__rubric,
.post-title__time {
  font-size: 1rem;
  color: var(--grey-color);
}

@media (min-width: 480px) {

  .post-title__rubric,
  .post-title__time {
    font-size: 1rem;
  }
}

.post-title__time {
  margin-right: auto;
  position: relative;
  padding-left: 0;
}

@media (min-width: 640px) {
  .post-title__time {
    padding-left: 30px;
  }
}

.post-title__time:before {
  position: absolute;
  content: '';
  top: 11px;
  inset-inline-start: 6px;
  height: 3px;
  width: 3px;
  border-radius: 9999px;
  background-color: var(--dark-color);
  display: none;
}

@media (min-width: 640px) {
  .post-title__time:before {
    display: block;
  }
}

.post-title__bar {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .post-title__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.post-title__bar .post__footer-inner {
  border-bottom: none;
  flex-direction: row-reverse;
}

@media (min-width: 640px) {
  .post-title__bar .post__footer-inner {
    flex-direction: row;
  }
}

.post-title__bar .post__actions {
  padding: 0;
  border: 0;
}

.post-title__name {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 20px;
  margin-bottom: 1rem;
  line-height: 130%;
}

@media (min-width: 480px) {
  .post-title__name {
    font-size: 1.5rem;
  }
}

@media (min-width: 640px) {
  .post-title__name {
    font-size: 2rem;
  }
}

.post-title__descr {
  color: var(--grey-color);
  font-weight: var(--font-weight-titles);
}

.post-header {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .post-header {
    margin-bottom: 1.5rem;
  }
}

.post-header {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .post-header {
    margin-bottom: 1.5rem;
  }
}

.post-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 480px) {
  .post-header__top {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.post__header--detail {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.post__user-author {
  margin-bottom: 1rem;
  font-weight: 500;
}

.post__wrap {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color-2);
}

/*Каналы справа*/

.channels-small {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color-2);
  margin-bottom: 1.25rem;
}

.channels-small__title {
  font-size: 1.125rem;
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.channels-small__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channels-small__item__wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: .25rem;
}

.channels-small__item__author {
  display: flex;
}

.channels-small__item__author__img {
  display: flex;
  width: 100%;
  max-width: 34px;
  height: 34px;
  border-radius: 9999px;
  overflow: hidden;
  margin-inline-end: 10px;
}

.channels-small__item__author__img img {
  width: 100%;
  height: 100%;
}

.channels-small__item__author__name {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.channels-small__item__author__name:hover {
  color: var(--grey-color);
}

.channels-small__item__author__descr {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  color: var(--grey-color);
}

.channels-small__item__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--border-color-2);
}

.channels-small__item__plus:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
}

.channels-small__item__posts {
  display: flex;
  flex-direction: column;
  padding-left: 44px;
}

.channels-small__item__posts>a {
  padding: 4px 0;
  font-size: 1rem;
  color: var(--dark-color);
  font-weight: 500;
}

.channels-small__item__posts__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channels-small__item__posts__item img {
  width: 30px;
  height: 30px;

}

.channels-small__item__posts__item>div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Внутрянка тэгов или рубрик */

.rubric__bar {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.rubric__bar__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rubric__bar__theme span {
  font-size: 1rem;
  color: var(--grey-color);
}

@media (min-width: 480px) {
  .rubric__bar__theme span {
    font-size: 1rem;
  }
}

.rubric__bar__title {
  font-size: 2rem;
  font-weight: var(--font-weight-titles);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
}

.rubric__bar__descr {
  color: var(--grey-color);
}

.edit-menu {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}

.rubric__detail-text {
  margin-top: 2rem;
}

.rubric__detail-text p {
  font-size: 1rem;
  color: var(--grey-color);
  margin-bottom: 12px;
}

.rubric__detail-text h3,
.rubric__detail-text h4 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1rem;
  padding-bottom: 6px;
}

.rubric__detail-text h4 {
  font-style: italic;
}

@media (min-width: 480px) {

  .rubric__detail-text h3,
  .rubric__detail-text h4 {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {

  .rubric__detail-text h3,
  .rubric__detail-text h4 {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }
}

.rubric__detail-text h2 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1.25rem;
  padding-bottom: 6px;
}

@media (min-width: 480px) {
  .rubric__detail-text h2 {
    font-size: 1.375rem;
  }
}

@media (min-width: 640px) {
  .rubric__detail-text h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
  }
}

@media (min-width: 480px) {
  .rubric__detail-text p {
    margin-bottom: 20px;
  }
}

@media (min-width: 640px) {
  .rubric__detail-text p {
    font-size: 1.125rem;
  }
}

/* Внутренние статей */

.post__page__detail p {
  font-size: 1rem;
  color: var(--grey-color);
  margin-bottom: 12px;
}

.post__page__detail h3,
.post__page__detail h4 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1rem;
  padding-bottom: 6px;
}

.post__page__detail h4 {
  font-style: italic;
}

@media (min-width: 480px) {

  .post__page__detail h3,
  .post__page__detail h4 {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {

  .post__page__detail h3,
  .post__page__detail h4 {
    font-size: 1.25rem;
    padding-bottom: 10px;
  }
}

.post__page__detail h2 {
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
  font-weight: var(--font-weight-titles);
  font-size: 1.25rem;
  padding-bottom: 6px;
}

@media (min-width: 480px) {
  .post__page__detail h2 {
    font-size: 1.375rem;
  }
}

@media (min-width: 640px) {
  .post__page__detail h2 {
    font-size: 1.75rem;
    padding-bottom: 10px;
  }
}

@media (min-width: 480px) {
  .post__page__detail p {
    margin-bottom: 20px;
  }
}

@media (min-width: 640px) {
  .post__page__detail p {
    font-size: 1.125rem;
  }
}

.post__page__detail blockquote {
  padding: .5rem;
  padding-left: 1.5rem;
  margin-bottom: 12px;
  margin-left: 10px;
  position: relative;
  background-color: var(--bg-grey-color);
}

@media (min-width: 480px) {
  .post__page__detail blockquote {
    margin-bottom: 20px;
  }
}

.post__page__detail blockquote::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background-color: var(--blue-color-2);
  left: 0;
  top: 0;
}

.post__page__detail blockquote>*:last-child {
  margin-bottom: 0;
}

.post__page__detail blockquote::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='20' viewBox='0 0 512 512'%3E%3Cpath d='M119.472 66.59C53.489 66.59 0 120.094 0 186.1c0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.135 26.435 15.945 30.418 9.089 2.859 18.653.08 24.829-6.389 82.925-90.7 115.385-197.448 115.385-251.8 0-66.006-53.488-119.51-119.517-119.51M392.482 66.59c-65.983 0-119.472 53.505-119.472 119.51 0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.136 26.435 15.945 30.418 9.089 2.859 18.653.08 24.828-6.389C479.539 347.2 512 240.452 512 186.1c0-66.006-53.489-119.51-119.518-119.51' fill='%232994e6'/%3E%3C/svg%3E"), var(--white-color);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

@media (min-width: 480px) {
  .post__page__detail blockquote p {
    margin-bottom: 20px;
  }
}

@media (min-width: 640px) {
  .post__page__detail blockquote p {
    font-size: 1.125rem;
  }
}

.post__page__detail figure {
  margin-bottom: 12px;
}

@media (min-width: 480px) {
  .post__page__detail figure {
    margin-bottom: 20px;
  }
}

p.comm-text {
  text-align: end;
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.accordion--maintenance ol {
  display: flex;
  flex-direction: column;
  padding-top: .5rem;
  counter-reset: heading;
}

.accordion--maintenance ol>li {
  padding: 2px 0;
}

.accordion--maintenance ol>li::before {
  counter-increment: heading;
  content: counter(heading) ". ";
}

.tags__list__inner {
  margin-bottom: 2rem;
}

.swiper-slide--tshirts {
  height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white-color);
}

.swiper--tshirts {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color-2);
  margin-bottom: 1.25rem;
}


/* Попапы */


.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  background-color: #0000007a;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 21;
  display: none;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  max-width: 600px;
  width: 100%;
}

.modal-content {
  width: 100%;
  background-color: var(--white-color);
  z-index: 21;
  padding: 2rem;
  border-radius: 16px;
  max-height: 90%;
  overflow: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: 700px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000007a;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.overlay.active {
  opacity: 1;
  pointer-events: unset;
}

.popup-support-channel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  background-color: var(--white-color);
  z-index: 21;
  padding: 2rem;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
}

.popup-support-channel.active {
  opacity: 1;
  pointer-events: unset;
}

.popup-content h3 {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .popup-content h3 {
    font-size: 1.125rem;
  }
}

@media (min-width: 640px) {
  .popup-content h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 640px) {
  .popup-content p {
    font-size: 1rem;
  }
}

.popup-content a {
  color: #008000;
}

.body-support-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1rem;
}

.popup-close {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}

/* Слайдер с тегами*/

.tags-swiper {
  margin-bottom: 2rem;
}

.tags-swiper__item {
  position: relative;
  width: 200px;
  height: 230px;
  padding: 12px;
  border-radius: 16px;
  overflow: hidden;
}

.tags-swiper__item>a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tags-swiper__item__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
  z-index: -1;
}

.tags-swiper__item:hover img {
  filter: brightness(0.7);
  transform: scale(1.05);
}

.tags-swiper__item__name {
  display: flex;
  font-size: 1rem;
  color: var(--dark-color);
  border-radius: 9999px;
  padding-left: 13px;
  padding-right: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
  margin-top: auto;
  width: fit-content;
  background-color: var(--bg-grey-color);
  border: 1px solid var(--bg-grey-color);
  text-transform: capitalize;
}

.swiper-button-prev-tags,
.swiper-button-next-tags {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  background-color: var(--dark-color);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: .3s;
  cursor: pointer;
  user-select: none;
  display: none;
}

@media (min-width: 768px) {

  .swiper-button-prev-tags,
  .swiper-button-next-tags {
    display: block;
    opacity: 1;
    pointer-events: unset;
  }
}

.swiper-button-prev-tags {
  left: 10px;
}

.swiper-button-next-tags {
  right: 10px;
}

.swiper-button-prev-tags.swiper-button-disabled,
.swiper-button-next-tags.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.swiper-button-prev-tags svg,
.swiper-button-next-tags svg {
  fill: var(--white-color);
}

/* Внутренние страницы */
.mb40 {
  margin-bottom: 40px;
}

span.wsem {
  font-weight: 500;
  color: #ff0000;
}

/*static pages start*/
.container_page {
  max-width: 1024px;
  margin: auto;
}

.page__top {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.page__top-text {
  margin-bottom: 1.5rem;
}

.page__top-text p {
  font-size: 1.15rem;
  color: var(--grey-color);
}

.page_content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page_content__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page_content__text p {
  font-size: 1.15rem;
  color: var(--grey-color);
}

.page_h2 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-titles);
  margin-bottom: 20px;
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
}

.page_h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-titles);
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
}

.page_info__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page_info__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: .3s ease;
}

.page_info__item svg {
  width: 50px;
  height: 50px;
}

.page_info__item-title {
  font-size: 1.35rem;
  font-weight: 500;
}

.page_info__item-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page_info__item-text p {
  color: var(--grey-color);
  font-size: 1.15rem;
}

.page_content__text blockquote {
  padding: .5rem 0;
  padding-left: 1.5rem;
  margin-left: 10px;
  position: relative;
  background-color: var(--bg-grey-color);
}

.page_content__text .page_h2 {
  margin: 0;
}

.page_content__text blockquote::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background-color: var(--blue-color-2);
  left: 0;
  top: 0;
}

.page_content__text blockquote::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='20' viewBox='0 0 512 512'%3E%3Cpath d='M119.472 66.59C53.489 66.59 0 120.094 0 186.1c0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.135 26.435 15.945 30.418 9.089 2.859 18.653.08 24.829-6.389 82.925-90.7 115.385-197.448 115.385-251.8 0-66.006-53.488-119.51-119.517-119.51M392.482 66.59c-65.983 0-119.472 53.505-119.472 119.51 0 65.983 53.489 119.487 119.472 119.487 0 0-.578 44.392-36.642 108.284-4.006 12.802 3.136 26.435 15.945 30.418 9.089 2.859 18.653.08 24.828-6.389C479.539 347.2 512 240.452 512 186.1c0-66.006-53.489-119.51-119.518-119.51' fill='%232994e6'/%3E%3C/svg%3E"), var(--white-color);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.post__page__detail blockquote>*:last-child {
  margin-bottom: 0;
}

.page_info__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page_info__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  flex: 1 0 48%;
}

.page_info__icon-text {
  font-size: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  height: 100%;
  color: var(--grey-color);
}

.page_post__cont {
  max-width: 710px;
  margin-top: 100px;
}

.mail_info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.mail_info__box-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box_details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box_details-item {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 20px;
}

.sber-logo {
  width: 25px;
}

.sber {
  font-size: 28px;
  font-weight: 500;
}

.box_details {
  font-size: 1.25rem;
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin: 10px 0 20px 0;
}

.page_content__text ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page_content__text ul li {
  font-size: 1.15rem;
  color: var(--grey-color);
}

.page_content__text ul li::marker {
  color: var(--blue-color);
}

.price_box {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.page_content__serv-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.page_content__serv-item {
  display: flex;
  flex-direction: column;
}

.page_content__serv-item__title {
  color: var(--white-color);
  font-weight: 500;
  font-size: 1.25rem;
  padding: 20px 10px;
  text-align: center;
  border-radius: .5rem .5rem 0 0;
}

.serv-prof {
  background-color: #ff0000;
}

.serv-corp {
  background-color: var(--blue-color);
}

.serv-agent {
  background-color: var(--dark-color);
}

.page_content__serv-item .btn-small {
  width: 100%;
  justify-content: center;
}

.page_content__serv-item__text {
  border-radius: 0 0 .5rem .5rem;
  display: flex;
  color: var(--grey-color);
  font-size: 1.15rem;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px;
  gap: 20px;
  justify-content: space-between;
  height: 100%;
  border: 1px solid var(--border-color);
}

.text-right {
  text-align: right;
  width: 100%;
}

.blurb-price {
  font-size: 1.7rem;
  font-weight: 500;
  margin: auto;
}

.blurb-price>span {
  font-size: 1.15rem;
}

.page_content__text a.btn-primary {
  width: fit-content;
  margin: auto;
}

.price_box-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.price_box-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.price_box-item_top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.price_box-item_img {
  width: 100px;
  height: auto;
}

.price_box-item_top-img {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.price_box-item_top-img img {
  width: 50px;
  height: auto;
}

.price_box-item_title {
  font-size: 1.35rem;
  font-weight: 500;
}

.price_box-item_top p {
  font-size: 1.15rem;
  color: var(--grey-color);
}

.price_box-item_bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.price_box-item_bottom__pr {
  font-size: 1.7rem;
  font-weight: 500;
}

.price_box-item_bottom__pr>span {
  font-size: 1.15rem;
}

.colom-grid_span {
  grid-column: span 2;
}

.page_gallery {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

p.p_small {
  font-size: 1rem;
}

.page_form-box {
  display: flex;
  justify-content: center;
}

.page_content__text ul li p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page_video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.page_video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.p_info-bord {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin: 20px 0;
}

.serv-item__btn {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.serv-item_a {
  text-align: right;
  width: 100%;
}

.page_content__circle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.circle-item p {
  font-size: 1rem;
  color: var(--grey-color);
}

.circle-item_img {
  width: 170px;
  height: 170px;
  border-radius: 100%;
  position: relative;
}

.circle-item:first-child .circle-item_img {
  border: 10px solid var(--blue-color-2);
}

.circle-item:nth-child(2n) .circle-item_img {
  border: 10px solid #ff0000;
}

.circle-item:last-child .circle-item_img {
  border: 10px solid #043a63;
}

.circle-item_img span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 500;
}

.price_box-item_top-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page_content__text ol {
  list-style: auto;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page_content__text ol li {
  font-size: 1.15rem;
}

.page_content__text ol li span {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.page_content__text ol li p {
  margin-bottom: 8px;
}

.page_content__text ol li p:last-child {
  margin-bottom: 0;
}

.page_content a.btn-small {
  text-align: center;
}

.requir_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.requir_grid-item {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.requir_grid-item svg {
  width: 50px;
  height: 50px;
}

.requir_grid-item p {
  text-align: center;
}

.p_active {
  padding: 20px;
  border: 1px solid var(--blue-color);
  border-radius: 16px;
}

.page__top-btn {
  display: flex;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.page_content__text-img {
  width: 80%;
}

.page_active-block {
  padding: 20px;
  border: 1px solid var(--blue-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page_active-block p,
ul.check_ul li {
  font-size: 1.15rem;
  color: var(--grey-color);
}

ul.check_ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
  padding-left: 0;
}

ul.check_ul li {
  position: relative;
  padding-left: 25px;
}

ul.check_ul li::before {
  content: '✔';
  position: absolute;
  top: 0;
  left: 0;
  color: #ff0000;
  padding-right: 10px;
}

.page_h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-titles);
  font-family: var(--font-titles);
  line-height: var(--line-height-titles);
  color: var(--color-titles);
}

/*схема монетизации*/
#timeline *,
#timeline *:before,
#timeline *:after {
  box-sizing: border-box;
}

#timeline .timeline-item:after,
#timeline .timeline-item:before {
  content: "";
  display: block;
  width: 100%;
  clear: both;
}

#timeline {
  max-width: 1100px;
  width: 100%;
  margin: 30px auto;
  position: relative;
  padding: 0 10px;
  transition: all 0.4s ease;
}

#timeline:before {
  content: "";
  width: 3px;
  height: 100%;
  background: var(--blue-color);
  left: 50%;
  top: 0;
  position: absolute;
}

#timeline:after {
  content: "";
  clear: both;
  display: table;
  width: 100%;
}

#timeline .timeline-item {
  margin-bottom: 50px;
  position: relative;
}

#timeline .timeline-item .timeline-icon {
  background: var(--blue-color);
  color: var(--white-color);
  text-align: center;
  font-size: 24px;
  line-height: 50px;
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 50%;
  overflow: hidden;
  margin-left: -23px;
  border-radius: 50%;
}

#timeline .timeline-item .timeline-icon i {
  line-height: 50px;
}

#timeline .timeline-item .timeline-content {
  width: 45%;
  background: var(--white-color);
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
}

#timeline .timeline-item .timeline-content h4 {
  padding: 15px;
  background: var(--blue-color);
  color: var(--white-color);
  margin: -20px -20px 10px -20px;
  font-weight: 300;
  border-radius: 3px 3px 0 0;
}

#timeline .timeline-item .timeline-content:before {
  content: "";
  position: absolute;
  left: 45%;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid var(--blue-color);
}

#timeline .timeline-item:nth-child(even) .timeline-content {
  float: right;
}

#timeline .timeline-item:nth-child(even) .timeline-content:before {
  content: "";
  right: 45%;
  left: inherit;
  border-left: 0;
  border-right: 7px solid var(--blue-color);
}

@media screen and (max-width: 768px) {
  #timeline {
    margin: 30px;
    padding: 0px;
    width: 90%;
  }

  #timeline:before {
    left: 0;
  }

  #timeline .timeline-item .timeline-content {
    width: 90%;
    float: right;
  }

  #timeline .timeline-item .timeline-content:before,
  #timeline .timeline-item:nth-child(even) .timeline-content:before {
    left: 10%;
    margin-left: -6px;
    border-left: 0;
    border-right: 7px solid var(--blue-color);
  }

  #timeline .timeline-item .timeline-icon {
    left: 0;
  }
}

/*схема монетизации end*/

.item_top-img_svg {
  display: grid;
  grid-template-columns: 50px 1fr;
  width: 100%;
}

.page_active-block_text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page_content__text-border {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.page_content__text.page_content__text-border a.btn-primary {
  margin-top: 8px;
  margin-bottom: 8px;
}

.page_content__text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.page_content__text-grid a.btn-small {
  width: 100%;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.deco_border {
  border: 1px solid var(--border-color);
  margin: 10px 0;
}

.page_content__article {
  margin-bottom: 16px;
}

.page_content__public-items {
  grid-template-columns: 1fr 1fr;
}

.page_content__public-items .page_content__serv-item__text {
  padding: 30px 20px;
}

.page_content__gallary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.page_content__gallary>img {
  object-fit: contain;
}

@media (max-width: 991px) {
  .requir_grid {
    gap: 20px;
  }
}

@media (max-width: 930px) {
  .page_info__items {
    grid-template-columns: 1fr;
  }

  .page_info__icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .page_post__cont {
    margin-top: 80px;
  }
}

/* @media (max-width: 900px) {
  .page_content__public-items {
    grid-template-columns: 1fr 1fr;
  }
} */

@media (max-width: 768px) {
  .page_content__serv-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .page_content__serv-item__text {
    padding: 30px 20px;
  }

  .colom-grid_span {
    grid-column: span 1;
  }

  .page_content__circle {
    grid-template-columns: 1fr;
  }

  .circle-item p {
    max-width: 350px;
  }

  .requir_grid {
    grid-template-columns: 1fr 1fr;
  }

  .mail_info {
    gap: 40px;
    padding: 20px;
  }

  .page_content__gallary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .mail_info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .mail_info .page_h2 {
    margin-bottom: 10px;
  }

  .mail_info__box-items {
    gap: 8px;
  }

  .page_content__text-grid {
    grid-template-columns: 1fr;
    margin: 10px 0;
  }

}

@media (max-width: 600px) {

  .rubric__bar__title,
  .blurb-price,
  .price_box-item_bottom__pr {
    font-size: 1.5rem;
  }

  .page_content__text p,
  .page_content__text ul li,
  .page_info__item-text p,
  .page_content__serv-item__text,
  .price_box-item_top p,
  .blurb-price>span,
  .price_box-item_bottom__pr>span,
  .circle-item p,
  .page_content__text ol li p,
  .page_content__text ol li span,
  .page__top-text p,
  .page_active-block p,
  ul.check_ul li,
  .page_h4 {
    font-size: 1rem;
  }

  .page_content__text,
  .page_info__icon,
  .page_active-block {
    gap: 10px;
  }

  .page_content {
    gap: 20px;
  }

  .page_h2,
  .page_content__serv-item__title {
    font-size: 1.2rem;
  }

  .page_info__item {
    padding: 20px;
    gap: 10px;
  }

  .page_info__item-title,
  .page_h3,
  .price_box-item_title {
    font-size: 1.1rem;
  }

  .page_info__item-text {
    gap: 8px;
  }

  .mail_info__box-item {
    font-size: 1rem;
  }

  .page_info__icon-text {
    font-size: 1rem;
    gap: 10px;
  }

  .page_info__icons {
    grid-template-columns: 1fr;
  }

  .page_content a.btn-small,
  .text-right,
  p.p_small,
  .page__top a.btn-small,
  a.serv-item_a {
    font-size: 1rem;
  }

  .price_box {
    padding-bottom: 20px;
  }

  .page_gallery {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .p_active {
    padding: 15px;
  }

  .page__top-text {
    margin-bottom: .9rem;
  }

  .page_content__text-img {
    width: 100%;
  }

  .page_h2 .icon_svg::before {
    width: 18px;
    height: 18px;
  }

  .price_box-item_bottom>span {
    font-size: 14px;
  }

  .page_content__text-grid {
    gap: 10px;
  }

  .page_content__text-grid a.btn-small {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .page_content__article a.btn-small,
  a.btn-small.btn-small_full {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }

  ul.check_ul li {
    padding-left: 20px;
  }
}

@media (max-width: 550px) {
  .page_content__public-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .sber {
    font-size: 20px;
  }

  .box_details {
    font-size: .95rem;
    padding: 20px;
    gap: 8px;
  }

  .page_content__serv-items {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .price_box-item_top,
  .price_box-item,
  .page_content__serv-item__text {
    gap: 10px;
  }

  .page_content__serv-item__text {
    padding: 20px;
  }

  .page_content__serv-item__title {
    padding: 15px;
  }
}

@media (max-width: 400px) {

  .price_box-item_top-img img,
  .item_top-img_svg svg {
    display: none;
  }

  .price_box-item_top-img {
    margin: auto;
  }

  .page_content__serv-item__title {
    padding: 10px;
  }

  .page_content__text ul li p.p_info-bord {
    font-size: 0.9rem;
    padding: 15px;
  }

  .requir_grid {
    grid-template-columns: 1fr;
  }

  .btn-primary_xs {
    font-size: 11px;
  }

  .item_top-img_svg {
    grid-template-columns: 1fr;
  }

  .price_box-item_top {
    align-items: start;
  }
}

@media (max-width: 340px) {
  .rubric__bar__title {
    font-size: 1.4rem;
  }

  .price_box-item {
    padding: 15px;
  }

  .page__top a.btn-small {
    font-size: 13px;
  }

  .page_content a.btn-small {
    font-size: 0.95rem;
  }
}

/*static pages end*/


.rek_block_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color-2);
}

/* lk */

/* Общие */

.title-lk {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .title-lk {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .title-lk {
    font-size: 1.5rem;
  }
}



.container-lk {
  max-width: 1024px;
  margin: auto;
}

.lk__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.lk__header__img__wrap {
  width: 100%;
  max-width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border-width: 3px;
  border-color: var(--white-color);
}

@media (min-width: 480px) {
  .channel__avatar {
    max-width: 100px;
    height: 100px;
  }
}

@media (min-width: 640px) {
  .channel__avatar {
    max-width: 130px;
    height: 130px;
    border-width: 4px;
  }
}

.lk__header__name {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 20px;
}

@media (min-width: 480px) {
  .lk__header__name {
    font-size: 1.5rem;
  }
}

@media (min-width: 640px) {
  .lk__header__name {
    font-size: 1.875rem;
  }
}

.last-read__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.last-read__item__wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.last-read__item__title {
  color: var(--dark-color);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.last-read__item__title:hover {
  color: var(--grey-color);
}

.last-read__item__img {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
}

.last-read__item__img>img {
  height: 100%;
  object-fit: cover;
  transition: .3s;
}

.last-read__item:hover .last-read__item__img>img {
  transform: scale(1.05);
}

.last-read__item__rubrik {
  display: flex;
  font-size: 1rem;
  color: var(--dark-color);
  border-radius: 9999px;
  padding: 4px 8px;
  background-color: var(--bg-grey-color);
  border: 1px solid var(--bg-grey-color);
  width: fit-content;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.lk-subscribe__wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lk-subscribe__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lk-subscribe__item__author {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
}

.lk-subscribe__item__author>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lk-subscribe__item__text {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-right: auto;
}

.lk-subscribe__item__name {
  font-weight: 500;
  font-size: 1.25rem;
}

.lk-subscribe__item__descr {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--grey-color);
}




.user-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-container {
  position: relative;
  width: fit-content;
}

.avatar-wrapper {
  width: fit-content;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 9999px;
  display: block;
}

.upload-badge-container {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-container:hover .upload-badge-container {
  opacity: 1;
}

.upload-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--white-color);
  border-radius: 9999px;
  border: 1px solid #9ca3af;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.upload-input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none;
}

.upload-icon {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Костыли формы*/

#saleModal .btn-close {
  position: absolute;
  right: 9px;
  top: 8px;
}

#saleModal .product-info .order-name {
  text-align: center;

}

#saleModal .product-info .order-preview-text {
  padding-left: 60px;
  padding-right: 60px;
  font-size: 22px;
  text-align: center;
  margin-bottom: 0px;
}

#saleModal .product-info .order-picture {
  text-align: center;
}

#saleModal .product-info .order-picture img {
  width: 200px;
}

#saleModal .order-info {
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}

#saleModal .order-info .title-field-1,
#saleModal .order-info .price-order-field {
  padding-left: 37px;
}

#saleModal .order-info .price-order-field {
  color: #1c8eff;
  font-size: 28px;
}

#saleModal .order-info .title-field-1 {
  font-size: 24px;
}

#saleModal .order-info .change-pay-type {
  margin-top: 20px;
}

#saleModal .order-info .card-icon {
  width: 170px;
}

#saleModal .order-info .bill-icon {
  width: 81px;
}

#saleModal .change-pay-type {
  padding-left: 37px;
}

#saleModal .change-pay-type>div {
  width: 200px;
}


#saleModal .change-pay-type label {
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

#saleModal .change-pay-type input~label {
  position: relative;
}

#saleModal .change-pay-type input~label:before {
  font-family: 'FontAwesome';
  content: "\f00c";
  position: absolute;
  left: -48px;
  background-color: #dfdfdf;
  color: var(--white-color);
  padding: 10px 8px;
  border-radius: 23px;
  font-size: 30px;
  top: 0;
}

#saleModal .change-pay-type input:checked~label:before {
  background-color: #1c8eff;
}

#saleModal .button-send {
  margin-top: 0px;
  margin-bottom: 35px;
  text-align: center;
}

#saleModal .button-send button {
  font-size: 24px;
  padding: 2px 114px;
  height: 55px;
  letter-spacing: 1px;
}

#saleModal .button-send .btn-primary {
  background: linear-gradient(to right, rgba(0, 123, 255, 1) 0%, rgba(89, 184, 255, 1) 100%);
}


#saleModal .order-info .download {
  font-size: 22px;
}

#saleModal .change-pay-type .pay-help {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.3;
  display: none;
}

#saleModal .change-pay-type input:checked~label+div {
  display: block;
}

#saleModal .pay-help div {
  display: none;
}

#saleModal .pay-help div.billhelp1 {
  display: block;
}

#saleModal .pay-help div.billhelp2 {
  display: block;
}

/* Форма организации */

.form-contract__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-contract__left,
.form-contract__right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Заказ услуг */

.lk-order-table {
  width: 100%;
  border: none;
}

.lk-order-table thead th {
  font-weight: bold;
  text-align: left;
  border: none;
  padding: 10px 16px;
  background: var(--dark-color);
  color: var(--white-color);
  font-size: 1rem;
}

.lk-order-table thead tr th:first-child {
  border-radius: 16px 0 0 16px;
}

.lk-order-table thead tr th:last-child {
  border-radius: 0 16px 16px 0;
}

.lk-order-table tbody td {
  text-align: left;
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  vertical-align: top;
}

.lk-order-table tbody tr:nth-child(even) {
  background: var(--bg-grey-color);
}

.lk-order-table tbody tr td:first-child {
  border-radius: 16px 0 0 16px;
}

.lk-order-table tbody tr td:last-child {
  border-radius: 0 16px 16px 0;
}


/* Media CSS */

@media (max-width:1280px) {
  .mobile-search {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 30;
    display: none;
  }

  .mobile-search.show {
    display: flex;
  }
}

@media (max-width:767px) {
  .btn-primary.btn-primary--icon {
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .btn-primary__icon {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color-2);
    border-radius: 50%;
  }

  .btn-primary__icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width:480px) {
  .btn-small {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
  }

  .btn-small-dark {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 12px;
  }

  .date:before {
    top: 9px;
    inset-inline-start: 7px;
  }

  ul.post-action li a svg {
    height: 16px;
    width: 16px;
  }

  .btn-primary {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .more-less {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .input {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }

}

.theme-toggle {
  display: inline-block;
  user-select: none;
}

.theme-toggle__track {
  position: relative;
  display: flex;
  align-items: center;
  width: 120px;
  height: 40px;
  border-radius: 9999px;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .theme-toggle__track {
  background-color: #2eb3ff;
}

html[data-theme="book"] .theme-toggle__track {
  background-color: #d8caba;
}

html[data-theme="dark"] .theme-toggle__track {
  background-color: #1f2937;
}

.theme-toggle__thumb {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(0);
}

html[data-theme="book"] .theme-toggle__thumb {
  transform: translateX(40px);
}

html[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(80px);
}

.theme-toggle__btn {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.theme-toggle__btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__btn:focus-visible {
  outline: none;
}

html[data-theme="light"] .theme-toggle__btn--light {
  color: #f59e0b;
}

html[data-theme="book"] .theme-toggle__btn--book {
  color: #8b5a2b;
}

html[data-theme="dark"] .theme-toggle__btn--dark {
  color: #1f2937;
}

@media (max-width: 930px) {
  .theme-toggle {
    width: 30px;
    height: 30px;
    position: relative;
  }

  .theme-toggle__track {
    width: 30px;
    height: 30px;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .theme-toggle__thumb {
    width: 30px;
    height: 30px;
  }

  .theme-toggle.is-expanded .theme-toggle__track {
    height: 90px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .theme-toggle__btn {
    flex: 0 0 30px;
    height: 30px;
    width: 100%;
  }

  html[data-theme="light"] .theme-toggle__btn--light,
  html[data-theme="book"] .theme-toggle__btn--book,
  html[data-theme="dark"] .theme-toggle__btn--dark {
    order: -1;
  }

  html[data-theme="light"] .theme-toggle__thumb,
  html[data-theme="book"] .theme-toggle__thumb,
  html[data-theme="dark"] .theme-toggle__thumb {
    transform: none;
  }
}

/* Новые стили для страницы авторизации */

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: var(--bg-grey-color);
  min-height: 80vh;
}

.auth-card {
  display: flex;
  max-width: 900px;
  width: 100%;
  background: var(--white-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.auth-main {
  flex: 1.2;
  padding: 50px;
}

.auth-side {
  flex: 0.8;
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-title {
  font-family: var(--font-titles);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black-color);
}

.auth-subtitle {
  color: var(--grey-color);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.auth-input-group {
  margin-bottom: 20px;
}

.auth-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 5px;
  color: var(--black-color);
}

.auth-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-grey-color);
  transition: all 0.3s ease;
  font-size: 1rem;
}

.auth-field:focus {
  outline: none;
  border-color: var(--blue-color);
  background: var(--white-color);
  box-shadow: 0 0 0 4px rgba(24, 117, 226, 0.1);
}

.auth-btn-submit {
  width: 100%;
  background: var(--blue-color);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  margin-top: 10px;
}

.auth-btn-submit:hover {
  background: var(--blue-color-2);
}

.auth-socserv-title {
  text-align: center;
  margin: 25px 0 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-color);
  display: flex;
  align-items: center;
}

.auth-socserv-title::before,
.auth-socserv-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
  margin: 0 15px;
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.auth-link {
  color: var(--blue-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
  .auth-card {
    flex-direction: column;
  }

  .auth-main,
  .auth-side {
    padding: 30px 20px;
  }

  .auth-side {
    order: -1;
  }
}

.auth-main--wide {
  flex: 1.5;
}

.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.auth-requirement-text {
  font-size: 0.8rem;
  margin-top: 5px;
  line-height: 1.3;
}

.starrequired {
  color: #ff4d4d;
  margin-left: 3px;
}

.errortext {
  display: block;
  padding: 12px;
  background: rgba(255, 77, 77, 0.1);
  border-left: 4px solid #ff4d4d;
  color: #d32f2f;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .auth-row-2 {
    grid-template-columns: 1fr;
  }
}

.auth-captcha-wrapper {
  background: var(--bg-grey-color);
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
}

.auth-captcha-img {
  margin-bottom: 10px;
  border-radius: 8px;
  display: block;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-rules-text {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--grey-color);
  line-height: 1.4;
}

.auth-socserv-wrapper {
  display: flex;
  justify-content: center;
}

.auth-mb-only {
  margin-top: 20px;
  text-align: center;
}

.auth-side-title {
  font-family: var(--font-titles);
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--white-color);
}

.auth-side-title--small {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.auth-side-subtitle {
  opacity: 0.8;
  margin-bottom: 30px;
  line-height: 1.6;
}

.auth-side-text-small {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 25px;
}

.auth-benefits-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.auth-benefits-list li {
  margin-bottom: 12px;
}

.auth-req-box {
  margin-top: 2rem;
}

.auth-warning-box {
  margin-top: 40px;
  background: rgba(255, 0, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-warning-link {
  color: #fff;
  text-decoration: underline;
}

.auth-alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #155724;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.requisites-card {
  background: var(--bg-grey-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.requisites-card__title {
  font-family: var(--font-titles);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--black-color);
  text-align: left;
  border-bottom: 2px solid var(--blue-color);
  display: inline-block;
  padding-bottom: 5px;
}

.requisites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

@media (max-width: 768px) {
  .requisites-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.requisites-section__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.requisites-item {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.requisites-item__label {
  font-size: 0.85rem;
  color: var(--grey-color);
  margin-bottom: 2px;
}

.requisites-item__value {
  font-weight: 600;
  color: var(--black-color);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requisites-purpose {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
  text-align: left;
}

.requisites-purpose__box {
  background: var(--white-color);
  border-left: 4px solid var(--blue-color);
  padding: 15px;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--black-color);
}

.js-copy {
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.js-copy:hover {
  opacity: 0.7;
}

.js-copy::before {
  content: "Скопировано!";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Треугольничек под подсказкой */
.js-copy::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark-color) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  transition: all 0.2s ease;
}

/* Анимация появления подсказки при копировании */
.js-copy.is-copied::before,
.js-copy.is-copied::after {
  opacity: 1;
  visibility: visible;
}
.js-copy.is-copied::before {
  transform: translateX(-50%) translateY(-4px);
}
.js-copy.is-copied::after {
  transform: translateX(-50%) translateY(6px);
}

/* --- Стилизация модального окна поиска --- */

/* Шапка */
.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title2 {
    font-family: var(--font-titles);
    font-weight: var(--font-weight-titles);
    font-size: 1.4rem;
    color: var(--black-color);
    margin: 0;
}

/* Кнопка закрытия (крестик) */
.btn-close {
    background-color: var(--bg-grey-color);
    border-radius: 50%;
    padding: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: none;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Тело модалки */
.modal-body {
    padding: 25px;
}

/* Форма поиска */
#formsearch1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

/* Инпуты внутри формы */
#formsearch1 .form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-grey-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--black-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

#formsearch1 .form-group input[type="text"]:focus {
    border-color: var(--blue-color);
    background: var(--white-color);
    box-shadow: 0 0 0 3px rgba(24, 117, 226, 0.1);
}

/* Кнопка "Найти" внутри формы */
#formsearch1 .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--blue-color);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 5px;
}

#formsearch1 .btn-primary:hover {
    background-color: var(--blue-color-2);
}

/* Блок результатов */
#resultsearch {
    margin-top: 20px;
    min-height: 50px;
}

/* Алерт-боксы (успех/ошибка) */
.alert-success2 {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    font-size: 0.9rem;
}

/* Футер */
.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color-2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Кнопки в футере */
.btn-cab-blue, .btn-cab-red {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-cab-blue {
    background-color: var(--blue-color);
    color: #fff;
}

.btn-cab-blue:hover {
    background-color: var(--blue-color-2);
    transform: translateY(-1px);
}

.btn-cab-red {
    background-color: var(--bg-grey-color);
    color: var(--grey-color);
}

.btn-cab-red:hover {
    background-color: #e2e2e2;
    color: #000;
}

.hide-Modal-ok, .hide-Modal-error {
    display: none;
}

.text-error-12, .text-error-22 {
    margin-bottom: 5px;
}

#resultsearch {
    margin-top: 20px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

#resultsearch::-webkit-scrollbar {
    width: 6px;
}
#resultsearch::-webkit-scrollbar-track {
    background: var(--bg-grey-color);
    border-radius: 10px;
}
#resultsearch::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

#resultsearch > div {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--black-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#resultsearch > div::before {
    content: '📄'; /* Или можно поставить иконку шрифта, если есть */
    font-size: 1rem;
    filter: grayscale(1);
    opacity: 0.5;
}

#resultsearch > div:hover {
    background: var(--bg-grey-color);
    border-color: var(--blue-color);
    transform: translateX(5px); /* Легкий сдвиг вправо */
}

#resultsearch > div.selected, 
#resultsearch > div.active {
    background: rgba(24, 117, 226, 0.1);
    border-color: var(--blue-color);
    color: var(--blue-color);
}

#resultsearch:empty::after {
    content: "Начните поиск или уточните запрос...";
    display: block;
    text-align: center;
    color: var(--grey-color);
    padding: 20px;
    font-style: italic;
}