@media (max-width: 1365.98px) {
  .header__main {
    width: calc(75% - 20px);
  }

  .search__btn {
    width: 80px;
  }

  .sidebar__inner {
    width: 25%;
  }

  .content {
    margin-right: calc(25% + 20px);
  }
}

@media (max-width: 1239.98px) and (min-width: 1050px) {
  .room-detail__price-wrapper {
    display: block;
  }

  .room-detail__price {
    margin-bottom: 10px;
  }
}

@media (max-width: 1049.98px) {
  .header__main {
    float: none;
    width: auto;
  }

  .header__basket {
    display: block;
  }

  .sidebar__inner {
    float: none;
    width: auto;
    transform: none !important;
  }

  .sidebar {
    position: absolute;
    z-index: 1001;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 25px;
    background: #fff;
    display: none;
  }

  html.is-basket-open .sidebar {
    display: block;
  }

  .sidebar__close {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    padding: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
  }

  .sidebar__close:hover {
    color: var(--accent-color);
  }

  .sidebar__close svg {
    display: block;
    width: 2em;
    height: 2em;
  }

  .content {
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    padding: 16px;
  }

  .sidebar__close {
    padding: 20px;
  }
  .sidebar__inner .js-persons-submit,
  .sidebar__inner .js-packages-submit{
    display:none !important;
  }

  .wrapper {
    padding: 16px;
  }

  .header {
    margin: -16px;
    margin-bottom: 20px;
    background: var(--mobile-header-bg);
    color: var(--mobile-header-text);
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .nav {
    order: 1;
    margin-bottom: 0;
  }

  .nav__item:not(:last-child) {
    margin-right: -5px;
  }

  .nav__link {
    font-size: 12px;
    line-height: 17px;
  }

  .nav__item.is-active .nav__link {
    background: var(--mobile-header-bg-active);
  }

  .nav__link,
  .nav__link>span {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  }

  .nav__item:first-child .nav__link,
  .nav__item:first-child .nav__link>span {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
    border-radius: 5px 0 0 5px;
  }

  .nav__item:last-child .nav__link,
  .nav__item:last-child .nav__link>span {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%);
    border-radius: 0 5px 5px 0;
  }

  .nav__link>span {
    clip-path: none !important;
    background: none !important;
    padding: 8px;
  }

  .nav__item:first-child .nav__link>span {
    padding-left: 0;
    padding-right: 16px;
  }

  .nav__item:last-child .nav__link>span {
    padding-right: 0;
    padding-left: 16px;
  }

  .header__main {
    margin: 0;
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    float: none;
  }

  .header__row {
    display: block;
  }

  .header__sort {
    display: none;
  }

  .header__mode {
    display: none;
  }

  .header__control {
    justify-content: flex-end;
  }

  .header__control {
    margin: -5px 0 13px;
  }

  .header__promocode-target {
    display: inline-flex;
    margin-right: auto;
    color: #fff;
    text-transform: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  .header__promocode-target .icon {
    font-size: 24px;
    color: var(--accent-color);
  }

  .user-field__target,
  .currency-field__target,
  .lang-field__target {
    color: #fff;
  }

  .user-field__phone {
    color: #ababab;
  }

  .header__content {
    display: block;
    margin: 0 -3px;
  }

  .header__content:after {
    content: '';
    display: table;
    clear: both;
  }

  .header__search {
    margin-right: 0;
  }

  .search {
    display: block;
    height: auto;
  }

  .search__btn {
    display: none;
  }

  .search__content {
    display: block;
    border-radius: 0;
    background: none;
  }

  .search__date {
    display: block;
    width: auto;
  }

  .search__person {
    display: block;
    width: auto;
  }

  .search__field {
    float: left;
    width: calc(50% - 6px);
    margin: 0 3px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    height: 42px;
    padding: 0 9px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    white-space: normal;
    text-align: left;
  }

  .search__date-icon,
  .search__person-icon,
  .basket-field__icon {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 24px;
    margin-right: 6px;
  }

  .search__date-year {
    display: inline;
  }

  .search__date-end:before {
    display: none;
  }

  .basket-field {
    font-size: 20px;
  }

  .basket-field__content {
    white-space: nowrap;
    text-align: center;
    flex-grow: 1;
    min-width: 1px;
  }

  .room-detail__view {
    grid-template-columns: 100%;
    grid-template-areas:
    "header"
    "media"
    "showcase"
    "preferences"
    "description";
  }

  .room-detail__media {
    padding: 20px 20px 0;
  }

  .room-detail__gallery {
    display: none;
  }

  .room-detail__thumbnails {
    padding-top: 0;
  }

  .room-detail__header {
    padding-top: 20px;
  }

  .room-detail__showcase {
    display: block;
  }

  .room-detail__room-capacity {
    margin-right: 0;
    margin-bottom: 1em;
  }

  .room-detail__price-wrapper {
    display: block;
  }

  .beds-checker__item {
    width: 100%;
  }

  .room-detail__button {
    margin-top: 1em;
    margin-left: 0;
    width: 100%;
  }

  .search__date-dropdown,
  .search__person-dropdown {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 10px;
    z-index: 10000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .search__date-dropdown {
    padding: 0;
  }

  .x-dtm {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
  }

  .x-dtm__content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .x-dtm__arrow {
    top: 7px;
  }

  .x-dtm__header {
    display: block;
    position: relative;
    transition: box-shadow .3s ease;
    padding: 0 30px;
    height: 42px;
    flex-shrink: 0;
  }

  .x-dtm__close {
    position: absolute;
    top: 7px;
    right: 50%;
    margin-right: -14px;
    color: var(--main-color);
    transition: color .3s ease;
    z-index: 1;
    cursor: pointer;
  }

  .x-dtm__close:hover {
    color: var(--accent2-color);
  }

  .x-dtm__close svg {
    display: block;
    width: 28px;
    height: 28px;
  }

  .x-dtm__footer {
    padding: 14px;
    margin: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .09);
  }

  .x-dtm__footer-message {
    margin-bottom: 0;
  }

  .x-dtm__info-text {
    display: none;
  }

  .x-dtm__footer-controls {
    display: flex;
    padding-top: 10px;
  }

  .x-dtm__btn {
    width: 100%;
  }

  .x-dtm__calendars {
    flex-grow: 1;
    min-height: 1px;
    display: block;
    padding: 0 14px 14px;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .x-dcb {
    width: auto;
    max-width: none;
    padding: 0;
  }

  .x-dcb:not(:last-child) {
    padding-bottom: 20px;
  }

  .x-dcb__month-name {
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
  }

  .x-dcb__days {
    height: auto;
  }

  .search__person-dropdown {
    padding-top: 42px;
    flex-direction: column;
  }

  html.is-person-open .search__person-dropdown {
    display: flex;
  }

  .search__person-dropdown-content {
    flex-grow: 1;
  }

  .search__person-dropdown-footer {
    display: block;
    flex-shrink: 0;
    padding-top: 10px;
    margin-top: auto;
  }

  .search__person-dropdown-footer .btn {
    width: 100%;
  }

  .search__person-close {
    display: block;
    position: absolute;
    top: 7px;
    right: 50%;
    margin-right: -14px;
    padding: 0;
    background: none;
    border: none;
    color: var(--main-color);
    transition: color .3s ease;
    z-index: 1;
    cursor: pointer;
  }

  .search__person-close:hover {
    color: var(--accent2-color);
  }

  .search__person-close svg {
    display: block;
    width: 28px;
    height: 28px;
  }

  .search__person-row {
    display: block;
  }

  .search__person-col {
    width: 100%;
  }

  .search__person-col + .search__person-col {
    margin-top: 10px;
  }

  /*body[data-step="persons"] .mob-footer,*/
  /*body[data-step="packages"] .mob-footer,*/
  body[data-step="tariff"] .mob-footer {
    display: block;
  }

  .room-tariff {
    padding: 17px;
  }

  .room-tariff__header {
    margin-bottom: 20px;
  }

  .room-tariff__title {
    font-size: 20px;
  }

  .room-tariff__content {
    display: block;
  }

  .room-tariff__options {
    margin-top: 0;
  }

  .room-tariff__footer {
    margin-left: 0;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .room-tariff__price {
    margin-bottom: 0;
    margin-right: 17px;
  }

  .room-tariff__price .price {
    font-size: 12px;
  }

  .room-tariff__select-btn {
    padding: 10px 15px;
  }

  .persons-info {
    display: block;
    background: #FFFFFF;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin-bottom: 30px;
    cursor: pointer;
  }

  .persons-info__header {
    background: #3B3B3B;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 7px 12px;
  }

  .persons-info__title {
    display: inline-block;
    vertical-align: top;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    padding-right: 20px;
    text-decoration: underline;
    cursor: pointer;
  }

  .persons-info__title:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -8px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff' fill='none' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .persons-info__content {
    padding: 12px;
  }

  .persons-info__total {
    background: #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-self: baseline;
    padding: 6px 10px;
    margin-top: 10px;
  }

  .persons-info__total-title {
    font-weight: 600;
    text-transform: uppercase;
  }

  .persons-info__total-desc {
    font-size: 18px;
  }

  .persons-info__total-price {
    font-weight: bold;
  }

  .persons-room-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }

  .persons-room-info__pic {
    flex: 0 0 auto;
    width: 142px;
    max-width: 43%;
    margin-right: 8px;
  }

  .persons-room-info__pic img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
  }

  .persons-room-info__content {
    flex-grow: 1;
    min-width: 1px;
  }

  .persons-section__header h2 {
    font-size: 20px;
  }

  .persons-section__header h3 {
    font-size: 18px;
  }

  .persons-section__header-note {
    font-size: 10px;
    line-height: 1.2;
  }

  .persons-form .form-row {
    display: block;
  }

  .persons-form .form-col {
    width: 100%;
  }

  .form-note {
    margin-left: 0;
  }

  .persons-guest-show-btn-wrapper {
    margin-top: 0;
  }

  .persons-guest .remove-btn {
    margin: 0;
  }

  .persons-guest .remove-btn {
    font-size: 18px;
  }

  .persons-footer__header {
    display: block;
  }

  .persons-footer__icons {
    text-align: left;
    margin: 10px 0;
  }

  .loading__loader {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
  }

  .loading__title {
    font-size: 24px;
  }

  .loading__text {
    font-size: 14px;
  }

  .r-footer-copyrights{
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
  }
  .r-footer-copyrights .erok{
    margin-top: 10px;
  }
}

@media (max-width: 767.98px) {
  .rooms-list__item {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .window-notification {
    max-width: 480px;
    padding: 45px 30px;
  }

  .window-notification.room-rate-calendar {
    width: calc(100% - 16px);
    max-width: none;
    max-height: calc(100vh - 16px);
    padding: 16px;
  }

  .room-rate-calendar__header h2 {
    font-size: 20px;
  }

  .room-rate-calendar__toolbar {
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
  }

  .room-rate-calendar__guests {
    flex-basis: 100%;
  }

  .room-rate-calendar__scope {
    flex: 1 1 auto;
  }

  .room-rate-calendar__viewport {
    max-height: 58vh;
  }

  .room-rate-calendar__table th,
  .room-rate-calendar__table td {
    min-width: 96px;
    height: 58px;
    padding: 7px 8px;
  }

  .room-rate-calendar__table th:first-child {
    min-width: 153px;
    max-width: 153px;
  }

  .room-rate-calendar__loading-cell--previous {
    left: 153px;
  }
  .next-dates h2{
    font-size:22px;
  }
  .next-dates-list{
    display: block;
  }
  .next-dates-list-item{
    padding:7px 40px 7px 15px;
    max-width: 300px;
    width: 100%;
    height: 70px;
    text-align: left;
    align-items: start;
    position: relative;
  }
  .next-dates-list-item:after{
    content: '';
    position: absolute;
    right:10px;
    top:calc(50% - 7px);
    border-top: 1px solid var(--main-color);
    border-right: 1px solid var(--main-color);
    border-top-right-radius: 2px;
    transform: rotate(45deg);
    width: 14px;
    height: 14px;
  }
  .next-dates-list-item .date{
    margin:0 0 5px 0;
  }
  .room-detail__price-wrapper button{
    display: block;
  }
  .room-detail__controls .js-room-no-has-variants{
    display: none !important;
  }
  .cart__promocode-control{
    font-size: 16px;
  }
  .cart__promocode-btn{
    font-size: 12px;
  }
}

@media (max-width: 479.98px) {
  .room-item__stickers {
    left: 10px;
    top: 10px;
  }

  .room-detail__media,
  .room-detail__header,
  .room-detail__showcase,
  .room-detail__preferences,
  .room-detail__description {
    padding-left: 0.75em;
    padding-right: 0.75em;
  }

  .persons-section__header {
    display: block;
  }

  .persons-section__header-note {
    text-align: right;
    margin-top: 10px;
  }

  .room-package__desc-footer {
    font-size: 14px;
  }

  .room-package__more-btn {
    font-size: 12px;
  }

  .window-notification {
    padding: 35px 20px;
    margin: 0 auto;
  }
}
