@media (max-width: 1024px) {
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body {
            width: 100%;
        max-width: 100%;
        overflow-x: hidden;
            max-width: 1024px;
        }
    .img {
        width: 100%;
        min-width: 1024px;
    }
    .wrapper,
    .overlay {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .title {
        width: auto;
        font-size: 30px;
    }
    .section {
        height: auto;
    }
    
    /* бургер */
    .burger {
        display: block;
        margin-right: 20px;
        margin-top: 20px;
        width: 45px;
        height: 20px;
        cursor: pointer;
    }
    .burger span,
    .burger span:after,
    .burger span:before {
        width: 45px;
        height: 2px;
        position: absolute;
        background-color: rgb(255, 255, 255);
        display: block;
        transition: .3s;
        border-radius: 1px;
    }
    .burger span:before {
        content: '';
        top: -10px;
        transition: top 300ms 300ms, transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .burger span {
        top: 40px;
    }
    .burger span:after {
        content: '';
        bottom: -10px;
        transition: bottom 300ms 300ms, transform 300ms cubic-bezier(0.23, 1, 0.32, 1) ;
    }
    .burger span.active:before {
        content: '';
        top: 0;
        transform: rotate(45deg);
        transition: top 300ms, transform 300ms 300ms cubic-bezier(0.68, -0.55, 0, 1.55);
    }
    .burger span.active:after {
        content: '';
        bottom: 0;
        transform: rotate(-45deg);
        transition: top 300ms, transform 300ms 300ms cubic-bezier(0.68, -0.55, 0, 1.55);
    }
    .burger span.active {
        background: rgba(255, 255, 255, 0);
    }
    .nav__list {
        position: absolute;
        top: 90px;
        right: -320px;
        margin: 0;
        padding: 0;
        list-style-type: none;
        background-color: #0C0C0E;
        padding-bottom: 100px;
        width: 320px;
        height: 375px;
        flex-direction: column;
        animation-duration: 2s;
        gap: 30px;
    }
    
    .nav {
        display: none;
        width: 300px;
        height: auto;
        background: #0C0C0E;
        margin: 0;
        padding: 0;
        position: fixed;
        flex-direction: column;
        z-index: 2;
        right: 310px;
        transition: top 500ms cubic-bezier(0.68, 0.55, 0.27, 1.55);
        animation: move 1s;
    }
    @keyframes move {
        0% {
            margin-right: -500px;
        }
        100% {
            margin-left: 0;
        }
    }
    .close {
        visibility: hidden;
        transform: translateX(100px);
    
    }
    .nav.active {
        display: block;
        transform: translateX(0);
        transition: visibility .2s, opacity .2s, transform 2s;
    }
    .animate {
        right: -700px;
        transition: margin-right 4s;
    }
    .nav__item {
        width: 118px;
        justify-content: center;
        text-align: center;
    }
    .header-icon {
        margin-left: auto;
        padding-right: 40px;
    }
    .new_logo {
       margin-right: 40px;
        margin-left: auto;
        
    }
    .dropMenu-no-auth,
    .dropMenu-with-auth {
        position: absolute;
        top: 70px;
        right: 100px;
    }

    /* about */
    .about__section {
        display: none;    
    }
    .about__section-1 {
        display: block;
    }
    .carousel-container {
        background-color: #FFF;
    }
    .about__container {
        margin-left: 6px;
    }
    .about__photo {
        width: 520px;
    }
    .about__photo img {
        width: 450px;
        padding-right: 45px;
    }
    .about__circle {
        margin-top: 15px;
    }
    .about__item-second {
        display: none;
    }
    .about-wrapper {
        width: 100%;
        margin: auto;
    }
    .mySlides {
        width: 505px;
        transition: 2s;
        padding-right: 45px;
    }
    .about__list {
        width: 100%;
        overflow: hidden;
        margin: auto;
        position: relative;
    }
    .about__item-second,
    .about__item-third,
    .about__item-fourth,
    .about__item-fifth {
        display: none;
    }
    .visibility {
        display: block;
    }
    img {
        width: 100%;
    }
    .img1-1 {
        display: block;
      }
    .carret_left {
        display: block;
        width: 24px;
        height: 24px;
        position: absolute;
        left: 43px;
        top: 1200px;
        border: none;
        cursor: pointer;
    }
    .carret_right {
        display: block;
        width: 24px;
        height: 24px;
        position: absolute;
        right: 35px;
        top: 1200px;
        border: none;
        cursor: pointer;
    }
    .dot {
        cursor: pointer;
        display: inline-block;
        transition: 0.6s ease;
    }
    .dot-4,
    .dot-5 {
        visibility: visible;
    }
    .active {
    background-color: #BB945F;
    }
    .about__item {
        margin: auto;
        padding: 0 20px 0 30px;
        min-width: 70%;
    }
    .card {
        display: block;
        flex-direction: column;
    }
    .wrapper-cards {
        width: 550px;
        margin: auto;
        display: block;
        flex-direction: column;
    }
    .wrapper-cards-1 {
        width: 550px;
        margin: auto;
        display: block;
        flex-direction: column;
    }

    /* favorites */
    .favorites-2,
    .favorites-3,
    .favorites-4 {
        display: none;
    }
    .card-content {
        width: 100%;
        margin: auto;
        margin-top: 40px;
    }
    .favorites {
        padding-bottom: 40px;
        position: relative;
    }
    
    .radio {
        width: 100%;
    }
    .radio-input {
        width: 25%;
        margin-right: auto;
    }
    
    .coffee__wrapper {
        display: block;
        flex-direction: column;
    }
    .div {
        margin: 0;
        margin-bottom: 40px;
        margin-right: 0;
    }
    .block-second {
        margin: 0;
        margin-right: 20px;
        margin-left: auto;
    }
    .contacts-wrapper {
        display: block;
        flex-direction: column;
    }
    .contacts__right {
        width: 90%;
        margin: auto;
        margin-top: 100px;
    }
    .library__wrapper {
        display: block;
        flex-direction: column;
        padding-bottom: 40px;
    }
    .contacts-display {
        margin-bottom: 0;
    }
    .form {
        margin: auto;
        padding-bottom: 20px;
    }
    .registration {
        height: auto;
        margin-top: 30px;
        margin: auto;
        text-align: center;
    }
    .registration-title {
        text-align: center;
    }
    .registration-text {
        text-align: center;
    }
    .form-button {
        margin: auto;
        justify-content: last baseline;
    }
    .registration-button {
        margin-left: 0;
    }
    .registration-button-first {
        margin-right: 30px;
    }
    .circle-wrapper-last {
        display: block;
    }
    .footer {
        padding-bottom: 44px;
    }
    .footer__wrapper-bottom {
        margin-right: 20px;
    }
    .footer__wrapptr-left  {
        width: 229px;
    }
    .footer-bottom-text-right {
        margin-right: 20px;
    }
    .radio-input {
        width: 185px;
    }
    .radio-input-last {
        margin-right: 0;
    }
    .library__wrapper__new {
        display: none;
      }
    }
    
    
    
    
    @media (max-width: 768px) {
    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        max-width: 768px;
    }
    .wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        /* width: 100%; */
        /* max-width: 768px;
        margin-left: 0 auto;
        overflow: hidden; */
    }
    .welcome {
        width: 100%;
    }
    .welcome__wrapper {
        padding-bottom: 40px;
    }
    .welcome__title {
        text-align: center;
    }
    .img {
        width: 100%;
    }
    .burger {
        display: block;
        margin-right: 20px;
        margin-top: 20px;
        width: 45px;
        height: 20px;
        cursor: pointer;
    }
    .burger span,
    .burger span:after,
    .burger span:before {
        width: 45px;
        height: 2px;
        position: absolute;
        background-color: rgb(255, 255, 255);
        display: block;
        transition: .3s;
        border-radius: 1px;
    }
    .burger span:before {
        content: '';
        top: -10px;
        transition: top 300ms 300ms, transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .burger span {
        top: 40px;
    }
    .burger span:after {
        content: '';
        bottom: -10px;
        transition: bottom 300ms 300ms, transform 300ms cubic-bezier(0.23, 1, 0.32, 1) ;
    }
    .burger span.active:before {
        content: '';
        top: 0;
        transform: rotate(45deg);
        transition: top 300ms, transform 300ms 300ms cubic-bezier(0.68, -0.55, 0, 1.55);
    }
    .burger span.active:after {
        content: '';
        bottom: 0;
        transform: rotate(-45deg);
        transition: top 300ms, transform 300ms 300ms cubic-bezier(0.68, -0.55, 0, 1.55);
    }
    .burger span.active {
        background: rgba(255, 255, 255, 0);
    }
    .nav__list {
        position: absolute;
        top: 90px;
        right: -320px;
        margin: 0;
        padding: 0;
        list-style-type: none;
        background-color: #0C0C0E;
        padding-bottom: 100px;
        width: 320px;
        height: 375px;
        flex-direction: column;
        animation-duration: 2s;
        gap: 30px;
    }
    .nav {
        display: none;
        width: 300px;
        height: auto;
        background: #0C0C0E;
        margin: 0;
        padding: 0;
        position: fixed;
        flex-direction: column;
        z-index: 2;
        right: 310px;
        transition: top 500ms cubic-bezier(0.68, 0.55, 0.27, 1.55);
        animation: move 1s;
    }
    @keyframes move {
        0% {
            margin-right: -500px;
        }
        100% {
            margin-left: 0px;
        }
    }
    .nav.active {
        display: block;
        transform: translateX(0);
        transition: visibility .2s, opacity .2s, transform 2s;
    }
    .nav.animate {
        right: -700px;
        transition: margin-right 4s;
    }
    .nav__item {
        width: 118px;
        justify-content: center;
        text-align: center;
    }
    .header-icon {
        margin-left: auto;
        padding-right: 40px;
    }
    .new_logo {
        margin-right: 40px;
         margin-left: auto;
         
     }
    .overlay {
        width: 100%;
        height: 300px;
    }
    .p {
        margin-left: 25px;
    }

    /* about */

    .slideshow__container {
        width: 60%;
    }
    .about__photo {
        width: 450px;
        margin-left: 149px;
    }
    .about__circle {
        margin-top: 15px;
    }
    .about__item-second {
        display: none;
    }
    .about-wrapper {
        width: 100%;
        margin: auto;
        overflow: hidden;
    }
    .mySlides {
        margin: 0;
        transition: 2s;
        padding: 0;
    }
    .about__list {
        width: 100%;
        overflow: hidden;
        margin: auto;
        position: relative;
    }
    .about__item-second,
    .about__item-third,
    .about__item-fourth,
    .about__item-fifth {
        display: none;
    }
    .visibility {
        display: block;
    }
    img {
        width: 100%;
    }
    .carret_left {
        display: block;
        width: 24px;
        height: 24px;
        position: absolute;
        left: 43px;
        top: 50%;
        border: none;
        cursor: pointer;
    }
    .carret_right {
        display: block;
        width: 24px;
        height: 24px;
        position: absolute;
        right: 35px;
        top: 50%;
        border: none;
        cursor: pointer;
    }
    .dot {
        cursor: pointer;
        display: inline-block;
        transition: 0.6s ease;
    }
    .active {
    background-color: #BB945F;
    }
    .about__item {
        margin: auto;
        padding: 0 20px 0 30px;
        min-width: 70%;
    }
    p {
        margin-left: 30px;
        margin-right: 20px;
    }
    h2 {
        padding-top: 20px;
    }

    /* favorites */
    .favorites-container {
        margin-top: 37px;
    }
    .radio {
        position: relative;
    }
    .radio-input {
        width: 25%;
        margin-right: 9px;
    }
    label {
        padding-right: 0;
        margin: auto;
    }
    .radio-input-last {
        margin-right: 0;
    }
    .wrapper-cards {
        margin: auto;
    }
    .card-content {
        width: auto;
        margin-top: 28px;
    }
    .card-content-second {
        margin-top: 38px;
    }
    .card__img {
        top: -296px;
    }
    .card__button {
        margin-bottom: 12px;
    }
    .card__description {
        margin-bottom: 12px;
    }
    .card-content-third {
        margin-top: 38px;
    }
    .card-content-fourth {
        margin-top: 38px;
    }
    .coffee__wrapper-block {
        padding-bottom: 0;
        margin-right: 10px;
    }
    .div-last {
        margin-bottom: 0;
    }
    .div-last-1 {
        margin-bottom: 37px;
    }
    .contacts  {
        padding-top: 43px;
    }
    .contacts-wrapper {
        margin-top: 37px;
    }
    .contacts__right {
        padding-bottom: 40px;
    }
    .p-1 {
        display: block;
        margin: 0;
    }
    .p {
        display: none;
    }
    .ppp {
        margin: 0;
    }
    .block-second {
        margin-left: auto;
        margin-right: 15px;
    }
    .block__second-text {
        margin-right: 65px;
    }
    .contacts-text {
        margin-bottom: 20px;
    }
    .contacts-text-a {
        margin-bottom: 20px;
    }
    h6 {
        margin-top: 20px;
    }
    .contacts__right {
        margin-top: 80px;
    }
    .contacts-wrapper {
        padding-bottom: 0;
    }
    .check {
        padding-left: 37px;
    }
    .registration-text {
        display: none;
        width: 600px;
        margin: auto;
    }
    .registration-title {
        margin-bottom: 40px;
    }
    .registration {
        width: 600px;
    }
    .registration-text-1 {
        display: block;
        margin: auto;
        margin-bottom: 40px;
    }
    .form-button {
        margin: auto;
    }
    .registration-button-first {
        margin-left: 3px;
        margin-right: 25px;
    }
    .footer__wrapptr-left {
        align-items: left;
    }
    .footer-left-text {
        width: 229px;
        margin-left: 0;
    }
    .footer__wrapptr-right {
        margin-left: auto;
        justify-content: flex-start;
    }
    .footer-right-text {
        width: 100%;
    }
    .footer-right-text {
        margin-left: 0;
    }
    .footer-bottom-text-center {
        margin-left: 40px;
    }
    .footer-hr {
        width: 94%;
        margin-right: 20px;
    }
    .footer-hr {
        padding-bottom: 0;
    }
    .footer__wrapper-bottom {
        margin-bottom: 0;
    }
    }
    
    
    @media (max-width: 630px) {
    .card-content {
        width: 450px;
    }
    .card__img {
        width: 180px;
        height: 300px;
        display: flex;
        position: relative;
        left: 320px;
        top: -294px;
    }
    .close {
        visibility: hidden;
        transform: translateX(100px);
    }
    .nav.active {
        display: block;
        transform: translateX(0);
        transition: visibility .2s, opacity .2s, transform 2s;
    }
    .animate {
        right: -700px;
        transition: margin-right 4s;
    }
    .nav__item {
        width: 118px;
        justify-content: center;
        text-align: center;
    }
    .header-icon {
        margin-left: auto;
        padding-right: 40px;
    }
    img {
        width: 100%;
        gap: 25px;
    }
    .carret_left {
        display: none;
        width: 24px;
        height: 24px;
        position: absolute;
        left: 43px;
        top: 300px;
        background-color: #FFF;
        border: none;
    }
    .carret_right {
        display: none;
        width: 24px;
        height: 24px;
        position: absolute;
        right: 35px;
        top: 300px;
        border: none;
    }
    .about-wrapper {
        width: 100%;
        margin: auto;
        overflow: hidden;
    }
    .about__item {
        justify-content: center;
    }
    .about__item-third,
    .about__item-fourth,
    .about__item-fifth {
        display: none;
    }
    .about__list {
        width: 95%;
        margin: auto;
        gap: 45px;
        overflow: hidden;
    }
    .card {
        display: block;
        flex-direction: column;
    }
    .wrapper-cards {
        width: 550px;
        margin: auto;
        display: block;
        flex-direction: column;
    }
    .wrapper-cards-1 {
        width: 550px;
        margin: auto;
        display: block;
        flex-direction: column;
    }
    .favorites-2,
    .favorites-3,
    .favorites-4 {
        display: none;
    }
    .card-content {
        width: 100%;
        margin: auto;
        margin-top: 40px;
    }
    .radio {
        width: 100%;
    }
    .radio-input {
        width: 25%;
        margin-right: auto;
    }
    .favorites {
        padding-bottom: 40px;
    }
    .coffee__wrapper {
        display: block;
        flex-direction: column;
    }
    .div {
        margin: 0;
        margin-bottom: 40px;
        margin-right: 0;
    }
    .block-second {
        margin: 0;
        margin-right: 20px;
        margin-left: auto;
    }
    .contacts-wrapper {
        display: block;
        flex-direction: column;
    }
    .contacts__right {
        width: 90%;
        margin: auto;
        margin-top: 100px;
    }
    .library__wrapper {
        display: block;
        flex-direction: column;
        padding-bottom: 40px;
    }
    .contacts-display {
        margin-bottom: 0;
    }
    .form {
        margin: auto;
        padding-bottom: 20px;
    }
    .registration {
        height: auto;
        margin-top: 30px;
        margin: auto;
        text-align: center;
    }
    .registration-title {
        text-align: center;
    }
    .registration-text {
        text-align: center;
    }
    .form-button {
        margin: auto;
        justify-content: last baseline;
    }
    .registration-button {
        margin-left: 0;
    }
    .registration-button-first {
        margin-right: 30px;
    }
    .circle-wrapper-last {
        display: block;
    }
    .footer {
        padding-bottom: 44px;
    }
    .footer__wrapper-bottom {
        margin-right: 20px;
    }
    .footer__wrapptr-left  {
        width: 229px;
    }
    .footer-bottom-text-right {
        margin-right: 20px;
    }
    .radio-input {
        width: 185px;
    }
    .radio-input-last {
        margin-right: 0;
    }
    }