/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .container {
        max-width: 100%;
    }
    body {
        font-size: 14px;
    }
    .header__wrapper {
        gap: 16px;
    }
    .phone-main {
        font-size: 18px;
    }
    .logo__descr {
        font-size: 10px;
    }
    .logo__title {
        font-size: 21px;
    }
    .hero__title {
        font-size: 28px;
    }
    .title-middle {
        font-size: 20px;
    }
    .item-blog__title {
        font-size: 20px;
    }
    .item-blog {
        padding-right: 208px;
    }
    .item-blog__image {
        width: 222px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .header__wrapper .phone-main,
    .menu {
        display: none;
    }
    .logo__descr {
        display: none;
    }
    .header {
        padding: 10px 0;
    }
    .logo__title {
        font-size: 16px;
    }
    .hero__wrapper {
        display: block;
    }
    .hero .hero__calculation {
        display: none;
    }
    .hero {
        background-position: 20% 50%;
    }
    .hero__content {
        padding: 30px 15px;
        width: 100%;
    }
    .hero__title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    body {
        font-size: 12px;
        line-height: 140%;
    }
    .hero__list {
        columns: initial;
    }
    .hero__list li {
        padding-left: 35px;
        margin-bottom: 12px;
    }
    .hero__list li:last-child {
        margin-bottom: 0;
    }
    .hero__list li::before {
        width: 25px;
        height: 25px;
    }
    .hero__wrapper {
        min-height: 652px;
        padding-bottom: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    .hero__calculation {
        margin-top: 30px;
        box-shadow: 4px 4px 25px 0 rgba(0, 0, 0, 0.15);
        background: #fff;
    }
    .hero__calculation-head {
        padding: 20px 12px;
        text-align: center;
        font-size: 16px;
    }
    .hero__calculation-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    .hero__calculation-subtitle {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .btn-main {
        height: 40px;
        font-size: 12px;
    }
    .blog, .portfolio, .format, .approach {
        padding-top: 70px;
    }
    .title-section {
        font-size: 20px;
    }
    .icon-page {
        width: 40px;
        height: 40px;
    }
    .item-box {
        padding: 30px 15px;
    }
    .descr-main {
        font-size: 12px;
    }
    .item-box__text p {
        margin-bottom: 12px;
    }
    .slider-portfolio .slick-track {
        align-items: flex-start;
    }
    .portfolio {
        padding-bottom: 60px;
    }
    .item-blog {
        padding: 20px;
    }
    .item-blog__image {
        display: none;
    }
    .footer {
        padding-bottom: 26px;
    }
    .footer__menu {
        padding-left: 0;
    }
    .footer__publications {
        padding-left: 0;
    }
    .footer__title {
        font-size: 16px;
    }
    .logo__image {
        width: 57px;
        height: 57px;
    }
    .logo--main {
        margin-bottom: 20px;
    }
    .col-contacts {
        display: block;
        padding-top: 10px !important;
    }
    .phone-main {
        font-size: 20px;
    }
    .logo--main .logo__title {
        font-size: 20px;
    }
    .form-main__title {
        padding: 20px 33px;
        font-size: 18px;
    }
    .form-main__subtitle {
        padding: 0 20px;
    }
    .item-form input, .item-form textarea {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
    .sandwich {
        display: flex;
    }
    .menu-mobile {
        width: 100%;
        top: 100%;
        left: 0;
        max-height: 100vh;
        padding: 20px 15px;
        padding-bottom: 80px;
        display: none;
        overflow: auto;
        background: #fff;
        position: absolute;
    }
    .menu__list a {
        margin: 0;
        padding: 15px 0;
        font-size: 16px;
        line-height: 140%;
        text-align: left;
        position: relative;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }
    .menu-mobile .menu {
        display: block;
    }
    .menu-mobile .menu__list {
        display: block;
        margin: 0;
        margin-bottom: 20px;
    }
    .menu-overlay {
        top: 107px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        position: fixed;
        z-index: -1;
        display: none;
    }
    .no-scroll {
        overflow: hidden;
    }
    .slick-arrow {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }
    .portfolio .slick-prev {
        left: -15px;
    }
    .portfolio .slick-next {
        right: -15px;
    }
    .portfolio .slick-arrow {
        top: 320px;
    }
    .blog .row--main>div:nth-child(3) {
        display: none;
        order: 1;
    }
  
      #thanks .form-main__title {
        font-size: 17px;
        padding: 20px 15px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {}


/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .menu-overlay,
    .menu-mobile,
    .show-mobile {
        display: none !important;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
    .container {
        max-width: 1230px;
    }
}


/*hovers*/
@media (hover: hover) {
    .slick-arrow:hover {
        background: #ac1e3d;
        color: #fff;
    }
}

/*mobile hovers*/
@media (hover: none) {
    .slick-arrow:active {
        background: #ac1e3d;
        color: #fff;
    }
}