* {
    margin: 0;
    padding: 0;
    /*font-family: "Cormorant Infant", sans-serif;*/
    font-family: "Alumni Sans Pinstripe", sans-serif;
    /*font-family: "Poiret One", sans-serif;*/


}

body {
    -webkit-text-size-adjust: 100%;
}
.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 55555;
    white-space: nowrap;
    font-weight: 600; /* выглядит аккуратнее */
}

/* Три позиции */
body::before {
    content: "ya-invite";
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

body::after {
    content: "ya-invite";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

html::after {
    content: "ya-invite";
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
.desktop-message {
    display: none;
    text-align: center;
    margin-top: 150px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hid {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 3s ease-out;
}


.show {
    opacity: 1;
    transform: translateY(0);
}



.first {
    background-image: url("../images/bg.jpg");
}
.main-page {

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 1.5s ease-out forwards;
}
.image-one, .image-two {
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInScale 1.5s ease-out forwards;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.image-one {
    position: absolute;
    top: 187px;
    left: 73px;
}
.image-one .polaroid{
    position: relative;
    width: 300px;
    rotate: -15deg;
    z-index: 2;


}

.foto {
    position: absolute;
    top: 40%;
    left: 58%;
    transform: translate(-50%, -50%);
    z-index: 1;
    rotate: -15deg;
}
.foto img {

    height: 260px; /* Высота контейнера */
    object-fit: cover;
    object-position: top; /* Обрезка сверху */
    clip-path: inset( 0px 0 0px 0 ); /* Обрежет 50px сверху */
}
.image-two {
    position: absolute;
    bottom: 31px;
    left: 143px;
}
.image-two .polaroid-two{
    position: relative;
    width: 300px;
    rotate: 15deg;
    z-index: 2;


}

.foto-two {
    position: absolute;
    top: 56%;
    left: 35%;
    transform: translate(-50%, -50%);
    z-index: 1;
    rotate: 15deg;
}
.foto-two img {

    height: 260px; /* Высота контейнера */
    object-fit: cover;
    object-position: top; /* Обрезка сверху */
    clip-path: inset( 0px 0 0px 0 ); /* Обрежет 50px сверху */
}

.main-page-text {
    position: absolute;
    top: 20px;
    right: 80px;
    color: black;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
}
.main-page-text span {
    text-transform: uppercase;
}
.plus {
    position: absolute;
    top: 53%;
    right: -10px;
    color: black;
    font-size: 60px;
    font-weight: bold;
}

.fa-heart:before {
    color: red;
}

/*.invite {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    height: 100vh;*/
/*    text-align: center;*/
/*    overflow: hidden;*/
/*}*/







/*.name, .invite-name {*/
/*    opacity: 0;*/
/*    transform: scale(0.8);*/
/*    filter: blur(10px);*/
/*    animation: fadeInScale 1s ease-out forwards;*/
/*}*/

/*!* Задержки для последовательного появления *!*/
/*.name {*/
/*    animation-delay: 0.3s;*/
/*}*/

/*.invite-name.one {*/
/*    animation-delay: 0.6s;*/
/*}*/

/*.invite-name.two {*/
/*    animation-delay: 0.9s;*/
/*}*/

/*!* Анимация плавного появления с середины *!*/
/*@keyframes fadeInScale {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: scale(0.8);*/
/*        filter: blur(10px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: scale(1);*/
/*        filter: blur(0);*/
/*    }*/
/*}*/

/*.people {*/
/*    background-color: #3e5984;*/

/*}*/
/*.name-people span {*/
/*    font-family: "League Script", sans-serif;*/
/*    font-weight: normal;*/
/*    margin-top: 20px;*/
/*    font-size: 90px;*/


/*}*/
/*.people .container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    text-align: center;*/
/*    justify-content: center;*/
/*}*/
/*.name-people {*/
/*    font-size: 180px;*/
/*    line-height: 0.8;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    text-align: center;*/
/*    font-family: "Poiret One", sans-serif;*/

/*}*/

/*.invite {*/
/*    padding: 0 0 100px 0;*/
/*    background-color: #3e5984;*/
/*    !*background-color: #f0f8ff;*!*/
/*}*/
/*.invite .container {*/

/*}*/
/*.name {*/
/*    color: #fff;*/
/*    font-size: 350px;*/
/*    font-family: "Book Antiqua", sans-serif;*/
/*}*/
/*.invite .text {*/
/*    margin-left: auto;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: flex-start;*/
/*    margin-top: 50px;*/
/*    width: max-content;*/
/*}*/
/*.invite-name {*/
/*    font-family: "Alumni Sans Pinstripe", sans-serif;*/
/*    font-size: 30px;*/
/*}*/
/*.photo-line {*/
/*    width: 100%;*/
/*    height: 300px;*/
/*    background-color: #152d62;*/
/*}*/


/*.dear, .location-title, .program-title, .dresscode-title, .wishes-title,*/
/*.organizer-title, .presence-title {*/
/*    margin-bottom: 30px;*/
/*}*/
/* .location .banquet, .presence .presence-text {*/
/*    padding-bottom: 30px;*/
/*    border-bottom: 1px solid;*/
/*    border-image-source: linear-gradient(to right, transparent, #000, transparent);*/
/*    border-image-slice: 1;*/
/*}*/
/*.invite-name.one {*/
/*    padding-bottom: 10px;*/
/*    border-bottom: 1px solid;*/
/*    border-image-source: linear-gradient(to right, transparent,  #fff, transparent);*/
/*    border-image-slice: 1;*/
/*}*/


.main {
    padding-top: 100px;
    background-color: #eeddd3;
    padding-bottom: 100px;

}

.dear {
    font-size: 70px;
    text-align: center;
    font-family: "Poiret One", sans-serif;
}

.no-fonts {
    text-align: center;
    font-size: 42px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/*.image-three {*/
/*    position: absolute;*/
/*    left: 50%;*/
/*    bottom: -420px;*/
/*    transform: translate(-50%, -50%);*/
/*}*/
.image-three {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.image-three .polaroid-three{
    position: relative;
    width: 570px;
    height: 325px;
    z-index: 2;


}
.main-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.foto-three {
    position: absolute;
    height: 260px;
    top: 165px;
    left: 48%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.foto-three .img-three {
    height: 260px;
    object-fit: cover;
    object-position: top;
    clip-path: inset( 0px 0 0px 0 );
}
.main .text {
    font-size: 30px;
}
/*.text-right {*/
/*    display: flex;*/
/*    align-items: flex-end;*/
/*    flex-direction: column;*/
/*}*/
/*.main-info .text-right .text-right-one {*/
/*    font-family: "Great Vibes", sans-serif;*/
/*}*/
/*.main-info .text-right .text-right-two {*/
/*    font-family: "Book Antiqua", sans-serif;*/
/*    font-size: 30px;*/
/*    margin-top: -15px;*/
/*    font-weight: bold;*/
/*}*/

 .program, .presence, .location, .dresscode, .wishes {
    padding: 100px 0 0px 0;
   background-image: url("../images/bg.jpg");


}

.location-title, .program-title, .dresscode-title, .wishes-title, .organizer-title,
.presence-title {
    text-align: center;
    font-size: 85px;
}

.program .container {

}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 3px;
}
.event {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 85%;
    font-size: 40px;
    gap: 0px;

}
.event.line {
    width: 1px;
    height: 70px;
    background-color: black;
}




.location{

}

.location-info {
    text-align: center;
    font-size: 60px;
}
.location-address a {
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    outline: none;
    color: black;
    display: inline-block;
    cursor: pointer;
    border: 1px solid black;
    border-radius: 30px;
    padding: 15px;
    margin-top: 20px;
}
.location-address a:hover {
    color: #8c8c8c;
    display: inline-block;
    cursor: pointer;

}





.dresscode .container {
    /*position: relative;*/

}
.dresscode {
    position: relative;
    padding-bottom: 100px;
}
.wishes {
    padding-top: 0px;
}

.dresscode-info {
    text-align: center;
    font-size: 40px;
}
.dresscode-info-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dresscode-info-block {
    width: 150px;
    height: 80px;
    border-radius: 30px;
}
.dresscode-info-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}
.dresscode-info-block.second img {
    filter: brightness(1.3);
}

.dresscode-info-block {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.dresscode-info-block:nth-child(1) { transition-delay: 0.2s; }
.dresscode-info-block:nth-child(2) { transition-delay: 0.4s; }
.dresscode-info-block:nth-child(3) { transition-delay: 0.6s; }
.dresscode-info-block:nth-child(4) { transition-delay: 0.8s; }
.dresscode-info-block:nth-child(5) { transition-delay: 1s; }
.dresscode-info-block:nth-child(6) { transition-delay: 1.2s; }

.dresscode-info-blocks.active .dresscode-info-block {
    opacity: 1;
    transform: translateX(0);
}

.wishes .container {
    position: relative;

}
.wishes-wed {
    position: absolute;
    top: 40%;
    left: -22%;
    rotate: 270deg;
    font-family: "Book Antiqua", sans-serif;
    text-transform: uppercase;
    font-size: 85px;
    color: white;
}

.wishes-text {
    text-align: center;
    font-size: 40px;
}


.presence {
    padding-bottom: 50px;
}
.presence .container {
    position: relative;

}

.presence-text {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
}
.wedding-form * {
    box-sizing: border-box;
}
.wedding-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-size: 30px;
    font-family: "Cormorant Infant", sans-serif;

    fieldset {
        margin: 0 0 15px 0;
        padding: 0;
        border: none;
    }

    legend {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #fff;
        border-radius: 5px;
        font-size: 16px;
    }
    .wedding-form input[type="radio"],
    .wedding-form input[type="checkbox"],
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: transparent;
        width: 100%;
        padding: 10px;
        border: 1px solid #000;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid black;
        }
        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}
@supports (-webkit-appearance: none) {
    .wedding-form {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
        font-size: 30px;
        font-family: "Cormorant Infant", sans-serif;
    }

    fieldset {
        border: none !important;
        padding: 0;
    }

    legend {
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }
    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #fff;
        border-radius: 5px;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: transparent;
        width: 100%;
        padding: 10px;
        border: 1px solid #000;
        color: #000;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid black;
        }
        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}


.timout {
    background-color: #eeddd3;
    padding: 50px 0;
}
.timout-title {
    font-size: 55px;
    color: #000;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
#countdown {
    display: flex;
    justify-content: center;
    gap: 0px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
    padding: 15px;
    text-align: center;

}

.time-box span {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.time-box p {
    margin: 5px 0 0;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: bold;
}



