﻿body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 18px;
}

.body-content {
    width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 100px;
    box-sizing: border-box;
}

.inactive {
    opacity: 0.5;
}

.qr-code-download-line img {
    cursor: pointer;
}

.qr-code-download-line.inactive img {
    cursor: default;
}


h1 {
    font-size: 35px;
    line-height: 45px;
    background: linear-gradient(88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 378px;
    margin: 0 0 28px 0;
}

.content {
    display: flex;
    flex-wrap: wrap;
}

.generator-widget {
    margin-bottom: 60px;
    box-shadow: 0px 0px 24px 0px #00000029;
    width: 820px;
    box-sizing: border-box;
}

.generator-widget-inner {
    padding: 41px 33px 41px 41px;
    box-sizing: border-box;
}

.qr-code-options {
    /*float: right;*/
    width: 368px;
    display: inline-block;
}

.qr-code-appearance {
    margin-bottom: 28px;
}

.appearance-toggle-line {
    display: none;
    font-size: 14px;
    margin-bottom: 12px;
}

.appearance-toggle-wrapper {
    display: inline-block;
    cursor: pointer;
}

    .appearance-toggle-wrapper img {
        width: 12px;
    }

    .appearance-toggle-wrapper span {
        border-bottom: 1px dashed #16181E;
    }

.appearance-option {
    margin-top: 24px;
}

.appearance-option:first-child {
    margin-top: 0;
}

.appearance-option__header {
    position: relative;
    padding-left: 20px;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid black;
    cursor: pointer;
}

    .appearance-option__header::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 0;
        width: 14px;
        height: 14px;
        background-position: center;
        background-repeat: no-repeat;
    }

.appearance-option__header--colors::before {
    background-image: url("images/icons/paint.svg");
}

.appearance-option__header--design::before {
    background-image: url("images/icons/qr-code.svg");
}

.appearance-option__header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("images/icons/shevron-down.svg");
    transform: translateY(-50%);
}

.appearance-option--opened .appearance-option__header::after {
    background-image: url("images/icons/shevron-up.svg");
}

.appearance-option__content {
    display: none;
}

.design-options {
    display: flex;
    flex-wrap: wrap;
}

.design-options__header {
    width: 100%;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: inherit;
    line-height: inherit;
    font-weight: normal;
}

.design-option {
    width: 56px;
    height: 56px;
    margin-right: 12px;
    margin-bottom: 12px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #BDBDBD;
    cursor: pointer;
}

    .design-option:last-of-type {
        margin-right: 0;
    }

.design-option--active {
    border-width: 3px;
    border-color: #000;
    box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.25);
}

.design-option--pattern-square {
    background-image: url("images/pattern-square.svg");
}

.design-option--pattern-dots {
    background-image: url("images/pattern-dots.svg");
}

.design-option--pattern-rounded {
    background-image: url("images/pattern-rounded.svg");
}

.design-option--pattern-extra-rounded {
    background-image: url("images/pattern-extra-rounded.svg");
}

.design-option--pattern-classy {
    background-image: url("images/pattern-classy.svg");
}

.design-option--pattern-classy-rounded {
    background-image: url("images/pattern-classy-rounded.svg");
}

.design-option--border-square {
    background-image: url("images/border-square.svg");
}

.design-option--border-dot {
    background-image: url("images/border-dot.svg");
}

.design-option--border-extra-rounded {
    background-image: url("images/border-extra-rounded.svg?1");
}

.design-option--center-square {
    background-image: url("images/center-square.svg");
}

.design-option--center-dot {
    background-image: url("images/center-dot.svg");
}

.qr-code-result {
    float: right;
}

.qr-code-download-line {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

    .qr-code-download-line img {
        width: 40px;
        margin-left: 8px;
    }

#qrCodePreview {
    position: relative;
    display: block;
    width: 318px;
    margin-bottom: 17px;
    text-decoration: none;
}

    #qrCodePreview:visited,
    #qrCodePreview:hover,
    #qrCodePreview:active,
    #qrCodePreview:focus {
        text-decoration: none;
    }

    #qrCodeType {
        width: 100%;
        height: 46px;
        box-sizing: border-box;
        margin-bottom: 12px;
    }

#qrCodeValue {
    margin-bottom: 28px;
}

.qr-code-save {
    width: 100%;
    height: 69px;
    background: linear-gradient(88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
    color: white;
    text-align: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

input[type='text'],
input[type='email'] {
    font-size: 14px;
    padding-left: 22px;
    padding-right: 22px;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
}

.control-group {
    margin-bottom: 24px;
    width: 45%;
}

.email-sending-toggler {
    display: none;
    align-items: center;
    padding-left: 75px;
    margin-bottom: 20px;
}

.email-sending-toggler__switcher {
    margin-right: 5px;
    border-bottom: 2px dotted #8050F7;
    background: linear-gradient( 88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.email-sending-toggler__tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 0.8em;
    line-height: 150%;
    color: #fff;
    text-align: center;
    background: linear-gradient( 88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
    border-radius: 50%;
}

.email-sending {
    width: 368px;
}

.email-sending__header {
    font-size: inherit;
    margin: 0 0 9px;
}

.email-sending__email {
    margin-bottom: 6px;
}
.email-sending__email--has-error {
    border-color: #F43319;
    border-style: solid;
}

.email-sending__send-btn {
    width: 100%;
    padding: 20px 0;
    font-family: inherit;
    font-size: inherit;
    color: #fff;
    background: linear-gradient( 88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
    border: none;
    cursor: pointer;
}

    .email-sending__send-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }

.email-sending__error-msg {
    margin-bottom: 10px;
    height: 18px;
    visibility: hidden;
    color: #F43319;
}

    .email-sending__error-msg--show {
        visibility: visible;
    }

.email-sending__success-result {
    display: none;
    height: 127px;
}

.email-sending__success-result-text {
    position: relative;
    margin: 20px 0;
    padding-left: 40px;
    font-style: italic;
}

    .email-sending__success-result-text::before {
        content: "";

        position: absolute;
        top: 50%;
        left: 0;

        width: 28px;
        height: 22px;
        background: url("/Content/images/icons/mark--gradient.svg") center no-repeat;

        transform: translateY(-50%);
    }

    .email-sending__back-to-send-form,
    .email-sending__back-to-send-form:visited,
    .email-sending__back-to-send-form:hover,
    .email-sending__back-to-send-form:active,
    .email-sending__back-to-send-form:focus {
        margin-right: 5px;
        text-decoration: none;
        border-bottom: 2px dotted #8050F7;
        background: linear-gradient( 88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        cursor: pointer;
    }

.horizontal-bar {
    height: 5px;
    background: linear-gradient(88.64deg, #9E3FF6 0.27%, #3876F6 99.51%);
}

.generator-features {
    padding-left: 24px;
    padding-top: 180px;
}

.generator-feature {
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

    .generator-feature img {
        width: 32px;
        margin-right: 12px;
    }

.faq {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq__header {
    font-size: 31px;
    line-height: 40px;
    text-align: center;
}

.faq__text {
    margin-bottom: 50px;
    font-size: 19px;
    text-align: center;
}

.faq__list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.faq__list-item {
    margin-bottom: 60px;
}

.faq__item-header {
    position: relative;
    margin: 0;
    padding-bottom: 19px;
    padding-right: 50px;
    border-bottom: 1px solid #F2F2F2;
    cursor: pointer;
    font-size: 19px;
}

.faq__item-content {
    margin-top: 15px;
    line-height: 20px;
}

.faq__item-header::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 10px;
    width: 29px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("images/icons/shevron-down--gradient.svg");
}

.faq__item-header--opened::after {
    background-image: url("images/icons/shevron-up--gradient.svg?1");
}

@media(max-width: 1440px) {
    /* Поля становятся чуть теснее */
    .body-content {
        width: 1240px;
        padding: 30px 50px;
    }
}

@media (max-width: 1240px) {
    /* Блок с фичами переносится вниз и всё становится шириной с главный блок */
    .body-content {
        width: 920px;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .horizontal-bar {
        display: none;
    }

    .generator-widget {
        margin-bottom: 34px;
    }

    .generator-features {
        padding-left: 0;
        padding-top: 0;
    }
}

@media (max-width: 920px) {
    /* Размеры уменьшаются до мобильных и ещё чуть-чуть всё влезает */
    h1 {
        font-size: 21px;
        line-height: 26px;
        width: 228px;
        margin: 0 0 19px 0;
    }

    .faq__header {
        font-size: 19px;
        line-height: 25px;
    }

    .faq__list-item {
        margin-bottom: 34px;
    }

    .faq__item-header {
        font-size: 13px;
        padding-bottom: 12px;
    }

        .faq__item-header::after {
            top: 3px;
            right: 10px;
            width: 20px;
            height: 11px;
            background-size: 20px;
        }

    .faq__text {
        font-size: 13px;
    }

    .faq__item-content {
        line-height: 17px;
    }

    body {
        font-size: 12px;
    }

    .body-content {
        width: 798px;
    }

    .generator-widget {
        width: 698px;
    }

    #qrCodePreview {
        width: 286px;
        /*height: 286px;*/
    }

    .qr-code-options {
        width: 286px;
    }

    .qr-code-save {
        height: 60px;
        font-size: 12px;
    }

    input[type='text'],
    input[type='email'] {
        font-size: 12px;
        padding-left: 19px;
        padding-right: 19px;
        height: 40px;
    }

    #qrCodeType {
        height: 40px;
    }

    .appearance-toggle-line {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .generator-feature {
        font-size: 12px;
        margin-bottom: 21px;
    }

    .email-sending-toggler {
        padding-left: 65px;
    }

    .email-sending {
        width: 286px;
    }
}

@media (max-width: 800px) {
    /*Полностью мобильный шаблон в один столбец*/

    .body-content {
        width: 100%;
        padding: 22px 24px;
    }

    .generator-widget {
        width: 100%;
    }

    .generator-widget-inner {
        padding: 25px 15px;
    }

    .qr-code-options {
        width: 100%;
        display: block;
        margin-bottom: 17px;
    }

    .qr-code-result {
        float: none;
    }

    #qrCodePreview {
        margin-left: auto;
        margin-right: auto;
        max-width: 286px;
        width: 100%;
    }

    .appearance-option {
        margin-top: 18px;
    }

        .appearance-option:first-child {
            margin-top: 0;
        }

    .download-text {
        display: none;
    }

    .qr-code-download-line {
        display: block;
        text-align: center;
    }

        .qr-code-download-line img:first-of-type {
            margin-left: 0;
        }

    input[type='text'],
    input[type='email'] {
        font-size: 12px;
        padding-left: 16px;
        padding-right: 16px;
        height: 31px;
    }

    #qrCodeType {
        height: 31px;
    }

    .qr-code-save {
        height: 51px;
        font-size: 12px;
    }

    .control-group {
        margin-bottom: 16px;
    }

    .email-sending-toggler {
        padding-left: 0;
    }

    .email-sending {
        width: 100%;
    }
}


@media (max-width: 458px) {
    .sp-palette-container {
        display: none;
    }
}

@media (max-width: 340px) {
    .control-group {
        width: 100%;
    }
}
