:root {
    --shadow-color: rgb(160, 134, 150);
    --text-color: #fff;
    --top-line-start: #D967ED;
    --top-line-end: #7077FA;
    --blc: #272C5B;
    --trc: #8B6263;
    --tlc: #3B2B53;
    --brc: #5A3951;
    --gtrc: #D23C83;
    --gmrc: #18256D;
    --gbrc: #8674F8;
}

@font-face {
    font-family: bruno_aceregular;
    src: url('../fonts/brunoace-regular-webfont.woff2') format('woff2'),
        url('../fonts/brunoace-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'vt323regular';
    src: url('../fonts/vt323-regular-webfont.woff2') format('woff2'),
        url('../fonts/vt323-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

body {
    font-family: 'vt323regular', sans-serif;
    background: rgb(46, 42, 53);
}

.img {
    width: 100%;
}

.btn-reset {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mb-20 {
    margin-bottom: 20px;
}

.text {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
}

.none {
    display: none;
}

.shine {
    filter: drop-shadow(2px 0px 6px var(--gtrc));
}

.shine:hover {
    filter: none;
}

.shine:active {
    transform: scale(.98);
    filter: none;
}

.container .hide {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    top: -1000%;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
}

.talk {
    display: flex;
    align-items: flex-end;
    transition: opacity 2s, visibility 1s ease-in-out;
}

.talk__wrap {
    display: flex;
    flex-direction: column;
}

.talk__ava {
    margin-right: 10px;
}

.talk__text {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: var(--text-color);
}

.notice {
    text-align: center;
}

.notice__mes {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
    margin-bottom: 15px;
    padding: 20px 10px;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-color);
    background-size: 50% 100%;
    background-repeat: no-repeat;
}

.notice__mes:before {
    content: '';
    background: linear-gradient(45deg, var(--gtrc), var(--gmrc), var(--gbrc), var(--gtrc));
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 25s linear infinite;
    opacity: 1;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.notice__mes:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(46, 42, 53);
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: -400% 0;
    }

    100% {
        background-position: 0 0;
    }
}


.choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 105px 20px;
    background: linear-gradient(45deg, var(--blc), var(--trc));
}

.choice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--top-line-start), var(--top-line-end));
}

.choice__btn {
    position: relative;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: transform .1s ease-in-out;
}

.choice__btn:focus {}

.choice__btn:hover {
    filter: drop-shadow(2px 0px 6px var(--gtrc));
}

.choice__btn:active {
    transform: scale(.98);
    filter: none;
}


.choice__btn::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 25px;
    background: url(../images/angle.png) center/contain no-repeat;
    top: -3px;
    left: -60px;
    transition: transform .1s ease-in-out;
}

.choice__btn:active::before {
    transform: translate(20px);
}


.choice__btn:not(:last-child) {
    margin-bottom: 15px;
}

.example {
    position: relative;
    padding: 18px 50px 50px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, var(--blc), var(--trc));
    transition: opacity 2s, visibility 1s ease-in-out;
}

.example::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--top-line-start), var(--top-line-end));
}

.example::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(var(--gtrc) 3px, var(--gmrc) 9px, var(--gmrc) 30px, var(--gbrc) 35px);
}

.example__photo {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.example__photo svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

@keyframes buzz-out {
    10% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    20% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    30% {
        -webkit-transform: translateX(3px) rotate(2deg);
        transform: translateX(3px) rotate(2deg);
    }

    40% {
        -webkit-transform: translateX(-3px) rotate(-2deg);
        transform: translateX(-3px) rotate(-2deg);
    }

    50% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    60% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    70% {
        -webkit-transform: translateX(2px) rotate(1deg);
        transform: translateX(2px) rotate(1deg);
    }

    80% {
        -webkit-transform: translateX(-2px) rotate(-1deg);
        transform: translateX(-2px) rotate(-1deg);
    }

    90% {
        -webkit-transform: translateX(1px) rotate(0);
        transform: translateX(1px) rotate(0);
    }

    100% {
        -webkit-transform: translateX(-1px) rotate(0);
        transform: translateX(-1px) rotate(0);
    }
}

.example__photo svg:hover,
.example__photo svg:focus,
.example__photo svg:active {
    animation-name: buzz-out;
    animation-duration: 0.75s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}

.example_no-after {
    padding: 18px 50px 5px;
}

.example_end {
    margin-bottom: 100px;
    padding: 30px 50px 30px;
}

.example_no-after::after {
    display: none;
}

.example__img {
    padding: 30px 0;
}

.example__btn {
    color: var(--text-color);
    font-size: 28px;
}

.example__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.example__text {
    font-size: 24px;
    color: var(--text-color);
}

.example__text:first-child {
    text-align: center;
}

.example__text-lg {
    font-size: 28px;
    text-align: center;
}

.decision {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 70px;
    text-align: center;
}

.decision__title {
    margin: 0;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 400;
    color: var(--text-color);
}

.dicision__wrap {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.decision__btn {
    color: var(--text-color);
    cursor: pointer;
}

.decision__btn {
    --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 1%));
    --primary-hue: 0;
    --primary-lightness: 72;
    --color: hsl(0, 0%, 100%);
    --font-size: 26px;
    --shadow-primary-hue: 180;
    --label-size: 9px;
    --shadow-secondary-hue: 60;
    --shadow-secondary: hsl(var(--shadow-secondary-hue), 90%, 60%);
    --clip: polygon(0 0, 100% 0, 100% 100%, 95% 100%, 95% 90%, 100% 100%, 12% 100%, 0 66%);
    --border: 4px;
    --shimmy-distance: 5;
    --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
    --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
    --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
    --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
    --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
    --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
    --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);
    color: var(--color);
    cursor: pointer;
    background: transparent;
    text-transform: uppercase;
    font-size: var(--font-size);
    outline: transparent;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    border: 0;
    min-width: 300px;
    height: 75px;
    line-height: 75px;
    transition: background 0.2s;
    z-index: 100;
}

.decision__btn:hover {
    --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.8%));
}

.decision__btn:active {
    --primary: hsl(var(--primary-hue), 85%, calc(var(--primary-lightness, 50) * 0.6%));
}

.decision__btn:after,
.decision__btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    clip-path: var(--clip);
    z-index: -1;
}

.decision__btn:before {
    background: var(--shadow-primary);
    transform: translate(var(--border), 0);
}

.decision__btn:after {
    background: var(--primary);
}

.decision__btn-glitch {
    position: absolute;
    top: calc(var(--border) * -1);
    left: calc(var(--border) * -1);
    right: calc(var(--border) * -1);
    bottom: calc(var(--border) * -1);
    background: var(--shadow-primary);
    text-shadow: 2px 2px var(--shadow-primary), -2px -2px var(--shadow-secondary);
    clip-path: var(--clip);
    animation: glitch 2s infinite;
    display: none;
}

.decision__btn:hover .decision__btn-glitch {
    display: block;
}

.decision__btn-glitch:before {
    content: '';
    position: absolute;
    top: calc(var(--border) * 1);
    right: calc(var(--border) * 1);
    bottom: calc(var(--border) * 1);
    left: calc(var(--border) * 1);
    clip-path: var(--clip);
    background: var(--primary);
    z-index: -1;
}

@keyframes glitch {
    0% {
        clip-path: var(--clip-one);
    }

    2%, 8% {
        clip-path: var(--clip-two);
        transform: translate(calc(var(--shimmy-distance) * -1%), 0);
    }

    6% {
        clip-path: var(--clip-two);
        transform: translate(calc(var(--shimmy-distance) * 1%), 0);
    }

    9% {
        clip-path: var(--clip-two);
        transform: translate(0, 0);
    }

    10% {
        clip-path: var(--clip-three);
        transform: translate(calc(var(--shimmy-distance) * 1%), 0);
    }

    13% {
        clip-path: var(--clip-three);
        transform: translate(0, 0);
    }

    14%, 21% {
        clip-path: var(--clip-four);
        transform: translate(calc(var(--shimmy-distance) * 1%), 0);
    }

    25% {
        clip-path: var(--clip-five);
        transform: translate(calc(var(--shimmy-distance) * 1%), 0);
    }

    30% {
        clip-path: var(--clip-five);
        transform: translate(calc(var(--shimmy-distance) * -1%), 0);
    }

    35%, 45% {
        clip-path: var(--clip-six);
        transform: translate(calc(var(--shimmy-distance) * -1%));
    }

    40% {
        clip-path: var(--clip-six);
        transform: translate(calc(var(--shimmy-distance) * 1%));
    }

    50% {
        clip-path: var(--clip-six);
        transform: translate(0, 0);
    }

    55% {
        clip-path: var(--clip-seven);
        transform: translate(calc(var(--shimmy-distance) * 1%), 0);
    }

    60% {
        clip-path: var(--clip-seven);
        transform: translate(0, 0);
    }

    31%, 61%, 100% {
        clip-path: var(--clip-four);
    }
}

.decision__btn-mod {
    --primary-hue: 260;
}

.modal {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s, visibility .8s ease-in-out;
}

.modal__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal__link {
    font-size: 30px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.yes-modal__title {
    flex: 1 1 25%;
    text-align: right;
}

.yes-modal__wrap {
    display: flex;
    justify-content: space-around;
    flex: 1 1 80%;
}

.yes-modal__icon {
    max-width: 70px;
}