@media only screen and (max-width: 984px) {
  html,
  body {
    min-width: 0;
  }

  #banner .ad {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  #banner .banner {
    width: 100%;
    height: auto;
  }

  .ad .banner {
    position: static;
  }

  #banner .banner img {
    width: 100%;
  }

  #header {
    width: 100%;
    min-width: 0;
    height: 160px;
  }

  #header.fixed,
  #nav.fixed {
    width: 100%;
  }

  #header > .inner {
    width: 100%;
  }

  #header .logo {
    display: block;
    top: 16px;
    left: 15px;
    /* transform: translateX(-50%); */
  }

  #header .search {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
  }

  #header .phone {
    display: block;
    position: absolute;
    top: 90px;
    left: 30px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 260px;
    height: 58px;
  }

  .cart-icon {
    display: block;
    position: absolute;
    top: 100px;
    right: 30px;
  }

  .cart-icon span {
    left: auto;
    right: 0;
  }

  #nav.fixed {
    z-index: 1100;
  }

  #nav .inner {
    width: 100%;
  }

  #content {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #main,
  #main.single-page {
    width: calc(100% - 20px);
    margin: 0 auto;
    float: none;
  }

  .events-roll {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  .events-roll * {
    box-sizing: inherit;
  }

  .event-info-teaser {
    flex-shrink: 0;
    width: calc((100% / 4) - 8px);
    height: auto;
    margin-right: 8px;
    margin-bottom: 8px;
    float: none;
  }

  .events-roll .event:nth-child(3n) {
    margin-right: 8px;
  }

  .events-roll .event:nth-child(4n) {
    width: 25%;
    margin-right: 0 !important;
  }

  #aux {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 20px);
    margin: 0 auto;
    float: none;
    order: -1;
    box-sizing: border-box;
  }

  #aux * {
    box-sizing: inherit;
  }

  #aux > .block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% / 4) - 8px);
    margin-right: 8px;
    margin-bottom: 8px;
  }

  #aux > .block:nth-child(4n) {
    width: 25%;
    margin-right: 0;
  }

  #aux .ad {
    height: 261px;
  }

  #aux .ad .banner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  #aux .ad .banner a,
  #aux .ad .banner a img {
    width: 100%;
    height: 100%;
  }

  .festival .thumb .sticker.age {
    right: -3px;
    left: auto;
  }

  #footer {
    min-width: 0;
    height: 200px;
    margin-top: -200px;
  }

  #footer > .inner {
    width: 100%;
  }

  #footer > .inner > .clearfix {
    display: flex;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
  }

  #footer > .inner > .clearfix::after {
    display: none;
  }

  #footer .useful {
    float: none;
    width: auto;
  }

  #footer .contacts {
    float: none;
  }

  #footer .accept {
    position: static;
    margin-left: 15px;
  }

  #nav.fixed {
    top: 160px;
  }

  .eticket-advantages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .eticket-advantages li {
    position: relative;
    width: calc(100% / 3);
    background: none;
  }

  .eticket-advantages li::after {
    content: '';
    display: block;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    /*background-image: url('/assets/img/etadv.png');*/
  }

  .eticket-advantages li:first-child::after {
    width: 42px;
    height: 62px;
    background-position: 0px -20px;
  }

  .eticket-advantages li:nth-child(2)::after {
    width: 80px;
    height: 50px;
    background-position: -170px -26px;
  }

  .eticket-advantages li:nth-child(3)::after {
    width: 80px;
    height: 84px;
    background-position: -358px -9px;
  }

  .eticket-advantages li:nth-child(4)::after {
    width: 80px;
    height: 77px;
    background-position: -545px -12px;
  }

  .eticket-advantages li:nth-child(5)::after {
    width: 64px;
    height: 102px;
    background-position: -741px 0;
  }

  .page-cart .chosen-tickets {
    max-height: auto;
    overflow: visible;
  }

  .event-info-teaser .info:after,
  .event-info-teaser .info:before {
    display: none;
  }

  .datepicker-inline {
    width: 100%;
  }

  #aux .block #datepicker {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .page.festival {
    display: flex;
    padding: 0;
  }

  .festival .thumb {
    flex-shrink: 0;
    position: static;
  }

  .festival .info {
    padding: 21px;
  }
}

@media only screen and (max-width: 767px) {
  #header {
    /* display: none; */
    height: 130px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: hidden;
  }

  #header > .inner {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  #header .logo {
    order: -1;
    position: static;
    width: calc(50% - 4px);
    margin-bottom: 10px;
    margin-right: 8px;
  }

  #header .logo img {
    width: 100%;
    height: auto;
  }

  .cart-icon {
    order: 4;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 35px;
    height: 35px;
    background-size: contain;
  }

  .cart-icon span {
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 16px;
    background-size: contain;
  }

  .cart-icon span b {
    position: relative;
    top: 1px;
    left: -1px;
  }

  #header .search {
    position: static;
    width: calc(100% - 16px - 35px);
    margin-right: 16px;
    /* margin-bottom: 10px; */
  }

  #header .search input[type='search'] {
    height: 35px;
  }

  #header .search input[type='search'],
  #header .search .results {
    width: 100%;
  }

  #header .phone {
    order: -1;
    position: relative;
    top: auto;
    left: auto;
    right: -6%;
    width: calc(50% - 4px);
    height: auto;
    margin-bottom: 10px;
  }

  #header .phone img {
    width: 100%;
  }

  .bkglw img.nor {
    position: static;
    width: 100%;
    height: auto;
  }

  #content {
    padding-top: 10px;
  }

  #nav {
    height: auto;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #nav * {
    box-sizing: inherit;
  }

  #nav .inner {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  #nav .inner a {
    box-sizing: border-box;
    width: calc(100% / 3);
    padding: 0;
  }

  #aux .ad {
    display: none;
    height: auto;
  }

  #aux > .block,
  #aux > .block:nth-child(4n) {
    width: 100%;
  }

  #aux > .block:nth-child(2n) {
    margin-right: 0;
  }

  .event-info-teaser {
    -webkit-mask-image: none;
    clip-path: none;
    -webkit-clip-path: none;
  }

  .event-info-teaser,
  .events-roll .event:nth-child(4n) {
    width: calc((100% / 2) - 4px);
  }

  .event-info-teaser:nth-child(2n) {
    margin-right: 0;
  }

  #aux .block .banner,
  #aux .block #datepicker {
    margin: 0 auto;
  }

  #bg .ad-side {
    display: none;
  }

  #footer {
    /* display: none; */
  }

  #nav.fixed {
    position: static;
    top: 149px
  }

  .page.event-info-full {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .event .thumb {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
  }

  .festival,
  .event-info-full {
    height: auto;
  }

  .festival .thumb img,
  .event .thumb img {
    position: static;
    width: 100%;
    max-width: none;
  }

  .festival .thumb .sticker.age,
  .event .thumb .sticker.age {
    top: auto;
    left: auto;
    bottom: -2px;
    right: -4px;
  }

  .festival .where,
  .event-info-full .where {
    position: static;
    margin-bottom: 32px;
  }

  .festival .action-map,
  .event-info-full .action-map {
    position: static;
    margin-right: 20px;
  }

  .festival .action-scheme,
  .event-info-full .action-scheme {
    position: static;
    margin-left: auto;
  }

  .festival .e-ticket,
  .event-info-full .e-ticket {
    top: 10px;
    right: 10px;
  }

  .event .info {
    position: relative;
    padding: 10px;
  }

  .festival .event-title,
  .event-info-full .event-title {
    max-width: calc(100% - 110px);
  }

  .festival .short, .event-info-full .short {
    margin-bottom: 10px;
    padding: 0;
  }

  .event-date-select .row {
    display: flex;
    flex-direction: column;
  }

  .event-date-select .when {
    float: none;
    margin-bottom: 8px;
  }

  .event-date-select .price {
    float: none;
    margin-bottom: 24px;
  }

  .event-tickets-select .selector {
    display: flex;
    flex-direction: column;
  }

  .event-tickets-select .selector .tabs {
    width: 100%;
  }

  .event-tickets-select .selector .tickets {
    width: 100%;
  }

  .event-tickets-select .selector .tickets .scheme object {
    display: block;
    max-width: 90%;
    margin: 0 auto;
  }

  .info-message {
    width: calc(100% - 64px);
    margin-left: 32px;
    margin-right: 32px;
    box-sizing: border-box;
  }

  .info-message * {
    box-sizing: inherit;
  }

  .columns-duo > div {
    width: 100%;
  }

  .columns-duo > div:first-child {
    margin: 0;
  }

  .eticket-advantages li {
    width: 50%;
  }

  .chosen-tickets .event-row {
    height: auto;
    padding: 0;
  }

  .chosen-tickets .event-row .info {
    position: static;
  }

  .page-cart .details {
    position: static;
    margin-top: 20px;
    margin-left: 10px;
  }

  .event-row .where {
    position: static;
    width: 100%;
    margin-left: 10px;
  }

  .event-row .info {
    max-width: none;
  }

  .event-row .thumb {
    margin-bottom: 10px;
  }

  .event-row .thumb img {
    height: auto;
  }

  .event-row .thumb .sticker.et {
    top: -4px;
    left: -4px;
  }

  .event-row .thumb .sticker.age {
    width: 59px;
    height: 59px;
    line-height: 65px;
  }

  .page-cart .details table tr.actions td {
    height: auto;
  }

  .page-cart .tickets-summary {
    overflow-x: scroll;
  }

  .event-tickets-select .selector .tickets .sector {
    padding-right: 15px;
  }

  .event-date-select .action-event-tickets {
    float: none;
  }

  .event-tickets-select .selector .tickets .ticket {
    position: static;
  }

  .event-tickets-select .selector .tickets .row {
    position: relative;
  }

  .event-tickets-select .selector .tickets .ticket-info {
    width: 100%;
    max-width: none;
    left: 0;
    margin: 0;
  }

  .event-tickets-select .selector .tickets .ticket-info:before {
    display: none;
  }

  .event-tickets-select .selector .tickets .row:last-child:not(:only-child) .ticket-info {
    width: 100%;
    max-width: none;
    top: -60px;
    left: 0;
    bottom: auto;
    margin: 0;
  }

  .tickets-summary {
    overflow-x: scroll;
  }

  .datepicker table tr td, .datepicker table tr th {
    width: calc(100% / 10);
    height: 35px;
  }

  #nav a {
    border: 1px solid #c6c6c6;
    border-bottom: none;
    border-right: none;
    line-height: 38px;
  }

  #nav a:nth-child(4),
  #nav a:nth-child(5),
  #nav a:nth-child(6) {
    border-bottom: 1px solid #c6c6c6;
  }

  #nav a:nth-child(3),
  #nav a:last-child {
    border-right: 1px solid #c6c6c6;
  }

  #nav a.active:nth-child(4),
  #nav a.active:nth-child(5),
  #nav a.active:nth-child(6),
  #nav a.active:nth-child(3),
  #nav a.active:last-child {
    border-color: #3c2118;
  }

  .page.festival {
    flex-direction: column;
  }

  .festival .thumb {
    width: 100%;
    height: auto;
  }

  .festival .dates {
    display: block;
  }
}

@media only screen and ( max-width: 576px ) {
  body.fixed {
    padding-top: 150px;
  }

  .cart-icon {
    width: 25px;
    height: 25px;
    background-size: contain;
  }

  #header {
    height: auto;
  }

  #header .search {
    position: static;
    width: calc(100% - 16px - 25px);
    margin-right: 16px;
    /* margin-bottom: 10px; */
  }

  #header .search input[type='search'] {
    height: 25px;
  }

  #nav .inner a {
    width: 50%;
    font-size: 12px;
  }

  #nav.fixed {
    position: static;
    top: 90px;
    margin-left: 0;
  }

  .event-info-full .info .popup {
    right: 0;
    width: calc(100vw - 42px);
  }

  .festival .event-title,
  .event-info-full .event-title {
    max-width: 100%;
    margin-bottom: 6px;
  }

  .festival .when,
  .event-info-full .when {
    margin-bottom: 4px;
  }

  .festival .e-ticket,
  .event-info-full .e-ticket {
    position: static;
    margin-bottom: 10px;
    text-align: left;
  }

  .info-message {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: border-box;
  }

  .page .text-content .text-content {
    padding: 0;
  }

  #footer .useful {
    display: flex;
    flex-wrap: wrap;
  }

  #footer .useful a {
    width: calc(100% / 3);
  }

  .page-cart .step.shipping .switch {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .page-cart .step.payment .switch {
    display: flex;
  }

  .page-cart .step.shipping label {
    margin: 0;
    width: 100%;
  }

  .page-cart .step.payment label {
    margin: 0;
    flex-grow: 1;
  }

  .page-cart .step.shipping label div {
    width: 100%;
  }

  .page-cart .step.payment label div {
    width: 100%;
  }

  .step input[type='text'],
  .step input[type='email'],
  .step select {
    width: 100%;
  }

  .step.contacts .control-group.address input[type='text'] {
    width: 100%;
    margin: 0;
  }

  .step.datetime .control-group input[type='text'], .step.datetickets .control-group input[type='text'] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .page-cart .step.total table,
  .page-cart .step.total table tbody,
  .page-cart .step.total table tbody tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .button-blue.action-pay {
    width: 100%;
  }

  #detailedCart + div table {
    width: 100%;
  }

  .page-cart .details {
    width: 100%;
  }

  #nav a {
    border: 1px solid #c6c6c6;
    border-bottom: none;
    border-right: none;
    line-height: 38px;
  }

  #nav a:nth-child(4) {
    border-bottom: none;
  }

  #nav a:nth-child(2),
  #nav a:nth-child(4) {
    border-right: 1px solid #c6c6c6;
  }

  #nav a:nth-child(5),
  #nav a:nth-child(6) {
    border-bottom: 1px solid #c6c6c6;
  }

  #nav a:nth-child(3) {
    border-right: none;
  }

  #nav a.active:nth-child(2),
  #nav a.active:nth-child(4),
  #nav a.active:nth-child(5),
  #nav a.active:nth-child(6),
  #nav a.active:last-child {
    border-color: #3c2118;
  }
}

@media only screen and ( max-width: 480px ) {
  #aux > .block,
  #aux > .block:nth-child(4n) {
    width: 100%;
    margin-right: 0;
  }

  .event-info-teaser,
  .events-roll .event:nth-child(4n) {
    width: 100%;
    margin-right: 0;
  }

  #footer {
    height: 260px;
    margin-top: -260px;
  }

  #footer.fixed {
    height: 200px;
  }

  #footer > .inner > .clearfix {
    flex-direction: column;
    align-items: flex-start;
  }

  #footer .contacts {
    margin-top: 16px;
    text-align: left;
  }

  #footer .vk {
    margin-top: 10px;
    float: none;
  }

  #footer .accept {
    margin-top: 10px;
  }

  #footer .accept p {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .eticket-advantages li {
    width: 100%;
  }

  .page-offer .header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cart .count {
    height: auto;
  }

  .cart .count {
    padding-top: 20px;
    padding-bottom: 20px;
    line-height: 1;
  }

  .cart .count a {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }
}