:root {
  --gap: 24px;
}

@media (max-width: 1100px) {
  .header-list-item:not(:last-child) {
    margin-right: 24px;
  }

  .header-btn-tour {
    margin-right: 20px;
  }

  .header-btn-tour,
  .header-btn-callback {
    padding: 10px 15px;
    font-size: 12px;
    line-height: 12px;
  }

  .advantage-item {
    width: calc((100% - ((var(--gap) - 2px) * 1)) / 2);
  }

  .advantage-item:not(:nth-child(4n)) {
    margin-right: 0;
  }

  .advantage-item:not(:nth-child(2n)) {
    margin-right: 22px;
  }

  .advantage-item-descr {
    max-width: 100%;
  }

  .footer-list {
    margin-right: 50px;
  }

  .form-list {
    flex-wrap: wrap;
  }

  .form-item {
    margin-bottom: 15px;
  }


  .tours-container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .header-container {
    margin-bottom: 50px;
  }

  .header-row-top {
    margin-bottom: 20px;
  }

  .section-offset:not(:last-child) {
    margin-bottom: 50px;
  }

  .header-row-bottom {
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
  }

  .header-btn-tour,
  .header-btn-callback {
    margin: 0;
  }

  .header-nav {
    padding-left: 0;
  }

  .offers-item {
    padding-left: 25px;
  }

  .offers-title {
    font-size: 30px;
    line-height: 30px;
  }

  .offers-title-rooms {
    font-size: 50px;
    line-height: 50px;
  }

  .services-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hotels-item {
    width: calc((100% - (var(--gap) * 1)) / 2);
  }

  .hotels-item:not(:nth-child(3n)) {
    margin-right: 0;
  }

  .hotels-list {
    column-gap: var(--gap);
  }

  .see-more-item {
    width: 100%;
    border-radius: 40px;
  }

  .link-descr-var {
    font-size: 30px;
    line-height: 200%;
  }

  .hotels-item:not(:nth-child(2n)) {
    margin-right: 0;
  }

  .hotels-item {
    border-radius: 40px;
  }

  .contacts-address {
    padding-left: 25px;
    padding-right: 25px;
  }

  .footer-logo {
    right: 80px;
    top: 112px;
  }

  .footer-list {
    margin-right: 30px;
  }

  .hotels-center,
  .advantage-center {
    display: block;
    padding-top: 30px;
  }

  .hotels-item:nth-child(-n+4) {
    display: none;
  }

  .advantage-item:nth-child(-n+4) {
    display: none;
  }

  .hotels-center--hidden,
  .advantage-center--hidden {
    display: none;
  }

  .hotels-item.hotels-item--visible,
  .advantage-item.advantage-item--visible {
    display: block;
  }

  .hotels-item--visible.see-more-item {
    display: none;
  }
}

@media (max-width: 840px) {
  .tel-link-header-bottom {
    display: inline-block;
    color: #CC9933;
    font-size: 17px;
    line-height: 17px;
  }

  .tel-link-header-top {
    display: none;
  }

  .burger {
    position: relative;
    z-index: 2;
    display: block;
    width: 20px;
    height: 20px;
    color: #CC9933;
    transition: color .5s ease;
  }

  .burger__line {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: translateX(-50%);
  }

  .burger__line:first-child {
    top: 17px;
    width: 100%;
  }

  .burger__line:last-child {
    bottom: 17px;
  }

  .burger__line:nth-child(2) {
    top: 50%;
    width: 100%;
    transform: translateX(-50%) translateY(-50%);
  }

  .header-nav {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    background-color: #E5E5E5;
    height: 100vh;
    z-index: 11;
    padding: 50px 50px 100px;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(-120%);
    transition: visibiliy 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .header-list {
    flex-direction: column;
    height: 100%;
  }

  .header-list-item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .header-list-item:first-child {
    margin-bottom: 60px;
  }

  .header-nav--active {
    visibility: visible;
    transform: none;
  }

  .burger--active .burger__line:nth-child(2) {
    opacity: 0;
  }

  .burger--active .burger__line:first-child {
    left: 0;
    top: 50%;
    width: 100%;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
  }

  .burger--active .burger__line:last-child {
    bottom: auto;
    left: 0;
    top: 50%;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 0.3s ease-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
  }

  .offers-item {
    padding-left: 15px;
  }

  .offers-title {
    font-size: 25px;
    line-height: 25px;
  }

  .offers-title-rooms {
    font-size: 40px;
    line-height: 40px;
  }

  .tours-title {
    padding-left: 40px;
  }

  .contacts-address-right {
    display: none;
  }

  .footer-wrapper {
    flex-direction: column-reverse;
  }

  .footer-item-copyright {
    display: none;
  }

  .footer-list-right {
    margin-bottom: 10px;
  }

  .social-list {
    padding-top: 10px;
  }

}

@media (max-width: 768px) {
  .hotels-item {
    width: 100%;
  }

  .footer-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-offset:not(:last-child) {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 30px;
    line-height: 30px;
  }

  .footer-logo {
    right: 50px;
  }
}

@media (max-width: 600px) {
  .header-logo {
    margin-right: 0;
  }

  .offers-list {
    flex-direction: column;
  }

  .offers-column {
    width: 100%;
  }

  .about-us-descr {
    font-size: 12px;
    line-height: 150%;
  }

  .offers-price-rooms {
    font-size: 20px;
    line-height: 20px;
  }

  .services-item {
    width: 100%;
  }

  .services-item:not(:nth-child(2n)) {
    margin-right: 0;
  }

  .advantage-item {
    width: 100%;
  }

  .advantage-item:not(:nth-child(2n)) {
    margin-right: 0;
  }

  .link-descr-var {
    font-size: 20px;
    line-height: 200%;
  }


  .footer-logo {
    display: none;
  }

  .social-list {
    padding-top: 40px;
  }

  .footer-descr {
    font-weight: 400;
    font-size: 12px;
    line-height: 24px;
  }

  .footer-container {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .header-logo {
    margin-bottom: 10px;
  }

  .reg-link-icon {
    width: 16px;
    height: 7px;
  }

  .header {
    padding-top: 15px;
  }

  .header-container {
    margin-bottom: 30px;
  }

  .header-row-top {
    flex-direction: column;
    text-align: center;
  }

  .header-row {
    margin-bottom: 15px;
  }

  .reg-link {
    font-size: 12px;
    line-height: 12px;
    margin: 0;
    justify-content: center;
  }

  .tel-link-header-bottom {
    display: none;
  }

  .section-title {
    padding-left: 0;
    font-size: 25px;
    line-height: 25px;
  }

  .services-title {
    font-size: 15px;
    line-height: 150%;
  }

  .services-item-descr {
    font-size: 12px;
    line-height: 150%;
  }

  .advantage-item {
    padding: 20px;
  }

  .advantage-item-descr {
    font-size: 12px;
    line-height: 150%;
  }

  .hotel-preview-text {
    padding: 20px 25px 15px;
  }

  .hotels-item {
    max-height: 250px;
  }

  .contacts-item {
    flex-direction: column;
  }

  .contacts-item-caption {
    margin-bottom: 10px;
  }

  .social-list {
    flex-direction: row;
  }

  .footer-container {
    flex-direction: column;
  }

  .hotels-more,
  .advantage-more {
    padding: 15px 35px;
  }

  .contacts-btn {
    padding: 15px 35px;
  }

  .users-link {
    padding-top: 20px;
    font-size: 12px;
    line-height: 100%;

  }

}
