@font-face {
    font-family: "Viaoda";
    src: url("./fonts/ViaodaLibre-Regular.ttf");
}
@font-face {
    font-family: "Nautica";
    src: url("./fonts/Nautica.ttf");
}
@font-face {
    font-family: "French";
    src: url("./fonts/FrenchKissscript.ttf");
}

@font-face {
    font-family: "Felidae";
    src: url("./fonts/Felidae.ttf");
}

@font-face {
    font-family: "Manrope";
    src: url("./fonts/Manrope.ttf");
}


@font-face {
    font-family: "Sacramento";
    src: url("./fonts/Sacramento.ttf");
}
@font-face {
    font-family: "Fog";
    src: url("./fonts/FoglihtenNo06_076.otf");
}
@font-face {
    font-family: "Kind";
    src: url("./fonts/Kindentosca.otf");
}

:root {
    /*--bg: #f6f2ea;*/
    --bg-soft: #efe7da;
    --text: #2f2924;
    --muted: black;
    --accent: #8d7663;
    --accent-dark: #5d4f44;
    --card: rgba(255, 255, 255, 0.82);
    --line: rgba(85, 66, 51, 0.28);
    --shadow: 0 24px 60px rgba(36, 28, 22, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    color: black;
    overflow-x: hidden;
    background-color: white;
}

.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::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;
}
.hidden-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

.intro {
    margin: 0 auto;
    max-width: 700px;
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    background: url("images/photo2.jpg") center/cover no-repeat;

}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: min(520px, calc(100% - 34px));
    padding: 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    background: rgba(20, 15, 13, 0.22);
    backdrop-filter: blur(3px);
    animation: popIn 0.9s ease;
}

.intro-date {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;

}
.intro-names {
    position: relative;
}
.intro-title-two {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Kind", serif;
    font-size: 40px;
}
.intro-title {
    font-family: "Kind", serif;
    font-size: 90px;
    margin: 0;
}


.intro-note {
    font-size: 14px;
    line-height: 1.65;
}

.open-btn {
    width: 92px;
    height: 92px;
    margin: 26px auto 12px;
    position: relative;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.25s ease;
}

.open-btn:hover {
    transform: scale(1.06);
}

.open-btn-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.open-btn-heart {
    animation: beat 1.3s infinite;
}

.intro-tip {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.intro.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.site {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.site.is-visible {
    opacity: 1;
    visibility: visible;
}

.music-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 25;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgb(255 255 255 / 12%);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.hero {
    min-height: 100vh;
    overflow: hidden;
    width: min(700px, calc(100% - 24px));
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 12, 9, 0.25), rgba(16, 12, 9, 0.6));
}

.title {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 95vh;
    overflow: hidden;
    margin: 0 auto;
    background-image: url("images/photo1.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}
.name-his {
    font-family: "Fog", sans-serif;
    color: #fdfaf4;
    font-size: 65px;
    position: absolute;
    bottom: 40%;
    left: 7%;
    z-index: 1;
}
.name-her {
    font-family: "Fog", sans-serif;
    color: #fdfaf4;
    font-size: 65px;
    position: absolute;
    bottom: 27%;
    right: 7%;
    z-index: 1;
}
.and {
    position: absolute;
    left: 35%;
    top: 42%;
    z-index: 1;
    /*font-family: "Sac", sans-serif;*/
    /*font-size: 30px;*/
    /*margin: -20px 0;*/

}
.name3 {
    white-space: nowrap;
    display: inline-block;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%);
    font-family: "Fog", sans-serif;
    color: #fdfaf4;
    font-size: 32px;
    z-index: 1;
}
.name3 span {
    padding: 16px 16px;
    border-left: 1px solid rgba(253, 250, 255, 0.5);
    border-right: 1px solid rgba(253, 250, 255, 0.5);
    margin: 0 16px;
}


@keyframes fadeInScale2 {
    from {
        opacity: 0;
        transform: translate(-50%) scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        filter: blur(0);
    }
}
.section {
    padding: 68px 0;
}

.section-title {
    font-family: "Fog", serif;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.06;
    margin-bottom: 18px;
    text-align: center;
}

.section-text {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.75;
    font-size: 18px;
    color: var(--muted);
}

.centered {
    text-align: center;
}




.dresscode-wrap,
.countdown-wrap {
    background: var(--card);
    border: 1px solid rgba(107, 87, 70, 0.16);
    border-radius: 28px;
    padding: 34px 24px;
    box-shadow: 0 18px 45px rgba(76, 56, 40, 0.09);
}
.calendar-section {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    background-image: url("images/bg1.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: white;
    padding: 50px 0;
    /*border-radius: 50px 0;*/
}
.calendar-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.calendar {
    padding: 30px 20px 10px 20px;
    z-index: 1;
    position: relative;
    max-width: 100%;
    text-align: center;
    display: inline-block;
    /*background: rgba(255, 255, 255, 0.15);*/
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

}

.calendar-date {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: center;
}

.calendar-date .month,
.calendar-date .year {
    font-size: 36px;
    font-family: "Fog", sans-serif;
    position: relative;
    line-height: 1;
    margin-bottom: 20px;
    color: rgba(255, 255, 255);
    display: inline-flex;
    align-items: center;
    gap: 16px;

}
.calendar-date .month::before,
.calendar-date .month::after {
    content: "";
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255);
    display: block;

}

#calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    font-size: 24px;
}

.weekday {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: "Manrope", sans-serif;
}
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    font-size: 20px;
    justify-items: center;
    justify-content: center;
}

.day {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
    font-family: "Manrope", sans-serif;
    color: rgba(255, 255, 255);
}

.day.empty {
    background: transparent;
}
.day.special {
    color: #fdfaf4;
}

.heart {
    position: absolute;
    bottom: 5px;
    right: -5px;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: -1;
}

.heart-img {
    width: 100%;
    height: 100%;
    display: block;
    animation: pulse2 2s infinite ease-in-out;
}
@keyframes pulse2 {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.program {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    padding-top: 50px ;
    background-color: rgba(255, 255, 255, 0.5);
}
.time-line-svg svg{
    width: 100%;
    height: 100%;
}
.program .container {
    text-align: center;

}
.time-line-svg {
    width: 320px;
    margin: 0 auto;
    position: relative;
}

.time-line-svg svg {
    position: relative;

    width: 400px;

    margin: 0 auto;
}
#timelineSvg{
    width: 100%;
    height: auto;
}

#timelinePath{
    fill: none;

    stroke: #f9595f;

    stroke-width: 2;

    stroke-linecap: round;
}

.heart-svg img{
    width: 50px;
    height: 50px;
}
.heart-svg{
    position: absolute;

    left: 0;
    top: 0;

    font-size: 34px;

    transform: translate(-50%, -50%);

    z-index: 10;

    pointer-events: none;

    transition: transform .05s linear;
}

.event-one {
    position: absolute;
    top: 95px;
    left: -85px;
}
.event-two {
    position: absolute;
    top: 345px;
    right: -85px;
}
.event-three {
    position: absolute;
    bottom: 230px;
    left: -85px;
}
.event-four {
    position: absolute;
    bottom: 10px;
    right: -85px;
}




.time-info {
    width: 300px;
    height: 165px;


}
.time-info a {
    text-decoration: none;
    color: #57524e;
    font-weight: bold;
}


.description span{
    white-space: nowrap;
    font-size: 23px;
    font-weight: bold;
    font-family: "Fog", sans-serif;
}
.time-info-time {
    margin-bottom: -15px;
    font-size: 36px;
    font-weight: bold;
    font-family: "Fog", sans-serif;
}


.description {
    font-size: 18px;
    margin-top: 15px;
    font-family: "Manrope", sans-serif;


}

.time-info .text {
    font-size: 16px;
}

.icon.first img {
    width: 160px;
}


.details {
    background-image: url(./images/photo3_milky.png);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    background-position: center;
    overflow: hidden;
    text-align: center;
    margin-top: -25px;
    padding: 50px 0;
}
.details .dresscode-info-text {
    color: black;
}
.dresscode-info-text {
    margin-top: 30px;
    text-align: left;
    margin-bottom: 120px;
    font-family: "Manrope", sans-serif;
    color: black;
    position: relative;
    z-index: 55555;
    font-size: 18px;
}
.dresscode-info-text:last-child {
    margin-bottom: 20px;
}
.number {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translate(-50%);
    font-size: 180px;
    font-family: "Fog", sans-serif;
    color: rgba(204, 204, 204, 0.5);
    z-index: -1;
}
.dresscode-info-text span {
    text-align: left;
    display: block;
    font-family: "Fog", sans-serif;
}


.location {
    padding-top: 50px;
    padding-bottom: 32px;
    text-align: center;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}
.location.fotka {
    padding-top: 0;
    padding-bottom: 50px;
    text-align: center;
    overflow: hidden;
    background-image: url("images/loc.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    height: 450px;
}
.location.fotka::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}


.fa-solid, .fas {
    margin-right: 10px;
}

.location-info p{
    font-size: 18px;
    font-family: "Manrope", sans-serif;
    margin-bottom: 30px;
    color: white;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-top: 20px;
    margin-left: 20px;
}
.location-info a {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%);
    z-index: 1;
    text-decoration: none;
    outline: none;
    color: white;
    border: 1px solid white;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 30px;
    width: 90%;
    font-size: 23px;
    display: inline-block;
    cursor: pointer;
}
.palette {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.palette span {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--swatch);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 18px rgba(41, 29, 20, 0.16);
}



.final {
    max-width: 500px;
    height: 600px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.final-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, rgba(17, 13, 10, 0.25), rgba(17, 13, 10, 0.72));
}

.final-content {
    position: relative;
    z-index: 2;
    color: #fff;
    min-height: inherit;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 400px 0 0 0;
}

.final-content h3 {
    font-family: "Fog", serif;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1;
    margin-bottom: 8px;
}

.final-content p {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.presence {
    padding-bottom: 0px;
    padding-top: 0px;
    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;
    margin-bottom: 8px;
}
.timout {
    padding-top: 50px;
    padding-bottom: 50px;
    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.2); !* Прозрачный чёрный *!*/
/*    z-index: 0;*/
/*}*/

#countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /*border: 1px solid #7a0f21;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
    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: black;
    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: black;
    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: 26px;
    fill: black;
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
}

.wedding-form * {
    box-sizing: border-box;
}

.wedding-form {
    color: black;
    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;
            color: white;
        }
    }
}

@supports (-webkit-appearance: none) {
    .wedding-form {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
        font-size: 30px;
        font-family: "Manrope", sans-serif;
    }

    fieldset {
        border: none !important;
        padding: 0;
    }

    legend {
        font-family: "Fog", sans-serif;
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #3f3731;
        font-size: 16px;
        background-color: white;
    }

    textarea {
        min-height: 100px;
    }

    .wedding-form 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; /* Убирает синюю рамку при фокусе */
        }
    }
}
@media (max-width: 900px) {


    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 54px 0;
    }

    .intro-content {
        width: calc(100% - 26px);
        padding: 40px 15px;
    }

    .hero {
        width: 100%;
    }

    .dresscode-wrap,
    .countdown-wrap {
        border-radius: 20px;
        padding: 24px 14px;
    }





    .section-text {
        font-size: 18px;
    }


}

@media (max-width: 510px) {
    .event-one {
        top: 105px;
        left: -45px;
    }
    .event-two {
        top: 355px;
        right: -45px;
    }
    .event-three {
        bottom: 205px;
        left: -45px;
    }
    .event-four {
        bottom: 20px;
        right: -70px;
    }
    .time-info-time {
        font-size: 30px;
    }
    .description span {
        font-size: 20px;
    }
    .description {
        font-size: 15px;
    }
    .dresscode-info-text span {
        font-size: 20px;
        font-family: "Fog", sans-serif;
    }
    .dresscode-info-text, .presence-text {
        font-size: 18px;
    }
    .wedding-form {
        font-size: 18px;
    }

}

@media (max-width: 389px) {

    .event-four {
        bottom: -5px;
        right: -40px;
    }
}
