@font-face {
    font-family: 'Source Serif Pro';
    src: url('../fonts/SourceSerifPro-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #292c32;
}

.container {
    max-width: 1168px;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    transition: opacity 0.5s;
}

a:hover {
    opacity: 0.8;
}

a:active {
    color: #c8e3dc;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

/*! header */

.header {
    background-color: #fff;
    margin: 0 auto;   
}

.header__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    padding: 20px 0;
}

.header__nav {
    display: flex;
    justify-content: end;
    align-items: center;
}

.items {   
    display: flex;
    gap: 20px;
}

.item {
    color: #3a5f56;
}

.header__button {
    position: relative;
}

.btn {
    padding: 10px 45px;
    color: #fff;
    border-radius: 6px;
    background-color: #3a5f56;
    border: none;
    margin-left: 30px;
    transition: opacity 0.5s;
}

.btn:hover {
    opacity: 0.8;
}

.btn:active {
    background-color: #7aa197;
}

button {
transition: opacity 0.5s;
}

button:hover {
opacity: 0.8;
}

button:active {
    background-color: #7aa197;
}

.btn::before {
    content: url(../images/header/Vector.svg);
    position: absolute;
    top: 13px;
    right: 85px;
    z-index: 5;
}

.btn::after {
    content: url(../images/header/btn.png);
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 5;
}

/*! main */

.main {
    overflow: hidden;
}

/*! preview */

.preview {  
    background: #F4F3F0;
    padding: 100px 0; 
    height: 973px;
    overflow: hidden;
}

.preview__inner {
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

.preview__box {
    width: 552px;
    height: 298px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    position: relative;   
}

.preview__title {
    margin-top: -1.73px;
    width: 477px;
    height: 116px;
    color: #3A5F56;
    font-family: "Source Serif Pro", sans-serif;
    font-size: 48px;
    line-height: 57.6px;
    margin-bottom: 13px;
}

.preview__desc {
    width: 534px;
    height: 112px;
    margin-bottom: 17px;
}

.preview__button {
    color: #FFF;
    border-radius: 6px;
    background-color: #3A5F56;
    border: none;
    padding: 10px 21px;
    z-index: 5;
    transition: opacity 0.5s;
} 

.preview__button:hover {
    opacity: 0.8;
}

.preview__button:active {
    background-color: #7aa197;
}

.preview__picture {
    margin-left: 64px;
    position: relative;   
}

.preview__box::before {
    content: "";
    position: absolute;
    width: 723px;
    height: 813px;
    top: 240px;
    left: -350px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(184, 125, 88, 0.80) 0%, rgba(184, 125, 88, 0.00) 100%);
    background-size: contain;
    background-repeat: no-repeat;
}

.preview__picture::after {
    content: "";
    position: absolute;
    width: 564px;
    height: 494px;
    top: -190px;
    right: -240px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(58, 95, 86, 0.55) 0%, rgba(58, 95, 86, 0.00) 100%);
}

.preview__pic {
    width: 552px;
    border-radius: 24px;
    box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.10);
}

/*! services */

.services {
    padding-bottom: 80px;
    padding-top: 100px;
    background: #FFF;
    overflow: hidden;
}

.services .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.services__wrap {
    width: 600px;
    height: 159px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.services__title {
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    color: #3a5f56;
    margin-top: 15px;
    margin-bottom: 11px;
}

.services__desc {
    width: 591px;
    height: 68px;
    padding-bottom: 8px;
}

.services__cards {  
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    text-align: left;
    position: relative;
}

.services__cards::before {
    position: absolute;
    content: "";
    width: 806px;
    height: 663px;
    bottom: -437px;
    left: -685px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(58, 95, 86, 0.38) 0%, rgba(58, 95, 86, 0.00) 100%);
}

.services__card {
    width: 379px;
    height: 304px;
    border-radius: 16px;
    box-shadow: 0 3px 15px 0 rgba(0, 0, 0, 0.03);
    background: #f4f3f0;
}

.services__icon {
    padding: 30px 0 9px 30px;
}

.services__caption {
    font-weight: 400;
    font-size: 24px;
    line-height: 120%;
    color: #3a5f56;
    padding-left: 30px;
    padding-bottom: 6px;
}

.services__text {
    padding-left: 30px;
    padding-bottom: 17px;
    width: 335px;
}

.services__more {
    display: flex;
    align-items: center;
    gap: 11px;   
}

.services__more-text {
    font-size: 17px;
    color: #3a5f56;
    padding-left: 30px;
}

/*! preset */

.preset {
    padding: 100px 0;
    background: #F4F3F0;
    overflow: hidden;
}

.preset .container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.preset__wrap {
    width: 600px;
    height: 159px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.preset__image {
    margin-bottom: 15px;
}

.preset__title {
    color: #DB343B;
    text-align: center;
    font-family: "Source Serif Pro", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 38.4px;
    margin-bottom: 11px;
}

.preset__desc {
    width: 591px;
}

.preset__cards {
    box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.10);
    display: flex;
    gap: 16px;
    margin-bottom: 29px;
    position: relative;
}

.preset__cards::before {
    content: "";
    bottom: -340px;
    right: -342px;
    position: absolute;
    width: 516px;
    height: 501px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(219, 52, 59, 0.30) 0%, rgba(219, 52, 59, 0.00) 100%);
}

.preset__img {
    width: 379px;
    height: 252px;
}

.preset__full-title {
    margin-bottom: 6px;
    color: #3A5F56;
    font-family: "Source Serif Pro", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 33.6px; 
}

.preset__text {
    color: #3A5F56;
    line-height: 23px; 
}

.preset__more {
    border-radius: 0 0 16px 16px;
    background: #FFF;
    width: 378px;
    height: 186px;
    padding: 29px 36px 27px 30px;
    text-align: left;
}

.preset__all {
    color: #3A5F56;
    font-size: 17px;
    line-height: 26px;
}

.preset__tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*! features */

.features {
    height: 459px;
    padding: 100px 0;
}

.features__all {
    margin: 0 auto;
    border-radius: 16px;
    background: #F4F3F0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 800px;
    height: 259px;
    text-align: left;
    position: relative;
}

.features__all::before {
    content: "";
    bottom: -546px;
    left: -423px;
    position: absolute;
    width: 855px;
    height: 774px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(184, 125, 88, 0.35) 0%, rgba(184, 125, 88, 0.00) 100%);
}

.features__desc {
    width: 313px;
    font-size: 28px;
    line-height: 33.6px;
}

.features__btn {
    color: #FFF;
    font-size: 20px;
    line-height: 28px;
    border-radius: 6px;
    background-color: #3A5F56;
    padding: 15px 25px;
    transition: opacity 0.5s;
}

.features__btn:hover {
    opacity: 0.8;
}

.features__btn:active {
    background-color: #7aa197;
}

/*! footer */

.footer {
    background-color: #292C32;
    padding: 100px 0;  
}

.footer__logo {
    display: flex;
    justify-content: center;   
    margin-bottom: 75px;
}

.footer__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    grid-template-areas: "footer__Pages footer__Preset footer__Utillity footer__Newsletter"
                        "footer__Store footer__Business . .";
    column-gap: 16px;
    text-align: left;   
}

.footer__title {
    color: #B87D58;
    font-size: 14px;
    line-height: 19.6px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.footer__Pages {    
    grid-area: footer__Pages;
}

.footer__Store {
    margin-top: -19px;
    grid-area: footer__Store;
}

.footer__Preset {   
    grid-area: footer__Preset;
}

.footer__Business {
    margin-top: -29px;
    grid-area: footer__Business;
}

.footer__Utillity {

    grid-area: footer__Utillity;
}

.footer__Newsletter { 
    grid-area: footer__Newsletter;
}

.footer__list-item a {
    color: #FFF;
}

.footer__list-item a:hover {
    opacity: 0.7;
}

.footer__list-item a:active {
    color: #050505;
}

.footer__list-item {
    margin-bottom: 10px;
}

.email-form input {
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    width: 458px;
    height: 53px;
}

.footer__Newsletter .footer__title {
    margin-bottom: -14px;
}

.footer__Newsletter .email-form {
    margin-top: -6px;
}

.footer__Newsletter .email-form input {
    padding-left: 25px;
}

.email-form {
    position: relative;
}

.text {
    width: 404px;
    color: #FAFAFC;
}

.email-form button {
    position: absolute;
    left: 379px;
    bottom: 5px;
    border-radius: 10px;
    background-color: #292C32;
    color: #FAFAFC;
    padding: 8px 10px;
    transition: background-color 0.2s;
}

.email-form button:hover {
    background-color: #474d55;   
}

.email-form button:active {
    background-color: #292C32;
}

.footer__meta {
    display: flex;
    justify-content: space-between;    
    margin-top: 12px;
}

.footer__copy { 
    color: #FFF;
    line-height: 170%;
}

.social__img {
    padding-left: 16px;  
}

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .preview {
        height: auto;
    }

    .preview__inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .preview__box {
        align-items: center;
    }

    .preview__title {
        margin-top: 25px;
    }

    .preview__picture {
        margin-left: 0;
    }

    .services__cards {
        justify-content: center;
    }

    .services__cards::before {
        left: -590px;
    }

    .preset__cards {
        flex-wrap: wrap;
        justify-content: center;
        box-shadow: none;
    }

    .footer__list {
        grid-template-columns: max-content;
        grid-template-rows: max-content;
        grid-template-areas: "footer__Pages footer__Preset footer__Utillity"
                        "footer__Store footer__Business .."
                        ". footer__Newsletter .";

                        gap: 16px;
                        justify-content: center;
                        text-align: center;
    }

    .footer__meta {
        justify-content: center;
        gap: 40px;
    }

    .footer__Newsletter {
        margin-bottom: 30px;
    }
}

@media (max-width: 850px) {
    .services__icon {
        padding: 20px 0 12px 168px;
    }

    .services__more-text {
        padding-left: 140px;
    }

    .features__all {
        width: auto;
    }

    .email-form input {
        width: 300px;
    }

    .email-form button {
        left: 270px;
    }

    .footer__list {
        gap: 5px;
    }  
}

@media (max-width: 750px) {
    .footer {
        padding: 50px 0;
    }

    .footer__logo {
        margin-bottom: 50px;
    }

    .footer__list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer__Pages {
        margin-bottom: 15px;
    }
    
    .footer__Preset {
        margin-bottom: 30px;
    }
    
    .footer__Newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .text {
        padding-bottom: 10px;
    }

    .footer__meta {
        flex-direction: column;
        margin-top: 0;
    }
}

@media (max-width: 650px) {
    .header__navigation {
        flex-direction: column;
    }

    .header__logo {
        padding: 30px 0;
    }

    .header__nav {
        flex-direction: column;
        padding-bottom: 20px;
        gap: 20px;
    }
    
    .items {
        flex-direction: column;
        gap: 5px;
    }

    .btn {
        margin-left: 0;
    }

    .preview {
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .preview__box {
        display: flex;
    }

    .preview__title {
        width: 320px;
        font-size: 32px;
        line-height: 40px;
    }

    .preview__desc {
        width: 400px;
    }
    
    .preview__button {
        margin-top: 35px;
    }

    .preview__picture {
        width: 400px;
    }

    .services {
        padding: 45px 0;
    }

    .services__desc {
        width: 415px;
    }

    .preset {
        padding: 50px 0;
    }

    .preset .container {
        align-content: center;
    }

    .preset__desc {
        width: 415px;
    }

    .features {
        padding: 50px 0;
        height: unset;
    }
    
    .heading {
        width: 120px;
    }
}

@media (max-width: 550px) {
    .preview__box::before {
        display: none;
    }

    .preview__picture::after {
        display: none;
    }

    .services__cards::before {
        display: none;
    }

    .preset__cards::before {
        display: none;
    }

    .features__all {
        height: 150px;
    }

    .features__all::before {
        display: none;
    }

    .features__desc {
        width: 240px;
        font-size: 23px;
        line-height: 30px;
    }
    
    .features__btn {
        font-size: 16px;
        padding: 10px 15px;
    }
}

@media (max-width: 450px) {
    .header__logo {
        width: 100px;
    }

    .btn {
        font-size: 14px;
        padding: 5px 28px;
    }

    .btn::before {
        display: none;
    }

    .btn::after {
        display: none;
    }

    .preview__title {
        font-size: 24px;
        width: 235px;
        line-height: 30px;
    }

    .preview__desc {
        width: 290px;
        margin-bottom: 54px;
        font-size: 14px;
    }

    .preview__button {
        font-size: 14px;
        padding: 7px 17px;
    }
    
    .preview__picture {
        width: 300px;
    }

    .services__wrap {
        margin-bottom: 60px;
    }
    
    .services__img {
        width: 100px;
    }

    .services__title {
        font-size: 26px;
        margin-top: 10px;
        margin-bottom: 7px;
    }

    .services__desc {
        width: 290px;
    }
    
    .services__card {
        width: 290px;
        padding-bottom: 10px;
        height: unset;
    }

    .services__icon {
        padding: 20px 0 12px 130px;
    }

    .services__caption {
        font-size: 21px;
        padding-bottom: 15px;
    }

    .services__text {
        width: 260px;
        font-size: 14px;
    }
    
    .services__more-text {
        padding-left: 100px;
    }

    .preset {
        padding: 45px 0;
    }

    .preset__wrap {
        margin-bottom: 60px;
    }

    .preset__image {
        width: 100px;
        margin-bottom: 10px;
    }

    .preset__title {
        margin-bottom: 7px;
        font-size: 26px;
    }

    .preset__desc {
        width: 290px;
    }

    .preset__cards {
        flex-direction: column;
    }

    .preset__card {
        width: 290px;
    }
    
    .preset__img {
        width: 290px;
    }

    .preset__more {
        width: 290px;
    }
    
    .preset__more {
        padding: 10px 24px 27px 25px;
        height: 100%;
    }

    .preset__full-title {
        font-size: 21px;
    }

    .preset__text {
        font-size: 14px;
        width: 245px;
    }

    .features {
        padding: 45px 0;
    }

    .features__desc {
        width: 225px;
        font-size: 21px;
    }

    .features__btn {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .footer {
        padding: 45px 0;
    }

    .heading {
        width: 100px;
    }

    .text {
        width: 300px;
    }

    .email-form button {
        left: 230px;
        font-size: 14px;
        padding: 3px 8px;
        bottom: 4px;
    }

    .email-form input {
        height: 40px;
    }

    .footer__Newsletter .email-form input {
        font-size: 14px;
        padding-left: 15px;
    }

    a {
        font-size: 14px;
    }
}




