:root {
    --color-white: #fff;
    --color-text: #363434;
    --color-primary: #ED1C24;
    --color-gray: #CBCBCB;
    --color-light-gray: #EDEDED;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--color-white) inset !important;
}

html {
    width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    width: 100%;

}

section {
    width: 100%;
    overflow-x: hidden;
}


main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: min(100%, 1386px);
    margin: 0 auto;
    padding: 0 16px;
}

.section-title {
    font-size: clamp(28px, 6vw, 60px);
    font-weight: 600;
    line-height: 44px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.action-10 {
    width: min(100dvw, 1920px);
    margin: 0 auto;
    position: relative;
}

.bg-bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    display: flex;
}

.bg-bg img {
    width: 100%;
}

.action-10__bg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    display: flex;
    user-select: none;
}

.action-10__bg-pc {
    display: block;
}

.action-10__bg-mob {
    display: none;
}

.action-10__bg picture,
.action-10__bg img {
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: clamp(300px, 35vw, 600px);
    margin-bottom: clamp(30px, 7vw, 150px);
}

@media (max-width: 1650px) {
    .hero {
        position: relative;
        z-index: 1;
    }
}

.hero-form__wrapper {
    position: relative;
    z-index: 3;
}

.hero__date {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--color-primary);
    background-color: var(--color-white);
    margin-bottom: 30px;
    padding: 10px 35px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    text-align: center;
}

@media (max-width: 498px) {
    .hero__date {
        font-size: 16px;
        width: 100%;
        margin-bottom: 20px;
    }
}
@media (max-width: 400px) {
    .hero__date {
        padding: 10px 10px;
    }
}

.hero-form {
    width: min(90%, 1150px);
    background-color: #fff;
    border-radius: 49px;
    padding: clamp(20px, 4vw, 40px) clamp(10px, 5vw, 118px);
    box-shadow: 0px 4px 50px 0px #C0BEBE40;
    display: flex;
    flex-direction: column;
    
}

.hero-form > * {
    position: relative;
    z-index: 3;
}

.hero-form__wrapper {
    display: flex;
    flex-direction: column;
}

.hero-form__error {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    color: var(--color-primary);
    display: none;
}

.hero-form__error.active {
    display: block;
}

.hero-form__title {
    text-align: center;
    font-size: clamp(18px, 4vw, 32px);
    line-height: clamp(24px, 5vw, 32px);
    text-transform: uppercase;
}

.hero-form__row {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(20px, 4vw, 40px);
}

.hero-form__row:last-child {
    margin-bottom: 24px;
}

.hero-form__row label {
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 400;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;
}

.hero-form__row input {
    font-size: clamp(18px, 4vw, 26px);
    ;
    font-weight: 600;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;
    border-bottom: 1px solid var(--color-text);
    color: var(--color-text);
}

.hero-form__row input::placeholder {
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 600;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;
    color: var(--color-gray);

}

.hero-form__row:has(input.error) label {
    color: var(--color-primary);
}

.hero-form__row input.error {
    border-bottom: 1px solid var(--color-primary);

}

.hero-form__row sup {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    position: relative;
}

.hero-form__row sup>p {
    position: absolute;
    bottom: calc(100% + 10px);
    padding: 20px;
    border-radius: 8px;
    background-color: #F9F9F9;
    box-shadow: 0px 4px 32px 0px #0000001C;
    opacity: 0;
    width: min(400px, 100vw);
    visibility: hidden;
    transition: all 0.3s ease-in-out;

    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    color: var(--color-text);
}

.hero-form__row sup:hover>p {
    opacity: 1;
    visibility: visible;
}

.hero-form button {
    align-self: center;
    padding: 6px 30px 10px 30px;
    background-color: var(--color-primary);
    border-radius: 18px;
    color: var(--color-white);
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 700;
    line-height: clamp(24px, 5vw, 32px);
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
}

.hero-form__agreement {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    color: var(--color-text);
}

@media screen and (max-width: 768px) {
    .action-10__bg-pc {
        display: none;
    }

    .action-10__bg-mob {
        display: block;
    }

    .action-10__bg {
        position: relative;
    }

    .hero {
        padding-top: 0px;
    }

    .hero-form {
        width: 100%;
        background-color: transparent;
        box-shadow: none;
    }

    .hero-form__title {
        letter-spacing: 0.5px;

    }


}


/* presents */

.presents {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(30px, 7vw, 130px);
}

.presents__title {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 60px);
}

.presents__list {
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(12, calc((100% / 12) - 20px));
    gap: 20px;
    grid-template-rows: repeat(12, 100px);
}

.presents-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding: 31px 39px;
}

.presents-item__place {
    font-size: clamp(22px, 4vw, 40px);
    font-weight: bold;
    line-height: 36px;
    text-align: left;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.presents-item__title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 400;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;
    color: var(--color-text);
    hyphens: auto;
}

.presents-item__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.presents-item__bg img {
    width: 100%;
}

.presents-item__img {
    height: 100%;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

.presents-item__img picture {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.presents-item__img img {
    max-width: 100%;
    max-height: 100%;
}


.presents-item:nth-child(1) {
    grid-column: 1/5;
    grid-row: 1/6;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(1) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(2) {
    grid-column: 5/10;
    grid-row: 1/3;
    display: flex;
}

.presents-item:nth-child(2) .presents-item__header {
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(2) .presents-item__img {
    width: 100%;
}

.presents-item:nth-child(3) {
    grid-column: 10/13;
    grid-row: 1/4;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(3) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(4) {
    grid-column: 5/10;
    grid-row: 3/6;
    display: flex;
}

.presents-item:nth-child(4) .presents-item__header {
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(4) .presents-item__img {
    width: 100%;
}

.presents-item:nth-child(5) {
    grid-column: 10/13;
    grid-row: 4/9;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(5) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(6) {
    grid-column: 1/6;
    grid-row: 6/9;
    display: flex;
}

.presents-item:nth-child(6) .presents-item__header {
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(6) .presents-item__img {
    width: 100%;
}

.presents-item:nth-child(7) {
    grid-column: 6/10;
    grid-row: 6/9;
    display: flex;
}

.presents-item:nth-child(7) .presents-item__header {
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(7) .presents-item__img {
    width: 100%;
}

.presents-item:nth-child(8) {
    grid-column: 1/4;
    grid-row: 9/13;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(8) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(9) {
    grid-column: 4/7;
    grid-row: 9/13;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(9) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(10) {
    grid-column: 7/10;
    grid-row: 9/13;
    display: flex;
    flex-direction: column;
}

.presents-item:nth-child(10) .presents-item__header {
    margin-bottom: 15px;
}

.presents-item:nth-child(11) {
    grid-column: 10/13;
    grid-row: 9/11;
}

.presents-item:nth-child(12) {
    grid-column: 10/13;
    grid-row: 11/13;
}

@media screen and (max-width: 768px) {
    .presents__title {
        text-align: left;
    }

    .presents-item {
        padding: 20px;
    }



    .presents-item__bg {
        inset: -10px;
    }

    .presents__list {
        grid-auto-rows: auto;
        grid-template-rows: auto;
        grid-template-columns: auto;
    }

    .presents-item__img picture {
        position: relative;
    }

    .presents-item:nth-child(1) {
        grid-column: 1/13;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
        padding: 15px;
    }

    .presents-item:nth-child(1) .presents-item__img picture {
        width: 100%;
    }

    .presents-item:nth-child(1) .presents-item__img img {
        width: 100%;
    }

    .presents-item:nth-child(1) .presents-item__header {
        padding-left: 20px;
    }

    .presents-item:nth-child(2) {
        grid-column: 1/13;
        grid-row: 3/5;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(2) .presents-item__img picture {
        scale: 1.1;
    }


    .presents-item:nth-child(3) {
        grid-column: 1/7;
        grid-row: 5/7;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(4) {
        grid-column: 7/13;
        grid-row: 5/7;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(5) {
        grid-column: 1/13;
        grid-row: 7/9;
        display: flex;
    }

    .presents-item:nth-child(6) {
        grid-column: 1/7;
        grid-row: 9/11;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(7) {
        grid-column: 7/13;
        grid-row: 9/13;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(8) {
        grid-column: 1/7;
        grid-row: 11/15;
        display: flex;
    }

    .presents-item:nth-child(9) {
        grid-column: 7/13;
        grid-row: 13/15;
        display: flex;
    }

    .presents-item:nth-child(10) {
        grid-column: 1/13;
        grid-row: 15/17;
        display: flex;
        flex-direction: row;
    }

    .presents-item:nth-child(11) {
        grid-column: 1/7;
        grid-row: 17/22;
        display: flex;
        flex-direction: column;
    }

    .presents-item:nth-child(12) {
        grid-column: 7/13;
        grid-row: 17/22;
        display: flex;
        flex-direction: column;
    }

}


/* steps */

.steps {
    margin-bottom: 70px;
}

.steps__title {
    margin-bottom: 60px;
}

.steps__list {
    display: flex;
    gap: 30px;
}

.steps-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 100%;
}



.steps-item__step {
    font-size: 180px;
    font-weight: 800;
    line-height: 200px;
    text-align: left;
    color: var(--color-gray);

}

.steps-item__line {
    width: 100%;
    height: 12px;
    background-color: var(--color-gray);
    margin-bottom: 32px;
}

.steps-item__text {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;

}

@media screen and (max-width: 768px) {
    .steps__list {
        flex-direction: column;
    }

    .steps-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        border-bottom: 2px solid var(--color-gray);
        padding-bottom: 30px;
    }

    .steps-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }


    .steps-item__line {
        display: none;
    }

    .steps-item__step {
        font-size: 140px;
        line-height: 120px;
    }
}

/* faq */

.faq {
    margin-bottom: clamp(30px, 7vw, 150px);
}

.faq-item {
    border-bottom: 1px solid var(--color-gray);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item__question {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    line-height: clamp(24px, 4vw, 32px);
    text-align: left;
    cursor: pointer;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.faq-item__question>span {
    background: url("./images/arrow.svg") no-repeat;
    background-position: center;
    background-size: contain;
    width: 40px;
    height: 15px;
    display: inline-block;
    margin-left: 10px;
    transition: all 0.3s ease-in-out;
}

.faq-item__answer {
    padding-left: clamp(30px, 5vw, 70px);
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 400;
    line-height: clamp(24px, 5vw, 50px);
    text-align: left;

    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-item--active .faq-item__answer {
    max-height: 1000px;
    padding-bottom: 20px;
}

.faq-item--active .faq-item__question>span {
    transform: rotate(180deg);
}

.faq-item__answer ol {
    list-style-position: outside;
}

.faq-item__answer div {
    padding-left: 0px;
}


@media screen and (max-width: 768px) {
    .faq-item__question {
        padding-left: 0;
        padding-right: 0;
    }
}

/* footer */

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.footer {
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;

}

.footer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}

.footer__btn a {
    padding: 10px 30px;
    border-radius: 18px;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    color: var(--color-white);
    background-color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
}

.footer a {
    color: var(--color-text);

}

.footer a:visited {
    color: var(--color-text);
}

.restrictions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-bottom: 100px;
}

.restrictions span {
    font-size: 32px;
    font-weight: 700;
    line-height: 42px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer__btn a {
        border-radius: 30px;
    }
}

@media screen and (max-width: 498px) {


    .footer__btn {
        width: 100%;
        justify-content: stretch;
    }

    .footer__btn a {
        width: 100%;
    }
}

/* modal */
.modal-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.modal-window.active {
    visibility: visible;
    opacity: 1;
    user-select: auto;
}

.modal-window__inner {
    position: relative;
    background-color: var(--color-light-gray);
    padding: clamp(20px, 4vw, 50px) clamp(30px, 5vw, 100px) clamp(20px, 4vw, 50px);
    max-width: 900px;
    width: 90%;
    max-height: 100%;
    border-radius: 40px;
}

.modal-window__title {
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 600;
    line-height: clamp(24px, 5vw, 30px);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary);
}


.modal-window-form-body {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-window-form-body input {
    padding: 5px;
    max-width: clamp(30px, 5vw, 92px);
    background-color: var(--color-light-gray);
    border-bottom: 2px solid var(--color-text);
    font-size: 26px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
}

.modal-window__error {
    display: none;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    color: var(--color-primary);
}

.modal-window__error.active {
    display: block;
}

.modal-window__btn {

    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    padding: 10px 20px;
    background-color: var(--color-primary);
    border-radius: 18px;
    color: var(--color-white);
    cursor: pointer;
}

.modal-window__footer {
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

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