@font-face {
    font-family: "Rubik";
    src: url("../fonts/Rubik/Rubik-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Raleway";
    src: url("../fonts/Raleway/Raleway-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Raleway-ExtraBold";
    src: url("../fonts/Raleway/static/Raleway-ExtraBold.ttf");
}

* {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Rubik", Arial, Helvetica, sans-serif;
    text-align: center;
    color: #333;
    min-width: 300px;
}

h1,
h2,
h3,
button,
nav > ul li a {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

h3 {
    font-size: 1.07em;
    line-height: 1.5;
}

.outer-wrapper {
    width: 85%;
    margin: 0 auto;
}

button {
    text-transform: uppercase;
    color: white;
    background-color: #ff9b65;
    padding: 0.5rem 1.5rem;
    border-radius: 2em;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

button:hover {
    background-color: #83b2e8;
}

button:focus {
    outline: none;
}

ul > li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

nav > ul a,
.menu-links > ul a,
.section-title,
.side-title {
    text-transform: uppercase;
}

.side-title {
    display: none;
    position: absolute;
    transform-origin: left bottom;
    transform: rotate(90deg);
}

.side-title h1 {
    font-family: "Raleway-ExtraBold", Arial, Helvetica, sans-serif;
    font-size: 7em;
    line-height: 70%;
}

/* HEADER START */

.top-bar {
    padding-top: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #ddd;
}

.top-bar > .outer-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 120px;
}

.mobile-menu-toggle {
    position: relative;
    text-align: left;
    width: 50px;
    height: 36px;
}

.mobile-menu-toggle span.line {
    position: absolute;
    top: 2px;
    display: block;
    width: 32px;
    height: 1px;
    background-color: #333;
    margin: 3px 5px;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle span:last-child {
    top: 25px;
}

.mobile-menu-toggle > span:nth-child(2) {
    position: absolute;
    top: 9px;
    font-size: 0.85em;
    transition: opacity 0.2s ease;
}

.mobile-menu-toggle.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-menu-toggle.active span:last-child {
    transform: translateY(-12px) rotate(-45deg);
}

.nav-holder {
    position: absolute;
    top: 48px;
    text-align: center;
    width: 100%;
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    background-color: white;
    transition: height 0.3s ease;
    z-index: 100;
}

.nav-holder.opened {
    height: 250px;
    border-bottom: 1px solid #ddd;
}

nav > ul {
    padding: 20px 0;
}

nav > ul li a {
    display: block;
    font-size: 0.85em;
    padding: 1rem 0.7rem;
}

nav > ul li a:hover,
.active-page {
    color: #01d2b5;
}

.nav-holder .mail-us-btn {
    margin-bottom: 2rem;
}

.nav-holder .mail-us-btn button {
    background-color: #01d2b5;
}

.nav-holder .mail-us-btn button:hover {
    background-color: #83b2e8;
}

.header-text {
    font-size: 1em;
    max-width: 400px;
    margin: 0 auto;
}

.header-text h1 {
    font-size: 2em;
    padding-top: 70px;
    padding-bottom: 25px;
}

.header-text h3 {
    max-width: 280px;
    padding-bottom: 50px;
    margin: 0 auto;
}

.illustration {
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.illustration img {
    display: block;
    min-width: 400px;
    width: 100%;
    max-width: 900px;
}

/* HEADER END */

/* ---------------------------- */

/* ABOUT START */

.about {
    color: white;
    background: linear-gradient(90deg, rgba(68, 109, 165, 0.9), rgba(92, 126, 172, 0.8)),
        url("../images/design-work.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about .illustration {
    opacity: 0.5;
}

.about .presentation h3 {
    font-weight: 400;
    max-width: 455px;
    padding-top: 1rem;
    padding-bottom: 2rem;
    margin: 0 auto;
}

.about .presentation button {
    margin-bottom: 3rem;
}

/* ABOUT END */

/* ---------------------------- */

/* SERVICES START */

.services {
    position: relative;
}

.services .side-title h1 {
    color: #f5f5f5;
}

.services-holder {
    display: flex;
    flex-wrap: wrap;
    padding: 3rem 0;
}

.service {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.service.slide-vert {
    transform: translateY(0);
    opacity: 1;
}

.service:last-child p {
    border: none;
}

.service img {
    width: 8rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.service h3 {
    max-width: 165px;
    padding: 0.5rem 0;
}

.service p {
    font-size: 0.95em;
    max-width: 245px;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid lightgrey;
}

/* SERVICES END */

/* ---------------------------- */

/* WORKS START */

.works {
    position: relative;
    background-color: #fff1e2;
}

.works .side-title h1 {
    color: #fee8d0;
}

.works .section-title {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding-top: 5rem;
}

.works .section-title a {
    margin-top: 1rem;
}

/* WORKS END */

/* ---------------------------- */

/* FOOTER START */

footer {
    font-family: "Raleway", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 0.95em;
    line-height: 1.5em;
    text-align: left;
    color: #a4cffd;
    background-color: #355679;
}

footer span {
    font-family: "Rubik", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

footer h3 {
    font-size: 1.05rem;
    padding-bottom: 0.27rem;
}

footer .content-holder {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 220px;
    padding-top: 4rem;
    padding-bottom: 1rem;
    margin: 0 auto;
}

footer .content-holder div {
    padding-bottom: 1rem;
}

footer .content-holder .agency-summary img {
    width: 160px;
    padding-bottom: 0.5rem;
}

footer .content-holder .agency-summary p:nth-child(2) {
    font-size: 0.85em;
    text-transform: uppercase;
}

footer .content-holder .agency-summary p:last-child {
    display: none;
}

footer .content-holder .menu-links {
    display: none;
}

footer a {
    color: #a4cffd;
}

footer .content-holder > div.menu-links a {
    text-transform: none;
}

footer .contacts li {
    padding-bottom: 1.5rem;
}

footer .contacts img {
    display: none;
}

footer .contacts .phone p:last-child {
    font-size: 1.5em;
    padding-top: 0.25rem;
    padding-bottom: 0.4rem;
}

footer .copyright {
    text-align: center;
    padding: 1.7rem 0;
    background-color: #1a3249;
}

.back-to-top-btn {
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    position: fixed;
    bottom: 3.3rem;
    right: 1.5rem;
    /* z-index: 20; */
}

.back-to-top-btn.show-btn {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn svg {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* FOOTER END */

/* ---------------------------- */

/* MEDIA QUERIES */

@media (min-width: 600px) {
    .logo img {
        width: 125px;
    }
    .header-text {
        font-size: 1.1em;
    }
    .header-text h3 {
        max-width: 300px;
    }
    /* .header-text h1 {
        font-size: 2.3em;
    } */
    .illustration img {
        width: 90%;
    }
    .about {
        position: relative;
    }
    .about .illustration {
        padding-bottom: 8rem;
    }
    .about .presentation {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
    .about .presentation button {
        margin: 0;
    }
    .service {
        flex-basis: 50%;
    }
    .service:hover {
        box-shadow: 0px 7px 20px 7px rgba(0, 0, 0, 0.07);
    }
    .service p {
        max-width: 190px;
        border: none;
    }
    .works .section-title {
        flex-direction: row;
        justify-content: space-between;
    }
    .works .section-title a {
        margin-top: 0;
    }
    footer .content-holder {
        flex-direction: row;
        justify-content: space-between;
        max-width: 100%;
    }

    footer .content-holder .agency-summary {
        flex-basis: 50%;
        max-width: 265px;
    }

    footer .content-holder .agency-summary p:last-child {
        display: block;
        text-transform: unset;
        padding-top: 1.2rem;
    }

    footer .content-holder div h3 {
        display: none;
    }

    footer .contacts {
        flex-basis: 40%;
        text-align: right;
    }

    footer .contacts li {
        padding-left: 2rem;
    }
}

@media (min-width: 900px) {
    .outer-wrapper {
        max-width: 1170px;
    }
    .logo img {
        width: 130px;
    }
    .mobile-menu-toggle {
        display: none;
    }
    .nav-holder {
        position: static;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 50px;
        z-index: 5;
    }
    nav {
        max-width: 400px;
        width: 50%;
    }
    .nav-holder ul {
        display: flex;
        justify-content: space-around;
        align-items: baseline;
        padding: 0;
    }
    .nav-holder .mail-us-btn {
        margin-bottom: 0;
        margin-left: 1rem;
    }
    header .header-illustration {
        position: relative;
    }
    .header-text {
        position: absolute;
        top: 50%;
        text-align: left;
        max-width: 37%;
        transform: translateY(-50%);
    }
    .header-text h1 {
        padding-top: 50px;
        padding-bottom: 20px;
    }
    .header-text h3 {
        margin: 0;
    }
    .illustration {
        justify-content: flex-end;
        align-items: flex-end;
    }
    .illustration img {
        width: 60%;
        padding-top: 8%;
        padding-right: 5%;
    }
    .about .illustration {
        padding-bottom: 10rem;
    }
    .about .illustration img {
        padding-top: 0;
    }
    .about .presentation {
        text-align: left;
        left: initial;
        transform: translateY(-50%) translateX(0);
    }
    .side-title {
        display: block;
    }
    .services .outer-wrapper,
    .works .outer-wrapper {
        position: relative;
        z-index: 10;
    }
    .service {
        flex-basis: 33%;
    }
    footer .contacts .phone {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: end;
    }

    footer .contacts img {
        display: block;
        width: 55px;
        margin-right: 1rem;
    }

    footer .contacts .phone p:last-child {
        padding-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .logo img {
        width: 140px;
    }
    .header-text {
        font-size: 1.3em;
        max-width: 470px;
    }
    .header-text h3 {
        font-weight: 400;
        max-width: 355px;
    }
    .illustration img {
        max-width: 950px;
    }
    .about .illustration {
        padding-bottom: 15rem;
    }
    .about .presentation h3 {
        font-size: 1.2em;
        max-width: 505px;
    }
    .side-title h1 {
        font-size: 8em;
    }
    .service {
        font-size: 1.1em;
        height: 300px;
    }
    footer .content-holder .menu-links {
        display: block;
    }

    footer .content-holder div.menu-links li {
        padding: 0.5rem 0;
    }

    footer .content-holder div.menu-links h3 {
        display: block;
        padding: 0.7rem 0;
    }
}
