* {
    margin: 0;
    padding: 0;
    /*font-family: "Cormorant Infant", sans-serif;*/
    /*font-family: "Book Antiqua", sans-serif;*/
    /*font-family: "Alumni Sans Pinstripe", sans-serif;*/
    font-family: "Poiret One", sans-serif;


}
.desktop-message {
    display: none;
    text-align: center;
    margin-top: 150px;
}
.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;
}
body {
    -webkit-text-size-adjust: 100%;
    background-color: #faf1eb;
    color: #8c673f;
}
.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;
}



.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #faf1eb;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    z-index: 1000;
}

/* Скрытие прелоадера */
.preloader.hidden-main {
    opacity: 0;
    pointer-events: none;
}

/* Буквы */
.letter {
    font-family: "Book Antiqua", sans-serif;

    font-size: 100px;
    font-weight: bold;
    position: absolute;
    opacity: 0;
    animation-duration: 2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* Контур сердца */
.heart {

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.heart img {
    width: 100px;
    height: 100px;
}
@keyframes moveIn {
    0% {
        opacity: 0;
        transform: translateX(-600px); /* Начальная позиция для буквы И */
    }
    100% {
        opacity: 1;
        transform: translateX(-100px); /* Конечная позиция в центре */
    }
}
@keyframes moveInRight {
    0% {
        opacity: 0;
        transform: translateX(600px); /* Начальная позиция для буквы А */
    }
    100% {
        opacity: 1;
        transform: translateX(100px); /* Конечная позиция в центре */
    }
}

/* Начальное положение букв */
.letter.i {
    animation-name: moveIn;
}

.letter.a {
    animation-name: moveInRight;
}








.show {
    opacity: 1;
    transform: translateY(0);
}


.first img {
    filter: brightness(0) invert(1);
    /*filter: brightness(95%) saturate(58%) invert(21%) sepia(134%) saturate(708%) hue-rotate(322deg) brightness(67%) contrast(22%);*/
}

.first-page {
    padding: 100px 0;

}
.first-page .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.invite-title {
    font-size: 85px;
    line-height: 80%;
    text-align: center;
}
.invite-date {
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}
.invite-day {
    padding: 5px 0 15px 0;
    border-top: 1px solid #8c673f;
    border-bottom: 1px solid #8c673f;
    line-height: 100%;
}
.invite-calendar {
    border-right:  1px solid #8c673f;
    border-left: 1px solid #8c673f;
    padding: 0 15px ;
    text-align: center;
}
.invite-time {
    padding: 10px 23px;
    border-top: 1px solid #8c673f;
    border-bottom: 1px solid #8c673f;
    line-height: 100%;
}
.number {
    font-size: 60px;
}
.year {
    font-size: 55px;
}
.invite-name {
    font-size: 85px;
}
.photo-container {
    width: 100%;
    max-height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.photo {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 100px;
    padding-bottom: 50px;
}


.dear {
    font-size: 70px;
    text-align: center;
}

.no-fonts {
    text-align: center;
    font-size: 30px;
    margin-top: 30px;
    font-weight: normal;
    width: 100%;

}



 .program, .presence, .location, .dresscode, .wishes {
    padding: 50px 0 0 0;
}

.location-title, .program-title, .dresscode-title, .wishes-title, .organizer-title,
.presence-title {
    text-align: center;
    font-size: 85px;
    margin-bottom: 30px;
}

.program .container {

}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 3px;
    margin-bottom: 50px;
    margin-top: 30px;
}
.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;*/
/*}*/

.event.line {
    width: 100px;
}
.event.line img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}



.location{
    background-color: #c0a585;
    color: #faf1eb;
    padding-bottom: 50px;
}

.location-info {
    text-align: center;
    font-size: 60px;
}
.location-address a {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    outline: none;
    color: white;
    display: inline-block;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 30px;
    padding: 15px;
    margin-top: 20px;
    text-transform: uppercase;
}
.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;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.dresscode-info-blocks, .dresscode-info-blocks-two {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}
.man, .woman {
    margin-top: 30px;
    font-weight: bold;
}
.dresscode-info-block {
    width: 300px;
    height: 30px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease-in-out, transform 1.5s ease-in-out;


}
.dresscode-info-block.one {
    width: 300px;
    height: 30px;
    background-color: #e3ecfa;
}
.dresscode-info-block.two {
    width: 300px;
    height: 30px;
    background-color: #d3b5ab;
}
.dresscode-info-block.three {
    width: 300px;
    height: 30px;
    background-color: #cfdaac;
}
.dresscode-info-block.four {
    width: 300px;
    height: 30px;
    background-color: #ffffff;
}
.dresscode-info-block.five {
    width: 300px;
    height: 30px;
    background-color: #868585;
}
.dresscode-info-block.six {
    width: 300px;
    height: 30px;
    background-color: #000000;
}
.dresscode-info-block.active  {
    opacity: 1;
    transform: translateX(0);
}


/*.dresscode-info-blocks, .dresscode-info-blocks-two {*/
/*    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 {
    font-size: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
.shoose, .konvert, .vino {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
}
.vino {
    grid-column: span 2; // Занимает две колонки
text-align: center;
}


.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 #8c673f;
        border-radius: 5px;
        font-size: 16px;
        background-color: #f1e5d8;
    }
    .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: #f1e5d8;
        width: 100%;
        padding: 10px;
        border: 1px solid #8c673f;
        color: #8c673f;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid #8c673f;
        }
        &: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 #8c673f;
        border-radius: 5px;
        font-size: 16px;
        background-color: #f1e5d8;
    }

    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: #f1e5d8;
        width: 100%;
        padding: 10px;
        border: 1px solid #8c673f;
        color: #8c673f;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
            border: 1px solid #8c673f;
        }
        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}


.timout {
    padding: 50px 0;
    background-color: #c0a585;
    color: #faf1eb;

}
.timout-title {
    font-size: 55px;
    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;
    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;
}



