/* Tablet 
 */

@media (max-width: 1199px) {
    .container {
        width: 900px;
    }

    /* Header */
    .header {
        height: 591px;
    }

    .header-top {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }


    .header-content {
        width: 900px;
    }

    .header-nav-button {
        display: block;
        background: transparent;
        border: none;
    }

    .header-nav-list {
        display: none;
    }

    .header-content h1 {
        font-size: 52px;
    }

    .header-scroll-link {
        font-size: 0;
    }

    /* Main */
    .main {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .main-row {
        margin-bottom: 80px;
    }

    .main-row-content {
        width: 420px;
    }

    .main-row-img {
        width: 420px;
    }

    .main-header {
        font-size: 50px;
        line-height: 1;
    }

    .main-row-content-text {
        margin-bottom: 20px;
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .footer-widget-services {
        display: none;
    }

    .footer-copyright .logo {
        font-size: 30px;
    }

    .footer-copyright p {
        font-size: 14px;
    }

    .logo-list {
        margin-top: 20px;
    }

    .footer-widget-title {
        margin-bottom: 20px;
    }
}

/* Mobile
 */

@media (max-width: 899px) {
    .container {
        width: 100%;
    }

    /* Header */
    .header-top,
    .header-content {
        width: 100%;
    }

    .header-content h1 {
        font-size: 42px;
        line-height: 1;
    }

    .header-content p {
        font-size: 20px;
    }

    /* Main */
    .main {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .main-row {
        margin-bottom: 60px;
        flex-direction: row-reverse;
    }

    .main-row:nth-child(even) {
        flex-direction: row-reverse;
    }

    .main-row-img {
        width: 170px;
        flex-shrink: 0;
        margin-right: 30px;
    }

    .main-row-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .main-header {
        font-size: 42px;
    }

    .main-row-content {
        width: auto;
    }

    .main-row-content-text {
        font-size: 16px;
    }

    .button {
        padding: 11px 30px 12px;
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .footer-row {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        /* либо можно задать, вместо этого, классу footer-copyright order: 1;, logo с текстом также уйдут вниз */
    }

    .footer-widgets-wrappers {
        margin-bottom: 50px;
        padding-top: 0;
    }

    .footer-widgets-wrappers>* {
        /* width: 270px; */
        width: calc(50% - 15px);
    }

    .footer-copyright {
        width: auto;
    }
}

/* Mobile-XS
 */

@media (max-width: 599px) {
    .container {
        width: 320px;
    }

    /* Header */
    .header-top {
        width: 100%;
    }

    .logo {
        font-size: 30px;
    }

    .header-content h1 {
        margin-bottom: 10px;
        font-size: 32px;
    }

    .header-content p {
        font-size: 18px;
    }

    /* Main */
    .main .container {
        width: 100%;
    }
    .main {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .main-row {
        margin-bottom: 40px;
        flex-direction: column-reverse;
    }

    .main-row:nth-child(even) {
        flex-direction: column-reverse;
    }

    .main-row-img {
        width: auto;
        height: 150px;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .main-header {
        font-size: 34px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: center;
    }

    .footer-widgets-wrappers {
        align-items: baseline;
        flex-direction: column;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    .footer-widget-services {
        display: block;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    .footer-widget+.footer-widget {
        margin-left: 0;
    }

    .footer-widgets-wrappers>* {
        width: 100%;
    }

    .footer-widget-title {
        margin-bottom: 10px;
        font-size: 20px;
    }

    .footer-copyright {
        width: auto;
    }

    .footer-widget-list {
        font-size: 16px;
    }

    .footer-widget-list li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .logo-list {
        margin-top: 10px;
    }
}