/* Mobile adaptation added for the restored static copy of cheltz74.ru. */

@media only screen and (max-width: 959px) {
  html,
  body {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  #wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #wrapper1 {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  img,
  video,
  object,
  embed {
    max-width: 100%;
    height: auto;
  }

  iframe {
    max-width: 100%;
  }

  table {
    max-width: 100%;
  }
}

@media only screen and (max-width: 800px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    font-size: 15px;
    line-height: 1.5;
  }

  .container,
  .container1 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .container .column,
  .container .columns,
  .container .one-third.column,
  .container .two-thirds.column {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0;
    padding-right: 0;
  }

  #header {
    padding-top: 15px;
    text-align: center;
  }

  #logo {
    float: none !important;
    padding-left: 0 !important;
    margin: 0 auto 10px !important;
  }

  #logo img {
    display: inline-block;
    width: auto;
    max-width: 100%;
  }

  .this_city {
    float: none !important;
    width: 100% !important;
    margin: 5px auto 12px !important;
    text-align: center;
  }

  #contact-details,
  #contact-details.block {
    float: none !important;
    width: 100% !important;
    margin: 5px 0 12px !important;
    text-align: center !important;
  }

  #contact-details ul,
  #contact-details li {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  #contact-details li img,
  #contact-details li a {
    float: none !important;
    display: inline-block !important;
    vertical-align: middle;
  }

  #navigation {
    float: none !important;
    width: 100% !important;
    margin: 8px 0 15px !important;
  }

  #navigation #nav {
    display: none !important;
  }

  #navigation .selectnav,
  select.selectnav {
    display: block !important;
    width: 100% !important;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 16px;
  }

  h1 { font-size: 28px; line-height: 1.2; }
  h2 { font-size: 24px; line-height: 1.25; }
  h3 { font-size: 21px; line-height: 1.3; }

  p,
  li,
  td,
  th,
  a {
    overflow-wrap: anywhere;
  }

  table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
  }

  table img,
  td img {
    max-width: min(100%, 320px) !important;
    height: auto !important;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px;
    font-size: 16px;
  }

  form,
  .form,
  .form__item,
  .form__item label,
  .bx-yandex-map,
  [id^="BX_YMAP_"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  input[type="submit"],
  input[type="button"],
  button,
  .button {
    max-width: 100%;
    min-height: 42px;
    white-space: normal;
  }

  .flexslider,
  .flex-viewport,
  .slides,
  .portfolio-item,
  .item-description,
  .all_cities,
  .all_cities .col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .all_cities .col {
    float: none !important;
  }

  #footer,
  #footer-bottom {
    min-width: 0 !important;
  }
}

@media only screen and (max-width: 479px) {
  .container,
  .container1 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  h1 { font-size: 25px; }
  h2 { font-size: 22px; }

  .fancybox-wrap,
  .fancybox-outer,
  .fancybox-inner {
    max-width: calc(100vw - 24px) !important;
  }
}
