@keyframes floater {
    0% {
        transform: translateY(-2%);
        transition: ease 0.3s;
    }
    10% {
        transform: translateY(2%);
        transition: ease 0.3s;
    }
    20% {
        transform: translateY(-2%);
        transition: ease 0.3s;
    }
    30% {
        transform: translateY(2%);
        transition: ease 0.3s;
    }
    40% {
        transform: translateY(-2%);
        transition: ease 0.3s;
    }
}

@keyframes floaterh {
    0% {
        transform: translateX(-10%);
        transition: ease 0.5s;
    }
    10% {
        transform: translateX(10%);
        transition: ease 0.5s;
    }
    20% {
        transform: translateX(-10%);
        transition: ease 0.5s;
    }
    30% {
        transform: translateX(10%);
        transition: ease 0.5s;
    }
    40% {
        transform: translateX(-10%);
        transition: ease 0.5s;
    }
    100% {
        transform: translateX(-10%);
        transition: ease 6s;
    }
}

@keyframes rotator {
    0% {
        transform: rotateZ(-5deg);
        transition: ease 0.5s;
    }
    10% {
        transform: rotateZ(5deg);
        transition: ease 0.5s;
    }
    20% {
        transform: rotateZ(-5deg);
        transition: ease 0.5s;
    }
    30% {
        transform: rotateZ(5deg);
        transition: ease 0.5s;
    }
    40% {
        transform: rotateZ(-5deg);
        transition: ease 0.5s;
    }
    100% {
        transform: rotateZ(-5deg);
        transition: ease 6s;
    }
}

.floating-img {
    transition: ease 0.5s;
    position: absolute;
}

.left-gift {
    transform: translateY(-2%);
    animation: floater 1.5s infinite;
    left: 0;
    top: -150px;
}

.right-gift {
    transform: rotateZ(-5deg);
    animation: rotator 1.5s infinite 0.6s;
    right: 0;
    bottom: 0;
}

html {
    scroll-behavior: smooth;
}

#top-block {
    position: relative;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    background: url("/img/bg-top-left.png") no-repeat scroll top left,
    url("/img/bg-top-right.png") no-repeat scroll top right,
    url("/img/bg-middle.png") no-repeat scroll top center;
}

body > .container {
    padding-top: 187px;
}

h1 {
    font-weight: bold;
    font-size: 54px;
    margin-bottom: 60px;
}

.gift-page-title {
    position: relative;
    z-index: 10;
}

#get-more {
    margin-bottom: 60px;
}

.accept-form-wrapper {
    border-radius: 32px;
    border: 2px solid #FDE3C7;
    background: transparent url("/img/form-bg-2.png") no-repeat scroll 0 0 / cover;
    padding-bottom: 32px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.accept-form-wrapper .accept-form-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.8);
    z-index: 2;
}

.accept-form-wrapper .accept-form-overlay > div {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 90px;
    height: 100%;
}

.accept-form-wrapper h2 {
    margin: 32px 0 40px 0;
}

.accept-form {
    max-width: 824px;
    margin: 0 auto;
}

.accept-form .accept-form-fields {
    display: flex;
}

.accept-form-fields > div > div {
    padding-right: 32px;
}

.accept-form-fields input {
    box-sizing: border-box;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 40px;
    border: 2px solid #FCDAB5;
    padding: 14px 24px;
}

.accept-form-fields .btn-gift-activate {
    height: 50px;
    width: 200px;
    display: inline-block;
}

#accept-form input,
#accept-form label {
    display: inline-block;
    position: relative;
}

input[type="checkbox"] {
    appearance: none;
    position: relative;
}

.custom-checkbox {
    float: left;
    display: inline-block;
    width: 24px;
    height: 24px;
    user-select: none;
    background: transparent url("/img/checkbox.png") no-repeat scroll 0 0 / cover;
    border: 2px dashed transparent;
    border-radius: 50%;
}

input[type="checkbox"]:checked + .custom-checkbox {
    background-image: url("/img/checkbox-checked.png");
}

a {
    color: #D15400;
}

[aria-invalid="true"] {
    border-color: #ff0000;
}

input[type="checkbox"][aria-invalid="true"] + .custom-checkbox {
    border-color: #ff0000;
}

.gift-hint {
    height: 126px;
    width: 100%;
    text-align: center;
    background: transparent url("/img/notice-large.png") no-repeat scroll bottom center;
    margin-bottom: 75px;
}

.gift-hint:before {
    content: "Cотри поля ниже мышкой";
    display: block;
    height: 126px;
}

/** карточка */
.gift-wrapper > .carpet-placeholder,
.gift-wrapper > canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
}

.gift-wrapper > .carpet-placeholder {
    background: transparent url("/img/carpet-s.png") no-repeat scroll center center / cover;
    z-index: 50;
}

.gift-wrapper > canvas {
    z-index: 100;
    width: 100%;
    height: 100%;
    cursor: url("/img/coin_64.png") 32 32, pointer;
    touch-action: none;
}

.gift-panel {
    border-radius: 40px;
    border: #FCDAB5 solid 2px;
    padding: 8px 8px 8px 9px;
    background-color: #fff;
    margin-bottom: 60px;
}

.gift-wrapper {
    border-radius: 32px;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.gift-panel:hover .gift-wrapper,
.gift-panel .gift-wrapper.erased,
.gift-panel:focus .gift-wrapper {
    box-shadow: 0 0 45px 14px #F5CF9C;
}

.gift-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.gift-square .logo-wrapper {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.gift-square .gift-logo {
    width: 100px;
    max-height: 100px;
    display: block;
    overflow: hidden;
}

.gift-wide .logo-wrapper {
    border-radius: 12px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-grow: 0;
    flex-shrink: 0;
    aspect-ratio: 3/1;
}

.gift-wide .gift-logo {
    width: 100%;
    aspect-ratio: 3/1;
    display: block;
    overflow: hidden;
}
.gift-row-fw .gift-wide .logo-wrapper,
.gift-row-fw .gift-wide .gift-logo {
    aspect-ratio: 1/1;
}

.gift-inner-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gift-wrapper {
    height: 386px;
}

.gift-row-fw .gift-wrapper {
    height: unset;
}

.gift-inner-wrapper,
.gift-tall .gift-wrapper > .row {
    height: 100%;
    margin: 0;
}

.gift-tall .logo-wrapper {
    border-radius: 12px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
}

.gift-tall .gift-logo {
    width: 100px;
    max-width: 100%;
    max-height: 100%;
    display: block;
    overflow: hidden;
}

.gift-tall .row > * {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.gift-tall .gift-info .row {
    margin: 0;
    padding: 0;
}

.gift-tall .gift-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.gift-panel .first-row {
    display: flex;
    margin-bottom: 15px;
}

.gift-info {
    padding-left: 15px
}

.gift-description {
    font-size: 12px;
    margin-bottom: 4px;
}

.gift-code-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.gift-code-field,
.gift-code-wrapper {
    background-color: #fff;
    border-radius: 0;
    height: 44px;
    box-sizing: border-box;

    ::selection {
        background-color: transparent;
        color: #000;
    }

    ::-moz-selection {
        background-color: transparent;
        color: #000;
    }
}

.gift-code-field:focus-visible,
.gift-code-field {
    border-bottom: 2px dashed #FFB24C;
    border-top: 0 none transparent;
    border-left: 0 none transparent;
    border-right: 0 none transparent;
    width: 100%;
    padding: 10px 0 0 0;
    line-height: 16px;
    height: 36px;
    outline: none;
}

.gift-row-fw .gift-code-field:focus-visible,
.gift-row-fw .gift-code-field {
    padding: 10px 0 0 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #000000;
}

.gift-row-fw .info-row {
    margin-bottom: 12px;
    align-items: stretch;
}

.gift-row-fw .controls-row {
    top: 12px;
}

.gift-row-fw .gift-description {
    font-family: "Helvetica", sans-serif;
    font-size: 18px;
    line-height: 22px;
}

.code-copy {
    color: #33363F;
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    cursor: pointer;
}

.gift-row-fw .code-copy {
    left: 0;
    right: unset;
    color: #707070;
}

.btn-gift-activate {
    font-weight: bold;
    background: rgb(255, 213, 61);
    background: linear-gradient(180deg, rgba(255, 213, 61, 1) 0%, rgba(255, 178, 76, 1) 100%);
    border-radius: 32px;
    text-align: center;
    padding: 10px 19px;
}

.btn-gift-activate:active {
    border-color: transparent !important;
}

.gift-panel .btn-gift-activate {
    width: 100%;
    margin-bottom: 4px;
    max-height: 40px;
    padding: 8px 19px;
}

.gift-panel .btn-link {
    font-size: 12px;
    color: #808080;
    padding: 0;
    margin-bottom: 4px;
    line-height: 12px;
    max-height: 15px;
}

.qr-wrapper {
    padding: 0;
}

span.gift-code-field {
    display: block;
    overflow: hidden;
    padding-right: 14px;
    word-wrap: break-word;
    height: auto;
}

.gift-wrapper .second-row {
    position: relative;
}

.alert {
    position: absolute;
    z-index: 105;
    left: 50%;
    top: -52px;
    transform: translateX(-50%);
    max-width: 176px;
}

.gift-code-wrapper input[type="text"], span.gift-code-field {
    cursor: copy;
}

.legal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    align-items: stretch;
    align-content: stretch;
    overflow: hidden;
    max-width: 100%;
    color: #ccc;
    font-size: 8px;
    font-family: monospace;
}

.legal-wrapper > div {
    flex: none
}

.gift-row-fw .alert {
    top: unset;
}

.gift-row-fw .data-col,
.gift-row-fw .img-col{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media screen and (max-width: 992px) {
    body.h-100 {
        height: unset !important;
    }

    .row > * {
        padding: 0 8px;
    }

    .left-gift {
        left: -120px;
    }

    .right-gift {
        bottom: -60px;
    }

    .gift-hint {
        background-image: url("/img/finger-panel.png");
        height: 120px;
        position: relative;
        z-index: 2;
    }

    .gift-hint:before {
        content: "Сотри поля пальцем";
        height: 80px;
    }

    .gift-wrapper {
        padding: 8px;
        background-color: #fff;
    }
    .gift-row-fw .info-row {
        margin-bottom: 0;
    }
    .gift-row-fw .gift-wrapper {
        padding: 18px;
    }

    .gift-row-fw .btn-gift-activate {
        margin-bottom: 0;
    }

    .gift-panel .btn-link {
        text-align: left;
    }

    .gift-tall .logo-wrapper {
        width: 100px;
        max-height: 100%;
        flex-basis: 100px;
        flex-grow: 0;
        flex-shrink: 0;
    }

    .gift-info {
        padding-left: 8px;
    }

    .gift-panel .btn-gift-activate {
        padding: 8px 0;
        text-align: center;
    }

    .logo-wrapper > img {
        width: 100%;
        max-height: 100%;
    }

    .container {
        padding-left: 32px;
        padding-right: 32px;
        max-width: 100%;
        overflow-x: hidden;
    }

    #gift-more-wrapper,
    #more-anchor {
        max-width: 100%;
        margin: 0;
    }

    .qr-wrapper {
        display: none;
    }

    .gift-wrapper > canvas {
        cursor: pointer;
    }

    .accept-form-fields {
        flex-direction: column;
        max-width: 400px;
        margin: 0 auto;
    }

    .accept-form-fields > div > div {
        padding-right: 0;
    }

    .accept-form-fields .btn-gift-activate {
        width: 100%;
    }

    .gift-inner-wrapper > .row {
        margin: 0;
    }

    .gift-panel {
        margin-bottom: 32px;
    }

    .gift-inner-wrapper,
    .gift-tall .gift-wrapper > .row {
        min-height: 317px;
    }
}

@media screen and (max-width: 916px) {
    .gift-tall .logo-wrapper,
    .gift-tall .gift-logo {
        width: 64px;
        max-height: 64%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .gift-wrapper {
        height: 401px;
    }

    .gift-row-fw .gift-wrapper {
        height: unset;
    }
}

@media screen and (max-width: 768px) {
    .row {
        justify-content: center;
    }

    .col-md-4:not(.col-3) {
        width: 50%;
    }

    .gift-tall .btn-gift-activate {
        font-size: 12px;
    }

    footer .d-flex {
        flex-direction: column;
    }

    footer .d-flex .text-center {
        padding: 10px 0;
    }

    .gift-page-title h1 {
        font-size: 46px;
    }

    .gift-row-fw .gift-description {
        font-size: 13px;
        line-height: 17px;
    }
}

@media screen and (min-width: 531px) and (max-width: 992px) {
    .legal-wrapper {
        flex-wrap: wrap;
        gap: unset;
    }
}

@media screen and (max-width: 531px) {
    .col-md-4:not(.col-3) {
        width: 100%;
    }

    .gift-row-fw .gift-wrapper {
        padding: 16px 8px;
    }

    .gift-row-fw .col-3.col-md-4 {
        padding: 0;
    }

    .gift-row-fw h4 {
        font-size: 16px;
    }

    .gift-row-fw .code-row .col-6 {
        padding: 0;
    }

    .gift-row-fw .code-row .col-6+.col-6 {
        padding-left: 2px;
    }

    .gift-row-fw .code-row .code-copy {
        display: none;
    }

    .gift-row-fw .code-row .gift-code-field {
        padding: 0;
        font-size: 10px;
    }

    .gift-row-fw .gift-description {
        font-size: 11px;
        line-height: 14px;
    }

    body > .container {
        padding-top: 0;
        margin: 0;
        max-width: unset;
        overflow-x: hidden;
    }

    #top-block {
        padding-top: 187px;
    }

    .floating-img {
        transition: ease 0.5s;
        position: absolute;
    }

    .left-gift {
        transform: none;
        animation: none;
        top: 60px;
    }

    .right-gift {
        transform: none;
        animation: none;
        right: -76px;
    }

    .gift-row, .row {
        margin-right: 0;
        margin-left: 0;
    }

    .accept-form-wrapper {
        padding-right: 15px;
        padding-left: 15px;
    }

    .gift-panel {
        margin-bottom: 16px;
    }

    .rules-wrapper {
        padding-top: 14px;
    }

    .gift-panel.gift-square .first-row {
        display: block;
    }

    .gift-panel.gift-square .logo-wrapper {
        float: left;
        margin-right: 10px;
    }

    .gift-tall .logo-wrapper,
    .gift-tall .gift-logo {
        width: 100%;
        max-height: 64%;
    }

    .gift-page-title h1 {
        font-size: 40px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media screen and (max-width: 460px) {
    .gift-page-title h1 {
        font-size: 36px;
    }

    .gift-row-fw .gift-code-field,
    .gift-row-fw .btn-gift-activate {
        font-size: 12px;
    }

    .gift-row-fw .gift-code-field {
        height: 16px;
        margin-top: 11px;
    }
}

@media screen and (max-width: 395px) {
    .gift-page-title h1 {
        font-size: 32px;
    }

    .gift-row-fw .gift-code-field {
        height: 14px;
        margin-top: 11px;
    }

    .gift-row-fw .gift-code-field,
    .gift-row-fw .btn-gift-activate {
        font-size: 10px;
    }

    .container {
        padding-left: 5px;
        padding-right: 5px;
    }

    .gift-panel .btn-link {
        font-size: 10px;
    }
}

