:root {
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-regular: 400;

  --font-size-xxs: 11px;
  --font-size-xs: 12px;
  --font-size-s: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-2xl: 24px;

  --color-tundora: #444444;
  --color-white: #fff;
  --color-azure: #2163ef;
  --color-red: #c20724;
  --color-cyan: #00a0b0;
  --color-black-50: rgba(0, 0, 0, 0.5);
  --color-black-solid: #000;
  --color-black: #1a1a1a;
  --color-dark-black: #0a0a0a;
  --color-light-grey: #DCDCDC;
  --color-dark-grey: #eaedee;


}

.book-item {
  display: flex;
  flex-direction: row;
  padding-bottom: 30px;
  height: 310px;
  gap: 15px;
  align-items: stretch;
}
.book-img {
  width: 200px;
  flex-shrink: 0;
  display: flex;
}
.book-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.book-main-content {
  width: 100%;
}

.book-info {
  width: 100%;
  max-width: calc(100% - 230px);
}

.book-title-link {
  color: var(--color-black);
  /* Heading */
  font-size: var(--font-size-2xl);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 120%; /* 28.8px */
  letter-spacing: -0.48px;
}
.book-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}
.book-heading > .need-reg {
  cursor: pointer;
}
.book-author,
.book-author > a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  color: var(--color-cyan);
  /* Body Strong */
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 140%; /* 22.4px */
}
.book-category,
.book-category > a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-black-50);
  /* Body Small Strong */
  font-size: var(--font-size-s);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 140%; /* 19.6px */
}
.book-pages {
  color: var(--color-black-50);
  /* Body Small Strong */
  font-size: var(--font-size-s);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 140%; /* 19.6px */
}
.book-description {
  overflow: hidden;
  color: var(--color-tundora);
  text-overflow: ellipsis;
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  line-height: 140%; /* 22.4px */
  padding-bottom: 10px;
  padding-top: 15px;
}
.book-date {
  color: var(--color-black-50);
  /* Body Small Strong */
  font-size: var(--font-size-s);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  line-height: 140%; /* 19.6px */
}

.book-buttons {
  font-size: var(--font-size-s);
}

.book-button {
  display: inline-flex;
  padding: 9px 18px;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 100%; /* 14px */
  cursor: pointer;
}

.book-button-read,
.book-button-listen {
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}
.book-button-read:hover,
.book-button-listen:hover {
  background: var(--color-cyan);
  color: var(--color-white);
}

.book-button-download {
  border: 1px solid var(--color-azure);
  color: var(--color-azure);
}
.book-button-download:hover {
  background: var(--color-azure);
  color: var(--color-white);
}
.book-button-download:hover svg path,
.book-button-read:hover svg path,
.book-tabs:hover svg path {
  fill: #ffffff;
}
.book-button-read:hover svg path,
.book-tabs:hover svg path {
  fill: var(--color-cyan);
  stroke: #ffffff;
}

.book-button-listen:hover svg path,
.book-tabs:hover svg path {
  stroke: #ffffff;
}

.favorites {
  display: flex;
  align-items: center;
  color: var(--color-red);
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 140%; /* 22.4px */
}
.favorites svg {
  padding-right: 8px;
}

.social-group {
  display: flex;
  align-items: center;
  color: var(--color-black);
  font-size: var(--font-size-base);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  line-height: 140%; /* 22.4px */
}

.social-group-green {
  color: var(--color-cyan);
}

.social-group svg {
  padding-right: 5px;
}

.book-additional-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-top: 10px;
}

.social {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.add-mylists {
  display: flex;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--color-cyan);
  cursor: pointer;
}
.add-mylists.added {
  background: var(--color-cyan);
  padding: 8px 9px;
}

.book-buttons {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.sort {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-black-solid);
  margin-top: 15px;
  align-items: center;
  justify-content: flex-start;
}

.sort__link {
  padding: 0px 4px;
  position: relative;
  display: inline-block;
}

.sort__link:not(:first-child):before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  height: 90%;
  width: 2px;
  background: var(--color-black-solid);
  display: flex;
  align-self: anchor-center;
  cursor: default;
}

.sort__link.active {
  color: var(--color-cyan);
}

.sort__link:not(.active):hover {
  opacity: 50%;
}

.main__title {
  padding: 0 15px;
}

.book-tabs-list {
  display: flex;
  gap: 15px;
  flex-direction: row;
}

.book-tabs {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  background: var(--color-white);
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan) !important;
  text-decoration: none !important;
  display: flex;
  gap: 5px;
  align-items: center;
}

.book-tabs:hover {
  background: var(--color-cyan);
  color: var(--color-white) !important;
}

.book-tabs.active {
  background: var(--color-cyan);
  color: var(--color-white) !important;
}

.book-tabs.active svg path {
  stroke: #ffffff;
}

.vjs-playing .vjs-big-play-button {
  display: none!important;
}

.book-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.book-main-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.book-main-info {
  width: 70%;
}

.book-main-img {
  width: 30%;
}

.fposter {
  background: transparent;
}

.book-main-info h1 {
  margin-bottom: 15px;
  font-size: 26px;
}

.book-main-info ul {
  margin-bottom: 15px;
  font-size: 15px;
}

li.vis {
  line-height: 30px;
}

li.vis > span:first-child {
  display: inline-block;
  width: 100px;
  font-weight: bold;
}

li.vis a {
  transition: color .3s, background-color .3s, opacity .3s;
  text-decoration: underline;
}

li.vis a:hover {
  text-decoration: none;
}

.book-main-action {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 15px;
}

.book-main-action-btn{
  background: var(--color-cyan)!important;
  color: var(--color-white)!important;
  padding: 7px 12px!important;
  border-radius: 5px!important;
  display: inline-block!important;
  font-size:var(--font-size-s)!important;
  cursor: pointer!important;
  font-weight: normal!important;
}

.book-main-action-wrapper {
  position: relative;
  display: inline-block;
}

.book-main-mylists-switch {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 4px 0 0 0;
  padding: 0;
  min-width: 200px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  z-index: 100;
  display: none;
}

.book-main-mylists-switch.active {
  display: block;
}

.book-main-mylists-switch li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.book-main-mylists-switch li:hover {
  background: var(--color-cyan);
  color: var(--color-white);
}

.book-main-mylists-switch li.active {
  background: var(--color-cyan);
  color: var(--color-white);
  font-weight: 500;
}

#mylists-switch.active {
  display: block;
}

.book-download {
  background: #f5f5f5;
}

.book-download-text {
  padding: 15px 10px;
  line-height: 30px;
  font-size: 14px;
  text-align: center;
}

.book-download-title {
  background: var(--color-light-grey);
  padding: 15px 10px;
  font-size: 14px;
  font-weight: bold;
}

.book-download-item {
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 30px;
  padding: 3px 10px;
}

.book-download-item > a{
  display: flex;
  align-items: center;
}

.book-download-item a:before {
  content: "";
  width: 30px;
  height:30px;
  display: inline-flex;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2221%22%20height%3D%2218%22%20viewBox%3D%220%200%2021%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_1_121)%22%3E%0A%3Cpath%20d%3D%22M20.999%2016.875C20.999%2017.4963%2020.4143%2018%2019.6929%2018H1.40765C0.686324%2018%200.101562%2017.4963%200.101562%2016.875C0.101562%2016.2537%200.686324%2015.75%201.40765%2015.75H19.6929C20.4143%2015.75%2020.999%2016.2537%2020.999%2016.875ZM9.62676%2013.3111C9.88182%2013.5308%2010.216%2013.6407%2010.5503%2013.6407C10.8845%2013.6407%2011.2188%2013.5308%2011.4738%2013.3111L16.1014%209.32523C16.6115%208.88588%2016.6115%208.17358%2016.1014%207.73423C15.5913%207.29489%2014.7644%207.29489%2014.2543%207.73423L11.8564%209.79966V1.125C11.8564%200.503684%2011.2716%200%2010.5503%200C9.82896%200%209.2442%200.503684%209.2442%201.125V9.79966L6.8463%207.73423C6.33623%207.29489%205.50927%207.29489%204.9992%207.73423C4.48913%208.17358%204.48913%208.88588%204.9992%209.32523L9.62676%2013.3111Z%22%20fill%3D%22%2300a0b0%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_1_121%22%3E%0A%3Crect%20width%3D%2220.8975%22%20height%3D%2218%22%20fill%3D%22white%22%20transform%3D%22translate(0.101562)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A") no-repeat 0px 6px;
}

.book-download-item span {
  font-weight: bold;
  text-transform: uppercase;
}

.book-main-about{
  font-weight: bold;
  color: var(--color-dark-black);
  font-size: 15px;
}

.book-box {
  padding: 10px;
}

.breadcrumbs {
  font-size: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.breadcrumbs a {
  padding-bottom: 5px;
}

.breadcrumbs a:not(:last-child)::after {
  content: "/";
  display: inline-flex;
  padding-left: 5px;
  padding-right: 5px;
}

.static-page header {
  padding: 10px;
}

.static-page h1 {
  margin: 0px;
}

.static-box {
  padding: 10px;
  font-size: 14px;
}

.static-box h2 {
 font-size: 18px;
}

@media (width <= 1120px) {
  .main__title {
    padding: 0;
  }
}

@media (width <= 768px) {

  .book-main-info h1, .sub-title h1 {
    font-size: 18px;
  }

  .main__title {
    padding: 0 7px;
  }

  .sort {
    margin-top: 10px;
  }

  .floats {
    margin: 0;
  }

  .main {
    padding: 30px 12px;
  }

  .book-button-download,
  .book-button-read,
  .book-button-listen {
    padding: 6px 12px;
  }

  .social {
    gap: 12px;
  }

  .book-item {
    height: auto;
  }
}
@media screen and (max-width: 600px) {
  .social {
    gap: 30px;
  }

  .book-additional-info {
    flex-direction: column;
    gap: 15px;
  }

  .book-title-link {
    font-size: var(--font-size-base);
  }

  .book-author > a {
    font-size: var(--font-size-xs);
    padding-bottom: 10px;
  }

  .book-date {
    font-size: var(--font-size-xxs);
  }

  .book-category > a,
  .book-pages {
    font-size: var(--font-size-xxs, 11px);
  }

  #book_content {
    font-size: var(--font-size-lg);
  }

  .book-main-wrapper {
    flex-direction: column;
  }

  .book-main-img, .book-main-info {
    width: 100%;
  }

  .book-main-img {
    width: 200px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 480px) {
  .favorites {
    font-size: var(--font-size-xs);
  }
  .favorites svg {
    padding-right: 0;
    width: 15px;
    margin-right: 6px;
  }
  .book-info {
    max-width: calc(100% - 115px);
  }
  .book-img {
    width: 100px;
    height: 155px;
  }
  .social {
    gap: 20px;
  }
  .social-group {
    font-size: var(--font-size-xs);
  }
  .social-group svg {
    width: 17px;
    padding-right: 0;
    margin-right: 4px;
  }
  .book-buttons {
    font-size: var(--font-size-xxs);
    flex-wrap: wrap;
  }
  .book-button {
    gap: 6px;
    line-height: 16px;
    height: 32px;
  }
  .book-button svg {
    height: 11px;
  }

  .book-button-download {
    border: 0.847px solid var(--color-azure);
  }
  .book-button-read,
  .book-button-listen {
    border: 0.847px solid var(--color-cyan);
  }
  .add-mylists {
    border: 0.847px solid var(--color-cyan);
  }
}
@media screen and (max-width: 300px) {
  .book-item {
    flex-direction: column;
  }
  .book-info {
    max-width: 100%;
  }
}

.side-bt > a {
  color:#fff;
  text-decoration: none;
}

.category_h1 {
  padding: 20px 20px 10px 20px;
  background: var(--color-white);
}

.categories-grid {
  column-count: 3;
  column-gap: 10px;
  list-style: none;
  margin: 0;
  background: var(--color-dark-grey);
  padding: 5px 20px 30px 20px;
  min-height: 650px;
}

.category-block {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 10px 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cat-item{
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
}

.cat-root{
  background: #eff4f7;
  font-size: 12px;
  padding: 10px 15px;
  font-weight: bold;
  color: var(--color-black-solid);
}

.top100-box {
  padding: 30px;
}

/* Адаптив */
@media (max-width: 1100px) {
  .categories-grid {
    column-count: 2;
  }
}

@media (max-width: 650px) {
  .categories-grid {
    column-count: 1;
  }
}