@media screen and (max-width: 1235px) {

    .order-section-2 .container {
        justify-content: center;
        align-items: center;
        margin-top: 53px;
    }

    .order-section-2 .order-section-left {
        width: 100%;
        margin-bottom: 50px;
    }

    .block-school {
        margin-top: 0;
    }

}

@media screen and (max-width: 1024px) {

    .main-title {
        justify-content: space-between;
        width: 100%;
        top: 115px;
    }

    .contentH1block {
        align-items: center;
        padding-left: 0;
        width: 100%;
    }

    .main-title-svg {
        display: none;
    }

    #clearBasket {
        margin-right: 0;
    }

    .summary_block {
        margin-left: 10px;
    }

    .summary {
        max-width: 260px;
        padding: 39px 10px 27px 10px;
    }

    /************************/
    .block-region:first-child {
        width: 360px;
        margin-left: 25px;
    }

    /************************/
    .item-details-block {
        grid-template-columns: 1fr;
    }

    .item-details-block p:first-child {
        font-style: oblique;
        text-decoration: underline;
    }

    video {
        padding: 0;
    }

    .item-summary_block {
        border: 1px #707070 solid;
        margin: 20px auto;
    }

    .book-item-value {
        margin-top: 0;
        margin-bottom: 10px;
    }

    /************************/
    .footer .container {
        grid-template-columns: 130px 1fr;
        grid-row-gap: 20px;
    }

    .footer-block-3 {
        grid-column: span 2; /* Элемент растягивается на 2 столбца */
        grid-row: 2;
        margin-right: 0;
    }

    .footer-block-3 p {
        margin-left: 0;
    }

    .footer-block-4 {
        grid-column: span 2; /* Элемент растягивается на 2 столбца */
        grid-row: 3;
    }

    .footer-block-4 p {
        text-align: center;
    }

    /************************/
    .block-region-all {
        flex-direction: column;
    }

    .contactSection-img {
        margin-right: 20px;
    }

    .contactBlock-right span br {
        display: none;
    }

    .block-region {
        margin-left: 23px;
    }

    .block-karta {
        max-width: 80%;
        margin: 0 auto 15px;
    }
}


@media screen and (max-width: 975px) {

    .main .container {
        flex-wrap: wrap;
        min-height: auto;
    }

    .summary_block {
        width: 100%;
        max-width: 100%;
    }

    .summary {
        position: relative;
        max-width: 50%;
        margin: 0 auto;
        border: 2px grey solid;
    }

    .abg-wr-6 {
        display: none;
    }

    /****************************/
    .block-region-all {
        flex-direction: row;
    }

    .contactBlock-right {
        max-width: 100%;
        text-align: center;
    }

}

@media screen and (max-width: 768px) {

    #wrappercart {
        display: none;
    }

    .container-first {
        grid-template-columns: 90px 1fr;
    }

    .container-second {
        grid-template-columns: 132px 132px 1fr 1fr;
    }

    .menu li:nth-child(2) {
        margin-right: 0;
    }

    .header-search-input {
        margin: 0;
    }

    .category-wrapper:has(.main-item-block) {
        justify-content: center;
    }

    .navigation_block.block_wide {
        min-width: 100vw;
    }

    .navigation {
        position: relative;
    }

    .reklama-item, .action-item {
        width: 330px;
    }

    /*    **********   */
    .contactSection-img {
        display: none;
    }

    .block-region:first-child, .block-region {
        width: 48%;
        margin-left: 0;
    }

    .contactBlock-right {
        text-align: left;
        margin-bottom: 0;
        margin-top: 15px;
    }

    .block-region-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

    .block-region-all {
        margin-top: 20px;
    }

    .block-menadger-main {
        width: 308px;
    }

    .block-adress p:nth-child(2n+3) {
        margin-top: 15px;
    }

    /**********************/
    .detail-section-1 .detailBlock {
        margin: 38px 0;
    }

    .detailBlock img {
        max-width: 90%;
        margin-left: 10px;
        margin-right: 10px;
    }

}

@media screen and (max-width: 670px) {

    .navigation_block:not(.displaynone) + .content:has(.category-banner) {
        display: none;
    }

    .wrapper-navigation {
        flex-direction: column-reverse;
    }

    #block_categorylist {
        margin: 0;
    }

    #addparameters:not(.rotateSVGleft) svg {
        rotate: -90deg;
    }

    #addparameters.rotateSVGleft svg {
        rotate: 90deg;
    }

    #addparameters.rotateSVGleft span {
        display: none;
    }

    /*********************/


    .main-item-block {
        min-width: 154px;
        max-width: 30%;
        min-height: 340px;
        padding: 5px;
        zoom: 100%;
    }

    .reklama-item, .action-item {
        max-width: 45%;
    }

    .token-hit {
        font-size: 9px;
    }

    .main-item-block .book-item-img {
        margin: 0 auto 5px;
        max-width: 90%;
        height: 100px;
    }

    .main-item-block .book-item-note {
        font-size: 12px;
        top: 115px;
        left: 1px;
        width: 100%;
    }

    .book-item-img:hover {
        transform: scale(1.2);
    }

    .main-item-block .book-item-img:hover + .book-item-note {
        height: auto;
        max-height: 230px;
    }

    .bookItemTitle_blockAll {
        flex-wrap: wrap;
        justify-content: left;
    }

    .book-item-author {
        width: 100%;
        height: 26px;
    }

    .bookItemTitle_blockAll .book-item-mission {
        text-align: left;
        height: auto;
    }

    .main-item-block .book-item-sklad {
        font-size: 10px;
    }

    .book-item-author, .book-item-mission {
        font-size: 10px;
    }

    .book-item-name {
        font-size: 11px;
    }

    .main-item-block .book-item-choise:has(.book-item-price1) {
        flex-direction: column-reverse;
        height: 32px;
    }

    .main-item-block .book-item-price1 {
        width: 100%;
        font-size: 14px;
        padding: 0;
    }

    .book-item-price2 {
        font-size: 12px;
    }

    .main-item-block .book-item-price2::after {
        content: '%';
        width: 13px;
        height: 13px;
        line-height: 13px;
        top: -2px;
        right: 0;
    }

    .main-item-block .book-item-choise-2 {
        padding: 0;
    }

    .main-item-block .book-item-count {
        width: 100%;
        height: 16px;
    }

    .main-item-block .book-item-count div {
        padding-top: 0;
        line-height: 16px;
        text-align: center;
    }

    .summary {
        max-width: 80%;
    }

    .block-feedback {
        max-width: 100%;
    }

    .block-feedback p:not(:has(span)) {
        text-align: left;
    }

    /*******************************/
    #item-contentH2 {
        font-size: 20px;
        text-align: center;
    }

    #item-mainblock {
        flex-direction: column;
    }

    .wrapper-item-sliders {
        width: 100%;
    }

    .item-details {
        width: 100%;
        margin-top: 28px;
    }

    .item-details-block {
        grid-template-columns: 230px 1fr;
    }

    /*******************************/
    .order__form {
        margin-right: 0;
    }

    .block-region {
        margin-left: 0;
    }

    .block-menadger-main {
        width: 340px;
    }

    .order-wrapper select, .order-wrapper input {
        max-width: 95%;
    }

    .order-books-item {
        grid-template-columns: 1fr 1fr;
    }

    .order-books-item p:nth-child(3) {
        grid-column: span 2; /* Элемент растягивается на 2 столбца */
        grid-row: 2;
        text-align: center;
    }

    .order-books-item:not(.order-books-title) p:nth-child(3) {
        margin: 10px 0;
    }

    /***********************************/
    .contact-section-1 h1 {
        text-align: center;
    }

    .section-contact {
        flex-direction: column;
    }

    .contactSection-img {
        display: block;
        width: 100%;
        height: 200px;
        margin-right: 0;
    }

    .contactBlock-right {
        max-width: 100%;
        margin-top: 0;
    }

    .contactBlock-right p {
        text-align: center;
    }

    .block-menadger-main {
        width: 100vw;
        max-width: 95%;
    }

    .section-officers .block-menadger {
        margin: 0;
    }

    .block-region:first-child, .block-region {
        width: 100%;
    }

    .block-region select {
        max-width: 95%;
    }

    .officer-img {
        margin-right: 10px;
    }

    /*********************/
    .deliveryBlock {
        flex-direction: column;
    }

    .deliveryPaying-left {
        grid-template-columns: 1fr;
        line-height: 26px;
    }

}

@media screen and (max-width: 425px) {

    .logotext, .header-search-input{
        display: none;
    }

    .menu li:nth-child(2) {
        margin: 0 5px;
    }

    .logo {
        text-align: center;
    }

    h1 {
        font-size: 24px;
    }

    .header .container-first {
        grid-template-columns: 1fr;
        justify-content: center;
        padding-bottom: 0;
    }

    .header .container-second {
        grid-template-columns: 50px 40px 1fr;
    }

    .header .container-second .header_button {
        width: 40px;
        height: 32px;
        padding: 0;
    }

    .header .container-second .header_button p {
        display: none;
    }

    .button_action_image img {
        display: none;
    }

    #favorite::after {
        top: -10px;
        right: 3px;
    }

    #favorite span, #entrance span {
        display: none;
    }

    .button_action svg {
        display: block;
    }


    /************************/

    .main-reklama {
        justify-content: center;
    }

    .main-reklama:has(.reklama-item) {
        margin-left: 0;
     }

    .reklama-item, .action-item {
        max-width: 85vw;
    }

    .category-wrapper:has(.main-item-block) {
        gap: 9px 5px;
    }

    .main-item-block {
        min-width: 49%;
        max-width: 49%;
        box-shadow: none;
    }

    /************************/
    .wrapperTitle h2 {
        max-width: 80%;
        font-size: 18px;
        margin-top: 10px;
    }

    .block-menadger-main {
        width: 85%;
    }

    .block-menadger-main:has(div.displaynone) {
        display: none;
    }

    .block-region-all:has(div.displaynone) {
        margin-bottom: 18px;
    }

    .section-officers .block-menadger:nth-child(2) {
        margin-top: 20px;
    }

    .textOfficer {
        font-size: 14px;
    }

    /********************/
    .detail-section-1 .detailBlock {
        margin-top: 10px;
    }

    .detailBlock-img {
        text-align: center;
    }

    .detailBlock img {
        float: none;
    }

}

@media screen and (max-width: 375px) {

    .footer .container {
        grid-template-columns: 1fr 1fr;
    }

    /*******************************/
    .item-details-block {
        grid-template-columns: 1fr;
    }

    /*******************************/
    .order-wrapper {
        display: block;
    }

    .order-section-2 .order-section-right {
        max-width: 100%;
    }

    .officer-img10 {
        display: none;
    }

    .block-karta, .block-adress {
        max-width: 90%;
        margin-left: 10px;
    }
}