/*==========  Non-Mobile First Method  ==========*/
/* Extra Large Devices */
@media only screen and (max-width: 1280px) {
  .container {
    max-width: 1170px;
  }
}

/* Large Devices, Wide Screens */
@media only screen and (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
  .offer-slider .slick-prev {
    left: 15px;
  }
  .offer-slider .slick-next {
    right: 15px;
  }
  .product {
    width: -webkit-calc((100% - 30px * 2)/3);
    width: calc((100% - 30px * 2)/3);
  }
  .product:nth-child(4n+4) {
    margin-right: 30px;
  }
  .product:nth-child(3n+3) {
    margin-right: 0;
  }
}

/* Medium Devices, Desktops */
@media only screen and (max-width: 992px) {
  .site-header__bottom_fixed .nav-primary__item {
    margin: 0 5px 0 0;
  }
  .site-header__bottom_fixed .nav-primary__link {
    font-size: 14px;
    padding-right: 8px;
    padding-left: 8px;
  }
  .header-delivery-wrap {
    flex-direction: column;
  }
  .header-delivery + .header-delivery {
    margin-left: 0;
    margin-top: 10px;
  }
  .header-delivery__title {
    font-size: 14px;
  }
  .container {
    max-width: 750px;
  }
  .logo {
    max-width: 185px;
  }
  .logo_sm {
    max-width: 0;
  }
  .product {
    width: -webkit-calc((100% - 30px * 1)/2);
    width: calc((100% - 30px * 1)/2);
    margin-bottom: 30px;
  }
  .product:nth-child(4n+4) {
    margin-right: 30px;
  }
  .product:nth-child(3n+3) {
    margin-right: 30px;
  }
  .product:nth-child(2n+2) {
    margin-right: 0;
  }
  .product--alt {
    width: -webkit-calc((100% - 30px * 3)/4);
    width: calc((100% - 30px * 3)/4);
  }
  .product--alt:nth-child(3n+3) {
    margin-right: 30px;
  }
  .product--alt:nth-child(4n+4) {
    margin-right: 0;
  }
  .article {
    width: -webkit-calc((100% - 30px * 2)/3);
    width: calc((100% - 30px * 2)/3);
  }
  .article:nth-child(3n+3) {
    margin-right: 0;
  }
  .countdown__num {
    font-size: 50px;
  }
  .countdown__title {
    font-size: 14px;
  }
}

/* Small Devices, Tablets */
@media only screen and (max-width: 768px) {
  .container {
    max-width: none;
  }
  .site-header__top {
    flex-wrap: wrap;
  }
  .site-header__top .container {
    flex-wrap: wrap;
  }
  .header-delivery-wrap {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin: 15px 0 0 0;
  }
  .header-delivery + .header-delivery {
    margin: 0 0 0 20px;
  }
  .logo__img {
    max-width: 185px;
    width: 100%;
  }
  .header-phone {
    flex-grow: 0;
    margin: 0;
  }
  .shopping-cart {
    margin: 0 0 0 auto;
    text-align: left;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .nav-primary {
    width: 100%;
  }
  .nav-primary__list {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .delivery-payment__col {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 -webkit-calc(50% - 15px);
        -ms-flex: 1 0 calc(50% - 15px);
            flex: 1 0 calc(50% - 15px);
    max-width: -webkit-calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .delivery-payment__col:nth-child(2n+2) {
    margin-right: 0;
  }
  .product {
    width: -webkit-calc((100% - 30px * 1)/2);
    width: calc((100% - 30px * 1)/2);
  }
  .product:nth-child(3n+3) {
    margin-right: 30px;
  }
  .product:nth-child(2n+2) {
    margin-right: 0;
  }
  .product__inner {
    padding: 10px;
  }
  .product__size-label, .product__dough-selector-label {
    font-size: 12px;
  }
  .product__price {
    font-size: 18px;
  }
  .product--alt {
    width: -webkit-calc((100% - 30px * 2)/3);
    width: calc((100% - 30px * 2)/3);
  }
  .product--alt:nth-child(2n+2) {
    margin-right: 30px;
  }
  .product--alt:nth-child(3n+3) {
    margin-right: 0;
  }
  .article {
    width: -webkit-calc((100% - 30px * 1)/2);
    width: calc((100% - 30px * 1)/2);
  }
  .article:nth-child(3n+3) {
    margin-right: 30px;
  }
  .article:nth-child(2n+2) {
    margin-right: 0;
  }
  .site-footer__top {
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .site-footer__nav-wrapper {
    margin-bottom: 30px;
    margin-right: 0;
  }
  .nav-secondary__list {
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
  }
  .nav-secondary__item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 -webkit-calc(50% - 27px);
        -ms-flex: 1 0 calc(50% - 27px);
            flex: 1 0 calc(50% - 27px);
    max-width: -webkit-calc(50% - 27px);
    max-width: calc(50% - 27px);
    margin-bottom: 15px;
  }
  .footer-statistics__title {
    font-size: 26px;
  }
  .offer-slider {
    text-align: center;
  }
  .offer-slider.slick-initialized .slick-slide {
    display: block;
  }
  .offer__img-wrap {
    margin-right: 0;
    display: inline-block;
    vertical-align: top;
  }
  .offer__img {
    width: auto;
    height: auto;
    max-width: 100%;
  }
  .offer__price {
    font-size: 26px;
    -webkit-justify-content: center;
    justify-content: center;
  }
  .offer__title {
    font-size: 24px;
  }
  .countdown {
    -webkit-justify-content: center;
    justify-content: center;
  }
  .countdown__field {
    margin: 0 10px;
  }
  .countdown__num {
    font-size: 30px;
  }
  .countdown__num:after {
    right: -17px;
    top: -5px;
  }
  .countdown__title {
    font-size: 12px;
  }
  .copyright__col:last-child {
    display: block;
  }
  .footer-phone {
    font-size: 24px;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
  .site-header__top .container {
    text-align: center;
    display: block;
  }
  .header-delivery-wrap {
    display: block;
  }
  .header-delivery + .header-delivery {
    margin: 10px 0 0 0;
  }
  .header-phone__link {
    font-size: 15px;
  }
  .logo {
    margin: 0 auto;
  }
  .orders {
    width: 300px;
  }
  .order-price-wrapper {
    display: block;
  }
  .order-price-wrapper__price {
    margin: 5px 0 0 0;
  }
  .order__image {
    max-width: 60px;
    flex-basis: 60px;
  }
  .orders__button {
    height: 50px;
  }
  .product__excerpt {
    height: auto;
  }
  .feedback .row {
    display: block;
  }
  .input-feedback {
    margin-right: 0;
  }
  .product {
    width: 100%;
    margin-right: 0;
  }
  .product:nth-child(3n+3) {
    margin-right: 0;
  }
  .product--alt {
    width: 100%;
    margin-right: 0;
  }
  .product--alt:nth-child(2n+2) {
    margin-right: 0;
  }
  .article {
    width: 100%;
    margin-bottom: 0;
    margin-right: 0;
  }
  .article + .article {
    margin-top: 20px;
  }
  .delivery-payment__col {
    max-width: 100%;
    -webkit-flex-basis: auto;
        -ms-flex-preferred-size: auto;
            flex-basis: auto;
    margin-bottom: 20px;
  }
  .section-title {
    font-size: 28px;
  }
  .nav-secondary__item {
    max-width: -webkit-calc(50% - 27px);
    max-width: calc(50% - 27px);
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 -webkit-calc(50% - 27px);
        -ms-flex: 1 0 calc(50% - 27px);
            flex: 1 0 calc(50% - 27px);
    margin-bottom: 20px;
  }
  .footer-statistics {
    display: block;
  }
  .footer-statistics__col + .footer-statistics__col {
    margin-left: 0;
    margin-top: 20px;
  }
  .social-networks__list a {
    margin-right: 15px;
  }
  .copyright {
    display: block;
    text-align: center;
  }
  .copyright__col + .copyright__col {
    margin: 5px 0 0 0;
  }
}
