:root {
    --main-color: #04bbb0;
}

@font-face {
    font-family: Gilroy;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(/fonts/gilroy_600.woff2) format("woff2"), url(/fonts/gilroy_600.woff) format("woff")
}

body {
    font-family: Inter, sans-serif;
    background: #f4f5f7;
}

.wrapper {
    max-width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
}

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

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.pt-n {
    padding-top: 0 !important;
}

.heading {
    font-family: Gilroy;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}
.heading span {
    color: var(--main-color);
}

/* Intro Screen */
.intro-screen {
    height: 100vh;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    position: relative;
}
.intro-stars {
    position: relative;
    margin: 0 auto;
    max-width: 2000px;
    opacity: 0.5;
}
.intro-content {
    position: absolute;
    width: 100%;
    top: 50%;
    text-align: center;
    margin-top: -20vh;
}
.intro-content img {
    height: 40vh;
    max-height: 500px;
}

.intro-text {
    color: #eee;
    font-size: 3rem;
    line-height: 4rem;
    font-family: Gilroy;
    max-width: 80%;
    margin: 50px auto 0;
}
.intro-text span {
    color: var(--main-color);
}

/* Description */
.description-block {
    position: relative;
    margin: 70px 0;
}
.description-block-mt {
    margin-top: 100px;
}
.text-block p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 20px;
    text-align: justify;
    color: #42454c;
}
.text-block *.title {
    font-family: Gilroy;
    font-size: 26px;
    line-height: 32px;
    color: #333;
    margin: 40px 0 20px;
    text-align: left;
}
.text-block *.title span {
    color: var(--main-color);
}
.text-block img {
    max-width: 100%;
}
.text-block .card {
    margin: 30px 0;
}
.text-block sup {
    vertical-align: super;
    font-size: smaller;
}

.highligh-block {
    background: #38B2AC;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.highligh-block * {
    color: #fcfcfc !important;
}
.highligh-block > div:first-child {
    float: left;
    width: 50px;
    margin: 0 10px 0 0;
}
.highligh-block > div:last-child {
    margin-left: 80px;
}
.highligh-block p:last-child {
    margin-bottom: 0;
}

.chart-main {
    width: 80%;
    max-width: 1000px;
    margin: -25vh auto 50px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}
.chart-main-image {
    position: relative;
}
.chart-main img {
    max-width: 100%;
    max-height: 100%;
}
.chart-main p {
    font-size: 13px;
    margin-top: 10px;
    color: #aaa;
    text-align: center;
}
.chart-main-performance {
    position: absolute;
    top: 47px;
    right: 40px;
    text-transform: uppercase;
    font-family: 'Inter var';
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}
.chart-main-performance.green {
    color: #2F855A;
}
.chart-main-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px transparent;
    border-radius: 5px;
    background: #38A169;
    animation: pulse 1.5s infinite;
}

.services-logos {
    margin-top: 50px;
    margin-left: -35px;
}
.services-logos a {
    margin-right: 50px;
}
.services-logos img {
    max-width: 50%;
}

/* Gallery */
.gallery {
    position: relative;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    padding: 30px 0;
    padding-bottom: 395px;
    overflow: hidden;
}
.gallery-title {
    color: #eee;
    font-family: Gilroy, sans-serif;
    font-size: 2.5rem;
    margin: 20px 0;
}
.gallery-description {
    margin-bottom: 30px;
}
.gallery-description p {
    color: #ccc;
}
.gallery-slider {
    width: 200%;
    position: absolute;
    left: 50%;
    margin-left: -525px;
    height: 365px;
    overflow: hidden;
}
.gallery .item {
    width: 475px;
    padding: 20px;
    box-sizing: border-box;
    float: left;
    margin: 0 25px 20px;
    cursor: pointer;
}
.gallery .item img {
    max-width: 100%;
}
.gallery .item p {
    text-align: left;
    font-weight: 300;
    font-size: 16px;
    font-family: Gilroy, sans-serif;
    color: #161e2e;
    margin: 10px -20px -20px;
    padding: 20px 20px 20px;
    border-top: 1px solid #efefef;
    background: #f9fafb
}

/* Pricing */
.pricing {
    margin: 100px 0;
}
.pricing-block {
    display: flex;
}
.pricing-main {
    flex: 1;
    flex-basis: 60%;
    padding: 30px 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}
.pricing-discounts {
    flex: 1;
    background: #f9fafb;
    flex-basis: 30%;
}

.pricing-main .price {
    margin: 10px 0 30px;
}
.pricing-main p {
    padding-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.4rem;
    color: #555;
    text-align: justify;
}

.pricing-discounts-group {
    padding: 50px 20px 20px;
    border-bottom: 1px solid #edeeef;
    position: relative;
    overflow: hidden;
}
.pricing-discounts-group:last-child {
    border: none;
}
.pricing-discounts-group .title {
    padding-top: 20px;
    font-size: 1.2rem;
    color: #999;
}
.pricing-discounts-group .title sub {
    font-size: 0.9rem;
}
.price {
    font-family: 'Inter var';
    font-weight: 800;
    font-size: 3.5rem;
}
.price span {
    font-size: 1.3rem;
    color: #999;
    font-weight: normal;
}
.pricing-discounts .price {
    font-size: 2rem;
    color: #333;
}
.discount {
    position: absolute;
    top: 0;
    right: 0;
    background: #04bbb0;
    color: #fff;
    font-family: 'Inter var';
    font-size: 1.1rem;
    font-weight: 800;
    padding: 10px;
    border-radius: 0 0 0 10px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.pricing-button {
    background: #333;
    color: #fff;
    padding: 0 2.5rem;
    border-radius: .5rem;
    margin: 10px auto 0;
    height: 45px;
    line-height: 45px;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: #eee;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.pricing-button img {
    max-height: 26px;
    position: relative;
    top: 5px;
}

/* Form */
.contacts-block {
    padding-bottom: 40px;
}
.contact-form {
    margin-top: 20px;
    width: 580px;
    float: left;
}
.form-group {
    margin: 0 0 20px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #42454c;
}
.form-group label .red {
    color: #B91C1C;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #d2d6dc;
    border-radius: 0.375rem;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
    resize: none;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 187, 176, 0.45);
    border-color: #a4cafe;
}
.form-group button {
    background: var(--main-color);
    color: #fff;
    padding: 0.75rem 0;
    font-size: 1rem;
    border: 1px transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    line-height: 1.25rem;
    outline: none;
    cursor: pointer;
}
.form-group button.full {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.error-message,
.success-message {
    padding: 10px 20px;
    font-size: 0.9rem;
    line-height: 1.5rem;
    border-radius: 5px;
    margin-bottom: 20px;
}
.error-message {
    background: #FEE2E2;
    color: #991B1B;
}
.success-message {
    background: #d7f3e7;
    color: #064E3B;
}

.contacts-info {
    float: left;
    width: 360px;
    margin-right: 60px;
    padding: 20px 0;
}
.contacts-info p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
    text-align: justify;
    color: #42454c;
}
.contacts-email svg {
    height: 20px;
    position: relative;
    top: 4px;
    margin-right: 10px;
}
.contacts-email a {
    color: #42454c;
}
.contacts-email a:hover {
    text-decoration: underline;
}
.contacts-social-links {
    margin-top: -5px;
}
.contacts-social-links a {
    margin-right: 10px;
}
.contacts-social-links img {
    width: 32px;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    opacity: 0.8;
    display: none;
    z-index: 10;
}
.popup {
    position: absolute;
    left: 0;
    right: 0;
    min-width: 300px;
    max-width: 90%;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.5rem;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: none;
    box-sizing: border-box;
    z-index: 11;
}
.popup .title {
    margin: -12px 0 20px;
    font-size: 20px;
}

.popup .close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 25px;
    height: 25px;
    opacity: 0.6;
}
.popup .close:hover {
    opacity: 1;
}
.popup .close:before,
.popup .close:after {
    position: absolute;
    left: 12px;
    content: '';
    height: 25px;
    width: 2px;
    background-color: #aaa;
}
.popup .close:before {
    transform: rotate(45deg);
}
.popup .close:after {
    transform: rotate(-45deg);
}

.gallery-popup {
    width: 64rem;
    text-align: center;
    margin-top: 50px;
}

.gallery-popup img {
    max-width: 100%;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 1055px) {
    .contacts-info {
        width: 40%;
        margin-right: 0;
        padding-right: 60px;
        box-sizing: border-box;
    }
    .contact-form {
        width: 60%;
    }
}

@media (max-width: 730px) {
    .pricing-block {
        display: block;
    }
    .pricing-discounts {
        display: flex;
    }
    .pricing-discounts-group {
        flex-basis: 50%;
    }
    .pricing-discounts-group:last-child {
        border-left: 1px solid #edeeef;
    }
    .contacts-info {
        width: 100%;
        padding-right: 0;
    }
    .contact-form {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 648px) {
    .intro-text {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    .chart-main {
        width: 95%;
        margin-top: -30vh;
    }
    .chart-main-performance {
        position: static;
        margin-bottom: 20px;
    }
    .chart-main-point {
        width: 5px;
        height: 5px;
        margin-top: -1px;
        margin-left: -1px;
    }

    .text-block p {
        font-size: 18px;
        line-height: 26px;
    }

    .highligh-block > div:first-child {
        float: none;
        margin: 0 auto;
    }
    .highligh-block > div:last-child {
        margin-left: 0;
        margin-top: 10px;
    }
    .highlight-title {
        text-align: center !important;
    }

    .services-logos {
        margin-left: 0;
        text-align: center;
    }
    .services-logos a {
        margin: 10px auto;
    }
    .services-logos img {
        max-width: 100%;
    }

    .pricing {
        margin: 60px 0;
    }
    .pricing-discounts {
        display: block;
    }
    .pricing-button {
        font-size: 16px;
        padding: 0 2rem;
    }
    .pricing-button img {
        max-height: 24px;
    }

    .gallery-popup {
        padding: 10px;
        max-width: 95%;
        max-height: 100%;
        margin-top: 10px;
    }
    .gallery-popup-image {
        max-width: 100%;
        overflow-x: scroll;
    }
    .gallery-popup img {
        max-width: none;
        max-height: 80vh;
    }
    .popup .title {
        margin: 10px 35px 20px;
        font-size: 18px;
    }
}
@media (max-width: 340px) {
    .intro-text {
        margin-top: 35px;
        font-size: 1.7rem;
        line-height: 2rem;
    }
}