.main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(0, #F3EED8, #E0D6A3);
}


.section-invite {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
    justify-content: flex-end;
    min-height: 400px;
    text-align: center;
    position: relative;

    h1 {
        z-index: 2;
    }
}

.invite-flags {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 100%, 500px);
}

.invite-dasha {
    position: absolute;
    z-index: 1;
    left: 0;
    width: clamp(100px, 100%, 350px)
}

.invite-anton {
    z-index: 1;
    position: absolute;
    right: 0;

    width: clamp(100px, 100%, 350px)
}

@media (width<768px) {
    .invite-dasha {
        position: absolute;
        left: -20px;
        top: -40px;
        width: clamp(100px, 100%, 250px)
    }

    .invite-anton {
        position: absolute;
        right: -20px;
        top: -20px;
        width: clamp(100px, 100%, 250px)
    }
}

.section-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}



.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    width: 100%;
    max-width: 560px;
    height: 522px;
    position: relative;
}

.timer-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-size: 46px;
    color: white;
    text-shadow: 1px 1px 2px rgb(3, 3, 3);
}

.timer-item-number {
    font-weight: 700;
    font-size: 64px;


}

.timer-background {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;

}

.section-timer__pink-left {
    position: absolute;
    left: 0;
    width: clamp(100px, 100%, 200px);
}

.section-timer__pink-right {
    position: absolute;
    right: 0;
    width: clamp(100px, 100%, 200px);
}

@media (width<768px) {

    .timer-item {

        font-size: 24px;
    }

    .timer-item-number {
        font-weight: 700;
        font-size: 56px;


    }
}


.section-plan {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    flex-direction: column;

}

.section-map-bueno {
    position: absolute;
    z-index: 4;
    left: 0;
    top: 0;
}



.section-map-background-map {
    position: absolute;
    top: 0;
    z-index: 1;
}

.plan-content {
    position: relative;
    width: clamp(300px, 100%, 600px);
}

.section-map-road {
    width: 100%;
    position: relative;
    z-index: 2;
}

.plan-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: white url(../images/texture-card.avif);
    gap: 10px;
    text-align: center;
    max-width: 208px;
    max-height: 400px;
    overflow: hidden;
    position: absolute;
    z-index: 3;
}

.plan-item:hover {
    z-index: 5;
}

.plan-ceremony {
    top: 20%;
    left: -68px;
    transform: rotate(6.62deg);
}

.plan-cat {
    right: -52px;
    top: 44%;
    transform: rotate(-12.26deg);
}

.plan-shashlyk {
    bottom: 36%;
    left: -18%;
    transform: rotate(-4.62deg);
}

.plan-the-way {
    max-width: 150px;
    top: 0px;
    left: 0px;
    transform: rotate(-3deg);
}

.plan-banya {
    right: -14%;
    top: 0px;
    transform: rotate(6deg);
}

.plan-dance {
    max-width: 120px;
    top: -70px;
    right: 25%;
    transform: rotate(-6deg);

}

.plan-cow {
    top: 60px;
    left: 27%;
    transform: rotate(7deg);
}

.plan-item-image {
    width: 100%;
}

.plan-content__item-row {
    position: absolute;
    bottom: 22%;
    width: 100%;
    max-width: 600px;
}

@media (width<525px) {
    .section-map-bueno {
        max-width: 150px;
    }

    .plan-item {
        max-width: 150px;
    }

    .plan-ceremony {
        left: 0;
        max-width: 130px;
    }

    .plan-shashlyk {
        max-width: 130px;
        left: -5%;
    }

    .plan-cat {
        right: 10px;
    }

    .plan-banya {
        right: -1%;
    }

}



.section-map {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    position: relative;
}



.map-nigga {
    max-height: 400px;
    position: relative;
    z-index: 2;
}

.ibragim {
    position: absolute;
    right: -20px;
    top: -197px;
    width: 170px;
    transform: rotate(-90deg);
}

.sumbule {

    position: absolute;
    right: -31px;
    top: 0;
    width: 133px;
    transform: rotate(-70deg);
}


.nigga {}

.cloud {
    position: absolute;
    top: 80%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;

    h3 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;

    }

    img {
        position: relative;

        z-index: 1;
    }
}

.section-map-wrapper {
    position: relative;
    padding: 40px;
    padding-right: 0;
    width: clamp(300px, 100%, 600px);
}

.map {
    position: relative;
    z-index: 3;
    width: clamp(300px, 100%, 600px);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;

}


.map-berries {
    position: absolute;
    bottom: -40%;
    right: -200px;
    width: clamp(100px, 100%, 500px);
    z-index: 2;
}

.i4ewOd-pzNkMb-haAclf.QUIbkc {
    display: none !important;
}


.map-background {
    position: absolute;
    z-index: 1;
    top: -60px;
    left: -40px;
}

@media (width<525px) {
    .section-map {
        margin-top: 200px;
        flex-direction: column;
    }

    .nigga {
        height: 300px;
    }

    .cloud {
        position: absolute;
        top: 50%;
        left: 0;
        display: flex;
        align-items: center;
        text-align: center;

        h3 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;

        }

        img {
            position: relative;
            width: 200px;
            z-index: 1;
        }
    }

    .map-berries {
        width: clamp(100px, 100%, 300px);
        right: -146px;
    }

    .section-map-wrapper {
        padding-left: 0;
    }
}


.section-dress-code {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
}

.dress-code-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: clamp(200px, 100%, 600px);
    position: relative;
    z-index: 5;

    h3 {
        font-weight: 400;
    }
}

.granade {
    position: absolute;
    left: -70px;
    top: 100px;
}

.slider {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-gender-icons {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    width: clamp(200px, 100%, 350px);
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-item {
    display: flex;
    justify-content: center;
    flex: 0 0 100%;
    gap: 20px;

    img {
        max-width: 300px;
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: contain;
    }
}

.slider-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    right: 10%;

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

.slider-button {
    border: none;
    cursor: pointer;
    background: none;

}

@media (width<525px) {
    .dress-code-title-wrapper {
        margin-top: 100px;
        text-align: center;
        align-items: center;
    }

    .granade {
        max-width: 140px;
        top: -20px;
    }

    .slider-buttons {
        bottom: -47px;
        top: unset;
    }

    .slider-button {
        img {
            width: 80px;
        }

    }

    .slider-item {
        gap: 2px;

        img {
            max-width: 150px;
            width: 100%;
            aspect-ratio: 1/1;
            object-fit: contain;
        }
    }
}



.section-presents {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-bottom: 100px;

    h2 {
        text-align: center;
    }
}

.section-presents-bng {
    position: absolute;
    top: 100px;
    left: -20px;
    width: 150px;
}

.presents-grid {
    display: grid;
    gap: 20px;
    grid-template-areas:
        "empty money aid medicine"
        "airtag center center center"
        "vacpack center center center"
}

.present-item {
    width: clamp(70px, 100%, 300px);
    height: clamp(70px, 100%, 300px);
    position: relative;

}

.present-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.money {
    grid-area: money;
}

.present-item-desc {
    display: none;
    position: absolute;
    width: fit-content;
    height: fit-content;
    top: 0;

    a {
        color: white;
    }

    p {
        position: relative;
        z-index: 2;
        color: white;
    }
}

.present-item:hover {
    box-shadow: 1px 1px 50px 2px #F0F05F;
    cursor: pointer;

    .present-item-desc {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        border: 1px solid rgb(116, 116, 116);
        background: rgb(29, 25, 25);
        z-index: 10;
    }
}

.aid {
    grid-area: aid;
}

.medicine {
    grid-area: medicine;
}

.airtag {
    grid-area: airtag;
}

.vacpack {
    grid-area: vacpack;
}

.present-center {
    grid-area: center;
    width: clamp(150px, 100%, 900px);

    img {
        width: 100%;
        height: 100%;
    }
}

.giveme {}

.success {
    display: none;
}

.present-item.taken {
    cursor: not-allowed;
    filter: grayscale(0.85);
    opacity: 0.6;
}

.present-item.taken::after {
    content: "Уже выбрано";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    color: white;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.55);
    z-index: 5;
}

.present-item.taken.taken-by-me {
    filter: none;
    opacity: 1;
}

.present-item.taken.taken-by-me::after {
    content: "Выбрано вами";
    background: rgba(29, 116, 40, 0.6);
}

.presents-modal {
    display: none;
    position: fixed;
    inset: 0;
    top: auto;
    z-index: 1000;
    justify-content: center;
    padding: 0 20px 20px;
    pointer-events: none;
}

.presents-modal.is-open {
    display: flex;
}

.presents-modal-overlay {
    display: none;
}

.presents-modal-box {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: calc(100% - 40px);
    background: rgb(29, 25, 25);
    border: 1px solid rgb(116, 116, 116);
    border-radius: 8px;
    padding: 30px 20px 20px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.presents-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.presents-modal-text {
    margin: 0 0 20px;
    font-size: 16px;
}

.presents-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.presents-modal-actions button {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid rgb(116, 116, 116);
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.presents-modal-confirm {
    background: #F0F05F;
    color: #1a1a1a;
    border-color: #F0F05F;
    font-weight: 600;
}

.presents-modal-confirm:hover {
    filter: brightness(1.05);
}

.presents-modal-cancel:hover {
    border-color: white;
}

@media (width<525px) {
    .section-presents {
        padding: 5px;
        padding-bottom: 100px;
    }

    .present-item-desc {

        padding: 5px;


        a {
            color: white;
        }

        p {

            font-size: 14px;
        }
    }
}