.main .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
}

.navigation_block {
    display: flex;
    justify-content: normal;
    position: relative;
    max-width: 320px;
    min-width: 295px;
    margin-right: 18px;
    z-index: 100;
}

.navigation_block.block_wide {
    max-width: 100vw;
    min-width: 900px;
}

.navigation_block.displaynone {
    display: none;
}

.navigation {
    position: fixed;
    background: #fff;
    padding: 0 5px 0 22px;
    box-shadow: 0 2px 8px 0 rgba(14, 12, 12, 0.15);
}

.navigation_block.block_wide .navigation {
    border-radius: 6px;
    box-shadow: 6px 6px 8px 0 #bebebe;
}

.navigation p {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    text-align: left;
    color: #000;
}

.navigation span {
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    text-align: left;
    color: #000;
}

.navigation .text_addparameters {
    text-decoration: none;
    color: #2f2f2f;
}

.navigation:has(li img:first-child.displaynone) .text_addparameters {
    text-decoration: underline;
    color: red;
}

.navigation-groupTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.navigation-groupTitle span, #addparameters span {
    position: absolute;
    font-size: 14px;
    color: #9E9E9E;
    background-color: #D9D9D9;
    border-radius: 5px;
    padding: 5px 10px;
    right: 20px;
    cursor: pointer;
}

#addparameters {
    display: flex;
    justify-content: normal;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
}

#addparameters div {
    position: absolute;
    top: -10px;
    right: 10px;
}

#addparameters svg {
    margin-left: 10px;
    rotate: 180deg;
    transition: 0.2s;
}

#addparameters span {
    display: none;
    color: #9E9E9E;
}

#addparameters span:hover, .addparameters_button:hover {
    background-color: #adadad;
    color: #FFF;
}

#addparameters.rotateSVGleft svg {
    rotate: 0deg;
}

#addparameters.rotateSVGleft span {
    display: inline-block;
}

.wrapper-navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: normal;
    /*min-height: 60vh;*/
}

#block_categorylist {
    margin: 0 60px;
}

.wrapper-navigation ul {
    min-height: calc(100% - 20px);
    min-width: 268px;
    overflow-y: auto;
    list-style: none;
    padding-bottom: 20px;
}

.navigation-item, .category-item {
    display: flex;
    justify-content: left;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
    border-radius: 4px;
    cursor: pointer;
}

.navigation-item.displaynone {
    display: none;
}

.navigation-item span {
    line-height: 22px;
}

#categorylist, #tipbookslist {
    max-width: 280px;
}

.block-flex {
    display: flex;
}

li.active, li.active:hover {
    background: #D9D9D9;
}

li:hover {
    background: #f1f0f0;
}

/*li.active span {*/
/*    color: #FFFFFF;*/
/*}*/

li img {
    height: 22px;
    width: 22px;
    margin-right: 5px;
}

#groopslist li {
    padding-left: 6px;
}


/* *********************************** */

.main h1 {
    margin-bottom: 16px;
}

.main h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

#mainblock {
    position: relative;
    background-color: white;
    /*scroll-behavior: smooth;*/
    text-align: right;
}

.main-title {
    display: flex;
    justify-content: right;
    align-items: end;
    width: 100%;
    background-color: white;
    position: sticky;
    top: 134px;
    z-index: 10;
}

#mainblock:has(.main-reklama) .main-title {
    display: none;
}

.contentH1block {
    display: flex;
    justify-content: space-between;
    align-items: end;
    width: calc(100% - 65px);
    padding-left: 22px;
}

.contentH1block.displaynone {
    display: none;
}

.contentH1block h1 span {
    display: none;
}

.main-block:not(:has(.category-banner)) .contentH1block h1 span {
     display: inline;
 }

#clearBasket {
    font-weight: 400;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 6px;
    margin-right: 16px;
    cursor: pointer;
}

.main-block:not(:has(.category-banner)) #clearBasket {
    display: none;
}

.main-title-svg svg {
    margin: 5px;
    cursor: pointer;
}

.main-title-svg svg:hover rect {
    fill: #b0afaf;
}

.main-title-svg .svg-active rect {
    fill: #878787;
}

.category-banner {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    text-align: left;
    color: #000;
    padding: 10px 32px 7px 32px;
    border-bottom: 1px solid #029034;
    box-sizing: border-box;
    background-color: #02903426;
}

.category-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.category-wrapper:has(.main-item-block) {
    justify-content: left;
    gap: 9px 23px;
}

/* *********************************** */

.main-reklama {
    display: flex;
    justify-content: normal;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 25px;
    column-gap: 29px;
    margin-top: 20px;
}

.main-reklama:has(.reklama-item) {
    margin-left: 20px;
}

.reklama-item, .action-item {
    width: 407px;
    aspect-ratio: 407 / 308;
    position: relative;
    border: 1px #b2b2b2 solid;
    border-radius: 8px;
    /*margin: 33px 0 0 29px;*/
}

.reklama-item {
    cursor: pointer;
}

.reklama-one, .reklama-duo {
    width: 100%;
    height: 100%;
}

.reklama-one, .reklama-duo, .action-item {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
}

.reklama-one, .reklama-duo {
    position: absolute;
}

.reklama-duo {
    opacity: 0;
}

.reklama-duo:hover {
    opacity: 1;
    transition: 0.3s;
}

.reklama-item-new::before {
    content: "новинка";
    width: 74px;
    background-color: #FF0004;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 13px;
    text-align: center;
    color: white;
    padding-top: 4px;
    padding-bottom: 5px;
    border-radius: 4px;
    position: absolute;
    left: -25px;
    top: -2px;
    transform: rotate(-35grad);
}

/* *********************************** */

.main-item {
    display: grid;
    grid-template-columns: 20px 100px 1fr 155px 140px 120px;
    justify-content: left;
    border-bottom: 1px solid #029034;
    box-sizing: border-box;
    min-height: 140px;
    width: 100%;
}

/*номер п/п*/
.book-item-cell {
    text-align: left;
    font-size: 14px;
    line-height: 130px;
    color: #727272;
}

/*миниатюра*/
.book-item-img, .reklama-item {
    position: relative;
    background-color: #fafafa;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    transition: all 0.3s linear;
}

.book-item-img {
    margin-top: 10px;
    height: 120px;
    cursor: pointer;
    z-index: 1;
}

.book-item-img:hover {
    transform: scale(1.4);
    border-radius: 5px;
    border: 1px solid #029034;
    padding: 0;
    z-index: 4;
}

/*всплывающая подсказка*/
.book-item-note {
    opacity: 0;
    position: absolute;
    top: 10px;
    left: 20px;
    height: 85%;
    width: 80%;
    font-size: 14px;
    color: black;
    text-align: left;
    border: #727272 1px solid;
    border-radius: 5px;
    background-color: #f5efef;
    padding: 10px;
    overflow: hidden;
    z-index: 10;
}

.main-item .book-item-img:hover + .book-item-title > .book-item-note {
    opacity: 1;
    transition: 1s;
}

/*название книги*/
.book-item-title {
    padding: 5px 0 5px 10px;
    text-align: left;
    font-weight: 500;
    position: relative;
}

.bookItemTitle_blockAll {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
}

.book-item-author, .book-item-mission {
    text-align: left;
    font-size: 14px;
    color: #727272;
    padding-bottom: 5px;
}

.book-item-mission {
    max-width: 50%;
    text-align: right;
}

.book-item-name {
    font-family: 'Montserrat-Medium', sans-serif;
    text-align: left;
    font-weight: 500;
    font-size: 16px;
    color: black;
}

.book-item-year, .book-item-param {
    position: absolute;
    font-size: 14px;
    bottom: 8px;
    text-align: right;
}

.book-item-year {
    left: 10px;
    color: #727272;
}

.book-item-param {
    right: 0;
}

.tokenBlock {
    display: flex;
    flex-direction: row;
    justify-content: normal;
    align-items: center;
    margin: 3px 0 8px 0;
}

.token-hit {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #EF7C00;
    font-size: 13px;
    color: white;
    margin-right: 10px;
}

.token-none {
    height: 26px;
    background-color: white;
    margin-right: 10px;
}

/*  */

.book-item-choise {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    position: relative;
}

.book-item-text, .book-item-sklad {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #000;
    text-align: center;
}

.book-item-sklad {
    color: #029034;
}

.main-item-block .book-item-sklad {
    font-size: 12px;
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(2, 144, 52, 1);
    border: 1px solid rgb(206, 205, 205);
    border-radius: 2px;
    padding: 0 3px;
}

.book-item-price1 {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    line-height: 16px;
    color: #029034;
    text-align: center;
    margin-top: 50px;
}

.book-item-price2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 16px;
    color: black;
    text-align: center;
    text-decoration: line-through;
    position: relative;
}

.item-blockNumber .book-item-price2 {
    margin: 0 auto;
}

.book-item-price2::after {
    content: '%';
    width: 26px;
    height: 26px;
    line-height: 26px;
    background-color: #E3000F;
    color: white;
    border-radius: 50%;
    position: absolute;
    top: -40px;
    right: 0;
}

.item-blockNumber .book-item-price2::after {
    width: 30px;
    height: 30px;
    line-height: 30px;
    top: -15px;
}


.book-item-numeric {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: black;
    text-align: center;
}

.bookItemNumeric {
    width: 60px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
}

.bookItemNumeric:focus {
    outline: 2px solid #00ffcb;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
    background-color: #eee;
}

.book-item-numeric:nth-child(odd) {
    width: 15px;
    cursor: pointer;
}

.book-item-value {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-radius: 3px;
    border: 1px #D7D7D7 solid;
    padding: 10px;
    margin-top: 30%;
    /*box-shadow: -1px 2px 2px 8px rgba(0, 0, 0, 0.08);*/
    z-index: 5;
}

.book-item-value.action {
    margin-top: 15px;
}

.book-item-count {
    white-space: nowrap;
    position: relative;
    text-align: center;
}

.book-item-count div {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 139px;
    color: #1F1F1F;
    max-width: 100%;
}

.book-item-count img {
    position: absolute;
    bottom: 10px;
    left: calc(50% - 20px);
    cursor: pointer;
}

/* *********************************** */

.main-item-block {
    display: block;
    position: relative;
    width: 100%;
    max-width: 315px;
    min-height: 373px;
    border: 1px solid #E1E1E1;
    border-radius: 16px;
    box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    zoom: 75%;
}

.main-item-block .book-item-img {
    margin: 0 auto 9px;
    max-width: 72%;
    height: 180px;
}

.main-item-block .book-item-note {
    opacity: 0;
    position: absolute;
    top: 225px;
    left: 8px;
    height: 10px;
    width: calc(100% - 19px);
}

.main-item-block .book-item-img:hover + .book-item-note {
    opacity: 1;
    height: 150px;
    transition: 0.5s;
}

.main-item-block .book-item-author {
    padding-bottom: 0;
}

.main-item-block .book-item-mission {
    width: 50px;
    height: 35px;
    padding-bottom: 0;
}

.main-item-block .book-item-name {
    height: 72px;
    background-color: white;
}

.main-item-block .book-item-choise {
    flex-direction: row;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0px 26px 0px 5px;
}

.main-item-block .book-item-choise-2 {
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0px 15px;
}

.main-item-block .book-item-price1 {
    margin-top: 0;
}

.main-item-block .book-item-price2::after {
    top: -20px;
    right: -30px;
}

.main-item-block .book-item-value {
    margin-top: 10px;
}

.main-item-block .basket-img {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    z-index: 3;
}

.main-item-block .book-item-count {
    width: calc(100% - 130px);
}

.main-item-block .book-item-count div {
    padding-top: 10px;
    line-height: 45px;
    text-align: right;
}

.main-item-block .tokenBlock {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 7px;
    left: 15px;
    z-index: 2;
}

.main-item-block .token-hit {
    margin-right: 0;
    margin-bottom: 10px;
}

/*********************/

.summary_block {
    position: relative;
    margin-left: 30px;
    width: 25%;
    max-width: 360px;
    font-family: Montserrat-Bold, sans-serif;
    flex-shrink: 0;
    margin-top: 90px;
}

.summary_block div {
    font-size: 16px;
    text-align: center;
}

#summaryTitle {
    margin-top: -65px;
}

.summary {
    position: fixed;
    width: 360px;
    border: 1px #E1E1E1 solid;
    border-radius: 6px;
    padding: 39px 25px 27px 25px;
    background-color: white;
    z-index: 100;
}

#summaryTotal, #book-item-count {
    font-family: Montserrat-Bold, sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #029034;
}

#summaryTotal {
    margin-top: 44px;
}

.blockNumber {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.blockNumber p {
    margin-top: 23px;
}

.summary_block .header_button {
    max-width: 221px;
    margin: 36px auto 0;
}

/* *** анимация фона *******************************/

.abg-wr-2 {
    position: relative;
    height: 80vh;
    margin: 20px 0;
    overflow: hidden;
    /*background: url(photo.jpg);*/
    background-color: #fff;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.abg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    opacity: 0.3;
}

.abg-2 li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    animation: animationbg-2 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.abg-2 li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    background: #3e9cee;
}

.abg-2 li:nth-child(2) {
    left: 90%;
    animation-delay: 2s;
    animation-duration: 12s;
    background: #006bc8;
}

.abg-2 li:nth-child(3) {
    left: 70%;
    animation-delay: 4s;
    background: #0076dd;
}

.abg-2 li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
    background: #0081f1;
}

.abg-2 li:nth-child(5) {
    left: 65%;
    animation-delay: 0s;
    background: #67a1d5;
}

.abg-2 li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
    background: #078bff;
}

.abg-2 li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
    background: #1b95ff;
}

.abg-2 li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
    background: #2f9eff;
}

.abg-2 li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
    background: #44a8ff;
}

.abg-2 li:nth-child(10) {
    left: 15%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
    background: #58b1ff;
}

@keyframes animationbg-2 {
    0% {
        transform: translateY(80vh) rotate(0deg);
        opacity: 1;
    }
    45% {
        transform: translateY(-80vh) rotate(720deg);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}