* {
    box-sizing: border-box;
}

body {
    background: #F4F3F7;
    font-family: 'Unbounded', sans-serif;
    color: #434343;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.header {
    padding-top: 32px;
    padding-bottom: 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    line-height: 27.84px;
    color: #F5401E;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #434343;
}

section {
    padding: 60px 0px;
}

img {
    max-width: 100%;
}

.hero-section {
    background: #F5401E;
    color: #fff;
    text-align: center;
}

.heading-primary {
    font-size: 48px;
    font-weight: 600;
    line-height: 55.68px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.text {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
}

.about-section .container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.heading-secondary {
    font-size: 34px;
    font-weight: 600;
    line-height: 42.16px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.heading-dark {
    color: #111111;
}

.link {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    text-align: right;
    color: #F5401E;
    display: block;
    margin-top: 24px;
}

.stats-section {
    background: #F5401E;
    color: #fff;
}

.stats-section .text {
    max-width: 735px;
}

.stats-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 40px;
    column-gap: 157px;
    row-gap: 32px;
}

.heading-tertiary {
    font-size: 24px;
    font-weight: 600;
    line-height: 29.76px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 45px;
    row-gap: 32px;
}

.features-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.features-item .heading-tertiary {
    max-width: 406px;
}

.success-section {
    background-image: url('../img/success-bg.png');
    color: #fff;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0px;
}

.success-section .heading-secondary {
    margin-bottom: 0px;
}

.blog-section {
    background: #F5401E;
}

.blog-section .heading-secondary {
    color: #fff;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-item {
    background: #FFFFFF;
    padding: 32px;
}

.blog-item img {
    width: 100%;
    margin-bottom: 32px;
}

.approach-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.approach-item {
    background: #FFFFFF;
    padding: 32px 20px;
    text-align: center;
}

.contact-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 39.68px;
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 23px;
    row-gap: 20px;
    max-width: 625px;
    margin: 0 auto;
}

.contact-input {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 22.32px;
}

textarea.contact-input {
    resize: none;
    grid-row: span 2; 
}

.btn-primary {
    background: #F5401E;
    border-radius: 40px;
    padding: 17.5px;
    border: none;
    cursor: pointer;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24.8px;
    text-align: center;
    color: #fff;
    cursor: pointer;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer {
    padding: 30px 0px;
    border-top: 2px solid #F5401E;
}

.footer-link {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #494949;
    text-decoration: none;
}

.footer-nav {
    display: flex;
    gap: 16px;
}

.about-main img {
    width: 100%;
    margin-bottom: 20px;
}

.main-content .btn-primary {
    display: inline-block;
    margin-top: 24px;
    text-decoration: none;
    padding: 12px 35px;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
}

html {
    scroll-behavior: smooth;
}

.popup {
    background: #F5401E;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    padding: 40px 0px;
}

.popup-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    margin-bottom: 20px;
}

.popup-btns {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.popup-btn {
    border-radius: 60px;
    background: #FFFFFF;
    padding: 12px;
    width: 200px;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Unbounded', sans-serif;
}

.popup-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.popup.hidden {
    display: none;
}

.heading-secondary.mobile {
    display: none;
}

.contact-input:focus {
    outline: none;
}

.contact-input::placeholder {
    color: #7D7D7D;
}

@media(max-width: 1200px) {
    .popup {
        text-align: center;
    }

    .popup-btns {
        flex-direction: column;
        align-items: center;
    }

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

    .container {
        padding: 0px 20px;
    }

    .hero-section .container {
        padding: 0px;
    }

    .about-section img {
        height: 479px;
        width: auto;
        object-fit: cover;
    }

    .about-section .container {
        flex-direction: column-reverse;
        align-items: center;
    }

    .heading-secondary {
        text-align: center;
    }

    .about-section .heading-secondary {
        display: none;
    }

    .heading-secondary.mobile {
        display: block;
    }

    .stats-list,
    .features-list {
        grid-template-columns: 1fr;
    }

    .stats-section {
        text-align: center;
    }

    .success-section {
        padding: 80px 20px;
    }

    .blog-list,
    .approach-list {
        grid-template-columns: 1fr;
    }

    .blog-item img {
        height: 200px;
        object-fit: cover;
    }

    .blog-item {
        height: 828px;
    }

    .approach-item {
        height: 254px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    textarea.contact-input {
        height: 140px;
    }

    .footer-row {
        flex-direction: column;
        gap: 20px;
    }

    .footer-row:first-child {
        align-items: flex-start;
    }

    .footer {
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .main-content .heading-secondary,
    .about-main .heading-secondary {
        text-align: left;
    }

    .about-main img {
        height: 479px;
        width: 100%;
        object-fit: cover;
    }
}