/* ====== Fonts ====== */
@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0530-058F, U+0590-05FF;
}

@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0530-058F, U+0590-05FF;
}

@font-face {
    font-family: "MyFont";
    src: url("./fonts/PlayfairDisplay-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0530-058F, U+0590-05FF;
}

/* ====== Reset & Base Styles ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.hide-bg::before {
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
}

body::before {
    opacity: 0.5;
    transition: opacity 1s;
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: url('./images/jemchug.jpg') center center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

#main-content, .main-content {
    position: relative;
    z-index: 1;
}


/* ====== Loading Envelope Animation ====== */
.loading-screen {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, #f7f6f4 60%, #eceae7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s;
}

.loading-envelope-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: 100vw;
}

.loading-title-block {
    text-align: center;
    /*margin-bottom: 2vw;*/
}

.loading-title {
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-style: italic;
    font-size: 2.5rem;
    color: #444;
    letter-spacing: 0.04em;
}

.envelope-container {
    position: relative;
    width: 660px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.envelope-base {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.envelope-flap {
    position: absolute;
    left: 8%;
    top: 7%;
    width: 84%;
    height: auto;
    z-index: 3;
    transform-origin: 50% 0;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
    user-select: none;
}

.envelope-flap.opened {
    transform: rotateX(110deg) scaleY(0.85);
}


.envelope-open-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50%;
    z-index: 5;
    padding: 0.7em 2.2em;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    background: #bfa77a;
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(191, 167, 122, 0.13);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
}

.envelope-open-btn:hover, .envelope-open-btn:focus {
    background: #a48d5c;
    box-shadow: 0 4px 18px rgba(191, 167, 122, 0.18);
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s;
}


/* ====== Hero Section Styles ====== */
.hero-section {
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 1rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: 200;
    color: #222;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 2vw;
}

.hero-photo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2vw auto;
}

.hero-photo-main {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 5/6;
    height: auto;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(44, 62, 80, 0.10);
    display: block;
}

.hero-date-vertical {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #fff;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
    letter-spacing: 0.08em;
}

.hero-names {
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-size: 2.5rem;
    font-style: italic;
    color: #222;
    letter-spacing: 0.08em;
    font-weight: 400;
    text-align: center;
    margin-top: 2vw;
}

.hero-amp {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #bfa77a;
}

/* ====== Invite Section Styles ====== */
.invite-section {
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 2rem 1rem;
    box-sizing: border-box;
}

.invite-title {
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.invite-text {
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #444;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ====== Calendar Block Styles (адаптив + анимация) ====== */
.calendar-block {
    background: none;
    border-radius: 24px;
    padding: 2rem 1rem 1rem 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.calendar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
}

.calendar-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-size: 1.1rem;
    color: #888;
    margin: 2rem 0 1.5rem 0;
    gap: 1.2em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.2em;
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-size: 1.2rem;
    color: #222;
}

.calendar-day {
    width: 2.2em;
    height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;

    transition: background 0.2s, color 0.2s;
    position: relative;
    box-sizing: border-box;
}

.calendar-day.selected {
    color: #fff;
    position: relative;
    z-index: 100;
    text-align: center;
}

.calendar-heart {
    position: absolute;
    width: 4em;
    height: 3em;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heart-beat 7s infinite, alternate;
    z-index: -1;
    pointer-events: none;
}

.heart-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 8px #bfa77a) drop-shadow(0 0 16px #fff);
}

.heart-number {
    position: relative;
    z-index: 2;
    color: #bfa77a;
    font-size: 1em;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
    width: 100%;
    line-height: 1.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== Heart Animation Styles ====== */
@keyframes heart-beat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}


/* ====== Photo Section Styles ====== */
.photo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0 3rem 0;
    background: transparent;
}

.photo-frame {
    position: relative;
    background: none;
    border-radius: 24px;
    box-shadow: none;
    overflow: visible;
    padding: 0;
    max-width: 400px;
    width: 100%;
    min-height: 520px;
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 2s cubic-bezier(0.23, 1, 0.32, 1), transform 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.photo-frame.photo-visible {
    opacity: 1;
    transform: none;
}

.photo-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border-radius: 28px;
    z-index: 1;
    pointer-events: none;
}

.photo-bg.bg1 {
    background: #e6e3df;
    transform: translate(-50%, -50%) rotate(-7deg);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.06);
}

.photo-bg.bg2 {
    background: #dedad6;
    transform: translate(-50%, -50%) rotate(6deg);
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.04);
}

.main-photo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
}

/* ====== Location Section Styles ====== */
.location-section {
    padding: 4rem 0;
    background: transparent;
    text-align: center;
}

.location-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: lighter;
    color: #4a4a4a;
    margin-bottom: 0.2em;
    letter-spacing: 0.04em;
}

.location-subtitle {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #888;
    margin-top: 0.2em;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: stretch;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.location-item {
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location_img {
    width: 100px;
    height: 100px;
}

.location_img img {
    width: 100%;
    /* height: 100%;  // Удалено как неиспользуемое */
}

.location-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(1) hue-rotate(340deg) saturate(1);
    transition: filter 0.16s;
}

.location-text {
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-size: 1.1rem;
    color: #333;
}

.location-btn {
    background: linear-gradient(90deg, #bfa77a 0%, #bfa77a 60%, #fffbe6 100%);
    color: #222;
    border: none;
    border-radius: 24px;
    padding: 0.8em 2.2em;
    font-size: 1.1rem;
    font-family: "GHEA Mariam", "Arial", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s;
    cursor: pointer;
    text-decoration: none;
    margin-top: 1.2rem;
    box-shadow: 0 2px 8px rgba(191, 167, 122, 0.09);
    outline: none;
}

.location-btn:hover, .location-btn:focus {
    background: #bfa77a;
    color: #222;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.13);
    border-color: #bfa77a;
}

/* Timing Section Styles (увеличенные размеры) */
.timing-section {
    text-align: center;
    padding: 80px 0;
    background: transparent;
}

.timing-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: lighter;
    color: #4a4a4a;
    margin-bottom: 0.2em;
    letter-spacing: 0.04em;
}

.timing-special {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    display: block;
    margin-top: -0.5em;
    color: #888;
}

.timing-timeline {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
    padding: 60px 0;
}

.timing-item {
    position: relative;
    margin-bottom: 10px;
}

.timing-time {
    font-size: 2.8rem;
    margin-top: 18px;
}

.timing-desc {
    margin-top: 16px;
    font-size: 1.4rem;
    color: #222;
    opacity: 0.9;
}

.timing-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #bfa77a;
    font-weight: bold;
    line-height: 1;
    height: 60px;
    width: 100%;
    margin: 0 auto 10px auto;
    letter-spacing: 0.1em;
    font-family: 'Playfair Display', serif;
}

.timing-item:last-child .timing-dot {
    color: #bfa77a;
    opacity: 0.7;
}

/* Dress Code Section Styles */
.dresscode-section {
    text-align: center;
    padding: 80px 0;
    background: transparent;
}

.dresscode-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: lighter;
    color: #4a4a4a;
    margin-bottom: 0.2em;
    letter-spacing: 0.04em;
}


.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.dresscode-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1em;
    letter-spacing: 0.05em;
}


.color-palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.color-circle:hover {
    transform: scale(1.1);
}


/* RSVP Section Styles */
.rsvp-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0 80px 0;
    background: transparent;
}

.rsvp-form {
    padding: 48px 36px 36px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.rsvp-info p {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #222;
    font-family: 'Playfair Display', serif;
}

.rsvp-form hr {
    border: none;
    border-top: 1px solid #e5e1db;
    margin: 28px 0 24px 0;
}

.rsvp-group {
    margin: 28px 0 18px 0;
    text-align: left;
}

.rsvp-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 8px;
    display: block;
    font-family: 'Playfair Display', serif;
}

.rsvp-options {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsvp-options label {
    font-weight: 400;
    font-size: 1.05rem;
    color: #222;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsvp-form input[type="radio"],
.rsvp-form input[type="checkbox"] {
    accent-color: #bfa77a;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid #bfa77a;
    background: #fff;
    transition: box-shadow 0.2s;
}

.rsvp-btn {
    margin-top: 32px;
    background: #dfd996;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px 0;
    width: 100%;
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 12px rgba(191, 167, 122, 0.08);
    letter-spacing: 0.03em;
}

.rsvp-btn:hover {
    background: #bfa77a;
    color: #222;
}


/* Countdown Block Styles */
.countdown-block {
    text-align: center;
    padding: 70px 0 60px 0;
    background: transparent;
}

.countdown-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #222;
    margin-bottom: 36px;
    letter-spacing: 0.03em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: 'Playfair Display', serif;
}

.countdown-timer div {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-timer span {
    font-size: 2.8rem;
    font-weight: bold;
    color: #da9d2c;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}

.countdown-timer small {
    font-size: 1.1rem;
    color: #222;
    font-family: 'Playfair Display', serif;
    opacity: 0.85;
}

/*order*/

.order {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.order h2 {
    font-size: 24px;
    color: #333;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-form input {
    background: var(--white);
    width: 100%;
    padding: 12px 14px;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.2s;
}

.order-form button {
    background: rgba(104, 184, 27, 0.47);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.order-form button:hover {
    background: #91cc57;
}

.iti__flag-container {
    font-family: initial;
}

.iti--separate-dial-code .iti__selected-flag {
    background: initial !important;
}

.logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo {
    width: 150px;
}

.logo a {
    cursor: pointer;
}

.logo img {
    width: 100%;
}

@media (max-width: 900px) {
    body {
        background-attachment: fixed !important;
    }
}

@media (max-width: 768px) {
    .loading-photo-block {
        width: 80%;
    }

    .hero-section {
        padding: 0;
    }

    .calendar-block {
        width: 90%;
    }

    .color-circle {
        width: 60px;
        height: 60px;
    }

    .dresscode-text {
        font-size: 1.5rem;
    }

    .countdown-timer {
        gap: 16px;
    }

    .countdown-timer div {
        padding: 18px 8px 10px 8px;
        min-width: 56px;
    }

    .countdown-timer span {
        font-size: 2rem;
    }

    .countdown-block h2 {
        font-size: 1.3rem;
    }

}


@media (max-width: 600px) {
    .loading-monogram {
        left: 50%;
        bottom: 1%;
    }

    .calendar-block {

        max-width: 100%;
    }

    .calendar-title-row {
        font-size: 1.2rem;
    }

    .calendar-days-row {
        font-size: 0.95rem;

    }

    .calendar-grid {
        font-size: 1rem;

    }

    .calendar-day {
        width: 1.5em;
        height: 1.5em;
        font-size: 13px;
    }

    .photo-section {
        padding: 2rem 0 1.5rem 0;
    }

    .photo-frame {
        max-width: 65vw;
        min-height: 220px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
        padding: 0;
    }

    .main-photo {
        border-radius: 12px;
        width: 100%;
        max-width: 100vw;
        height: auto;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    }

    .photo-bg {
        border-radius: 14px;
    }

    .envelope-container {
        width: 98vw;
        height: 48vh;
    }

    .envelope-open-btn {
        padding: 0.5em 1.2em;
        font-size: 1rem;
        bottom: 30%;
    }
}

@media (max-width: 480px) {
    .loading-monogram {
        left: 50%;
        bottom: 1%;
        font-size: 1.2rem;
        line-height: 1;
    }

    .hero-photo-main {
        width: 90%;
    }

    .calendar-block {
        padding: 1rem 0.2rem 0.5rem 0.2rem;
        max-width: 80%;
    }

    .calendar-title-row {
        font-size: 1.2rem;
    }

    .calendar-days-row {
        font-size: 0.8rem;

    }

    .calendar-grid {
        font-size: 1rem;

    }

    .calendar-day {
        width: 1.5em;
        height: 1.5em;
        font-size: 13px;
    }

    .selected {
        font-size: 1rem;
    }

    .timing-title,
    .dresscode-title,
    .location-title {
        font-size: 3.5rem;
        margin-bottom: 0.2em;
        letter-spacing: 0.04em;
    }

    .envelope-open-btn {
        bottom: 50%;
    }
}


[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 2s;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}
