@font-face {
    font-family: "Passions";
    src: url("../fonts/PassionsConflictRUS.woff2") format("woff2"),
    url("../fonts/PassionsConflictRUS.woff") format("woff"),
    url("../fonts/PassionsConflictRUS.ttf") format("truetype"),
    url("../fonts/PassionsConflictRUS-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Capitalist";
    src: url("../fonts/Capitalist.ttf");
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: "DolomanPavljenko";
    src: url("../fonts/DolomanPavljenko.otf");
    font-weight: normal;
    font-style: normal;
}



* {
    margin: 0;
    padding: 0;
}
body {
    /*background-color: #fff9fe;*/
    background-color: #f8effd;
    position: relative;
    overflow-x: hidden;

}

.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;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hidden-center {
    opacity: 0;
    transform: scale(0); /* уменьшаем до центра */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-center {
    opacity: 1;
    transform: scale(1); /* нормальный размер */
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.wave-text .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: waveFadeIn 1s ease-out forwards;
}

@keyframes waveFadeIn {
    from {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(var(--angle));
    }
    to {
        opacity: 1;
        transform: translate(var(--x), var(--y)) rotate(var(--angle));
    }
}

/* Задержка для каждой буквы */
.wave-text .letter:nth-child(1) { animation-delay: 0s; }
.wave-text .letter:nth-child(2) { animation-delay: 0.1s; }
.wave-text .letter:nth-child(3) { animation-delay: 0.2s; }
.wave-text .letter:nth-child(5) { animation-delay: 0.3s; }
.wave-text .letter:nth-child(6) { animation-delay: 0.4s; }
.wave-text .letter:nth-child(8) { animation-delay: 0.5s; }
.wave-text .letter:nth-child(9) { animation-delay: 0.6s; }
.wave-text .letter:nth-child(10) { animation-delay: 0.7s; }
.wave-text .letter:nth-child(11) { animation-delay: 0.8s; }
.wave-text .letter:nth-child(12) { animation-delay: 0.9s; }

/*.show {*/
/*    opacity: 1;*/
/*    transform: translateY(0);*/
/*}*/

.title {

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}


.wave-text {
    display: flex;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
    color:  #cd050f;
    font-size: 10vw;
    font-weight: bold;

}

.letter {
    display: inline-block;
    transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--angle, 0deg));
}
.scroll-down-arrows {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px; /* расстояние между стрелками */
    pointer-events: none;
}

.scroll-down-arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid red;
    border-right: 2px solid red;
    transform: rotate(45deg);
    opacity: 0;
    animation: arrowFade 1.5s infinite;
}

/* последовательная задержка для каждой стрелки */
.scroll-down-arrows span:nth-child(1) { animation-delay: 0s; }
.scroll-down-arrows span:nth-child(2) { animation-delay: 0.2s; }
.scroll-down-arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes arrowFade {
    0% { opacity: 0; transform: rotate(45deg) translateY(0); }
    50% { opacity: 1; transform: rotate(45deg) translateY(0px); }
    100% { opacity: 0; transform: rotate(45deg) translateY(0); }
}


.space {
    display: inline-block;
    width: 1.5vw;
}
.name {
    font-family: "Great Vibes", sans-serif;
    font-size: 160px;
    text-align: center;
    margin-bottom: 100px;
}

.main .main-info {

    text-align: center;
}

.main .main-info p{
    font-size: 55px;
    font-family: "Cormorant Infant", sans-serif;

}
.main .main-info h1{
    font-family: "Pattaya", sans-serif;
    font-display: swap;
    font-size: 120px;
    color: #cd050f;
    margin: 20px 0 20px 0;
    position: relative;

}

.main-image-left {
    position: absolute;
    top: -279px;
    left: -284px;
}

.main-image-left img {
    position: relative;
    width: 350px;
}

.main .main-info .main-image-left p {
    font-family: "Great Vibes", sans-serif;
    font-size: 55px;
    position: absolute;
    top: 285px;
    left: 320px;
    color: #9f9c9e;
    rotate: -15deg;
    white-space: nowrap;
}
.main-image-right {
    position: absolute;
    top: -66px;
    right: -187px;
}

.main-image-right img {
    position: relative;
    width: 300px;
}

.main .main-info .main-image-right p {
    font-family: "Great Vibes", sans-serif;
    font-size: 55px;
    position: absolute;
    top: 180px;
    right: 298px;
    color: #9f9c9e;
    rotate: -15deg;
    white-space: nowrap;
}


.location {
    padding-top: 100px;
    padding-bottom: 100px;
}

.location .container {
    display: flex;
    justify-content: space-around;

}

.location-info {
    max-width: 1200px;
}
.location-info h3{
    font-size: 65px;
    font-family: "Cormorant Infant", sans-serif;
}
.location-info h4{
    font-size: 35px;
    font-family: "Cormorant Infant", sans-serif;
    color: #cd050f;
    margin: 20px 0 20px 0;
    font-weight: bold;
}
.location-info p{
    font-size: 35px;
    font-family: "Cormorant Infant", sans-serif;
    margin-bottom: 30px;
}
.location-info a {
    text-decoration: none;
    outline: none;
    color: black;
    border: 3px solid #cd050f;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 5px;
    font-size: 30px;
    display: inline-block;
    cursor: pointer;
}
.location-images .butilka {
    display: none;
    position: absolute;
    width: 230px;
    top: -12px;
    right: 30%;
}
.location-images .bokal1 {
    display: none;
    position: absolute;
    width: 175px;
    top: 25px;
    right: 17%;
}
.location-images .bokal2 {
    display: none;
    position: absolute;
    width: 155px;
    top: 79px;
    right: 25%;
}
.program {
    position: relative;
}
.wave {
    position: absolute;
    z-index: -1;
    left: 13%;
    top: 23%;
}
.program .wave-text {

    color: rgba(252,236,242);
}
.program .wave-text.two, .wave-text.three {
    margin-top: -64px;
}
.program-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
}
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 20px;
    width: 2px;
    height: 79%;
    background-color: #cd050f;
    transform: translateX(-50%);
}
.event {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}
.time {
    font-size: 55px;
    font-family: "Cormorant Infant", sans-serif;
    font-weight: bold;
    text-align: right;
}
.time.first {
    margin-left: 54px;
}
.time.second {
    margin-left: 177px;
}
.time.three {
    margin-left: -38px;
}
.time.four {
    margin-left: 240px;
}
.dot {
    width: 14px;
    height: 14px;
    background-color: #cd050f;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.description {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
    margin-left: 120px;
}

.description.four{
    margin-left: 120px;
}


.dresscode {
    padding-top: 150px;
    padding-bottom: 100px;
}

.dresscode-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
}
.dresscode-info {
    display: flex;
    justify-content: space-between;

}
.dresscode-info-text {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
    max-width: 555px;
}
.dresscode-info-image {
    display: flex;
    gap: 20px;
}

.heart1, .heart2 {
    width: 100px;
    height: 100px;
}
.heart1, .heart2, .heart3 {
    animation: pulse 1s infinite ease-in-out;
}
.heart3, .heart1 {
    filter: brightness(0) invert(1);
}
.heart3 {
    width: 120px;
    height: 120px;
}

.heart-wrapper1, .heart-wrapper2,
.heart-wrapper3 {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;


}
@keyframes pulse {
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}
.heart-wrapper1 {
    background-color: #cd050f;
    border: 1px solid #cd050f;
}
.heart-wrapper2 {
    border: 1px solid black;
    background-color: white;
}
.heart-wrapper3 {
    background-color: black;
    border: 1px solid black;
}

.organizer {
    padding-top: 100px;
    padding-bottom: 100px;
}
.organizer-text {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
    margin-bottom: 50px;
}
.organizer-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
}

.organizer-name {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
}
.organizer a {
    text-decoration: none;
    outline: none;
    color: black;
    border: 1px solid #cd050f;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 10px;
    font-size: 30px;
    cursor: pointer;
   margin: 39%;
}
.organizer a:hover {
    text-decoration: none;
    outline: none;
    color: white;
    border: 1px solid #cd050f;
    background-color: #cd050f;
}
.wishes {
    padding-bottom: 100px;
}
.wishes-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
}

.wishes-text {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
}

.presence {
    padding-bottom: 100px;
}
.presence-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 50px;
}
.presence-text {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 40px;
    margin-bottom: 50px;
}


.wedding-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    border: 3px solid #cd050f;
    border-radius: 10px;
    background:  #fff9fe;
    font-size: 30px;
    font-family: "Cormorant Infant", sans-serif;

    fieldset {
        border: none;
        margin-bottom: 15px;
    }

    legend {
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"],
    textarea {
        width: 90%;
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    button {
        width: 100%;
        padding: 10px;
        background: #cd050f;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: #a0040c;
        }
    }
}

.timout-title {
    font-family: "Cormorant Infant", sans-serif;
    font-size: 55px;
    color: #cd050f;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}
#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-family: "Cormorant Infant", sans-serif;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    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;
}
