
@font-face {
    font-family: "Caravan";
    src: url("../fonts/Caravan.otf");
}
@font-face {
    font-family: "DolomanPavljenko";
    src: url("../fonts/DolomanPavljenko.otf");
}

@font-face {
    font-family: "Aurora";
    src: url("../fonts/aurorascript.ttf");
}
@font-face {
    font-family: "Peach Cream";
    src: url("../fonts/Peach Cream.otf");
}
@font-face {
    font-family: "Novelist";
    src: url("../fonts/Novelist_free.otf");
}

* {
    margin: 0;
    padding: 0;
    font-family: "Poiret One", sans-serif;
    user-select: none;

}

.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);
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 24px;
    font-family: Arial, sans-serif;
    flex-direction: column;
    opacity: 1;
    transition: opacity 1s ease;
    text-align: center;
}

#content {
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
}
#swipe-area {
    position: relative;
    margin-top: 20px;
    cursor: pointer;
    width: 400px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#circle {
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 32px;
    transition: left 0.1s ease;
}
#circle svg{
    width: 40px;
    height: 40px;
}
#end-circle {
    width: 60px;
    height: 60px;
    border: 1px solid black; /* Затемненный круг */
    border-radius: 50%;
    position: absolute;
    right: 0;
    transition: opacity 0.5s ease-in-out;
}
#arrow {
    position: absolute;
    left: 50px;
    font-size: 30px;
    color: black;

    user-select: none;
}

.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;
}
.invite::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* регулируйте, сколько градиента вам нужно */
    background: linear-gradient(to top, white, transparent);
    z-index: 1; /* чтобы градиент был поверх изображения */
}
.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-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);*/

}



/*.main-name {*/
/*    position: relative;*/
/*    padding: 50px 0;*/
/*    width: 80%;*/
/*}*/
.main-name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 0px;
}

/* 1 строка — слева */
.his-name {
    grid-column: 1 / 2;
    justify-self: start;
    line-height: 0.8;
}

/* 2 строка — по центру */
.icon-name {
    grid-column: 1 / 3;
    justify-self: center;
    line-height: 0.5;
}

/* 3 строка — справа */
.her-name {
    grid-column: 2 / 3;
    justify-self: end;
    line-height: 1.3;
}
.his-name, .her-name, .icon-name {
    font-family: "Aurora", sans-serif;
    font-size: 100px;
    /*position: absolute;*/
    color: black;

}
/*.his-name {*/
/*    top: -80px;*/
/*    left: 140px;*/
/*}*/
/*.her-name {*/
/*    top: -20px;*/
/*    right: 50px;*/
/*}*/
.icon-name {
    font-size: 40px;
    font-family: "Novelist", sans-serif;
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
}
.main {
    /*background-color: #f8efea;*/
    position: relative;
    padding: 30px 0;

    color: #c69870;

}
.main .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: black;
}
.main-title {
    margin-top: 50px;

}
.main-title, .main-date, .location-title, .program-title,
.dresscode-title, .details-title, .presence-title, .timout-title {
    font-family: "Novelist", sans-serif;
    font-size: 77px;
    margin-bottom: 30px;
    text-align: center;
}
.main-date {
    margin-bottom: 0px;
}
.main-text {
    text-align: center;
    font-size: 30px;

}
.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: center;
}
.calendar-date .month,
.calendar-date .year{
    font-size: 30px;
}

.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: #c69870;
}
.heart svg {
    width: 100px;
    height: 100px;
}






.location {
    padding: 0 0 100px 0;
}
.location .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.location-title {
    font-weight: normal;
    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;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 24px;
    margin: 10px 0 5px;
}

p {
    font-size: 28px;
}


.location a {
    font-family: "Book Antiqua", sans-serif;
    font-size: 24px;
    text-decoration: none;
    outline: none;
    color: black;
    width: 300px;
    box-sizing: border-box;
    border: 1px solid black;
    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-bottom: 70px;
}

.program-title {
    position: relative;
    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;
    flex-direction: column;


}

.icon {
    display: flex;
    justify-content: center;
}

.time-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;

}

.description {
    margin-bottom: 30px;
    font-family: "Novelist", sans-serif;
    font-size: 30px;
}
.program-des {
    font-size: 20px;
}

.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;
}


.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;
}



.details {
}
.details-title {
    position: relative;
    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: black;
    font-weight: bold;
}
.details-tg a{
    margin-top: 30px;
    display: inline-block;
    text-decoration: none;
    color: black;
    border: 1px solid black;
    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;
}

.presence-title {
    position: relative;
}



.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;
    text-align: left;
    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 black;
        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;
        color: black;
        background-color: white;
        border: 1px solid black;

        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;
    }

    .timout-title {
        text-align: center;
        white-space: nowrap;
        font-size: 40px;
    }

    #countdown, #countdown2 {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .time-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: black;
        padding: 15px;
        text-align: center;
        border: 1px solid black;
        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;
    }



