@font-face {
    font-family: "Felidae";
    src: url("../fonts/Felidae.ttf") format("truetype");
}

@font-face {
    font-family: "Novelist";
    src: url("../fonts/Novelist_free.otf") format("truetype");
}

@font-face {
    font-family: "Betmo";
    src: url("../fonts/Betmo Regular Cyr.otf") format("truetype");
}

@font-face {
    font-family: "French";
    src: url("../fonts/FrenchKissscript.ttf");
}

@font-face {
    font-family: "Santa Catarina";
    src: url("../fonts/Santa Catarina.ttf");

}

@font-face {
    font-family: "Katherine";
    src: url("../fonts/Miss_Katherine_Cyrillic_Script.ttf");

}

* {
    margin: 0;
    padding: 0;
    /*font-family: "Cormorant Infant", sans-serif;*/
    font-family: "Poiret One", sans-serif;


}
.desktop-message {
    display: none;
    text-align: center;
    margin-top: 150px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.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;
}
.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;
}

.hidden-his {
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Когда элементы становятся видимыми */
.show {
    opacity: 1;
    transform: translateY(0);
}

#preloader {
    background-color: black;
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-family: Arial, sans-serif;
    flex-direction: column;
    opacity: 1;
    transition: opacity 1s ease;
    text-align: center;
    overflow: hidden;
    /*background-image: url("images/bg.jpg");*/
    /*background-size: cover;*/
    /*background-position: center;*/
    /*background-repeat: no-repeat;*/
    /*background-attachment: fixed;*/
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.preloader-text {
    position: relative;
    z-index: 1;
    /*background: rgba(0, 0, 0, 0.3); !* Затемнённый фон для текста *!*/
    padding: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

#content {
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.open {
    margin-top: 30px;
}

.preloader-wed-day, .preloader-name, .razblock {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    animation: fadeInScale 1s ease-out forwards;
}

.open-btn {
    position: relative;
    width: 100px; /* Задайте нужный размер */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-heart {
    width: 50px; /* Размер сердечка */
    height: 50px;
    animation: heartPulse 1s infinite;
    z-index: 2;
}

.pulse-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 253, 253, 0.3);
    animation: circlePulse 2s infinite;
    z-index: 1;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes circlePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.preloader-wed-day {
    font-size: 50px;
    font-family: "Betmo", sans-serif;
    animation-delay: 0.3s;
}

.preloader-name {
    font-size: 65px;
    margin: 30px 0 50px 0;
    font-family: "Felidae", sans-serif;
    animation-delay: 0.8s;
}

.preloader-name.fraza {
    font-size: 30px;
    margin-bottom: 30px;
    font-family: "Felidae", sans-serif;
    animation-delay: 0.6s;
}

.razblock {
    animation-delay: 0.9s;
}

.open-btn img {
    width: 100px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.photo-slider {
    margin: 30px auto;
    display: flex;
    gap: 20px; /* Расстояние между фото */
    overflow: hidden;
    justify-content: center;
    align-items: center;
    width: fit-content;
    position: relative;
    object-fit: cover;
    animation: slide 6s ease-in-out infinite alternate;
}


img.photo2 {
    width: 150px !important; /* Размер фото */
    height: 230px;
    object-fit: cover;
}

img.photo1 {
    width: 130px !important; /* Размер фото */
    height: 200px;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(-30px);
    }
    100% {
        transform: translateX(0px);
    }
    /* Движение вправо */
}

.invite {
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
    text-align: center;
    padding: 50px 0;
}

.name-his, .name-her {
    font-family: "Felidae", sans-serif;
    color: #3f3731;
    font-size: 70px;

    font-weight: bold;
}

.invite {
    background-color: #f9f9f9;
    position: relative;
    text-align: center;
    padding: 50px 0;
}
.image {
    width: 500px;
    height: 800px;
    margin: 0 auto;
}
.invite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.invite .name {
    font-family: "Betmo", sans-serif;
}

.invite-name.name, .invite-name, .invite-text-one, .vertical-line {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    animation: fadeInScale 1s ease-out forwards;
}

/* Задержки для последовательного появления */
.name {
    animation-delay: 0.3s;
}

.invite-text-one, .vertical-line {
    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);
    }
}

.invite-name {
    color: #706556;
    font-size: 60px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    opacity: 1;
    font-family: "Felidae", sans-serif;
    z-index: 2;
    position: relative;
    text-align: left;
    padding: 80px 0;

}

.invite-name span {
    font-family: "Great Vibes", sans-serif;
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
    animation: fadeIn 0.8s forwards ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-name .simvol {
    /*font-family: "Felix Titling", sans-serif;*/
    /*font-family: "Algerian", sans-serif;*/
    font-family: "French", sans-serif;
    /*font-size: 100px;*/
}



.program-title, .location-text-title, .dresscode-title, .wishes-title, .organizer-title, .location-title, .presence-title, .timout-title {
    font-size: 65px;
    margin-bottom: 30px;
    color: #3f3731;
    font-family: "Felidae", sans-serif;
}


.program, .organizer, .location, .dresscode, .wishes, .presence {
    background-color: #f9f9f9;
}

.calendar {
    margin-top: 50px;
    max-width: 100%;
    padding: 15px;
    text-align: center;
    background-color: white;
    display: inline-block;
    box-shadow: 0 0 15px rgba(2, 2, 2, 0.6);
}

.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: 20px;
    justify-items: center;
    justify-content: center;
}

.day {
    padding: 10px;
    width: 30px;
    height: 30px;
    position: relative;
}

.day.empty {
    background: transparent;
}

.heart {
    font-size: 46px;
    position: absolute;
    bottom: -23px;
    right: -22px;
    z-index: 55;
    color: #c69870;
}

.heart svg {
    width: 100px;
    height: 100px;
}

.main {
    padding: 0 0 50px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    width: 100vw;

}

.main img {
    position: absolute;
    top: 48px;
    width: 860px;
    right: -84px;
}

.main-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*.dear {*/
/*    font-size: 100px;*/
/*    color: #7a0f21;*/
/*    margin-bottom: 30px;*/
/*}*/
.no-fonts {
    font-size: 36px;
    color: #3f3731;
    text-align: center;
}

.no-fonts span {
    font-family: "Novelist", sans-serif;
    font-size: 50px;
}

.music-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    gap: 30px;
    margin-bottom: 30px;
}

.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 #3f3731;
    border-radius: 50%;
    color: #3f3731;
    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: left;
    color: #706556;
    order: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.main h2 {
    font-size: 62px;
    color: #3f3731;
    margin-bottom: 20px;
}

.wed-date, .location {
    display: flex;
    align-items: start;
    justify-content: space-around;
    gap: 0;
    background-color: #f9f9f9;

}

.location {
    padding-bottom: 50px;
    overflow: hidden;

}

.wed-date-text {
    max-width: 350px;
    width: 50%;
    color: #3f3731;
}

.wed-date-text-title {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-top: 50px;
    font-family: "Felidae", sans-serif;
}

.location-text-title {

    text-align: center;

    color: #3f3731;


}

.location-text-info {
    font-size: 23px;
    color: #3f3731;
    text-align: center;
}

.wed-date-text-date {
    font-size: 50px;
    font-weight: bold;


    text-align: center;

}

.wed-date-image, .location-date-image {
    width: 50%;

}
.loc-img {

    width: 260px;
    height: 391px;
    margin: 20px auto;
}
.loc-img img{
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.location-text-map {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.location-text-map a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #3f3731;
    font-size: 20px;
    border: 1px solid #3f3731;
    padding: 10px 15px 15px 15px;
    box-sizing: border-box;
}

.location-text-map a:hover {
    border: 1px solid #4f4a45;
    color: white;
    fill: white;
    background-color: #4f4a45;
}



.location-text-map a:hover svg path {
    fill: white;
}

.location-text {
    width: 80%;
}

.wed-date-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: -95px 0;
}

.location-date-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    /*clip-path: inset(0px 50px 0px 50px);*/
    object-position: -110px 0;
}

.photo-table {
    height: 250px;
    overflow: hidden;
    width: 100%;
}

.photo-table img {
    object-position: 0 -400px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.photo-table img.img-img {
    object-position: 0 -191px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.program {
    padding-top: 50px;
    padding-bottom: 100px;
    width: 100%;
    overflow: hidden;

}

.program .container {
    text-align: center;

}

.program-title {
    position: relative;
}



.timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}


.event {
    flex-shrink: 0;
    margin-bottom: 20px;
}


.time-info {
    text-align: center;

}

.time-info a {
    text-decoration: none;
    color: #57524e;
    font-weight: bold;
}


.description span {
    font-weight: bold;
    font-size: 23px;
}

.time-info-time {
    font-size: 36px;
}


.description {
    font-size: 18px;
    margin-top: 10px;

}

.time-info .text {
    font-size: 16px;
}

.icon.first img {
    width: 160px;
}

.icon.second img, .icon.three img, .icon.four img {
    width: 100px;
    height: 100px;
}

.dresscode {
    padding-bottom: 70px;
}

.dresscode .container {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.dresscode-info-blocks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.dresscode-info-blocks > * {
    margin: -10px; /* Используем отрицательные маргины для элементов */
}
.dresscode-info-block {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.dresscode-info-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}

.dresscode-info-text {
    font-size: 23px;
    color: #3f3731;

}

.dresscode-info span {
    font-family: "Great Vibes", sans-serif;
    font-size: 30px;
    color: #3f3731;

}

.dresscode .line {
    margin: 30px auto;
    background-color: #3f3731;
    width: 100px;
    height: 1px;
    z-index: 66666;

}


.organizer {
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: #f9f9f9;
    position: relative;
    width: 100vw;
    color: #3f3731;
}

.organizer .container {
    text-align: center;
}


.organizer img {
    width: 250px;
    margin-bottom: 30px;
}

.organizer-text {
    font-size: 23px;
    margin-bottom: 30px;
}

.organizer-name {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3f3731;
}

.organizer-name span {
    font-size: 20px;
}

.organizer a {
    font-size: 30px;
    text-decoration: none;
    outline: none;
    color: #3f3731;
    display: inline-block;
    cursor: pointer;
}

.organizer a:hover {
    color: #4f4a45;

}
.image-one {
    width: 100%;
    height: 300px;
}
.image-one img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.phone .telegram-link {
    margin-top: 10px;
}

.phone span {
    font-size: 30px;
    margin-right: 15px;
}

.presence {
    padding-bottom: 100px;
    padding-top: 80px;
    text-align: center;
}

.presence-text {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    color: #3f3731;

}

.presence svg {
    width: 120px;
    height: 76px;
}

.des {
    font-size: 18px;
}

.wedding-form * {
    box-sizing: border-box;
}

.wedding-form {
    color: #3f3731;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-size: 30px;
    font-family: "Cormorant Infant", sans-serif;

    fieldset {
        border: none;
        margin-bottom: 15px;
    }

    legend {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"] {
        border: none;
        width: 100%;
        border-bottom: 1px solid #3f3731;
        outline: none;
        background: transparent;
        padding: 5px 0;
        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: transparent;
        color: #3f3731;
        border: 1px solid #3f3731;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: #4d4842;
        }
    }
}

@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 #3f3731;
        border-radius: 5px;
        font-size: 16px;
        background-color: white;
    }

    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        background: white;
        width: 100%;
        padding: 10px;
        border: 1px solid black;
        color: black;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        font-weight: bold;

        &:hover {
            background: gray;
        }

        &:focus {
            outline: none; /* Убирает синюю рамку при фокусе */
        }
    }
}

.timout {
    padding: 250px 0 30px 0;
    background-image: url("././images/photo2.jpg");

    background-size: cover;
    background-position: center;       /* Центрирует изображение */
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.timout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Прозрачный чёрный */
    z-index: 0;
}

/* Содержимое должно быть выше затемнения */
.timout > * {
    position: relative;
    z-index: 2;
}
.timout .container {
    border: 1px solid white;
    padding-bottom: 50px;
    padding-top: 50px;
}

.timout-svg {
    text-align: center;
}

.timout-svg svg {
    width: 120px;
    height: 100px;
}

.timout-title {
    font-size: 36px;
    color: white;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /*border: 1px solid #7a0f21;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    justify-content: center;

}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
}

.time-box svg {
    transform: rotate(-90deg);
}

circle {
    fill: none;
}

.background {

}

.progress {
    stroke: white;
    transition: stroke-dashoffset 0.35s;
}

.time-box span {
    font-size: 18px;
    line-height: 1;
    z-index: 2222;
    transform: rotate(90deg);
}

.time-box p {
    margin: 5px 0 0;
    font-size: 14px;
    z-index: 222;
}

.time-text {
    font-size: 32px;
    fill: white;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.time-text, .time-label {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
    transform: rotate(90deg);
}

.time-label {
    font-size: 32px;
    fill: white;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
}


.chat {
    border: 1px solid #706556;
    padding: 10px 10px 15px 10px;
}
.chat:hover {
    background-color: white;
}