

@font-face {
    font-family: "Caravan";
    src: url("../fonts/Caravan.otf");
}
@font-face {
    font-family: "DolomanPavljenko";
    src: url("../fonts/DolomanPavljenko.otf");
}

* {
    margin: 0;
    padding: 0;
    font-family: "Poiret One", sans-serif;


}

.container {
    max-width: 1100px;
    margin: 0 auto;
}
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
.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;
}

.invite {
    max-width: 800px;
    background-image: url("./images/main-photo.jpg");
    background-size: cover;
    margin: 0 auto;
    transform: translateY(-50px);
    background-repeat: no-repeat;
    position: relative;
    background-position: center;
}
.niz {
    max-width: 800px;
    height: 700px;
    background-image: url("./images/niz.jpg");
    background-size: cover;
    margin: 0 auto;
    background-repeat: no-repeat;
    position: relative;
    background-position: center;
}
.invite::before, .niz::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.invite .container {
    padding: 500px 0 70px;
    text-align: center;
}

.invite-date, .invite-text, .invite-name {
    z-index: 2;
    color: #7c7979;
    position: relative;
}

.invite-text {
    /*font-family: "Poiret One", sans-serif;*/
    /*font-family: "Book Antiqua", sans-serif;*/
    font-family: "Cormorant Infant", sans-serif;

    font-size: 220px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    animation: fadeInScale 1.5s ease-out forwards;
    animation-delay: 0.5s;


}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}
.niz .invite-text {
    top: 0;
    left: 20px;
    transform: translate(0);
    font-size: 130px;
    /*color: black;*/
    color: #b39898;
}
.niz .invite-name {
    font-size: 45px;
    left: -9px;
}
.niz-text {
font-weight: bold;
    position: absolute;
    bottom: 13px;
    left: 0;
    font-size: 20px;
}
.invite-name {
    /*font-family: "Book Antiqua", sans-serif;*/
    font-family: "Caravan", sans-serif;
    font-size: 75px;
    /*font-size: 35px;*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 2;
    background: none; /* Убираем фон */
    color: white;

    /*background: rgba(255, 255, 255, 0.01); !* Полупрозрачный фон *!*/
    /*backdrop-filter: blur(10px); !* Размытие нижнего слоя *!*/
    /*-webkit-backdrop-filter: blur(10px);*/

}


.music-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: -50px;
    gap: 30px;
    padding-top: 20px;
    background-color: #fff8f8;
    color: #676767;
}

.music-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}


.music-btn {
    width: 50px;
    height: 50px;
    background: transparent !important;
    border: 1px solid #676767;
    border-radius: 50%;
    color: #676767;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    order: 2;
}



.music-text {
    font-size: 30px;
    text-align: center;
    color: #676767;
    order: 1;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}



.main {
    /*background-color: #f8efea;*/
    position: relative;
    padding: 30px 0;
    background-color: #fff8f8;
    color: #676767;

}
.main .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.main-title, .main-date {
    font-family: "Poiret One", sans-serif;
    font-size: 77px;
    margin-bottom: 30px;
}
.main-text {
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
}
.main-text b {
    font-size: 40px;
}
.main-text span{
    font-size: 50px;
    margin-bottom: 20px;
}
.main-your {
    font-family: "Caravan", sans-serif;
    font-size: 160px;
    top: -8px;
    right: -170px;
    color: #d7cfc3;
    position: absolute;
}

.calendar {
    width: 400px;
    max-width: 100%;
    padding: 20px;
    text-align: center;
    display: inline-block;
}
.calendar-date {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
}
.calendar-date .month,
.calendar-date .year{
    font-size: 50px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    font-size: 29px;
    justify-items: center;
    justify-content: center;
}
.day {
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
}
.day.empty {
    background: transparent;
}
.heart {
    font-size: 46px;
    position: absolute;
    bottom: -22px;
    right: -20px;
    z-index: 55;
    color: #676767;
}
.heart svg {
    width: 100px;
    height: 100px;
}






.location {
    padding: 0 0 100px 0;
    background-color: #fff8f8;
    color: #676767;
}
.location .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.location-title {
    font-weight: normal;
    font-size: 77px;
    margin-bottom: 60px;
    text-align: center;
}

.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
}



.center-card {
    position: relative;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;

}

.center-card img {
    width: 422px;
    height: 425px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: rotate(355deg);
}
.center-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: #676767;
    border-radius: 10px;
    z-index: 1;
    transform: rotate(5deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
h2 {
    font-size: 24px;
    margin: 10px 0 5px;
}

p {
    font-size: 18px;
    color: #676767;
}


.location a {
    font-family: "Book Antiqua", sans-serif;
    font-size: 24px;
    text-decoration: none;
    outline: none;
    color: white;
    width: 300px;
    box-sizing: border-box;
    background-color: #2D2D35;
    padding: 20px;
    display: inline-block;
    cursor: pointer;
    margin-top: 30px;
    text-align: center;
}
.location a:hover {
    color: #262626;
    background-color: white;

}


.items-svg {
    position: absolute;
    bottom: -16px;
    left: 103px;
}
.item-month {
    font-family: "Caravan",sans-serif;
    position: absolute;
    font-size: 60px;
    bottom: -45px;
    left: 110px;
    rotate: -20deg;
}
.items-svg svg{
   width: 90px;
    height: 90px;
}
.program {
    padding: 100px 0;
    background-color: #fff8f8;
    color: #676767;
}

.program-title {
    font-family: "Poiret One", sans-serif;
    font-size: 50px;
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}
.program-day {
    font-family: "Caravan", sans-serif;
    font-size: 160px;
    top: 24px;
    right: 291px;
    color: #d7cfc3;
    position: absolute;
    z-index: -1;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 528px;
    margin: auto;
    position: relative;
}

.time-info a {
    text-decoration: none;
    outline: none;
    color: #595959;
    display: inline-block;
    cursor: pointer;
}
.time-info a:hover {
    color: #d4cfcc;
    display: inline-block;
    cursor: pointer;

}
.event {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.icon {
    display: flex;
    justify-content: center;
}

.time-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

}

.description {
    font-weight: bold;
    font-size: 22px;
    text-align: center;
}

.time-info .text {
    font-size: 16px;
}



.icon.second svg, .icon.three svg, .icon.four svg, .icon.first svg  {
    width: 50px;
    height: 50px;
}

.dresscode {
    padding-bottom: 100px;
    background-color: #fff8f8;
    color: #676767;
}
.dresscode-title {
    font-family: "Poiret One", sans-serif;
    font-size: 77px;
    margin-bottom: 30px;
    text-align: center;
}

.dresscode-info-text {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: normal;
}

.dresscode-info-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
/*.dresscode-info-blocks {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1fr 1fr; !* Три колонки *!*/
/*    gap: 20px; !* Расстояние между элементами *!*/
/*    justify-items: center; !* Центрирование блоков по горизонтали *!*/
/*}*/

.dresscode-info-block {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.dresscode-info-block.first {
    background-color: #f7c5c6;
}
.dresscode-info-block.six {
    background-color: #cca3c3;
}

.dresscode-info-block.second {
    background-color: #c8e8f4;
}

.dresscode-info-block.third {
    background-color: #051639;
}

.dresscode-info-block.four {
    background-color: #a9bea2;
}

.dresscode-info-block.five {
    background-color: #224233;
}


.wishes {
    padding: 100px 0;
    background-image: url("images/nINdR501.svg");
    background-color: #fff8f8;
    color: #676767;
}
.wishes-block {
    border: 1px solid #676767;
    padding: 20px;
    background-color: #fff8f8;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    animation: fadeInScale 1.5s ease-out forwards;
    animation-delay: 0.8s;

}
.wishes-title {
    font-family: "Poiret One", sans-serif;
    font-size: 77px;
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}
.wishes-day {
    font-family: "Caravan", sans-serif;
    font-size: 160px;
    top: 24px;
    right: 199px;
    color: #d7cfc3;
    position: absolute;
    z-index: -1;
}




.wishes-text {
    text-align: center;
    font-size: 30px;
    font-weight: normal;
}
.photo {
    padding-top: 50px;
    background-color: #fff8f8;
    color: #676767;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;

    img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
    }

    .wide {
        grid-column: span 2;
        object-fit: cover;

    }
}

.details {
    padding-top: 50px;
    background-color: #fff8f8;
    color: #676767;
}
.details-title {
    font-family: "Poiret One", sans-serif;
    font-size: 77px;
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}
.details-text {
    margin-bottom: 30px;
}
.details-text, .details-tg {
    text-align: center;
    font-size: 30px;
    font-weight: normal;
}
.details-text a{
    display: inline-block;
    text-decoration: none;
    color: #676767;
    font-weight: bold;
}
.details-tg a{
    margin-top: 30px;
    display: inline-block;
    text-decoration: none;
    background-color: #fff8f8;
    color: #676767;
    border: 1px solid #676767;
    padding: 5px 5px 10px 5px;
    font-weight: bold;
}
.details-tg a:hover {
    color: black;
    background-color: #9a9999;
    border: 1px solid black;
}
.presence {
    padding: 100px 0;
    background-color: #fff8f8;
    color: #676767;
}

.presence-title {
    font-family: "Poiret One", sans-serif;
    font-size: 77px;
    line-height: 75%;
    position: relative;
    margin-bottom: 100px;
    text-align: center;
}
.presence-day {
    font-family: "Caravan", sans-serif;
    font-size: 160px;
    top: 24px;
    right: 270px;
    color: #d7cfc3;
    position: absolute;
    z-index: -1;
}


.presence-text {
    text-align: center;
    font-size: 30px;
    font-weight: normal;
    margin-bottom: 30px;
}
.des {
    font-size: 18px;
}

.wedding-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    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: 97%;
        padding: 8px;

        border: 1px solid #676767;
        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; /* Общий сброс */
        width: 100%;
        padding: 10px;
        background-color: #fff8f8;
        color: #676767;
        border: 1px solid #676767;

        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: #262626;
        }
    }
}
@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: 97%;
        padding: 8px;
        border: 1px solid #5c5c5c;
        border-radius: 5px;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    button {
        width: 100%;
        padding: 10px;
        background: #5c5c5c;
        color: #f8efea;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: #262626;
        }
    }
}


    .timout {
        padding: 0 0 100px 0;
        background-color: #fff8f8;
        color: #676767;
    }

    .timout-title {
        font-size: 40px;
        color: #676767;
        text-align: center;
        font-weight: bold;
        margin-bottom: 20px;
        white-space: nowrap;
    }

    #countdown, #countdown2 {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .time-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #676767;
        padding: 15px;
        text-align: center;
        border: 1px solid #676767;
        border-radius: 50%;
        width: 40px; /* Фиксированная ширина */
        height: 40px;

    }

    .time-box span {
        font-size: 20px;
        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;
    }



