/* Base */

:root {
    --green: #5ac787;
    --orange: #ff6a3d;
    --white: #ffffff;
    --black: #666666;
    --ink: #333333;
    --muted: #667085;
    --line: #e6e8ec;
    --border: #d8d8d8;
    --soft: #f7f8fa;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    background: var(--white);
    color: var(--ink);
    font-family: Roboto, sans-serif;
    line-height: 1.5;
    font-size: 16px;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    margin: 0;
}

@media (max-width: 1250px) {

    body,
    html {
        font-size: 18px;
    }
}

a {
    color: var(--ink);
    transition: .3s;
    text-decoration: none;
}

a:hover {
    color: var(--orange);
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:after,
blockquote:before,
q:after,
q:before {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td,
th {
    text-align: left;
}

textarea {
    resize: none;
}

address {
    font-style: normal;
}

button,
input,
select,
textarea {
    outline: 0;
    font: inherit;
    -webkit-font-smoothing: inherit;
    -webkit-appearance: none;
    border: none;
}

input:invalid,
textarea:invalid {
    box-shadow: none;
}

button {
    background-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
p {
    margin: 0;
}

.sectext {
    color: var(--green);
}

.orange {
    color: var(--orange);
}

.green {
    color: var(--green);
}

img {
    max-width: 100%;
    font-size: 0;
}

/* Modal */

.modal * {
    box-sizing: border-box;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8vh 20px;
    background: rgba(247, 248, 250, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .modal {
        background: rgba(247, 248, 250, 0.85);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    position: relative;
    flex-shrink: 0;
    margin: auto;
    width: 100%;
    max-width: 1200px;
    cursor: auto;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.modal.is-visible .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1010;
    padding: 0;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    line-height: 0;
    cursor: pointer;
}

.modal-close svg * {
    fill: #000;
}

@media (max-width: 768px) {
    .modal {
        padding: 60px 15px 15px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
}

/* Section */

.section {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1250px) {
    .section {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 0 0px;
    }
}

/* Heading */

.heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 100px 0;
    text-align: center;
}

.heading-logo {
    align-self: center;
    width: 100px;
    height: auto;
}

.heading-title {
    font-weight: 700;
    font-size: 60px;
    line-height: 120%
}

.heading-button {
    margin-top: 8px;
}

.heading-desc {
    font-size: 20px;
    max-width: 650px;
    margin: 0 auto;
    color: var(--black);
}

@media (max-width: 768px) {
    .heading {
        padding: 40px 0;
        justify-content: flex-start;
        text-align: left;
    }

    .heading-logo {
        align-self: flex-start;
    }

    .heading-title {
        font-size: 30px;
    }

    .heading-desc {
        font-size: 16px;
    }
}

/* Title */

.title {
    margin: 0 auto;
    margin-bottom: 24px;
    font-weight: bold;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
}

.title--left,
.title--right,
.title--center {
    margin: 0;
    margin-bottom: 24px;
}

.title--left {
    text-align: left;
}

.title--right {
    text-align: right;
}

.title--center {
    text-align: center;
}

.title-dot,
.firsttext {
    color: var(--orange);
}

/* heading accent: a bolded word renders green */
.title strong,
.heading-title strong,
.service-cta__title strong {
    color: var(--green);
    font-weight: inherit;
}

.title-desc {
    max-width: 760px;
    margin: 0 auto 36px;
    font-size: 16px;
    line-height: 150%;
    color: var(--black);
    text-align: center;
}

.title-desc--left {
    margin-left: 0;
    text-align: left;
}

.title-desc--right {
    margin-right: 0;
    text-align: right;
}

.title-desc--center {
    text-align: center;
}

@media (max-width: 768px) {
    .title {
        font-size: 26px;
        text-align: left;
        margin-bottom: 16px;
    }
    .title-desc {
        text-align: left;
    }
}

/* Links */

.link {
    font-size: 16px;
    color: var(--orange);
}

.works-item__image {
    margin-bottom: 32px;
}

.works-item__image img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.works-item__label {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
}

.works-item__description {
    max-width: 400px;
    font-size: 22px;
    margin: 0;
}

@media (max-width: 768px) {
    .works-item__image {
        margin-bottom: 15px;
    }

    .works-item__description {
        font-size: 18px;
    }
}

/* Social */

.social {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

.social-link {
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
}

.social-link--twitter {
    background-image: url(../img/social/twitter.svg);
}

.social-link--in {
    background-image: url(../img/social/in.svg);
}

.social-link--skype {
    background-image: url(../img/social/skype.svg);
}

.social .social-link:last-of-type {
    margin-right: 0;
}

/* Intro animation */

.app {
    padding-top: 50px;
    opacity: 0;
}

@media (max-width: 768px) {
    .app {
        padding-top: 25px;
    }
}

.app.is-shown {
    animation-name: show;
    animation-duration: 750ms;
    animation-delay: 150ms;
    animation-fill-mode: forwards;
}

.app.is-shown-instant {
    opacity: 1;
}

@keyframes show {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-promo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.animate-promo__circle {
    position: absolute;
    background-color: var(--white);
    width: 100%;
    height: 100%;
    opacity: 0;
    animation-name: show;
    animation-duration: 0.35s;
    animation-delay: 150ms;
    animation-fill-mode: forwards;
}

.animate-promo__circle-item {
    animation-fill-mode: forwards;
}

.animate-promo__circle-item--inside {
    animation-delay: 2s;
}

.animate-promo__circle-item--outside {
    animation-delay: 2s;
}

.animate-promo__titles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: hide-titles;
    animation-duration: 0.35s;
    animation-delay: 1.9s;
    animation-fill-mode: forwards;
}

.animate-promo__title {
    line-height: 1.1;
    font-size: 10vw;
    opacity: 0;
    animation-name: animate-title;
    animation-fill-mode: forwards;
}

.animate-promo__title--one {
    padding-left: 3vw;
    animation-duration: 0.35s;
    animation-delay: 0.35s;
}

.animate-promo__title--two {
    padding-left: 8vw;
    animation-duration: 0.35s;
    animation-delay: calc(0.35s * 2);
}

.animate-promo__title--three {
    margin-left: -4vw;
    animation-duration: 0.35s;
    animation-delay: calc(0.35s * 3);
}

@media (max-width: 768px) {
    .animate-promo__title {
        font-size: 12vw;
    }
}

@keyframes show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hide-titles {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes animate-title {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hideshow {
    from {
        stroke-width: 10%;
    }

    to {
        stroke-width: 1%;
    }
}

/* Works preview */

@media (max-width: 1250px) {
    .works-preview__works {
        margin-bottom: 40px;
    }
}

.works-preview__work-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

@media (max-width: 1250px) {
    .works-preview__work-row {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .works-preview__work-row {
        display: block;
        margin: 0;
    }
}

.works-preview .works-preview__work-row:last-of-type {
    margin-bottom: 0;
}

/* Works */

.works {
    padding-bottom: 80px;
}

.works-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.works-item {
    display: block;
    width: calc(50% - 15px);
}

@media (max-width: 768px) {
    .works {
        padding-bottom: 40px;
    }

    .works-item {
        width: 100%;
    }
}

/* Navigation */

.header-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 50px;
    z-index: 110;
    position: relative;
}

.header-nav__logo-link {
    z-index: 2;
}

.header-nav__logo {
    width: 300px;
}

.header-nav__list {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
}

.header-nav__link {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    transition: .3s;
}

.header-nav__link:hover {
    text-decoration: none;
    color: var(--orange);
}

.header-nav__link.is-active {
    color: var(--orange);
    border-bottom: 2px solid currentColor;
}

.header-nav__burger {
    display: none;
    z-index: 2;
    cursor: pointer;
    margin-left: auto;
}

.header-nav__burger-bar {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 6px 0;
    transition: 0.4s;
}

.header-nav__burger.is-open .header-nav__burger-bar--top {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.header-nav__burger.is-open .header-nav__burger-bar--mid {
    opacity: 0;
}

.header-nav__burger.is-open .header-nav__burger-bar--bot {
    transform: rotate(45deg) translate(-7px, -9px);
}

.header-sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.3s;
}

.header-sidenav__list {
    padding-top: 80px;
    font-size: 25px;
    text-align: center;
}

.header-sidenav__link {
    text-decoration: none;
    font-size: 25px;
    color: var(--black);
    display: block;
    transition: 0.3s;
    margin-bottom: 10px;
}

.header-sidenav__link:hover {
    color: var(--orange);
}

@media (max-width: 1140px) {
    .header-nav__list {
        display: none;
    }

    .header-nav__burger {
        display: block;
    }
}

@media (max-width: 992px) {
    .header-nav__logo {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .header-nav__logo {
        width: 200px;
    }
}

/* Footer */

.footer-wrapper {
    background: var(--soft);
    padding-top: 5px;
    width: 100%;
}

.footer-nav {
    margin-top: 50px;
    margin-bottom: 50px;
    font-weight: 500;
    font-size: 26px;
    line-height: 30px;
}

.footer-nav__inner {
    display: flex;
    justify-content: space-around;
}

.footer-nav__link {
    font-weight: 700;
    transition: .3s
}

.footer-nav__link:hover {
    text-decoration: none;
    color: var(--orange);
}

.footer-nav__link--active {
    color: var(--orange);
    text-decoration: underline;
}

.footer {
    font-size: 11px;
    margin-top: 20px;
    border-top: 0.7px solid var(--border);
    padding: 65px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-step {
    flex: 1 1 180px;
}

.footer-form {
    border-bottom: 1px solid rgba(0, 0, 0, 25%);
    display: flex;
    justify-content: space-between;
}

.footer-form__input {
    background: none;
    width: 100%;
}

.footer-link {
    display: flex;
    flex-direction: column;
    transition: .3s;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-social-link+.footer-social-link {
    margin-left: 20px;
}

.footer-social-link:hover .footer-social-icon {
    fill: var(--orange);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-copy__item {
    display: flex;
    align-items: center;
}

.footer-copy__icon {
    margin-right: 10px;
}

.footer-copy__text {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav__inner {
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer-nav__link {
        margin-bottom: 10px;
    }

    .footer-copy__icon {
        margin-right: 5px;
    }

    .footer-step {
        flex: 1;
        width: 100%;
    }

    .footer-step+.footer-step {
        margin-top: 20px;
    }
}

/* Container */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1;
    border-radius: 15px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.btn-primary {
    color: var(--white);
    background: var(--green);
}

.btn-primary:hover {
    color: var(--white);
}

.btn-white,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 200px;
}

.btn-white {
    color: var(--green);
    background: var(--white);
}

.btn-ghost {
    color: var(--white);
    background: #ffffff20;
}

.btn-ghost:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.22);
    opacity: 1;
}