:root {
    --blue: #91b0d1;
    --blue-dark: #536070;
    --light: #f7fbff;
    --text: #3f4650;
    --muted: #7f8790;
    --border: #d9e4ef;
    --bg: #ffffff;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    overflow: hidden;
    background: #fff;
}

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

.container_wide {
    width: calc(100% - 20px);
    max-width: 100%;
}

.section {
    padding: 70px 0;
    position: relative;
}

.title {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
    color: var(--blue-dark);
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
}

.script {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    color: var(--blue);
    text-transform: none;
    font-size: clamp(36px, 5vw, 64px);
    line-height: .9;
}

.decor-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px auto;
    color: var(--blue);
}

.decor-line::before,
.decor-line::after {
    content: "";
    width: 58px;
    height: 1px;
    background: var(--blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 34px;
    border: 1px solid var(--blue);
    color: var(--blue-dark);
    background: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 13px;
    border-radius: 4px;
    transition: .25s;
    cursor: pointer;
}

.btn:hover {
    background: var(--blue);
    color: #fff;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.hero {
    min-height: 760px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: linear-gradient(90deg, #eef5fb 0%, #fff 100%);
}

.hero-photo {
    height: 100%;
    min-height: 620px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.flower {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.flower-top {
    top: 0;
    right: 0;
    width: 360px;
}

.flower-bottom {
    right: 0;
    bottom: 0;
    width: 270px;
}

.hero-box {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: .36em;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 54px;
}

.names {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(64px, 7vw, 104px);
    line-height: 1.12;
    font-weight: 400;
    color: #4f5662;
}

.names span {
    display: block;
}

.names i {
    display: block;
    font-size: .7em;
    color: var(--blue);
    font-style: italic;
    line-height: .7;
}

.date {
    margin-top: 36px;
    text-transform: uppercase;
    letter-spacing: .28em;
    font-family: var(--serif);
    color: #505865;
    font-size: 18px;
}

.hero-text {
    margin-top: 26px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    color: #6d7480;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 82px);
    min-height: 88px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #56606c;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 12px;
    font-weight: 600;
}

.menu_item_img {
    max-width: 45px;
    max-height: 45px;
}

.nav svg {
    width: 30px;
    height: 30px;
    stroke: var(--blue);
}

.story-grid {
    display: grid;
    grid-template-columns: .8fr 1.6fr;
    gap: 70px;
    align-items: center;
}

.story-text p {
    max-width: 310px;
    margin: 28px 0 0;
    font-size: 16px;
    color: #56606c;
}

.photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: center;
}

.photo-card {
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(70, 90, 120, .16);
    transform: rotate(-3deg);
}

.photo-card:nth-child(2) {
    transform: rotate(0);
}

.photo-card:nth-child(3) {
    transform: rotate(4deg);
}

.photo-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.program {
    background: #eef7ff url(images/program_items_bg.jpeg);
    border-radius: 8px;
    padding: 54px 34px;
    border: 1px solid #e5eff8;
    /* position: relative;
    overflow: hidden; */
}

.program .title-small,
.rsvp .title-small {
    text-align: center;
}

.title-small {
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    color: var(--blue-dark);
    margin: 0;
    text-transform: uppercase;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 44px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 10%;
    right: 10%;
    border-top: 2px dashed #a9c3dc;
    z-index: 0;
}

.time-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.icon-circle {
    width: 88px;
    height: 88px;
    margin: 0 auto 15px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    background: #f8fcff;
    display: grid;
    place-items: center;
}

.icon-circle img {
    width: 50px;
}

.icon-circle svg {
    width: 42px;
    height: 42px;
    stroke: var(--blue);
}

.time {
    font-size: 17px;
    margin-bottom: 6px;
    color: #3f4650;
}

.time-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.decore001 {
    top: 0;
    left: -40px;
    width: auto;
    height: 100%;
}
.decore002 {
    top: 0;
    left: auto;
    right: -40px;
    width: auto;
    height: 100%;
}

.decore003 {
    left: auto;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;  
}
.info-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 70px;
    align-items: center;
}

.place {
    display: grid;
    grid-template-columns: .9fr 1fr;
    gap: 50px;
    align-items: center;
}

.place-name {
    color: var(--blue);
    font-family: var(--serif);
    font-size: 24px;
    margin: 20px 0 14px;
}

.place-photo img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.dress {
    border-left: 1px solid var(--border);
    padding-left: 60px;
}

.palette {
    display: flex;
    gap: 14px;
    margin: 26px 0;
}

.color {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d8dde4;
}

.c1 { background: #b9cce0; }
.c2 { background: #d5dce6; }
.c3 { background: #f7f7f5; }
.c4 { background: #e8e1d8; }
.c5 { background: #33485d; }

.dress-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
    color: #56606c;
}

.dress-row img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.rsvp {
    margin-bottom: 60px;
    background: #eef7ff url(images/rsvp_bg.png);
    border: 1px solid #e5eff8;
    border-radius: 8px;
    padding: 58px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rsvp p {
    margin: 18px 0 28px;
    color: #56606c;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto 24px;
}

.form input,
.form select {
    width: 100%;
    min-height: 54px;
    border: 1px solid #bfd0e2;
    border-radius: 4px;
    background: #fff;
    padding: 0 18px;
    color: #56606c;
    font-size: 15px;
    outline: none;
}

.form input:focus,
.form select:focus {
    border-color: var(--blue);
}

.program_bg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decore004 {
    top: 0;
    left: 0;
    width: auto;
    height: 100%;  
}
.decore005 {
    /* top: 50%; */
    left: auto;
    right: clamp(30px, 10vw, 15%);
    /* transform: translateY(-50%); */
    width: auto;
    height: 60%;  
}

.rsvp > *:not(.program_bg) {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero {
    grid-template-columns: 1fr;
    }

    .hero-photo {
    min-height: 520px;
    }

    .nav-list {
    flex-wrap: wrap;
    padding: 20px 0;
    gap: 24px;
    }

    .story-grid,
    .info-grid,
    .place {
    grid-template-columns: 1fr;
    }

    .dress {
    border-left: 0;
    padding-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
    width: min(100% - 24px, 1180px);
    }

    .section {
    padding: 48px 0;
    }

    .hero-photo {
    min-height: 420px;
    }

    .hero-content {
    padding: 70px 20px;
    }

    .flower-top {
    width: 230px;
    }

    .flower-bottom {
    width: 180px;
    }

    .photos {
    grid-template-columns: 1fr;
    }

    .photo-card {
    transform: none !important;
    }

    .timeline {
    grid-template-columns: 1fr;
    }

    .timeline::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    height: 100%;
    border-top: 0;
    border-left: 2px dashed #a9c3dc;
    }

    .time-item {
    background: transparent;
    }

    .form {
    grid-template-columns: 1fr;
    }

    .nav a {
    font-size: 11px;
    }
    .decore001, 
    .decore002 {
        top: auto;
        bottom: 0;
        max-height: 400px;
    }
}