:root {
    --color-white: #fff;
    --color-green: #bbf46d;
    --color-green-light: #cdff62;
    --color-blue: #0087d0;
    --color-dark-blue: #0079cd;
    --color-red: #d70000;
    --color-black: #000;
    --desktop-padding: 60px;
    --header-height: 230px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}

.layer-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(to bottom, var(--color-white) var(--header-height), var(--color-blue) var(--header-height), var(--color-blue) 100%);
    opacity: 1;
    transition: 1s;
}

.ps-stripe .ps-content {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 1;
}

.ps-content {
    padding: 0 var(--desktop-padding);
    max-width: 1200px;
    margin: 0 auto;
}

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

.frame h1 {
    color: var(--color-white);
}

.container {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

.frame {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 7;
}

.front {
    display: block;
}

.header {
    padding-top: 60px;
    padding-bottom: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.vpn1-logo {
    max-height: 120px;
}

.menu {
    margin-right: 150px;
}

.menu-item {
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: .9;
    color: var(--color-blue);
    position: relative;
    margin-right: 65px;
}

.menu-item.active {
    color: var(--color-black);
}

.js-menu-item {
    cursor: pointer;
}

.menu-item::after {
    content: "";
    display: inline-block;
    height: 54px;
    width: 8px;
    background-color: var(--color-green);
    transform: skewX(-18deg);
    position: absolute;
    top: -5px;
    right: -35px;
    z-index: 1;
}

.menu-item:last-child {
    margin-right: 0;
}

.menu-item:last-child::after {
    content: '';
    display: inline-block;
    height: 604px;
    width: 85px;
    background-color: var(--color-green);
    transform: skewX(-18deg);
    transform-origin: top right;
    position: absolute;
    top: -5px;
    right: -150px;
    z-index: -1;
}

h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 86px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--color-black);
    margin: 60px 0 30px;
    transition: .3s;
}

p {
    margin: 10px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-black);
    white-space: pre-line;
}

.style-list {
    position: relative;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-black);
}

.style-list:before {
    position: absolute;
    content: "";
    background-color: var(--color-green);
    display: block;
    width: 40px;
    height: 20px;
    left: -70px;
    top: 10px;
}

footer {
    padding-bottom: 60px;
}

.contacts footer {
    margin-top: 35px;
}

footer * {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    font-stretch: condensed;
    color: var(--color-white);
    transition: .3s;
}

.footer {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.title {
    max-width: 880px;
}

.content p {
    max-width: 720px;
}

/*          products         */

.products-list {
    display: flex;
    margin: 30px 0 20px;
    position: relative;
    z-index: 3;
}

.single-product {
    background-color: var(--color-white);
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: .3s;
}

.single-product:hover {
    box-shadow: 0 15px 15px 0 rgba(0, 0, 0, 0.25), 0 2px 4px 0 rgba(0, 0, 0, 0.25);
    transition: .3s;
}

.single-product:first-child {
    margin-right: 40px;
}

.product-logotype {
    height: 70px;
    margin: 105px 40px 80px;
}

.product-link {
    margin: 0 0 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    text-decoration: underline;
    color: var(--color-blue);
}

/*          contacts         */

.contacts .content {
    display: flex;
}

.contacts .content .left-side {
    flex-basis: 50%;
}

.contacts .left-side {
    display: flex;
    justify-content: flex-end;
}

.contacts-title {
    color: var(--color-green);
    font-weight: bold;
}

.contacts-wrap {
    max-width: 410px;
    padding-right: 190px;
    padding-left: var(--desktop-padding);
    flex-grow: 1;
}

.contact-links {
    display: flex;
    margin-bottom: 40px;
}

.contact-links > * {
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.contact-links .link {
    margin-right: 20px;
}

.ico-abuse {
    margin-left: 5px;
    width: 1.2em;
    height: 1.2em;
}

.contact-form {
}

.contact-form fieldset {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    margin: 0;
    padding: 0;
}

.contact-form input,
.contact-form textarea {
    border: solid var(--color-green);
    border-width: 0 0 1px 0;
    background: transparent;
    margin-top: 30px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-white);
    padding-bottom: 5px;
}

#name {
    margin-top: 0;
}

.contact-form input::placeholder,
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::placeholder,
.contact-form textarea::-webkit-input-placeholder {
    font-style: italic;
    color: var(--color-white);
}

.contact-form input.error,
.contact-form textarea.error {
    position: relative;
    border-bottom: 1px solid var(--color-red);
}

.error-message {
    display: block;
    position: relative;
    text-align: left;
    width: 100%;
    margin-top: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--color-white);
}

.error-message:after {
    content: "";
    display: block;
    position: absolute;
    left: -15px;
    top: -27px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-left: 6px solid var(--color-red);
    border-bottom: 4px solid transparent;
}

.error-message:empty {
    display: none;
}

.button {
    margin-top: 30px;
    border-radius: 15px;
    border: none;
    background-color: var(--color-green);
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-black);
    padding: 10px 20px;
}

.form-send-success,
.form-send-error,
.form-disabled {
    display: none;
    padding: 45px 40px;
    background-color: var(--color-dark-blue);
}

.content .form-send-success p,
.content .form-send-error p,
.content .form-disabled p {
    text-align: center;
    color: var(--color-white);
    max-width: none;
}

.content .form-disabled .link {
    color: var(--color-white);
}

.form-send-error {
    background-color: var(--color-red);
}

.back-to-form {
    text-decoration: underline;
    cursor: pointer;
}

.google-map {
    margin-top: 60px;
    position: relative;
    left: -100px;
    z-index: 3;
    flex-grow: 1;
}

.google-map iframe {
    width: calc(100% + 100px);
    height: 535px;
}

.container {
    height: 100%;
    position: relative;
}

@keyframes block-change {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

.frame {
    display: none;
    opacity: 0;
}

.frame * {
    pointer-events: none;
}

.frame.current {
    position: static;
    display: block;
    opacity: 1;
}

.frame.current * {
    pointer-events: auto;
}

.frame.animated {
    display: block;
    position: absolute;
    animation-name: block-change;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.frame.animated.target {
    animation-direction: reverse;
    animation-timing-function: cubic-bezier(.55, .06, .68, .19);
    animation-delay: 0.4s;
}

.frame.animated.source {
    animation-direction: normal;
    animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}

.container-start h1,
.container-start footer * {
    color: var(--color-black);
    transition: 1s;
}

.container-start .layer-block {
    opacity: 0;
    transition: 2s;
}

input:disabled, textarea:disabled, button:disabled {
    display: none;
}

@media screen and (min-width: 540px) and (max-width: 1040px) {
    :root {
        --header-height: 212px;
    }

    .layer-block {
        background: linear-gradient(to bottom, var(--color-white) var(--header-height), var(--color-blue) var(--header-height), var(--color-blue) 100%);
    }

    .frame {
        top: var(--header-height);
    }

    .header {
        padding-top: 60px;
        padding-bottom: 45px;
    }

    .vpn1-logo {
        max-height: 107px;
    }

    .menu {
        margin-right: 105px;
    }

    .menu-item {
        font-size: 20px;
        margin-right: 60px;
    }

    .menu-item::after {
        width: 6px;
        height: 44px;
        top: -3px;
        right: -30px;
    }

    .menu-item:last-child {
        margin-right: 0;
    }


    .menu-item:last-child::after {
        height: 570px;
        width: 80px;
        right: -125px;
    }

    h1 {
        font-size: 61px;
        margin: 50px 0 40px;
    }

    p {
        margin: 10px 0;
        font-size: 16px;
    }

    .style-list {
        margin: 15px 0;
        font-size: 28px;
    }

    .style-list:before {
        width: 30px;
        height: 20px;
        left: -60px;
        top: 10px;
    }

    footer {
        padding-bottom: 45px;
    }

    .contacts footer {
        margin-top: 35px;
    }

    .footer {
        bottom: 15px;
        right: 20px;
    }

    .title {
        max-width: 620px;
    }

    .content p {
        max-width: 540px;
    }

    /*         products          */
    .products .title {
        margin-bottom: 20px;
    }

    .products-list {
        margin: 20px 0 50px;
    }

    .single-product:first-child {
        margin-right: 20px;
    }

    .product-logotype {
        height: 44px;
        margin: 83px 20px 62px;
    }

    .product-link {
        font-size: 16px;
    }

    /*         contacts          */
    .contacts-wrap {
        padding-right: 130px;
    }

    .contact-links {
        margin-bottom: 30px;
    }

    .contact-links .link {
        margin-right: 20px;
    }

    .ico-abuse {
        margin-left: 5px;
        width: 1.2em;
        height: 1.2em;
    }

    .contact-form input,
    .contact-form textarea {
        margin-top: 30px;
        font-size: 16px;
    }

    .button {
        margin-top: 30px;
        font-size: 16px;
    }

    .form-send-success {
        padding: 23px 40px;
    }

    .google-map {
        position: relative;
        left: -90px;
        z-index: 3;
        flex-grow: 1;
    }

    .google-map iframe {
        width: calc(100% + 90px);
        height: 460px;
    }

}

@media screen and (max-width: 700px) {
    :root {
        --header-height: 210px;
    }

    .ps-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .layer-block {
        background: linear-gradient(to bottom, var(--color-white) var(--header-height), var(--color-blue) var(--header-height), var(--color-blue) 100%);
    }

    .frame {
        top: var(--header-height);
    }

    .header {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .vpn1-logo {
        max-height: 72px;
        align-self: center;
    }

    .menu {
        margin-top: 40px;
        margin-right: 50px;
    }

    .menu-item {
        font-size: 14px;
        margin-right: 34px;
    }

    .menu-item::after {
        width: 4px;
        height: 30px;
        top: -2px;
        right: -17px;
    }

    .menu-item:last-child {
        margin-right: 0;
    }

    .menu-item:last-child::after {
        height: 222px;
        width: 30px;
        right: -50px;
    }

    h1 {
        font-size: 28px;
        margin: 20px 0;
    }

    p {
        margin: 10px 0;
        font-size: 12px;
    }

    .style-list {
        margin: 10px 0;
        font-size: 16px;
    }

    .style-list:before {
        width: 30px;
        height: 20px;
        left: -60px;
        top: 10px;
    }

    .contacts footer {
        margin-top: 35px;
    }

    footer {
        padding-bottom: 48px;
    }

    footer * {
        font-size: 10px;
        line-height: 1.5;
    }

    .footer {
        bottom: 10px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .footer a {
        margin-top: 1px;
    }

    .mobile-hidden {
        display: none;
    }

    .title {
        max-width: 400px;
    }

    .content p {
        max-width: 340px;
    }

    .products .title {
        margin-bottom: 20px;
    }

    .products-list {
        margin: 20px 0 25px;
        flex-direction: column;
    }

    .single-product:first-child {
        margin: 0 0 30px;
    }

    .product-logotype {
        height: 44px;
        margin: 53px 20px 45px;
    }

    .product-link {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /*         contacts          */
    .contacts .content {
        flex-direction: column;
        padding: 0 20px;
    }

    .contacts .left-side {
        justify-content: flex-start;
    }

    .contacts-wrap {
        padding: 0;
        max-width: none;
    }

    .contact-links {
        margin-bottom: 20px;
    }

    .contact-links .link {
        margin-right: 10px;
    }

    .ico-abuse {
        margin-left: 5px;
        width: 1.2em;
        height: 1.2em;
    }

    .contact-form input,
    .contact-form textarea {
        margin-top: 30px;
        font-size: 16px;
    }

    .button {
        margin-top: 30px;
        font-size: 14px;
    }

    .form-send-success {
        padding: 23px 40px;
    }

    .google-map {
        left: 0;
        margin: 30px -20px 0;
    }

    .google-map iframe {
        width: 100%;
        height: 363px;
    }
}
