@import url('https://fonts.googleapis.com/css2?family=Inika:wght@400;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.container-wide {
    width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

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

    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: unset;
        padding-right: unset;
    }
}

@media (max-width: 380px) {
    .container {
        padding-left: unset;
        padding-right: unset;
    }
}

/* Header */

header {
    background-color: #EDF2EC;
}

.header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 134px;
    font-family: 'Inika', serif; 
    font-weight: 400;
}

.header-logo {
    display: flex;
    color: #000000;
    font-size: 16px;
    padding-bottom: 10px;
}

.header-logo h3 {
    padding-top: 10px;
}

.header-nav {
    width: 452px;
}

.header-nav ul {
    display: flex;
    justify-content: space-between;
}

.header-nav ul a {
    color: #010201;
}

.header-nav ul li:first-child a {
    font-weight: 700;
    color: #E06733;
}

.header-nav ul li a:hover {
    color: #E06733;
    transition-timing-function: ease-in;
    transition: 0.4s;
}

.header-burger {
    display: none;
}

@media (max-width: 768px) {
    .header-block {
        padding-right: 50px;
        padding-left: 50px;
        height: 117px;
    }
}

@media (max-width: 630px) {
    .header-nav ul {
        justify-content: end;
        column-gap: 5px;
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .header-nav ul {
        /* display: none; */
        visibility: hidden;
        opacity: 0;
        /* transform: translateY(10px); */
        transition: background-color 3s;
    }

    .header-logo {
        margin-bottom: 16px;
        margin-left: -26px;
    }

    .header-burger {
        display: block;
        position: absolute;
        top: 35px;
        right: 25px;
    }

    .header-nav.open .nav-list {
        max-width: 380px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 20px;
        padding-top: 30px;
        font-size: 28px;
        line-height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgb(217, 237, 213, 0.97);
        visibility: visible;
        /* transform: translateY(-10px); */
        opacity: 1;
        transition: all 0.3s;
    }

    .header-nav ul li:first-child a,
    .header-nav ul a {
        font-weight: 400;
        color: #636060;
        font-size: 25px;
    }
}

/* Welcome */

.welcome {
    font-family: 'Inter', sans-serif;
}

.welcome {
    background-color: #EDF2EC;
}

.welcome-block {
    display: flex;
    justify-content: space-between;
    height: 532px;
}

.welcome-img {
    margin-top: 62px;
}

.welcome-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 549px;
    height: 340px;
    margin-top: 98px;
}

.welcome-row span {
    color: #499A18;
}

.welcome-title {
    font-weight: 700;
    font-size: 45px;
    line-height: 50px;
    color: #717171;
}

.welcome-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 35px;
    color: #636060;
}

.welcome-btn {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    border: 2px solid #E06733;
    border-radius: 10px;
    width: 158px;
    height: 44px;
}

.welcome-btn:hover {
    background-color: #E06733;
    color: white;
    transition-timing-function: ease-in;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .welcome-block {
        flex-direction: row-reverse;
        padding-left: 50px;
        padding-right: 50px;
        padding-bottom: 70px;
        height: 420px;
        align-items: flex-end;
        padding-top: 40px;
    }

    .welcome-title {
        font-size: 35px;
        padding-top: 30px;
    }

    .welcome-text {
        font-size: 16px;
        line-height: 25px;
    }

    .welcome-img {
        height: 100%;
        width: 280px;
    }

    .welcome-row {
        width: 346px;
    }

    .welcome-text {
        padding-left: 5px;
    }
}

@media (max-width: 550px) {
    .welcome-title {
        font-size: 25px;
        padding-top: unset;
        line-height: 30px;
    }
}

@media (max-width: 380px) {
    .welcome-block {
        height: 280px;
        padding-top: unset;
        padding-bottom: unset;
        padding-left: 25px;
        padding-right: 25px;
    }

    .welcome-title {
        font-size: 25px;
        line-height: 35px;
        margin-top: 35px;
        margin-bottom: -50px;
        padding-top: 30px;
    }

    .welcome-btn {
        font-size: 10px;
        line-height: 20px;
        width: 100px;
        height: 34px;
        margin-bottom: 25px;
    }

    .welcome-img {
        display: none;
    }

    .welcome-text {
        padding-left: unset;
        margin-top: 45px;
    }
}

/* About */

.about-block {
    display: flex;
    justify-content: space-between;
    height: 666px;
    align-items: center;
}

.about-row {
    width: 605px;
}

.about-title {
    font-family: 'Inika', serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 52px;
    color: #499A18;
    margin-bottom: 40px;
    margin-top: 10px;
}

.about-title span {
    color: #E06733;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #636060;
}

@media (max-width: 768px) {
    .about-block {
        height: 783px;
        flex-direction: column;
        justify-content: center;
    }

    .about-title {
        font-size: 35px;
        line-height: 46px;
        text-align: center;
        padding-top: 30px;
        margin-bottom: 50px;
    }

    .about-img {
        height: 100%;
        width: 250px;
    }

    .about-row {
        width: 668px;
        margin-bottom: 69px;
    }

}

@media (max-width: 680px) {
    .about-text {
        width: 600px;
        padding-left: 50px;
    }
}

@media (max-width: 570px) {
    .about-block {
        height: 1000px;
    }

    .about-text {
        width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 380px) {
    .about-block {
        margin-right: 25px;
        margin-left: 25px;
        height: 516px;
    }

    .about-row {
        width: 330px;
        margin-top: -10px;
        margin-bottom: unset;
    }

    .about-title {
        font-size: 25px;
        line-height: 33px;
        margin-bottom: 12px;
    }

    .about-text {
        font-size: 15px;
        line-height: 25px;
        width: unset;
        padding-left: unset;
        margin-left: unset;
        margin-right: unset;
    }

    .about-img {
        height: 100%;
        width: 150px;
    }
}

@media (max-width: 333px) {
    .about-text {
        width: 300px;
        padding-left: 10px;
    }
}

/* Service */
.service {
    background-color: #EDF2EC;
}

.service-block {
    height: 1300px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding-top: 40px; */
    margin-bottom: 90px;
    width: 1007px;
    height: 94px;
}

.service-title {
    width: 306px;
    font-family: 'Inika', serif; 
    font-weight: 400;
    font-size: 40px;
    line-height: 52px;
    color: #499A18;
    padding-top: 7px;
}

.service-btn {
    font-family: 'Inika', serif; 
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #E06733;
    width: 161px;
    height: 50px;
    border: 1px solid #E06733;
    border-radius: 5px;
    transition-timing-function: ease-in;
    transition: 0.5s;
}

.service-btn:hover {
    background-color: #e1a389;
    transition-timing-function: ease-in;
    transition: 0.3s;
    color: white;
}

.service-btn.color {
    background-color: #E06733;
    color: white;
    transition-timing-function: ease-in;
    transition: 0.5s;
}

.service-btns {
    display: flex;
    justify-content: space-between;
    column-gap: 38px;
    padding-top: 15px;
    width: 559px;
}

/* Service card */

.service-card {
    transition: 0.5s;
}

.service-card.blured {
    filter: blur(3px);
    transition-timing-function: ease-in;
    transition: 0.5s;
}

.service-block {
    padding-top: 40px;
}

.service-pics {
    display: grid;
    grid-template-columns: repeat(3, 330px);
    column-gap: 115px;
    row-gap: 55px;
}

.service-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: #E06733;
    margin-top: 10px;
    margin-bottom: 13px;
}

.service-card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #717171;
}

.service-img {
    border-radius: 20px 20px 0px 0px;
}

.service-figcaption {
    border: 1px solid #E3E1D5;
    border-radius: 0px 0px 20px 20px;
    height: 100px;
    width: 330px;
    text-align: center;
}

.service-img-tablet {
    display: none;
}

@media (max-width: 1260px) {
    .service-pics {
        grid-template-columns: repeat(2, 330px);
        justify-content: center;
    }

    .service-block {
        height: 1750px;
    }
}

@media (max-width: 1040px) {
    .service-btns {
        flex-direction: column;
        row-gap: 10px;
        align-items: inherit;
    }
}

@media (max-width: 834px) {
    .service-btns {
        align-items: flex-start;
    }

    .service-pics {
        grid-template-columns: repeat(1, 330px);
    }

    .service-block {
        height: 3250px;
    }
}

@media (max-width: 768px) {
    .service-btns {
        flex-direction: row;
        row-gap: unset;
        align-items: unset;
    }

    .service-block {
        height: 1780px;
    }

    .service-pics {
        grid-template-columns: repeat(2, 281px);
        padding-left: 50px;
        padding-top: 60px;
        column-gap: 106px;
        row-gap: 38px;
        justify-content: unset;
    }

    .service-card {
        height: 450px;
    }

    .service-header {
        flex-direction: column;
        align-items: unset;
        padding-left: 50px;
    }

    .service-title {
        font-size: 35px;
        line-height: 46px;
        padding-top: 20px;
        margin-bottom: 27px;
    }

    .service-btn {
        font-size: 20px;
        line-height: 26px;
    }

    .service-img {
        width: 280px;
        height: auto;
    }

    .service-figcaption {
        height: 100px;
        width: unset;
    }

    .service-img {
        display: none;
    }

    .service-img-tablet {
        display: block;
        border-radius: 20px 20px 0px 0px;
    }

    .service-card-text {
        width: 201px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card-title {
        margin-bottom: 10px;
    }
}

@media (max-width: 630px) {
    .service-block {
        height: 3200px;
    }

    .service-pics {
        grid-template-columns: repeat(1, 281px);
    }
}

@media (max-width: 730px) {
    .service-block {
        height: 3300px;
    }

    .service-btns {
        flex-direction: column;
        row-gap: 5px;
    }

    .service-pics {
        padding-top: 140px;
        grid-template-columns: repeat(1, 281px);
    }
} 

@media (max-width: 380px) {
    .service-block {
        height: 3150px;
    }

    .service-title {
        font-size: 25px;
        line-height: 33px;
        margin-left: -25px;
        width: 187px;
        margin-top: -12px;
        padding-top: unset;
    }

    .service-btn {
        width: 121px;
        height: 35px;
        font-size: 15px;
        line-height: 20px;
    }

    .service-btns {
        flex-direction: row;
        padding-top: 12px;
        width: 252px;
        margin-left: -25px;
        flex-wrap: wrap;
        column-gap: 10px;
        row-gap: 9px;
        justify-content: unset;
    }

    .service-pics {
        padding-top: 29px;
        display: flex;
        flex-direction: column;
        row-gap: 34px;
    }

    .service-figcaption {
        width: 280px;
    }

    .service-card:nth-child(3) .service-card-text {
        margin-top: -5px;
    }
}

@media (max-width: 333px) {
    .service-pics {
        padding-left: 15px;
    }
}

/* Prices */

.prices-block {
    font-family: 'Inter', sans-serif;
    height: 517px;
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.prices-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: #000000;
    margin-bottom: 60px;
}

.prices-box {
    border: 1px solid #E3E1D5;
    border-radius: 20px;
    width: 332px;
    height: 282px;
    padding: 34px 41px 34px 41px;
    display: flex;
    flex-direction: column;
    row-gap: 32px;
}

.prices-box-btn {
    width: 250px;
    height: 50px;
    background: #EDF2EC;
    border-radius: 20px;
    padding: 0 40px 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.prices-box-img {
    background-image: url('./img/prices/accordion_btn.svg');
    height: 16px;
    width: 16px;
    transition-timing-function: ease-in;
    transition: 0.4s;
}

.prices-box-img:hover {
    background-image: url('./img/prices/accordion_btn-hover.svg');
    transition-timing-function: ease-in;
    transition: 0.4s;
}

.prices-box-text,
.prices-box-price,
.prices-box-order {
    display: none;
}

/* Box open */
.prices-box.open {
    height: 380px;
}

.prices-box-btn.open {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 250px;
    height: 154px;
    background-color: #D6E7D2;
    padding: 15px 40px 15px 40px;
}

.prices-box-btn.open .prices-box-img {
    position: absolute;
    right: 40px;
    top: 15px;
    background-image: url('./img/prices/accordion_btn-close.svg');
}

.prices-box-btn.open .prices-box-text {
    display: block;
    font-family: 'Inter';
    font-weight: 300;
    font-size: 10px;
    line-height: 10px;
    color: #717171;
    border-top: 0.5px solid #AEA1A1;
    padding-top: 5px;
}

.prices-box-btn.open .prices-box-price {
    display: block;
    font-size: 12px;
    line-height: 20px;
}

.prices-box-btn.open .prices-box-price .prices-price-color {
    color: #E06733;
    font-size: 18px;
    font-weight: bold;
}

.prices-box-btn.open .prices-box-order {
    display: block;
    width: 86px;
    height: 25px;
    background-color: #FFFFFF;
    border-radius: 10px;
}

.prices-box-btn.open .prices-box-order a {
    color: #717171;
}


/* Box open */

.prices-box-btn:hover {
    background: #d7ecd2;
    transition-timing-function: ease-in;
    transition: 0.3s;
}

.prices-box-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: #000000;
}

button {
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: #000000;
}

.prices-text {
    width: 452px;
    display: flex;
    flex-direction: column;
    row-gap: 38px;
    align-items: flex-end;
}

.prices-text-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-align: right;
    color: #000000;
}

.prices-text-title span {
    color: #499A18;
}

.prices-btn {
    font-family: 'Inika', serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    color: #E06733;
    border: 1px solid #E06733;
    border-radius: 5px;
    width: 162px;
    height: 50px;
}

.prices-btn:hover {
    background-color: #E06733;
    color: white;
    transition-timing-function: ease-in;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .prices-title {
        font-size: 35px;
        line-height: 42px;
        padding-left: 15px;
    }

    .prices-block {
        margin-left: 50px;
        margin-right: 50px;
        margin-bottom: 30px;
    }

    .prices-text-title {
        font-size: 25px;
        line-height: 35px;
    }

    .prices-text {
        margin-top: 100px;
        margin-bottom: 22px;
    }

    .prices-btn {
        margin-top: -10px;
    }
}

@media (max-width: 580px) {
    .prices-block {
        display: flex;
        flex-direction: column;
        height: 900px;
        justify-content: flex-start;
    }

    .prices-text,
    .prices-box {
        width: 300px;
    }
}

@media (max-width: 380px) {
    .prices-block {
        flex-direction: column;
        height: 470px;
        justify-content: flex-start;
        margin-bottom: unset;
    }

    .prices-title {
        font-size: 25px;
        line-height: 30px;
        text-align: center;
        margin-top: -15px;
        padding-left: unset;
        margin-bottom: 35px;
    }

    .prices-box {
        width: 224px;
        height: 235px;
        margin-left: auto;
        margin-right: auto;
        row-gap: 14px;
        justify-content: space-evenly;
    }

    .prices-box-btn {
        width: 180px;
        height: 50px;
        text-align: center;
        margin-left: -22px;
    }

    .prices-box-title {
        font-size: 15px;
        line-height: 20px;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-left: -7px;
    }

    .prices-text-title {
        font-size: 20px;
        line-height: 35px;
        text-align: center;
        margin-top: 0px;
    }

    .prices-text {
        width: 230px;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }

    .prices-img {
        display: none;
    }

    .prices-btn {
        width: 121px;
        height: 35px;
        margin-top: -17px;
        font-size: 15px;
        line-height: 20px;
    }
}

/* Contacts */

.contacts {
    background-color: #EDF2EC;
}

.contact-block {
    display: flex;
    height: 550px;
}

.contact-img {
    width: 400px;
    height: 497px;
    margin-top: 53px;
}

.contact-title {
    font-family: 'Inika', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 52px;
    color: #499A18;
    margin-top: 60px;
    margin-left: 113px;
    margin-right: 64px;
}

.contact-btn {
    position: relative;
    background-color: #D6E7D2;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 0px;
    width: 450px;
    height: 50px;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: space-between;
    align-items: center;
    margin-top: 148px;
}

.contact-btn:hover {
    background-color: #bbdcb3;
    transition-timing-function: ease-in;
    transition: 0.3s;
}

.contact-btn-img {
    background-image: url('./img/contacts/accordion_btn_contact.svg');
    height: 16px;
    width: 16px;
    cursor: pointer;
}

.contact-btn-title {
    font-family: 'Inter', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #717171;
}

.contact-cities,
.render-card-city {
    display: none;
}

/* Open city */

.contact-btn-img.open {
    background-image: url('./img/contacts/btn-up.svg');
}

.contact-btn.open {
    box-shadow: unset;
    background-color: #C1E698;
}

.contact-cities.open {
    position: absolute;
    display: block;
    width: 450px;
    height: 234px;
    background-color: #DCE9D9;
    left: 0;
    top: 50px;
}

.contact-list {
    padding: 27px 35px 31px 35px;
}

.contact-item {
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #499A18;
    border-bottom: 1px solid #D9D9D9;
    transition-timing-function: ease-in;
    transition: 0.5s;
    cursor: pointer;
}

.contact-item:hover {
    color: #717171;
    transition-timing-function: ease-in;
    transition: 0.5s;
    border-bottom: 1px solid #717171;
}

.render-card-city.open {
    display: flex;
    flex-direction: column;
    padding: 17px 76px 32px 33px;
    position: absolute;
    top: 100px;
    left: 0;
    width: 448px;
    height: 214px;
    background: #EDF2EC;
    border: 1px solid #000000;
    border-radius: 20px;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #000000;
}

.render-btn {
    border: 1px solid #E06733;
    border-radius: 5px;
    width: 122px;
    height: 26px;
    font-weight: 700;
    font-size: 10px;
    line-height: 13px;
    text-align: center;
    color: #717171;
    margin-left: 132px;
    margin-top: 10px;
}

.card-row {
    display: flex;
}

.fixed-text {
    width: 130px;
}

.render-text {
    font-size: 16px;
    line-height: 40px;
    letter-spacing: 0.05em;
    color: #717171;
}

/* Open city */

@media (max-width: 1000px) {
    .contact-block {
        flex-direction: column;
        align-items: center;
    }

    .contact-img {
        height: 200px;
        width: auto;
    }

    .contact-btn {
        margin-top: 50px;
    }

    .contact-title {
        margin-left: unset;
        margin-right: unset;
    }
}

@media (max-width: 768px) {
    .contact-block {
        height: 739px;
        flex-direction: row;
        align-items: unset;
    }

    .contact-block {
        flex-direction: column;
        align-items: center;
    }

    .contact-img {
        order: 10;
        width: 200px;
        height: 249px;
        margin-top: 250px;
        margin-left: 20px;
    }

    .contact-btn {
        margin-top: 148px;
    }

    .contact-title {
        margin-top: 40px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: -50px;
    }
}

@media (max-width: 580px) {
    .contact-btn {
        width: 300px;
    }
}

@media (max-width: 380px) {
    .contact-block {
        height: 445px;
    }

    .contact-title {
        font-size: 25px;
        line-height: 33px;
        margin-top: 25px;
    }

    .contact-btn {
        width: 300px;
        height: 50px;
        margin-top: 131px;
        padding-bottom: 10px;
    }

    .contact-img {
        width: 100px;
        height: 124px;
        margin-top: 132px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-btn-title {
        margin-top: 10px;
    }

    .contact-btn-img {
        margin-right: -13px;
        margin-top: 10px;
    }
}

/* Footer */

.footer-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

.footer-year {
    display: flex;
    column-gap: 22px;
    width: 182px;
    font-family: 'Inter', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 50px;
    color: #000000;
    margin-right: 324px;
}

.footer-year a {
    color: #000000;
}

.footer-name {
    font-family: 'Inter', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 50px;
    color: #000000;
    margin-right: 317px;
}

.footer-icons ul {
    width: 188px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-icons a:not(:last-child) {
    margin-right: 18px;
}

.footer-github:hover,
.footer-name:hover {
    color: #499A18;
    transition-timing-function: ease-in;
    transition: 0.3s;
}

.footer-icons li:hover {
    transition-timing-function: ease-in-out;
    transition: 0.3s;
    transform: scale(1.6);

}

@media (max-width: 1080px) {
    .footer-block {
        flex-direction: column;
    }

    .footer-year {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        margin-bottom: -20px;
    }

    .footer-name {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .footer-block {
        flex-direction: column;
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .footer-year {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        margin-bottom: -20px;
    }

    .footer-name {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 380px) {
    .footer-block {
        justify-content: flex-start;
    }

    .footer-year {
        margin-bottom: -8px;
        margin-top: -10px;
    }
}