/*
Theme Name: KnigaVkino
Text Domain: knigavkino
Theme URI: https://knigavkino.ru
Author: chitaionlain
Author URI: https://knigavkino.ru
Version: 3.5
*/
.home-banner{padding: 20px 0;}
.home-banner-text {background-color: black;background: #343438;
background: linear-gradient(271deg,rgba(52, 52, 56, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 100%);text-align:center;display:flex;}
.home-banner-text a {color: wheat;}
.home-banner-img{height: 200px;}

.skaz {opacity: 0;transform: scale(0.8);animation: fadeInScale 1s ease-out forwards;}

#cookie-notification {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 700px;
        padding: 15px;
        background-color: #fff;
        /*background-color: #7c8693;*/
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #cookie-notification p {
        margin: 0;
        color: #333;
        flex-grow: 1;
        margin-right: 15px;
    }
.cnal {
  color: #0D3D72 !important;
}
  #cookie-notification a:visited{
  color: #fff200;
}
    #cookie-accept {
        background-color: #f9f6f3;
  color: #093540;
  border: 1px solid gray;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
    }
    #cookie-accept:hover {
        background-color: #45a049;
        color: white;
    }



.film-image img {
                                        max-width: 100%;
                                        height: auto;
                                        border-radius: 8px;
                                }

                                .films-container h2 {
                                        font-size: 1.5em;
                                        margin-bottom: 10px;
                                }

                                .films-container p {
                                        color: #666;
                                        font-style: italic;
                                }



/* Global Styles */
body {
    color: #333;
    font-size: 15px;
    font-family: arial,sans-serif
}


h1 {
    font-size: 26px;
    line-height: 35px;
}

h2 {
    font-size: 18px;
    line-height: 35px;
    font-weight: 400;
}

h3 {
    font-size: 18px;
    line-height: 35px;
}

h4 {
    font-size: 14px;
    line-height: 20px;
}

h5 {
    font-size: 12px;
    line-height: 20px;
}

h6 {
    font-size: 10px;
    line-height: 20px;
}

ol, ul {
    padding-left: 30px;
}

p {
    line-height: 1.4;
}

a {
    color: #20399D;
    outline: none;
    text-decoration: none;
}

a:hover {
    color: #2A3F54;
}

/* Header Styles */
.naviblock {
    border-bottom: 1px solid #CCC7BF;
    background-color: #5c6066;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: 0px;
}

.site-header {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    margin: 10px auto 0;
}

.logotip {
    float: left;
    width: 320px;
}

.custom-logo {float: left;height: 100%;width: 50px;margin: 9px 15px;}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    margin-top: 14px;
    display: block;
    color: white;
    text-decoration: none;
}

.logo-text:hover {
    color: #fff200;
}

.logo-discription {
    font-size: 11px;
    color: #fff;
    margin: 0 0 15px;
    width: 235px;
}

.menu {
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu > li a {
    text-decoration: none;
    color: white;
    padding: 8px 15px;
    margin: 0 15px;
    transition: 0.3s;
}

.menu-desktop {
    text-align: center;
}

.menu-item a {
    color: #989696;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 17px;
    margin-right: 30px;
    text-decoration: none;
}

.menu-item:last-child a {
    margin-right: 0;
}

.menu-mobile {
    display: none;
}

.menu-roster-container > .menu > li a {padding: 5px 0;display: block;font-size: 14px;}

#menu-roster {
    display: block;
}

.menu-menu-audio-container > .menu > li a {
    color: #4d3b3b;
    border-radius: 8px;
    padding: 3px 15px 5px;
    margin-right: 5px;
    background: #f5f3f5;
}

.menu-roster-container {
    background-color: #5c6066;
    padding: 20px 0;
}

/* Search Form */
#search {
    background-color: #e2e3cc;
    border: 1px solid #95996d;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    top: 0;
    right: 0;
    transition: .9s ease;
    background-image: url(/images/search.png);
    background-repeat: no-repeat;
    background-position: center;
    padding: 12px 20px;
}

#search:hover {
    transform: scale(1.0);
    color: #fff;
    background-color: #dde0c8;
}

#searchform {
    padding-right: 20px;
    clear: both;
    text-align: center;
}

.search {
    position: relative;
}

.search input[type=text] {
    width: 150px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-left: 20px;
    padding: 4px;
    background: #eff2d600;
    color: #fff;
}

#searchsubmit {padding: 1px 3px;}
.searchs input[type="text"] {color: #000;width: 250px;}
.searchpage {clear: both;text-align: center;}

/* Main Content */
.container {
    width: 1200px;
    margin: 20px auto;
    background-color: #F8F8F8;
    padding: 0px 20px;
}
.container-boock {width: 1200px;margin: 20px auto;background-color: transparent;padding: 0px;}

.content-norm-width {
    display: flex;
    background-color: #F8F8F8;
    min-height: 700px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-left: 5px double #b9b9b9;
    border-right: 5px double #b9b9b9;
    box-shadow: -15px 0 25px rgba(0,0,0,0.3), 15px 0 25px rgba(0,0,0,0.3);
}

.article-norm {
    width: 545px;
    padding: 25px 30px 30px 30px;
    border-left: 5px double #b9b9b9;
    position: relative;
}

.ntitlen {
    font-size: clamp(22px, 2.5vw, 26px);
    margin: 0 0 20px;
}

.post-img {
    float: left;
    margin: 0 20px 10px 0;
}

.book-cover {
    width: 170px;
    height: auto;
    display: block;
    border: 0px solid #bea9a1;
    max-height: 248px;
    object-fit: cover;
}

.column-separator {
    border: 1px solid #acabab98;
    margin: -3% 15px;
    box-shadow: 0 0 20px 1px rgb(41,40,40);
    /*! padding: 0 10px; */
}

.sboku {
    width: 545px;
    padding: 25px 30px 30px 30px;
    border-right: 5px double #b9b9b9;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 50px;
}

/* Book Styles */
.boock {
    margin: 0 auto;background-color: #f4f4f4;
    background: -webkit-linear-gradient(90deg,#d1d1cc,#dcdddb,#d1d1cc); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(90deg,#d1d1cc,#dcdddb,#d1d1cc); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.block-boock {
    position: relative;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.block-boock:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.boock-img {
    height: auto;
    position: relative;
}

.title-new-boock {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 22px;
    max-height: 60px;
    color: #273852;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-weight: bold;
    padding: 5px 10px 10px;
}

.home-block-avtor {
    font-size: 13px;
    display: block;
    color: #273852;
    padding: 10px 10px 5px;
}

.badge {
    background: #5c6066;
    color: #ffffff;
    padding: 5px 20px 5px;
    font-size: 13px;
}

.badge-home {position: absolute;margin-top: 10px;display: block;margin-top: -65px;z-index: 1;}

/* Catalog Styles */
.catalog-bar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
}

.sidebar {
    margin: 0px 0 0 20px;
}

.new-knigi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 23px;
}

.img-new-knigi {
    width: 100%;
    height: 100%;
    display: block;
    height: 285px;
    width: 100%;
    object-fit: cover;
}

.new-boock {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 23px;
    margin-top: 40px;
}

.img-new {
    width: 100%;
    height: 100%;
    display: block;
}

.home-title {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    font-size: 15px;
    max-height: 55px;
    color: #4d3b3b;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-weight: bold;
    padding: 0 5px;
}

.home-avtor {
    font-size: 13px;
    padding-bottom: 2px;
    display: block;
    color: #6b5252;
    padding: 10px 5px 5px;
}

/* Footer Styles */
footer {
    clear: both;
    width: 100%;
    background: #5c6066;
    margin-top: 40px;
    border-top: 1px solid #CCC7BF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: white;
}

footer a {
    color: wheat;
}

.foot-text {
    width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 30px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.soc-seti {
    display: flex;
    gap: 5px;
}

.soc-seti-info {
    font-size: 12px;
    line-height: 1.5rem;
}


/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@media screen and (min-width: 768px) {
    @keyframes sparkleText {
        0% {
            opacity: 0;
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }
        100% {
            opacity: 1;
        }
    }
    
    @keyframes sparkleDust {
        0% {
            transform: translateY(-50%) scale(0);
        }
        100% {
            transform: translateY(-50%) scale(1);
        }
    }
}

/* Utility Classes */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6d2e46;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

.screen-reader-text {
    display: none;
}

.current {
    line-height: 1;
    margin-right: 10px;
    background: #e35434;
    border-radius: 3px;
    color: #fafafa;
    padding: 12px 15px;
}

.page-numbers {
    margin-right: 1px;
    padding: 7px 10px;
}

.relaite-book {
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1s ease-out forwards;
}

/* Component Styles */
.componentWraper {
    margin-top: 60px;
    position: relative;
    border: 2px solid #cacf9a;
    padding: 20px;
    background: rgb(249,249,254);
}

.componentWraper .componentTitle {
    position: absolute;
    top: -36px;
    background: #f4f4fc;
    padding: 0 10px;
    margin-bottom: 20px;
    display: block;
    font-size: 20px;
    background: -webkit-linear-gradient(180deg, #f8f4e9, #f9f9fe);
    background: linear-gradient(180deg, #f8f4e9, #f9f9fe);
}

/* Book Purchase Styles */


.simple-purchase-btn {
  background: transparent;
  position: relative;
  padding: 4px 15px 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgb(255,0,0);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(255,0,0);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
	margin-top: -5px;
}

.simple-purchase-btn:hover {
  color: #fff;
  border: 1px solid rgb(255,0,0);
background: rgb(255,0,0);	
}


.simple-purchase-btn::before {
	 background-image: url('https://chitaionlain.ru/wp-content/uploads/2025/08/kniga-16.webp'); 
    background-repeat: no-repeat; 
z-index: 999;
}








.simple-purchase {
   display: inline-block;
    position: relative;
}

.simple-purchase-btn {
   /* background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: #20399D;*/

}




.simple-purchase-options {
    display: none;
    position: absolute;
    left: -175px;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 10;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.store-option {font-size: 12px;color:#999;
}

.store-option:last-child {
    border-bottom: none;
}

.store-option a {
    margin-left: 10px;
    color: #0066cc;
    text-decoration: none;
}



/* Button Styles */
.buy-buttons-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.buy-heading {
    margin-right: 10px;
    font-size: 16px;
    color: #333;
    font-family: 'Arial', sans-serif;
    white-space: nowrap;
}

.buy-buttons-row {
    display: flex;
    gap: 10px;
}

.bookshop-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 100px;
    height: 20px;
}

.bookshop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    border-color: #d0d0d0;
}

.bookshop-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bookshop-litres {
    border-left: 3px solid #ff6b6b;
}

.bookshop-chitai {
    border-left: 3px solid #4ecdc4;
}

.bookshop-book24 {
    border-left: 3px solid #ffbe76;
}

/* Section Title */
.section-title {font-family: sans-serif;color: #2D3E49;text-align: left;margin: 20px 0 30px;position: relative;padding-left: 50px;}

.section-title span {
    background: #F8F8F8;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: #000;
	
}
.new-books{padding-top:10px;}
.section-title:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #5c6066;
    z-index: 0;
}

/* Promotions */
.akciz {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-top: 20px;
}

.akcia-block {
    background-color: rgba(255,255,255,0.9);
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    overflow: hidden;
}

.akcia-block img {
    float: left;
    margin-right: 20px;
    max-width: 40%;
    max-height: 157px;
    object-fit: cover;
}

.akcia-content {
    overflow: hidden;
}

.akcia-block p {
    font-size: 18px;
    color: #666;
    margin: 0 0 15px 0;
}

.akcia-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.akcia-button:hover {
    background-color: #005177;
}

/* Store Buttons */
.store-buttons {
    display: grid;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0 20px;
    grid-template-columns: 1fr 1fr 1fr;
}

.store-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 5px;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.store-button:hover {
    background-color: #e0e0e0;
}

.store-button img {
    margin-right: 5px;
}

/* Book Details */
.book-card {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.book-card.visible {
    opacity: 1;
}

.book_botton {
    margin-top: 20px;
    display: grid;
    gap: 0;
    font-size: 14px;
    margin-bottom: 0;
    grid-template-columns: 100px 144px 1fr 137px;
}

.info-books-content {
    line-height: 250px;
}

.info-books-text {
    line-height: normal;
    display: inline-block;
    vertical-align: middle;
    width: 62%;
    font-size: 14px;
    line-height: 1.5;
}

.product-characteristic-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 15px;
    margin: 0 0 3px;
}

.product-characteristic-label {
    display: inline-block;
    font-weight: 600;
}

.product-characteristic-value {
    margin-left: 0;
}

/* Spoiler Styles */
.spoiler-btn {
    background-color: transparent;
    border: 0;
    padding: 12px 16px;
    font-size: 0.75rem;
}

.spoiler-content, .spoiler-content-book {
    display: none;
}

.spoiler-content-book.active {
    display: block;
    color: black;
    font-size: 14px;
}

.spoiler-content.active {
    display: block;
    color: black;
    margin-top: -130px;
    margin-left: -310px;
    z-index: 999;
    position: absolute;
    background-color: #fff;
}

.text {
    margin: 0;
    padding: 0;
}



/* Tab Styles */
.content-tabs {
    margin: 20px 0 0;
}

.tab-buttons { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }

.tab-btn {
    background: transparent;
  padding: 9px 13px;
  color: #5c6066;
  border: 1px solid gray;
  border-radius: 5px;
  cursor: pointer;

  text-align: center;
  font-size: 13px;
  margin: 0;
  line-height: 10px;}

.tab-btn.active {color: black;border: 1px solid gray;background: #eeeddd;
}
.tab-btn-osl{background: transparent;
  padding: 9px 15px;
  color: #5c6066;
  border: 1px solid gray;
  border-radius: 5px;
  cursor: pointer;

  text-align: center;
  font-size: 16px;
  margin: 0;
  line-height: 10px;}
.tab-content {
    display: none;
}

.tab-content.active {display: block;}

.tab-cont-h2 {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;margin-top: 0;
  font-family: Verdana,Geneva,Tahoma,Arial,Helvetica,sans-serif;
  letter-spacing: 2px;
}
.tab-btn-comm {}
.comments-link{padding: 6px 10px;
  color: #5c6066;
  border: 1px solid gray;
  border-radius: 5px;
  text-align: center;
  font-size: 13px;
  margin-top: 0px;
  display: block;}
.opis{margin-top: 0px;}

.modal{font-size: 13px;color: #5c6066;/*! margin-top: 10px; */display: block;}

/* Text Container */
.text-container {
    height: 195px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: height .3s ease;
    padding-bottom: 25px;
    margin-top: 10px;
    margin-bottom: 60px;
    line-height: 1.5;
}

.text-container::after {
    content: '↓ Развернуть ↓';
    position: absolute;
    bottom: 10px;
    right: 0;
    background: #f8f8f8;
    color: #025ACE;
    padding: 5px 20px;
    cursor: pointer;
    z-index: 2;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 10px;
    display: none;font-weight: 600;
}

.text-container.has-overflow::after {
    display: block;
}

.text-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8f8f8);
    pointer-events: none;
    display: none;
}

.text-container.has-overflow::before {
    display: block;
}
.text-container > h3 {padding: 0;
  margin: 0 0px 9px;
  font-size: 21px;}

.text-container.expanded {
    height: auto;
}

.text-container.expanded::after {
    content: '↑ Свернуть ↑';
}

.text-container.expanded::before {
    display: none;
}

/* Price Styles */
.single-cena {
    margin-top: 10px;
    min-height: 90px;
    margin-bottom: 10px;
}

.prlstores-type__shop {
    font-size: 14px;
    width: 135px;
    display: block;
}

.prlstores-type__icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    margin: 1px 10px 3px 12px;
}

.prlstores-type__price {
    font: 300 14px/22px "Source Sans Pro", sans-serif;
    margin: 0 11px 0 20px;
    position: relative;
}

.prlstores-type__cuper {
    color: #FFF;
    margin-left: 9px;
    font-weight: 600;
    background-color: #5a9c51;
    padding: 4px 12px 4px;
    font-size: 13px;
    background: #6fa720;
    background: -webkit-linear-gradient(top, #6fa720 5%, #588a1b 95%);
    background: linear-gradient(to bottom, #6fa720 5%, #588a1b 95%);
    background: linear-gradient(to right, #75b022 5%, #588a1b 95%);
}

.prlstores-type__cuper:hover {
    color: #feefb0;
    background: #6fa720;
}

/* Audio Book Styles */
.cat-content-audio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.audio-loop {
    margin-bottom: 40px;
}

.cat-title-audio {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    max-height: 88px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    font-weight: bold;
    display: block;
}

.cat-title-audio a {
    color: #4d3b3b;
}

.oblozka {
    float: right;
    background-color: #FCF6F2;
    z-index: 2;
    position: relative;
    width: 155px;
    height: 200px;
    padding: 8px;
    border: 1px solid #cfcece;
    z-index: 999;
}

.record {
    animation: none;
}

.record:hover {
    animation: rotate 5s linear infinite;
}

.audio-cover-img {
    display: none;
}

.audio-cover-disc {
    border-radius: 50%;
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    filter: brightness(80%);
}

.poster-img-audio {
    position: absolute;
    display: inline-block;
    margin-left: 5px;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: silver;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-dot {
    width: 5px;
    height: 5px;
    background-color: #edeef0;
    border-radius: 50%;
}

.info-audio-content {
    line-height: 150px;
}

.anons-cat-audio a {
    bottom: 0;
    color: #093540;
    font-size: 13px;
    position: absolute;
    text-align: right;
    right: 0;
    padding: 10px;
}

.excerpt {
    font-size: 12px;
    color: #093540;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    margin: -10px 0 0;
}

/* Related Posts */
.related-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.related-posts-audio {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.maa {
    height: auto;
}

.maa > p, .maa-txt > p {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    max-height: 70px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 5px 0 0;
}

.maa a {
    color: #025ACE;
    font-weight: 600;
    font-size: 14px;
}

.related-img {
    float: left;
    padding-right: 10px;
}

.related-title {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 21px;
    max-height: 88px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.anons-knig {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    max-height: 88px;
    margin: 0;
    padding: 5px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.related-audio {
    float: left;
    padding-right: 10px;
    width: 100px;
    height: auto;
}

.related-posts-audio p {
    font-size: 14px;
}

/* Comments */
.coment {
    background-color: #eff9ff;
    color: #214852;
    padding: 8px;
    width: 70%;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #488eff;
    margin-top: 30px;
    font-size: 16px;
}

#close-comments {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#close-comments:hover {
    color: #000;
}

#comments-content {
    padding: 20px;
}

#comments-sidebar {
    position: fixed;
    top: 0;
    right: -30%;
    width: 30%;
    height: 100%;
    background-color: #f8f8f8;
    box-shadow: -2px 0 5px rgba(0,0,0,0.20);
    transition: right .3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}

#comments-sidebar.open {
    right: 0;
}

.comment-reply-title {
    display: none;
}

.commentlist, .comment, .comment-list {
    list-style-type: none;
    padding: 0;
}

.reply {
    text-align: right;
}

.avatar {
    float: left;
    margin-right: 10px;
}

.comment-body > p {
    border: 1px solid #557e79;
    border-radius: 12px;
    background: #f6f7f8;
    margin: 10px 0 5px 0;
    padding: 15px;
}

.comment-meta {
    text-align: right;
    font-size: 12px;
    margin-top: -30px;
}

.comment-author {
    margin: 30px 0 10px;
}

.comment-awaiting-moderation, .comment-body > #text {
    display: block;
    border: 1px solid #557e79;
    border-radius: 12px;
    background: #fd000026;
    margin: 10px 0 16px 43px;
    padding: 15px;
}

/* 404 Page */
.error-404 {
    text-align: center;
}

.page-title {
    font-size: 50px;
}

.erocsh {
    margin: 40px auto 0;
    display: block;
    background-color: rgb(202,207,154);
    width: 250px;
    padding: 10px;
    color: #4d3b3b;
}

.book-texts {
    animation: typing 4s steps(30, end) 1s 1 normal forwards;
}

/* News Styles */
.news-cat {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.cat-news {
    height: 200px;
}

.cat-news > p {
    margin: 10px 0;
    font-size: 13px;
}

.news-cover {
    width: 114px;
    height: auto;
    float: left;
    padding-right: 15px;
}

.news-title {
    font-size: 18px;
}

.content-news {
    max-width: 800px;
    margin: 0 auto;
}

.hr-three-color {
    margin: 20px 0;
    padding: 0;
    height: 2px;
    border: none;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #000;
    background: orange;
}

/* Search Styles */
.cont-radio {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
}

.search-content {margin-top: 20px;padding: 20px 0;}

.search-loop {
    display: inline-grid;
    width: 175px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.search-cover {
    width: 100%;
    height: 258px;
    object-fit: cover;
}

.cat-links a {
    font-size: 14px;
    text-align: right;
    color: #4d3b3b;
    display: block;
}

/* Audio Content */
.content-audio {
    display: flex;
    border: 4px double #b9b9b9;
    background: #E7E7E7;
    height: 450px;
    padding: 1em;
    line-height: 1.4;
}

.article-norm-audi {
    width: 48%;
}

.post-img-audio {
    float: left;
    margin: 10px 18px 10px 0;
}

.book-cover-audio {
    width: 190px;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid gray;
}

.column-separator-audio {
    border: 4px double #b5b5b5;
    margin: -18px 1.5%;
}

.sboku-audi {
    width: 48%;
}

/* Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: -70px 40px 70px;
    padding: 10px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    z-index: 1;
    position: relative;
}

.nav-previous, .nav-next {
    flex: 1;max-width: 525px;
  overflow: hidden;
  text-overflow: ellipsis;max-height: 22px;display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a, .nav-next a {
    text-decoration: none;
    color: #0073aa;
}

.nav-previous a:hover, .nav-next a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    margin: 20px 0;
    font-family: "Roboto", sans-serif;
    color: #5c6066;
    background-color: transparent;
    padding: 0;
}

.breadcrumbs a {
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    color: #5c6066;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-current {
    padding-left: 10px;
}

/* Advertisements */
.reklama-pka {height: 250px;position: relative;}
.reklama-pka::after {content: "Загрузка рекламы...";position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);color: #999;font-size: 14px;z-index: -999;}


.reklama-pk {
    margin: 20px 0;
    display: block;
    max-height: 200px;
}

.reklama-knigi {margin-top: 0px;margin-bottom: 0px;height: 600px;overflow: hidden;}

/* Icons */
.fa-heart::before {
    content: "\f004";
}

.zvuk {
    display: block;
    border: 1px solid gray;
    border-radius: 28px;
    max-height: 35px;
}

/* Miscellaneous */
.single-post {
    background-color: #5c6066;
}

.katala-book {
    margin-top: 20px;
}

.article-full {
    padding-top: 20px;
}

.breadcrumbs {
    display: block;
    line-height: 1.5;
    margin: 0 5px 25px 5px;
}

.cat-nav-men {margin-bottom: 33px;background-color: #d3d4d6; color: #3a3c40; padding: 0px 15px;}
.cat-nav-men h1 {padding: 5px;font-size: 22px;}

#elkniga {
    padding-top: 10px;
    padding-bottom: 10px;
}

.navigation {
    text-align: center;
}

.single-cena {
    display: flex;
}

.metatext {
    margin-top: -6px;
}

.buy-title {
    font-weight: 700;
}

.prlstores-type-shop {
    font-size: 13px;
    width: 170px;
    display: block;
    margin: auto;
}

.store { display: flex; margin: 8px 25px 8px 0;width: 250px; }
.prlstores-type-icon {
    width: 15px;
    height: 15px;
    min-width: 16px;
    border-radius: 4px;
    margin: auto 15px auto 0;
}

.prlstores-type-price {
    font: 300 14px/22px "Source Sans Pro", sans-serif;
    margin: 0 11px 0 20px;
    position: relative;
    width: 50px;
    text-align: right;
}

.prlstores-type-cuper {
    color: #FFF;
    margin-left: 10px;
    font-weight: 600;
    font-size: 12px;
    background: linear-gradient(to bottom right, #EF4765, #FF9A5A);
    border: 0;
    border-radius: 5px;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.8;
    outline: transparent;
    padding: 0 1rem;
}

.prlstores-type-cuper:hover {
    box-shadow: 0 0 .25rem rgba(0,0,0,0.5), -.125rem -.125rem 1rem rgba(239,71,101,0.5), .125rem .125rem 1rem rgba(255,154,90,0.5);
}

.header-gl {
    position: relative;
    margin-bottom: 2rem;
}

.header-gl p {
    font-size: 1.6rem;
    margin-bottom: 0;
    padding-left: 3.75rem;
    margin-top: 60px;
    color: white;
}

.header-gl p::after {
    content: "";
    position: absolute;
    left: 0;
    top: 2.3rem;
    width: 40%;
    height: .25rem;
    background-color: #cacf9a;
}

.header-gl p::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: 2.25rem;
    height: 2.25rem;
    background-color: #cacf9a;
}

.tiki {
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.9);
    border: 1px solid #cacf9a;
    margin-top: 20px;
    padding: 15px;
}

.popular-post {
    position: relative;
}

.popular-title {
    padding: 0 0 8px;
    display: block;
    color: #20399D;
    line-height: 22px;
    font-weight: 600;
}

.popular-text {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    max-height: 70px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 5px 0 0;
}

.popular-text > p {
    margin: 5px auto;
}

.popular-avtor {
    margin: 1px 0 6px;
    display: block;
    font-size: 13px;
}

.link-img {
    padding-right: 15px;
    float: left;
}

.popular-img {
    height: 140px;
    width: auto;
    border-color: #9e8c85;
    border-style: solid;
    border-width: 1px 1px 1px 6px;
}

.home-news-img {
    float: left;
    padding-right: 10px;
    height: 140px;
    width: auto;
}

.sale {
    position: absolute;
    z-index: 1;
    padding: 5px 10px;
    background-color: #feefb3;
    font-size: 14px;
}

.sales {
    padding: 10px;
    background-color: #feefb3;
    font-size: 14px;
    display: block;
}

.cat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cat-loop {
    margin-bottom: 36px;
}

.cat-loop > p {
    font-size: 14px;
    margin: 10px 0;
}

.new-badge {
    background: #5c6066;
    color: #fff;
    padding: 3px 14px;
    border-radius: 0 15px 0 0;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    left: 0;
    margin-top: -24px;
    display: block;
    width: 60px;
}

.post-container {
    line-height: 175px;
}

.info-post-container {
    line-height: normal;
    display: inline-block;
    vertical-align: middle;
    width: 64%;
    font-size: 14px;
    line-height: 1.5;
}

.cat-img-link {
    width: 128px;
    height: auto;
    display: block;
    float: left;
    padding-right: 15px;
}

.post-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.info-cat-post p {
    margin: 10px 0;
    display: block;
    color: #273852;
    font-size: 13px;
}

.info-cat-post:hover {
    color: #273852;
}

.book-icons {display: grid;grid-template-columns: 1fr 1fr;gap: 10px;padding-top: 5px;padding: 5px 10px;background-color: #e3e4e1;margin-top: 0px;color: #534242;}

.meta-item {
    display: flex;
    font-size: 12px;
}

.cat-libs {width: 15px !important;height: 15px !important;margin-right: 8px;}

.post-views {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cat-libs-views {
    width: 15px !important;
    margin-left: 5px;
}

.views-count {
    font-size: 12px;
    color: #273852;
    display: flex;
    align-items: center;
}

.cat-views {
    color: #273852;
    font-size: 12px;
    margin-left: 3px;
}



.cat-views-hit {
    position: relative;
    cursor: pointer;
    color: #ff6347;
    transition: all 0.3s;
}

.cat-views-hit:hover {
    transform: scale(1.1);
    color: #f00;
}

.tooltip-text {
    display: none;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(235, 50, 70);
    color: #fff;
    padding: 5px 10px;
    white-space: nowrap;
    border-radius: 3px;
}

.cat-views-hit:hover .tooltip-text {
    display: block;
}

.rubrica {font-size: 16px;padding: 5px;margin-bottom: -65px;background-color: rgb(235, 50, 70, 0.8);position: absolute;}



.cat-views-hit {
    color: green;
    font-weight: bold;
    font-size: 12px;
    margin-left: 3px;
}

.cat-title a {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    max-height: 85px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 7px 0 5px 0;
    color: #273852;
    font-weight: bold;
    display: block;
}

.cat-audio-avrt {
    font-size: 14px;
    padding-bottom: 2px;
    display: block;
    margin: 0;
    color: #5c6066;
}

.cat-title, .hot a {
    color: #273852;
}

.cat-mobi-avrt {
    display: none;
}

.badge-post {
    background: #306396;
    color: #fff;
    padding: 5px 20px 5px;
    font-size: 13px;
    margin-left: -130px;
    transform: rotate(360deg);
    float: right;
}

.soc-yan {
    position: absolute;
    bottom: 40px;
}

.news-popular {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-eror > p {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    max-height: 85px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 10px 0 0;
}

.news-eror {
    max-height: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    margin: 10px 0 5px;
}


/* Responsive Styles */
@media screen and (max-width: 460px) {
    .site-header {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
        height: auto;
    }
	.naviblock{position: relative;}
    .container-boock {
  width: auto;
  margin: 20px auto;
  background-color: transparent;
  padding: 0px;
}
.tab-buttons {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr 1fr;
}
    #site-identity {
        margin: 0 auto;
    }
    
    .logotip {margin: 10px 0 0; width: 100%;}
    
    .menu-mobile {
        display: block;
        margin: 5px auto 10px;
    }
    
    .menu-desktop {
        display: none;
    }
    
    #searchform {
        margin: 0 auto;
    }
    
    .searchform {
        margin: 0 auto;
        padding: 5px;
    }
    
    .search input[type=text] {
        width: 220px;
        border-radius: 20px;
        box-shadow: 0;
        margin-left: 18px;
        border: 1px solid gray;
        padding: 4px;
    }
    
    #search {
        border-radius: 5px 20px 20px 5px;
    }
    
    .reklama-mobi {
        margin: 20px 10px 5px;
        max-height: 200px;
        display: block;
    }
    
    .reklama-pk {
        display: none;
    }
    
    .container {
        padding: 10px;
        width: auto;
    }
    
    .new-knigi {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .tiki {
        padding: 10px;
    }
    
    .block-boock {
        margin-bottom: 10px;
    }
    
    .header-gl p::after {
        width: 80%;
    }
    
    .new-boock {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 40px;
    }
    
    .cat-content {
        grid-template-columns: 1fr;
    }
    
    .post-container {
        line-height: 190px;
    }
    
    .cat-img-link {
        width: 120px;
        padding-right: 15px;
    }
    
    .info-post-container {
        width: 60%;
    }
    
    .menu-roster-container > .menu {
        display: inline-grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .menu-roster-container > .menu > li a {
        margin: 0 10px 15px;
        display: block;
    }
    
    #menu-menu-audio {
        display: inline-grid;
        grid-template-columns: 1fr 1fr;
    }
    
    #menu-menu-audio > li a {
        margin: 0 10px 15px;
        display: block;
    }
    
    .content-norm-width {
        display: block;
        height: 100%;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
    }
    
    .article-norm {
        width: auto;
        padding: 20px 20px 0;
        border-left: 0;
        position: relative;
    }
    
    .post-img {
        float: none;
        margin: 0 auto;
        text-align: center;
    }
    
    .book-cover {
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .info-books-text {
        width: auto;
    }
    
    .column-separator {
        display: none;
    }
    
    .sboku {
        width: auto;
        padding: 0 20px 20px;
        border-right: 0;
    }
    
    .related-posts {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        display: block;
        margin: auto;
        background: wheat;
    }
    
    .nav-previous {
        padding: 10px 0;
    }
    
    .cat-content-audio {
        grid-template-columns: 1fr;
    }
    
    .audio-loop {
        margin-bottom: 0;
    }
    
    .audio-cover-disc {
        border-radius: 0;
        width: 80%;
        filter: brightness(100%);
        object-fit: cover;
    }
    
    .oblozka {
        width: 50%;
    }
    
    .content-audio {
        flex-flow: column-reverse;
        height: 100%;
        border: 0;
        padding: 10px;
        background: rgb(245,243,245);
    }
    
    .article-norm-audi {
        width: auto;
    }
    
    .column-separator-audio {
        display: none;
    }
    
    .sboku-audi {
        width: auto;
        margin-bottom: 20px;
        min-height: 260px;
    }
    
    .related-posts-audio {
        grid-template-columns: 1fr;
    }
    
    .post-img-audio {
        float: none;
    }
    
    .book-cover-audio {
        width: auto;
        margin: 0 auto;
    }
    
    .cont-radio {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .akcia-block {
        flex: 2 auto;
    }
    
    .foot-text {
        width: auto;
        margin: 0 auto;
        padding: 10px 10px 30px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #comments-sidebar {
        width: 90%;
        right: -90%;
    }
    
    .news-popular {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .catalog-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {margin: 0;}
    
    .book_botton {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .sboku {
        width: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
	.text-container.has-overflow::after {display: none;}
	.text-container.has-overflow::before {display: none;}
	.text-container {height: 100% !important;}
}