:root {
    --c-green: #044034;
    --c-red: #FF4338;
    --c-beige: #DDBCA4;
    --c-light: #F5F3F1;
    --c-text: #181818;
    --c-white: #ffffff;
    --f-main: Montserrat, system-ui, -apple-system, Roboto, Helvetica, sans-serif;
    --f-btn: 'Open Sans', system-ui, -apple-system, Roboto, Helvetica, sans-serif;
    
    --gap-lg: clamp(4rem, 5vw, 8rem);
    --gap-md: clamp(2rem, 3vw, 3.5rem);
    --gap-sm: 2rem;
    
    --fs-h1: clamp(2.4rem, 4vw, 3.6rem);
    --fs-h2: clamp(2.4rem, 4vw, 3.6rem);
    --fs-large: clamp(6rem, 8vw, 10rem);
    --fs-month: clamp(1.8rem, 2vw, 3rem);
    --fs-body: clamp(1.6rem, 1.5vw, 2.2rem);
    --fs-small: 1.6rem;
    --scrollbar-width: 10px;
}
body::-webkit-scrollbar {
    width: var(--scrollbar-width);
}
body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
body::-webkit-scrollbar-thumb {
    background: var(--c-green);
    width: calc(var(--scrollbar-width) - 4px);
    border-radius: 4px;
}

.advent-container {
    width: 100%;
    background-color: var(--c-white);
    font: var(--f-main);
    position: relative;
    box-sizing: border-box;
}

.advent-container *,
.advent-container *::before,
.advent-container *::after {
    box-sizing: inherit;
}
.advent-container svg {
    fill: none;
}

.advent-content {
    max-width: 162rem;
    margin: 0 auto;
    padding: 0 2rem var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.advent-snowflake {
    position: fixed;
    width: 16rem;
    height: 16rem;
    
    &.advent-snowflake-1 {
        left: -8rem;
        top: 50rem;
        color: var(--c-red);
    }
    &.advent-snowflake-2 {
        right: -8rem;
        top: 10rem;
        color: #E9E9E9;
    }
    & svg {
        width: 100%;
        height: 100%;
    }
}

.advent-banner {
    height: 78rem;
    position: relative;
}

.advent-banner__bg {
    width: 100vw;
    height: 100%;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url("images/main-banner.png") no-repeat center center / cover;
}

.advent-banner__text {
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 77rem;
    
    & p {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }
}
.advent-banner__title {
    font-size: clamp(2.6rem, 6vw, 6rem);
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: clamp(1.6rem, 5vw, 3rem);
}

.advent-intro-text {
    color: #333;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
}

.advent-title-section {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
}

.advent-tree-icon {
    width: 3.8rem;
    height: 5.4rem;
    flex-shrink: 0;
    margin-top: -0.5rem;
}

.advent-title {
    color: #000;
    font-size: var(--fs-h1);
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.advent-calendar-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.advent-span-3 { grid-column: span 3; }
.advent-span-4 { grid-column: span 4; }
.advent-span-6 { grid-column: span 6; }

.advent-card {
    position: relative;
    padding: 3rem 2rem;
    min-height: 36rem;
    display: flex!important;
    flex-direction: column;
    align-items: center;
    border-radius: 0.4rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--c-light);
    overflow: hidden;
    background-image: var(--bg-url);
    
    &.advent-card--active {
        background-color: var(--c-green);
    }
}

.advent-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
    position: relative;
    z-index: 5;
    width: 100%;
}

.advent-gift-icon {
    width: 16rem;
    height: auto;
    flex-shrink: 0;
    margin-bottom: 1rem;
    
}

.advent-gift-icon-inactive {
    width: 12rem;
    height: auto;
    margin: 2rem auto;
    position: absolute;
    z-index: 2;
    bottom: -6rem;
}

.advent-card-text {
    color: var(--c-white);
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    max-width: 24rem;
}

.advent-btn {
    background: var(--c-white);
    border: none;
    padding: 1.6rem 5rem;
    color: #000;
    text-align: center;
    font-family: var(--f-btn);
    font-size: var(--fs-small);
    font-weight: 600;
    line-height: 1.375;
    cursor: pointer;
    margin-top: auto;
    
    &:hover {
        color: #fff;
        background-color: var(--c-red);
    }
}

.advent-card-date {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--c-white);
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04rem;
    z-index: 5;
}

.advent-card-date-large {
    color: var(--c-text);
    text-align: center;
    font-size: var(--fs-large);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.2rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.advent-card-month {
    color: var(--c-text);
    text-align: center;
    font-size: var(--fs-month);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: 0.06rem;
    margin: 1rem 0 2rem;
    position: relative;
    z-index: 2;
}

.advent-card-status {
    color: var(--c-text);
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 1rem;
    position: relative;
    z-index: 2;
    opacity: 0.7;
}

.advent-how-works {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.advent-section-title {
    color: #000;
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.22;
    margin: 0;
}

.advent-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
}

.advent-info-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    min-height: 25.4rem;
    justify-content: center;
}
.advent-info-card--beige { background: var(--c-beige); color: #000; }
.advent-info-card--green { background: var(--c-green); color: var(--c-white); }
.advent-info-card--red { background: var(--c-red); color: var(--c-white); }
.advent-info-card--light { background: var(--c-light); color: var(--c-text); }


.advent-info-icon {
    width: 12.6rem;
    height: 12.6rem;
    flex-shrink: 0;
    
    &, & path, & circle, & line, & rect {
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 0.2rem;
        vector-effect: non-scaling-stroke;
    }
}

.advent-info-text {
    color: inherit;
    text-align: center;
    font-size: clamp(1.4rem, 2vw, var(--fs-small));
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.advent-inspiration {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.advent-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advent-image-wrapper {
    background: #EAEAEA;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    height: auto;
    min-height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
    
    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.advent-bottom-title {
    background: var(--c-red);
    padding: 0 2rem;
    text-align: center;
    margin: 0 auto calc(var(--gap-lg) * -1);
    height: 6.4rem;
    display: inline-grid;
    place-items: center;
    
    & p {
        color: var(--c-white);
        font-size: clamp(2.4rem, 4vw, 4.6rem);
        font-weight: 400;
        line-height: 1.1;
        margin: 0;
    }
}
.newsletter-block-title {
    margin-bottom: -10rem;
    display: block;
    margin-top: 6rem;
    font-size: 3.6rem;
}

@media (prefers-reduced-motion: no-preference) {
    .advent-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .advent-btn {
        transition: all 0.2s ease;
    }
    
    .advent-image-wrapper img {
        transition: scale 0.5s ease;
    }
    .advent-image-wrapper:hover img {
        scale: 1.025;
    }
}

@media (max-width: 1023px) {
    .advent-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advent-span-3,
    .advent-span-4,
    .advent-span-6 {
        grid-column: span 1;
    }
    .advent-span-6 {
        grid-column: span 2;
    }
    .advent-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    }
    .advent-image-wrapper {
        aspect-ratio: 3/4;
    }
    .advent-card {
        overflow: hidden;
    }
    .advent-banner__bg {
        background-image: url("images/main-banner-m.png");
    }
}

/* Advent Popup */
.advent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    place-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.advent-popup.advent-popup-visible {
    opacity: 1;
}
body.advent-popup-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
}
.advent-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.advent-popup-content {
    position: relative;
    width: 100%;
    max-width: 90rem;
    background: #044235;
    border-radius: 2rem;
    overflow: auto;
    z-index: 1;
    transform: translateY(3rem);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
}
.advent-popup.advent-popup-visible .advent-popup-content {
    transform: translateY(0);
    opacity: 1;
}

.advent-popup-close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 3.4rem;
    height: 3.4rem;
    padding: 0;
    border: none;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
}

.advent-popup-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.advent-popup-snowflake {
    position: absolute;
    top: -2rem;
    left: 5rem;
    width: 9.3rem;
    height: 9.4rem;
    z-index: 2;
}

.advent-popup-snowflake svg {
    width: 100%;
    height: 100%;
    color: white;
}

.advent-popup-body {
    display: flex;
    gap: 2rem;
    padding: 5rem;
    min-height: 46rem;
}

.advent-popup-text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    justify-content: center;
    max-width: 40rem;
}

.advent-popup-title {
    color: var(--c-white);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.advent-popup-description {
    color: var(--c-white);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.017rem;
    margin: 0;
    
    & a {
        color: inherit;
        transition: all .3s ease;
        border-bottom: 1px solid currentColor;
        
        &:hover {
            border-color: transparent;
        }
    }
}

.advent-popup-promo {
    display: inline-flex;
    align-items: center;
    gap: 1.8rem;
    padding: 1.6rem 7.2rem 1.6rem 7.2rem;
    border: 1px solid white;
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

.advent-popup-promo-code {
    color: white;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.advent-popup-copy-btn {
    width: 2.1rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: #fff;
}

.advent-popup-copy-btn svg {
    width: 100%;
    height: 100%;
}

.advent-popup-image-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    bottom: -5rem;
}

.advent-popup-image-accent {
    position: absolute;
    top: -2rem;
    right: 2rem;
    width: 30rem;
    height: calc(100% + 2rem);
    background: var(--c-red);
    z-index: 1;
}

.advent-popup-image {
    position: relative;
    width: 100%;
    max-width: 33rem;
    height: auto;
    object-fit: contain;
    z-index: 2;
    margin-left: -3rem;
}
.newsletter {
    max-width: 162rem;
    margin: 4rem auto 0;
    padding: 0 2rem var(--gap-lg);
    
    & .newsletter-col_form {
        padding-left: 6rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .advent-popup {
        animation: fadeIn 0.3s ease;
    }

    .advent-popup-content {
        animation: slideUp 0.4s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .advent-popup-body {
        flex-direction: column;
        padding: 4rem 3rem;
        min-height: auto;
    }

    .advent-popup-text-section {
        max-width: 100%;
        gap: 2rem;
    }

    .advent-popup-title {
        font-size: 3.2rem;
    }

    .advent-popup-description {
        font-size: 1.6rem;
    }

    .advent-popup-promo {
        padding: 1.4rem 4rem;
        gap: 1.5rem;
    }

    .advent-popup-promo-code {
        font-size: 2.4rem;
    }

    .advent-popup-image-section {
        min-height: 30rem;
    }

    .advent-popup-image {
        margin-left: -4rem;
        max-width: 40rem;
    }

    .advent-popup-snowflake {
        left: 3rem;
        width: 7rem;
        height: 7rem;
    }
    
}

@media (max-width: 767px) {
    .advent-popup {
        padding: 1rem;
    }

    .advent-popup-content {
        border-radius: 1.6rem;
        height: 100%;
    }

    .advent-popup-body {
        padding: 9rem 4rem 5rem;
        gap: 2rem;
    }

    .advent-popup-title {
        font-size: 3rem;
    }

    .advent-popup-description {
        font-size: 1.5rem;
    }

    .advent-popup-promo {
        padding: 1.5rem 3rem;
        justify-content: center;
    }

    .advent-popup-promo-code {
        font-size: 2rem;
    }

    .advent-popup-copy-btn {
        width: 2.2rem;
        height: 2.2rem;
    }

    .advent-popup-image-section {
        min-height: 25rem;
    }

    .advent-popup-image-accent {
        right: -1rem;
    }

    .advent-popup-image {
        margin-left: -2rem;
        max-width: 32rem;
    }

    .advent-popup-snowflake {
        top: -4rem;
        left: 3rem;
        width: 9rem;
        height: 9rem;
    }

    .advent-popup-close {
        top: 1.2rem;
        right: 1.2rem;
    }

    .advent-calendar-grid {
        grid-template-columns: 1fr;
        width: 100vw;
        margin-left: -2rem;
        
        & .slick-slide {
            transition: scale 0.3s ease;
            
            &:not(.slick-current) {
                scale: 0.9;
            }
        }
    }
    .advent-image-wrapper {
        flex-shrink: 0;
        width: 70%;
    }
    .advent-images-grid {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        
    }
    .newsletter {
        & .newsletter-col_form {
            padding-left: 2rem;
        }
    }
    .advent-span-6 {
        grid-column: span 1;
    }
    .advent-card {
        min-height: 32rem;
        aspect-ratio: 3/4;
        gap: 1rem;
        
        &.advent-card-active {
            background-image: url(images/mobile/mob-advent-card-bg-active.png);
        }
        &.advent-card-inactive {
            background-image: url(images/mobile/mob-advent-card-bg-inactive.png);
        }
    }
    .advent-card-content {
        height: 100%;
    }
    .advent-gift-icon {
        flex: 1;
        width: fit-content;
        max-width: 300px;
    }
    .advent-bottom-title {
        margin: 0 auto calc(var(--gap-lg) * -1);
        padding: 1rem;
        height: auto;
    }
    .advent-banner__bg {
        background-image: url("images/main-banner-m.png");
    }
    .advent-banner__text {
        top: 6rem;
        transform: none;
        text-align: center;
    }
    .advent-info-card {
        flex-direction: row;
        min-height: 0;
        gap: 2rem;
        
        & svg {
            width: 9rem;
            height: 9rem;
        }
    }
    .advent-snowflake {
        display: none;
    }
    .newsletter-block-title {
        margin-bottom: -6rem;
        display: block;
        margin-top: 6rem;
        font-size: 2.4rem;
    }
}
