/* Новогоднее модальное окно */
.newyear-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.newyear-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newyear-modal__content {
    position: relative;
    max-width: 111.8rem;
    width: 100%;
    padding-top: 12.8rem;
    padding-left: 7.4rem;
    padding-bottom: 5.7rem;
    padding-right: 7.4rem;
    border-radius: 1rem;
    animation: slideIn 0.4s ease-out;
    background-image: url(../img/newyear-theme.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.newyear-modal__bottom{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 55.8rem;
}

.newyear-modal__close {
    position: absolute;
    top: 2.9rem;
    right: 3.6rem;
    width: 4rem;
    height: 4rem;
    border: none;
    cursor: pointer;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.newyear-modal__close:hover {
    transform: rotate(90deg);
}

.newyear-modal__close::before,
.newyear-modal__close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
}

.newyear-modal__close::before {
    transform: rotate(45deg);
}

.newyear-modal__close::after {
    transform: rotate(-45deg);
}

.newyear-modal__title {
    font-family: 'Raleway', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    line-height: 110%;
    margin-bottom: 3.6rem;
  font-variant-numeric: lining-nums proportional-nums;
  -webkit-text-stroke-width: 0.3rem;
  -webkit-text-stroke-color: #83a0f2;
  letter-spacing: -3px;
}

.newyear-modal__text {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    line-height: 110%;
    margin-bottom: 6.1rem;
}

.newyear-modal__button {
    text-align: center;
    background: #3E65EB;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 0.823rem;
    max-width: 55.8rem;
    width: 100%;
    height: 7.7363rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.newyear-modal__button:hover {
    background: #2D5FAF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.3);
}

.newyear-modal__checkbox {
    margin-top: 1.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    label{
      margin-bottom: 0;
    }
}

.newyear-modal__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.7rem;
    height: 1.8rem;
    background: transparent;
    border: 1px solid #3E5ABB;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.newyear-modal__checkbox input[type="checkbox"]:hover {
    border-color: #2D4A9B;
}

.newyear-modal__checkbox input[type="checkbox"]:checked {
    background: #3E5ABB;
}

.newyear-modal__checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2.2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-50%, -50%);
    top: 50%;
    left: 22%;
}

.newyear-modal__checkbox label {
    font-size: 1.4rem;
    color: #3E5ABB;
    cursor: pointer;
    font-weight: 300;
    user-select: none;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .newyear-modal__content {
        padding: 40px 30px;
        width: 95%;
    }

    .newyear-modal__title {
        font-size: 32px;
    }

    .newyear-modal__text {
        font-size: 18px;
    }

    .newyear-modal__button {
        font-size: 16px;
        height: 5rem;
        max-width: 45rem;
    }
    .newyear-modal__bottom{
       max-width: 45rem;
    }

    .newyear-modal__close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .newyear-modal__content {
        padding: 30px 20px;
    }

    .newyear-modal__title {
        font-size: 24px;
        letter-spacing: -1px;
        margin-bottom: 2rem;
        -webkit-text-stroke-width: 0.2rem;
    }

    .newyear-modal__text {
        font-size: 16px;
        margin-bottom: 2rem;
    }
    .newyear-modal__button{
      font-size: 14px;
    }
}
