@font-face {
    font-family: 'MyWeddingFont1';
    src: url('fonts/font2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyElegantFont2';
    src: url('fonts/font1.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyElegantFont3';
    src: url('fonts/font4.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MyElegantFont4';
    src: url('fonts/font4.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    color: #222;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('./images/ТойФото.JPG') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    opacity: 1;
}


.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.overlay-hero {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 0;
    width: 97%;
    box-sizing: border-box;
}

.event {
    margin: 25px;
    font-family: 'MyElegantFont2', cursive;
    font-size: 16px;
}

.name{
    margin: 25px;
    font-family: 'MyElegantFont2', cursive;
}

.arrow {
    margin-top: 0px;
    margin-bottom: 5px;
}

.arrow img {
    width: 40px; /* или любое другое значение */
    height: auto; /* сохраняет пропорции */
}

.greeting {
    position: relative;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-family: 'MyElegantFont3', cursive;
    margin-top: -263px;
    font-weight: bold;
}

.greeting-top {
    font-size: 22px;
}


.overlay-greeting {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.8rem 0.2rem;
    width: 106%;
    box-sizing: border-box;
    margin-top: 71px;
}

.greeting .overlay p {
    font-size: 1rem;
    font-weight: bold;
    line-height: 2;
}

.invite-text {
    font-size: 17px;
    font-weight: bold;
    line-height: 1.8;
    text-transform: uppercase;
    margin-bottom: 13px;
    font-family: 'MyWeddingFont2', serif;
    margin-top: 44px;
}

.flower-img img {
    max-width: 200px;
    width: 80%;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.hosts {
    margin-top: 1.5rem;
}

.host-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: -1.7rem;
}

.host-names {
    font-size: 51px;
    color: rgb(224, 177, 111);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    font-family: 'MyElegantFont2', cursive;
    line-height: 1.6;
    margin-bottom: 25px;
}

.event-info {
    margin-top: 2rem;
    text-align: center;
}

.event-title {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-family: 'MyElegantFont3', cursive;
}

.event-date{
    font-size: 42px;
    line-height: 1.6;
    margin: 0.3rem 0;
    font-family: 'MyElegantFont2', cursive;
    font-weight: bold;
}

.event-time {
    font-size: 19px;
    margin: 0.3rem 0;
    line-height: 1.6;
    font-family: 'MyElegantFont4', cursive;
    font-weight: bold;
    margin-bottom: 34px;
    color: black;
}

.event-location {
    font-size: 1rem;
    margin: 0.3rem 0;
    line-height: 1.6;
    font-family: 'MyElegantFont3', cursive;
    font-weight: bold;
    color: black;
}

.event-place {
    font-size: 49.6px;
    font-weight: bold;
    color: rgb(224, 177, 111);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    font-family: 'MyElegantFont2', cursive;
    margin-bottom: 14px;
    margin-top: 20px;
}

.event-place-type {
    font-size: 20px;
    font-weight: bold;
    color: black;
    font-family: 'MyElegantFont4', cursive;
    margin: 4px 0 24px;
}

.event-note {
    font-size: 1rem;
    margin-top: 1rem;
    font-family: 'MyElegantFont3', sans-serif;
    color: black;
    font-weight: bold;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
}

.map-icon {
    width: 85px;
    height: auto;
    border-radius: 16px;
}

.countdown-container {
    margin-top: 40px;
    padding: 16px;
    font-family: 'MyElegantFont3', cursive;
    color: #222;
    text-align: center;
}

.timer-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
}

.timer-blocks {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    padding: 2px 6px;
}

.time-block .num {
    font-size: 28px;
    font-weight: bold;
    color: #6e3b14;
    font-family: 'MyElegantFont2', cursive;
    line-height: 1;
}

.time-block .label {
    font-size: 16px;
    font-family: 'MyElegantFont3', serif;
    color: black;
    margin-top: 4px;
    font-weight: bold;
}

.colon {
    font-size: 20px;
    font-weight: bold;
    color: #6e3b14;
    margin: 0 3px;
}

.program {
    position: relative;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-family: 'MyElegantFont3', cursive;
    font-weight: bold;
    margin-top: -2px; /* ← корректное расстояние вниз */
}


.overlay-program {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
    border-radius: 0;
    box-sizing: border-box;
    transform: scaleX(1.05); /* Увеличивает ширину на 4% */
    transform-origin: center;
}

.program-line {
    position: relative;
    height: 250px; /* Достаточно места для абсолютных элементов */
}

.program-step {
    position: absolute;
}

/* === MICRO BLOCK === */
.step-micro {
    top: 0;
    left: 10px;
}

.micro-circle {
    position: absolute;
    top: 0;
    left: -1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #6e3b14;
    border: 2px solid #6e3b14;
}

.micro-line {
    position: absolute;
    top: 16px;
    left: 6px;
    width: 2px;
    height: 90px;
    background-color: #6e3b14;
}

.micro-img {
    position: absolute;
    top: -2px;
    left: 31px;
    width: 43px;
}

/* Текст фуршет */
.micro-text {
    position: absolute;
    top: -3px;
    left: 114px;
    width: 150px;
    text-align: center;
}


/* === FOYE BLOCK === */
.step-foye {
    top: 0;
    left: 200px;
}

.foye-circle {
    position: absolute;
    top: 102px;
    left: -192px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #6e3b14;
    border: 2px solid #6e3b14;
}

.foye-img {
    position: absolute;
    top: 86px;
    left: -154px;
    width: 43px;
}

.foye-text {
    position: absolute;
    top: 90px;
    left: -80px;
    width: 160px;
    text-align: center;
}

.rsvp-section {
    background-color: transparent;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 2rem auto;
    font-family: 'MyElegantFont3', cursive;
    color: #222;
}

.rsvp-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.rsvp-subtitle {
    font-size: 17px;
    margin-bottom: 1.2rem;
    color: #444;
}

.rsvp-label {
    font-size: 17px;
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.rsvp-hint {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 4px;
    font-family: 'MyElegantFont3', cursive;
}

.rsvp-form input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    font-size: 14px;
    border: none;
    border-bottom: 2px solid #6e3b14;
    margin-bottom: 1.2rem;
    background: transparent;
    outline: none;
    font-family: 'MyElegantFont3', cursive;
}

.rsvp-options {
    text-align: left;
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.rsvp-options label {
    display: block;
    margin: 0.6rem 0;
}

.rsvp-button {
    background-color: #6e3b14;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'MyElegantFont3', cursive;
}

.rsvp-note {
    font-size: 19px;
    margin-top: 1.2rem;
    color: black;
    font-family: 'MyElegantFont4', cursive;
    font-weight: bold;
}

.rsvp-end{
    font-size: 29px;
    margin-top: 4.2rem;
    color: rgb(224, 177, 111);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
    font-family: 'MyElegantFont2', sans-serif;
    font-weight: bold;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 1.2s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 1s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 1s ease-out;
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.play-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 100px;
    height: 100px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.play-button .music-label {
    position: absolute;
    top: -4px;   /* смещает вверх */
    left: -239px;  /* смещает влево */
    width: 128px;
}

.play-button .music-icon {
    position: absolute;
    top: 20px;       /* в пределах кнопки */
    left: -228px;
    width: 103px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-effect {
    animation: pulse 0.6s ease;
}


@media (max-width: 480px) {
    .name {
        font-size: 36px;
        color: rgb(224, 177, 111);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }

    .event {
        font-size: 36px;
        color: rgb(224, 177, 111);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }

    .arrow {
        font-size: 1.2rem;
    }

    .greeting .overlay p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .hero, .greeting, .program {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
    }

    body::before {
        background-attachment: scroll;
        background-position: top center;
    }
}
