/**
 * Created: 12.12.2024, 10:43
 * Author : Evgeniy Cimonov <cimonovevgeniy@34web.ru>
 * Company: 34web Studio
 */
body {
    position: relative
}

.new-year-action {
    --block-width: 200px;
    --block-height: 300px;
    --bg-width: calc(var(--block-width, 1) * 0.6);
    --bg-height: calc(var(--block-height, 1) * 0.6);
    --bg-half-width: calc(var(--bg-width, 1) * 0.5);
    --bg-half-height: calc(var(--bg-height, 1) * 0.5);
    --tree-width: calc(var(--block-width, 1) * 0.48);
    --tree-height: calc(var(--block-height, 1) * 0.48);
    --tree-margin-top: calc(var(--block-height, 1) * 0.066);
    --gift1-width: calc(var(--block-width, 1) * 0.1466);
    --gift1-height: calc(var(--block-height, 1) * 0.095);
    --gift1-half-width: calc(var(--gift1-width, 1) * 0.5);
    --gift1-half-height: calc(var(--gift1-height, 1) * 0.5);
    --gift2-width: calc(var(--block-width, 1) * 0.1);
    --gift2-height: calc(var(--block-height, 1) * 0.069);
    --gift2-half-width: calc(var(--gift2-width, 1) * 0.5);
    --gift3-width: calc(var(--block-width, 1) * 0.1333);
    --gift3-height: calc(var(--block-height, 1) * 0.095);
    --cane1-width: calc(var(--block-width, 1) * 0.08);
    --cane1-height: calc(var(--block-height, 1) * 0.1385);
    --cane2-width: calc(var(--block-width, 1) * 0.23);
    --cane2-height: calc(var(--block-height, 1) * 0.4);
    --balls-width: calc(var(--block-width, 1) * 0.51);
    --balls-height: calc(var(--block-height, 1) * 0.442);
    --balls-half-width: calc(var(--block-width, 1) * 0.255);

    display: block;
    width: var(--block-width);
    height: var(--block-height);

    position: absolute;
    top: calc(50vh - var(--bg-half-height, 1));
    right: 0;
    z-index: 900;
    overflow: hidden;
    cursor: pointer;
}

.cT {
    width: 100%;
    height: 100%;
    position: absolute;
    right: calc(var(--block-width, 1) * (-0.3));
    display: block;
    /*right: 0;*/
}

.cT__bg {
    display: flex;
    width: var(--bg-width);
    height: var(--bg-height);
    justify-content: center;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: calc(50% - var(--bg-half-width, 1));
    z-index: 910;
    background-color: #16DE73;
}

.cT__cane1, .cT__tree, .cT__gift1, .cT__gift2, .cT__gift3, .cT__cane2, .cT__balls {
    display: block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cT__cane1 {
    width: var(--cane1-width);
    height: var(--cane1-height);
    transform: scale(-1, 1) rotate(-33.17deg);
    position: absolute;
    top: 40px;
    right: 30px;
    z-index: 920;
}

.cT__tree {
    width: var(--tree-width);
    height: var(--tree-height);
    margin-top: var(--tree-margin-top);
    position: relative;
    z-index: 930;
}

.cT__cane2 {
    width: var(--cane2-width);
    height: var(--cane2-height);
    transform: rotate(-33.17deg);
    position: absolute;
    left: 28px;
    top: 8px;
    z-index: 940;
}

.cT__cane1, .cT__cane2, .cT__balls {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.cT__gift1, .cT__gift2, .cT__gift3 {
    transition: transform 1s ease-in-out;
}

.cT:hover .cT__cane1, .cT:hover .cT__cane2, .cT:hover .cT__balls {
    opacity: 1;
}

.cT:hover .cT__gift1 {
    transform: translateX(-25px) scale(2.74, 2.74) rotate(-15deg);
}

.cT:hover .cT__gift2 {
    transform: scale(2.73, 2.73);
}

.cT:hover .cT__gift3 {
    transform: translateX(25px) scale(2.74, 2.74) rotate(15deg);
}

.cT__gift1 {
    width: var(--gift1-width);
    height: var(--gift1-height);
    position: absolute;
    top: calc(var(--tree-height, 1) + var(--tree-margin-top, 1) - var(--gift1-half-height, 1) - 3px);
    left: calc(50% - var(--gift1-width, 1) - 3px);
    /*left: calc(50% - 34px);*/
    z-index: 940;
}

.cT__gift2 {
    width: var(--gift2-width);
    height: var(--gift2-height);
    position: absolute;
    top: calc(var(--tree-height, 1) + var(--tree-margin-top, 1) - var(--gift1-half-height, 1) + 3px);
    left: calc(50% - var(--gift2-half-width, 1));
    z-index: 950;
}

.cT__gift3 {
    width: var(--gift3-width);
    height: var(--gift3-height);
    position: absolute;
    top: calc(var(--tree-height, 1) + var(--tree-margin-top, 1) - var(--gift1-half-height, 1) - 3px);
    left: calc(50% + 3px);
    z-index: 940;
}

.cT__balls {
    width: var(--balls-width);
    height: var(--balls-height);
    position: absolute;
    bottom: 10px;
    left: calc(50% - var(--balls-half-width, 1));
    z-index: 940;
}

@font-face {
    font-family: 'Random Grotesque Spacious Book';
    font-style: normal;
    font-weight: normal;
    src: local('Random Grotesque Spacious Book'), local('RG Spacious Book'), local('Random-Grotesque-Spacious-Book'),
    url('fonts/randomgrotesquespaciousbook.woff2') format('woff2'),
    url('fonts/randomgrotesquespaciousbook.ttf') format('ttf');
}

@font-face {
    font-family: 'GothamPro';
    font-style: normal;
    font-weight: normal;
    src: local('GothamPro'), local('Gotham Pro'), local('Gotham-Pro'),
    url('fonts/gothampro.woff2') format('woff2'),
    url('fonts/gothampro.ttf') format('ttf');
}

@font-face {
    font-family: 'GothamPro Black';
    font-style: normal;
    font-weight: normal;
    src: local('GothamPro Black'), local('Gotham Pro Black'), local('Gotham-Pro Black'),
    url('fonts/gothampro_black.woff2') format('woff2'),
    url('fonts/gothampro_black.ttf') format('ttf');
}

.cA {
    --ca-width: min(1060px, 90vw);
    --ca-height: min(520px, 90vh);
    --ca-banner-width: min(960px, calc(var(--ca-width) * 0.9057));
    --ca-banner-height: min(260px, calc(var(--ca-banner-width) * 0.27));

    display: grid;
    grid-template-columns: calc(var(--ca-width) * 0.4575) calc(var(--ca-width) * 0.434);
    /*grid-template-columns: 485px 460px;*/
    grid-template-rows: 60px 80px 260px;
    row-gap: 20px;
    column-gap: calc(var(--ca-width) * 0.028);
    width: var(--ca-width);
    height: var(--ca-height);
    padding: calc(var(--ca-width) * 0.047);
    border-radius: 32px;
    overflow: hidden;
}

.cA__title {
    grid-row: 1/2;
    grid-column: 1/2;
    z-index: 4;

    font-family: 'Random Grotesque Spacious Book', Montserrat, Arial, sans-serif;
    /*font-size: 58px;*/
    font-size: calc(var(--ca-width) * 0.0547);
    font-weight: 400;
    line-height: 1;
}

.cA__description, .cA__banner {
    font-family: 'GothamPro', Montserrat, Arial, sans-serif;
}

.cA__description {
    grid-row: 2/3;
    grid-column: 1/2;
    z-index: 4;

    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.cA__years {
    position: absolute;
    top: -80px;
    right: 50px;
    z-index: 2;
    font-size: calc(var(--ca-width) * 0.1698);
    line-height: 0.75;
    letter-spacing: -0.04em;
    font-family: 'GothamPro Black', Montserrat, Arial, sans-serif;

}

.cA__year {
    opacity: 0.2;
}

.cA__year.__current {
    opacity: 1;
}

.cA__banner {
    grid-row: 3/4;
    grid-column: 1/3;
    z-index: 4;
    width: var(--ca-banner-width);
    height: var(--ca-banner-height);
    padding: 25px;
    background-color: black;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}
/*.cA__banner:after{*/
/*    content: '';*/
/*    display: block;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background-image: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);*/
/*}*/
.cA__bannerTitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    height: calc(100% - 60px);
    overflow: hidden;
}

.cA__bannerButton {
    display: inline-block;
    height: 65px;
    padding: 20px 32px;
    font-size: 24px;
    border-radius: 10px;
}

.cA__gift {
    position: absolute;
    right: -90px;
    bottom: -150px;
    z-index: 3;
    width: 322px;
    height: 366px;
    transform: rotate(15deg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@media only screen and (max-width: 1023px) {
    .new-year-action{
        --block-width: 80px;
        --block-height: 90px;
        --bg-width: var(--block-width);
        --bg-height: calc(var(--block-height, 1) * 0.8);
        --tree-width: 44px;
        --tree-height: 68px;
        --gift1-width: 36px;
        --gift1-height: 36px;
        --gift2-width: 25px;
        --gift2-height: 36px;
        --gift3-width: 33px;
        --gift3-height: 36px;

        position: fixed;
        /*top: auto;*/
        /*right: auto;*/
        /*bottom: 10px;*/
        /*left: 20px;*/
    }

    .cT {
        position: relative;
        top: auto;
        right: auto;
    }

    .cT__bg{
        position: relative;
        top: auto;
        left: auto;
    }
    .cT__cane1, .cT__cane2, .cT__balls {
        display: none;
    }
    .cT__gift1, .cT__gift2, .cT__gift3{
        transition: none;
        top: auto;
        bottom: 0;
    }
    .cT:hover .cT__gift1, .cT:hover .cT__gift2, .cT:hover .cT__gift3 {
        transform: none;
    }

    .cA {
        --ca-width: 100vw;
        --ca-height: 629px;

        padding: 60px 0 10px 0;
        display: block;
        border-radius: 8px;
        /*grid-template-columns: 100vw;*/
        /*grid-template-rows: 30px 50px 356px;*/
    }
    .cA__title, .cA__description {
        padding-left: 15px;
        padding-right: 15px;
    }
    .cA__title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .cA__description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .cA__years {
        font-size: 80px;
        top: auto;
        right: -10px;
        bottom: 40px;
    }
    .cA__year {
        display: none;
    }
    .cA__year.__current {
        display: block;
    }
    .cA__banner {
        width: 100vw;
        height: 356px;
        max-height: 40vh;
        border-radius: 8px;
    }
    .cA__gift {
        display: none;
    }
}