@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body {
    /*font-family: "DM Serif Display", serif;*/
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
    color: #4D5053;
    background-color: #eae9e8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.hero {
    position: relative;
    overflow: hidden;
    height: 780px;
    min-height: 400px;
    max-height: 1042px;
    display: flex;
    align-items: center;
    margin-bottom: 198px;
}
.container-hero {
    flex-basis: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.hero__img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: -1;
}
.hero__title {
    font-size: 165px;
    line-height: 1.25;
    font-weight: 400;
    color: #eae9e8;
    margin-top: 0;
    margin-bottom: 30px;
    opacity: 0.9;
    text-transform: uppercase;
    font-style: oblique;
}
.span-main {
    font-style: normal;
}
.hero__title,
.hero__text {
    font-family: "DM Serif Display", serif;
    max-width: 600px;
}
.hero__name {
    font-size: 70px;
    margin: 0;
    color: #eae9e8;
}
.hero__text {
    font-size: 35px;
    margin: 0;
    color: #eae9e8;
    max-width: 100%;
}
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 75px;
}
.about__text {
    flex-grow: 1;
    flex-basis: calc(100% - 700px);
}
.title {
    font-family: "DM Serif Display", serif;
    text-transform: uppercase;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
    font-style: italic;
}
.link {
    font-family: "Jost", sans-serif;
    display: inline-block;
    text-transform: uppercase;
    padding: 26px 31px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #4D5053;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #4D5053;
    border-radius: 1rem;
    position: relative;
    transition: all .2s ease;
    font-style: oblique;
}
.link:hover {
    border: 2px solid #4D5053;
    background: #4D5053;
    color: #eae9e8;
}
.about__thumb {
    position: relative;
    overflow: hidden;
    flex-basis: 500px;
    height: 520px;
}
.about__img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 1rem;
}
.mywork {
    margin-top: 10rem;
}
.title-mywork {
    text-align: center;
}
.swiper {
    width: 1000px;
    height: 500px;
}
.swiper-slide img {
    width: 1000px;
    height: 500px;
}
.services {
    margin-top: 10rem;
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #4D5053;
}
.title-services {
    text-align: center;
    color: #eae9e8;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 27px;
}
.services-item {
    border: 2px solid #eae9e8;
    border-radius: 6rem;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.services-title {
    font-family: "DM Serif Display", serif;
    margin: 0;
    color: #eae9e8;
}
.services-text {
    color: #eae9e8;
    margin-top: 15px;
    margin-bottom: 15px;
}
.services-price {
    color: #eae9e8;
    margin: 0;
    font-weight: 600;
    font-style: oblique;
}
.services-btn {
    font-family: "Jost", sans-serif;
    text-transform: uppercase;
    padding: 26px 31px;
    max-height: 80px;
    margin: auto 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: #4D5053;
    border: 2px solid #eae9e8;
    border-radius: 1rem;
    cursor: pointer;
    transition: all .2s ease;
    font-style: oblique;
}
.services-btn a {
    text-decoration: none;
    color: #eae9e8;
}
.reviews {
    margin-top: 10rem;
}
.title-reviews {
    text-align: center;
}
.swiperTwo {
    overflow: hidden;
    position: relative;
}
.swiper-wrapper {
    padding-bottom: 65px;
}
.swiperFeedback__slide {
    text-align: center;
    background-color: #4D5053;
    border: 2px solid #4D5053;
    border-radius: 70px;
    padding: 30px 70px;
    box-sizing: border-box;
    height: 400px;
}
.swiperFeedback__text {
    font-family: "Jost", sans-serif;
    font-style: italic;
    font-weight: 400;
    line-height: 1.25;
    color: #eae9e8;
    padding-left: 25px;
    padding-right: 25px;
}
.swiperFeedback__text::before {
    content: '';
    background-image: url(../img/quotes.svg);
    display: block;
    width: 31px;
    height: 23px;
    margin: 0 auto 27px;
}
.swiperFeedback__author {
    font-family: "Jost", sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #eae9e8;
}
.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: #8b9095;
}
.contact {
    margin-top: 10rem;
}
.contact .title {
    font-family: "DM Serif Display", serif;
    text-align: center;
    margin-bottom: 40px;
}
.contact-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.contact-thumb {
    position: relative;
    overflow: hidden;
    flex-basis: 500px;
    height: 530px;
}
.contact-img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border-radius: 1rem;
}
.contact-list {
    flex-basis: 600px;
}
.contact-link {
    font-family: "Jost", sans-serif;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding: 26px 31px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #eae9e8;
    background-color: #4D5053;
    border: 2px solid #4D5053;
    border-radius: 1rem;
    cursor: pointer;
    transition: all .2s ease;
}
.contact-link:hover {
    background-color: #eae9e8;
    border: 2px solid #4D5053;
    color: #4D5053;
}
.contact-link:nth-child(4) {
   margin-bottom: 0;
}
footer {
    background-color: #4D5053;
}
.footer {
    margin-top: 10rem;
    padding-top: 70px;
    padding-bottom: 70px;
}
.footer__copyright p {
    font-family: "Jost", sans-serif;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    color: #eae9e8;
    margin: 0;
    opacity: 0.3;
}


@media (max-width: 1200px) {
    body {
        font-size: 18px;
    }
    .container {
        max-width: 1000px;
    }
    .title {
        font-size: 40px;
    }
    .services-grid {
        gap: 17px;
    }
    .contact-list {
        flex-basis: 400px;
    }
}
@media (max-width: 1100px) {
    .swiper {
        width: 800px;
        height: 400px;
    }
    .swiper-slide img {
        width: 800px;
        height: 400px;
    }
    .services-grid {
        display: block;
    }
    .services-item {
        border-radius: 4rem;
        padding: 35px 50px;
        margin-bottom: 30px;
    }
    .services-item:nth-child(8) {
        margin-bottom: 0;
    }
}
@media (max-width: 1000px) {
    .container {
        max-width: 900px;
    }
    .hero__title {
        font-size: 140px;
    }
    .about__thumb {
        flex-basis: 400px;
        height: 400px;
    }
    .contact-thumb {
        flex-basis: 400px;
        height: 400px;
    }
}
@media (max-width: 850px) {
    .container {
        max-width: 800px;
    }
    .about {
        gap: 45px;
    }
    .link {
        padding: 16px 21px;
    }
    .swiper {
        width: 700px;
        height: 380px;
    }
    .swiper-slide img {
        width: 700px;
        height: 380px;
    }
    .services-btn {
        padding: 16px 21px;
    }
    .contact-list {
        flex-basis: 300px;
    }
    .contact-link {
        padding: 16px 21px;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: 670px;
    }
    .hero {
        margin-bottom: 118px;
    }
    .hero__title {
        font-size: 120px;
        margin-bottom: 320px;
    }
    .hero__name {
        font-size: 50px;
    }
    .hero__text {
        font-size: 30px;
    }
    .about__thumb {
        flex-basis: 300px;
        height: 350px;
    }
    .title {
        margin-bottom: 1.3rem;
    }
    .swiper {
        width: 550px;
        height: 280px;
    }
    .swiper-slide img {
        width: 550px;
        height: 280px;
    }
    .contact-thumb {
        flex-basis: 300px;
        height: 350px;
    }
    .contact .title {
        margin-bottom: 1.3rem;
    }
    .footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
@media (max-width: 680px) {
    body {
        font-size: 16px;
    }
    .container {
        max-width: 600px;
    }
    .hero {
        height: 690px;
        margin-bottom: 100px;
    }
    .hero__title {
        font-size: 90px;
        font-weight: 500;
        margin-bottom: 300px;
    }
    .title {
        font-size: 30px;
    }
    .link {
        padding: 10px 15px;
        font-size: 16px;
    }
    .services-item {
        margin-bottom: 20px;
    }
    .services-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
    .swiperFeedback__slide {
        padding: 20px 50px;
        height: 300px;
    }
    .swiperFeedback__text::before {
        margin: 0 auto 20px;
    }
    .swiperFeedback__author {
        font-size: 22px;
    }
    .contact-link {
        padding: 10px 15px;
    }
}
@media (max-width: 600px) {
    .container {
        max-width: 520px;
    }
    .hero__title {
        font-size: 70px;
        margin-bottom: 380px;
    }
    .hero__name {
        font-size: 40px;
    }
    .hero__text {
        font-size: 25px;
    }
    .about__thumb {
        flex-basis: 200px;
        height: 270px;
    }
    .mywork {
        margin-top: 7rem;
    }
    .swiper {
        width: 450px;
        height: 240px;
    }
    .swiper-slide img {
        width: 450px;
        height: 240px;
    }
    .services {
        margin-top: 7rem;
    }
    .reviews {
        margin-top: 7rem;
    }
    .contact {
        margin-top: 7rem;
    }
    .contact-thumb {
        flex-basis: 200px;
        height: 270px;
    }
    .footer {
        margin-top: 7rem;
    }
}
@media (max-width: 540px) {
    .hero {
        height: 580px;
    }
    .hero__title {
        font-size: 60px;
        margin-bottom: 360px;
    }
    .hero__name {
        font-size: 30px;
    }
    .hero__text {
        font-size: 22px;
    }
    .about {
        display: block;
    }
    .about__text {
        margin-bottom: 2rem;
        text-align: center;
    }
    .about__thumb {
        height: 300px;
        width: 270px;
        margin: 0 auto;
    }
    .swiper {
        width: 400px;
        height: 220px;
    }
    .swiper-slide img {
        width: 400px;
        height: 220px;
    }
    .services-item {
        margin-bottom: 15px;
    }
    .swiperFeedback__slide {
        padding: 20px 40px;
        height: 340px;
    }
    .swiperFeedback__text {
        padding: 0;
    }
    .contact-list {
        flex-basis: 220px;
    }
    .contact-link {
        font-size: 16px;
        margin-bottom: 10px;
    }
}
@media (max-width: 500px) {
    .hero__title {
        margin-bottom: 300px;
    }
}
@media (max-width: 450px) {
    .hero {
        height: 500px;
    }
    .hero__title {
        margin-bottom: 210px;
    }
    .swiper {
        width: 350px;
        height: 200px;
    }
    .swiper-slide img {
        width: 350px;
        height: 200px;
    }
    .swiper-pagination-bullet {
        width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 6px));
        height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 6px));
    }    
    .services-item {
        display: block;
        border-radius: 3rem;
        padding: 25px 40px;
        position: relative;
    }
    .services-text {
        margin-bottom: 30px;
    }
    .services-btn {
        margin-top: 1rem;
        position: absolute;
        right: 30px;
        bottom: 20px;
    }
    .swiperFeedback__slide {
        padding: 20px 30px;
        border-radius: 3rem;
    }
    .swiperFeedback__text::before {
        margin: 0 auto 15px;
    }
    .swiperFeedback__author {
        font-size: 18px;
    }
    .contact-flex {
        display: block;
    }
    .contact-thumb {
        height: 300px;
        width: 270px;
        margin: 0 auto;
        margin-bottom: 2rem;
    }
    .footer__copyright p {
        font-size: 14px;
    }
}
@media (max-width: 400px) {
    .hero__title {
        font-size: 50px;
    }
    .swiperFeedback__slide {
        padding: 20px 30px;
    }
    .swiperFeedback__text {
        margin-top: 0;
    }
}
@media (max-width: 380px) {
    .hero__title {
        margin-bottom: 230px;
    }
    .about__thumb {
        height: 260px;
        width: 200px;
    }
    .swiper {
        width: 300px;
        height: 180px;
    }
    .swiper-slide img {
        width: 300px;
        height: 180px;
    }
    .contact-thumb {
        height: 260px;
        width: 200px;
    }
}
@media (max-width: 340px) {
    .hero {
        height: 400px;
    }
    .hero__title {
        font-weight: 500;
        font-size: 40px;
        margin-bottom: 150px;
    }
    .title {
        font-size: 25px;
    }
    .link {
        font-size: 14px;
    }
    .mywork {
        margin-top: 6rem;
    }
    .swiper {
        width: 280px;
        height: 150px;
    }
    .swiper-slide img {
        width: 280px;
        height: 150px;
    }
    .swiper-pagination-bullet {
        width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 5px));
        height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 5px));
    }
    .services {
        margin-top: 6rem;
    }
    .services-btn {
        font-size: 14px;
        right: 18px;
    }
    .reviews {
        margin-top: 6rem;
    }
    .swiperFeedback__slide {
        height: 350px;
    }
    .swiperFeedback__text {
        margin-bottom: 10px;
    }
    .contact {
        margin-top: 6rem;
    }
    .footer {
        margin-top: 5rem;
    }
}