@import url(https://fonts.googleapis.com/css2?family=Geologica:wght@100;200;300;400;500;600;700&family=Roboto&display=swap);
@import 'clear.css';
@import 'header.css';
@import 'footer.css';

.section {
    padding-top: 100px;
}

.hero {
    height: 600px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6)),
    url(../img/hero.webp) center center / cover no-repeat;
    z-index: 1;
}

.hero p a {
    color: #000;
    font-size: 18px;
    font-weight: 300;
    line-height: 167.187%
}

.hero h1 {
    color: #fff
}

.hero h2 {
    color: #fff;
}

.hero button {
    width: fit-content;
    padding: 15px 50px;
}

.hero__wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.work__wrapper {
    display: grid;
    grid-template-columns: 50% 45%;
    align-items: center;
    justify-content: space-between;
}

.work-img {
    margin-left: auto;
    /*max-width: 500px;*/
    width: 100%;
}

.work-img img {
    width: 100%;
    border-radius: 20px;
    margin-left: auto;
}

.work__wrapper h2 {
    font-size: 22px;
    font-weight: 200;
}

.advantages__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantages__item {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 30px;
    border-radius: 30px;
}

.advantages__item img {
    width: 75px;
}

.advantages__item h3 {
    color: #131319;
    margin: 10px 0 5px;
    font-weight: 500;
}

.advantages__item p {
    color: #131319;
    font-size: 15px;
    font-weight: 200;
}

.advantages h2 {
    color: #131319;
    text-align: center;
}

.info__wrapper {
    position: relative;
}

.info__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateY(50%);
}

.info__content span {
    display: block;
}

.info__content a {
    width: fit-content;
}

.info__content p {
    font-weight: 300;
}

.service h1 {
    min-width: 30px;
    text-align: center;
}

.service__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.service__item {
    margin: 0 auto;
    width: 40vw;
    background: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    column-gap: 25px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 8px 24px;
    border-radius: 24px;
}

.service__item h3 {
    font-size: 20px;
    line-height: 18px;
    font-weight: 500;
}

.service__item span {
    font-weight: 100;
    font-size: 12px;
}

.service__item p {
    font-size: 14px;
    font-weight: 200;
}

.contact-us__wrapper {
    background: #0A2463;
    padding: 30px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.contact-us__wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background: url("../img/arrow-right.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 300px;
    height: 100%;
    z-index: 0;
}

.contact-us__inner {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-us__title {
    font-size: 28px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}

.contact-us__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-us__link svg path {
    transition: all 0.3s ease;
}

.contact-us__link:hover svg path {
    fill: #1D387C;
    stroke: #1D387C;
}

.contact-us__link:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #1D387C;
}

@media (max-width: 1200px) {
    .service__item {
        width: 50vw;
    }

    .contact-us__methods {
        flex-direction: column;
    }

    .work h2 {
        font-size: 18px;
    }
}

@media (max-width: 1023px) {
    .contact-us__inner {
        width: 100%;
    }

    .contact-us__title {
        font-size: 20px;
    }

    .section {
        padding-top: 80px;
    }

    .work.section {
        padding-top: 60px;
    }

    .hero {
        height: 400px;
    }

    .hero::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6)),
        url(../img/hero.webp) center center / cover no-repeat;
    }

    .service__inner h3 {
        margin-bottom: 20px;
        margin-top: 10px
    }
}

@media (max-width: 850px) {
    .contact-us__wrapper::after {
        width: 100%;
    }

    .advantages__wrapper {
        gap: 20px !important;
    }

    .advantages__inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .service h1 {
        font-size: 36px;
    }

    .advantages__item {
        border-radius: 20px;
    }

    .info__content {
        position: static;
        transform: none;
    }

    .info__wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .service__inner {
        flex-direction: column;
    }

    .service__item {
        width: 100%;
    }

    .work__wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .work-img {
        max-width: 500px;
        margin-left: 0;
    }

    .contact-us__wrapper {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .contact-us__methods {
        flex-direction: row;
    }
}

@media (max-width: 475px) {
    .hero button {
        padding: 15px 0;
        width: 100%;
    }

    .work-img {
        max-width: none;
    }

    .advantages__inner {
        grid-template-columns: repeat(1, 1fr);
    }

    .info span {
        display: inline;
    }

    .info br {
        display: none;
    }

    .info h2 {
        text-align: left;
    }

    .service h2.heading span, .advantages h2.heading span {
        white-space: nowrap;
        display: inline;
    }

    .service__inner h3 {
        font-size: 18px
    }

    .contact-us__methods {
        flex-direction: column;
        width: 100%;
    }

    .hero h2 span {
        white-space: nowrap;
    }
}

@media (max-width: 375px) {
    .hero h2 span {
        display: block;
    }

    .contact-us__subtitle span {
        display: inline;
    }
}