/* =========================
RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #8ba8887d;
    font-family: 'Montserrat', sans-serif;
    color: #4e4a43;
    overflow-x: hidden;
}

/* =========================
BACKGROUND GRAIN 8ba8887d цвет бг
========================= */

body:before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.06;
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    pointer-events: none;
}

/* =========================
MAIN LAYOUT
========================= */

.wrapper {
    width: 100%;
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

.cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

/* =========================
CARD
========================= */

.card {
    width: 340px;
    background: #fbf8f2;
    border: 2px solid #8ba888;
    position: relative;
    overflow: hidden;
}

/* =========================
TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: #2d3327;
}

.section {
    padding: 35px 35px;
}

.title-top {
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
    font-size: 14px;
}

.names {
    text-align: center;
    line-height: 0.95;
}

.names span {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    margin: 10px 0;
}

.date {
    text-align: center;
    margin-top: 25px;
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #777;
}

.section-title {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 25px;
    text-align: center;
}

.text {
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
    color: #5d5850;
}

.ra {
    gap: 20px;
    display: grid;
}

/* =========================
BOTANICAL DECOR
========================= */

.leaf-top {
    position: absolute;
    top: -20px;
    left: -10px;
    width: 180px;
    opacity: 0.2;
}

.leaf-bottom {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    opacity: 0.2;
}

/* =========================
IMAGE BLOCK
========================= */

.hero-image {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
INVITATION TEXT
========================= */

.invitation {
    padding: 45px 35px;
    text-align: center;
}

.invitation h2 {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 25px;
}

.invitation p {
    line-height: 1.9;
    font-size: 14px;
}

/* =========================
CALENDAR
========================= */

.calendar {
    margin-top: 40px;
    text-align: center;
}

.calendar h3 {
    font-size: 38px;
    margin-bottom: 25px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    font-size: 13px;
}

.calendar-grid span {
    padding: 5px;
}

.active-day {
    width: 32px;
    height: 32px;
    margin: auto;
    border-radius: 50%;
    background: #8ba888;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
TIMER
========================= */
.timer {
    display: flex;
    gap: 20px;
    font-family: Montserrat, sans-serif;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    font-size: 10px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #8ba888;
    padding: 15px;
    border-radius: 30px;
    min-width: 60px;
    width: 100%;
}

.timer-item span:first-child {
    font-size: 14px;
    font-weight: 500;
}


/* =========================
PROGRAM
========================= */

.program-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.program {
    padding: 40px 35px;
}

.program h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 35px;
}

.timeline-item {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
}

.time {
    width: 90px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    color: #2d3327;
}

.event {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    padding-top: 10px;
}

/* =========================
VENUE
========================= */

.venue-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin: 25px 0;
}

.address {
    text-align: center;
    line-height: 1.8;
    font-size: 18px;
}

/* =========================
PALETTE
========================= */

.palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 35px 0;
}

.palette span {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
}

/* =========================
MOODBOARD
========================= */

.moodboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.moodboard img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.dress-image {
    width: 100%;
    object-fit: cover;
}

/* =========================
BUTTON
========================= */

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 100px;
    background: #8ba888;
    color: white;
    text-decoration: none;
    text-align: center;
    margin-top: 25px;
    transition: 0.3s;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
}

.btn:hover {
    background: #5e6549;
}

/* =========================
FOOTER BLOCK #6c8b60 #7a8060
========================= */

.footer-block {
    background: #8ba888;
    color: white;
    text-align: center;
    padding: 60px 30px;
}

.footer-block h2 {
    color: white;
    font-size: 46px;
    line-height: 1.1;
}

/* =========================
SIDE TITLE
========================= */

.side-title {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: rotate(-90deg);
    transform-origin: left top;
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    color: #2d3327;
    letter-spacing: 2px;
}
