:root {
    --wine: #713746;
    --wine-dark: #512631;

    --cream: #fff8ef;
    --gold: #c59a5c;

    --text: #3f3030;
    --white: #ffffff;
}


/* =========================
   БАЗА
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--text);

    font-family: "Manrope", sans-serif;

    /*
     * ФОНОВАЯ КАРТИНКА
     *
     * Она повторяется по всей странице.
     */
    background-image:
        linear-gradient(
            rgba(255, 248, 239, 0.84),
            rgba(255, 248, 239, 0.84)
        ),
        url("images/background.jpg");

    background-repeat: repeat;

    background-size: auto;

    background-attachment: fixed;
}


/* =========================
   ОСНОВНАЯ КАРТОЧКА
========================= */

.page {
    max-width: 900px;

    margin: 0 auto;

    background: rgba(255, 248, 239, 0.95);

    box-shadow:
        0 0 60px rgba(60, 30, 30, 0.20);
}


/* =========================
   ГЛАВНЫЙ ЭКРАН
========================= */

.hero {
    min-height: 570px;

    padding: 90px 40px 70px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at top,
            rgba(255,255,255,0.20),
            transparent 55%
        ),
        var(--wine);

    color: white;

    position: relative;

    overflow: hidden;
}


/* Декоративные круги */

.hero::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border: 1px solid rgba(255,255,255,0.20);

    border-radius: 50%;

    top: -160px;
    left: -160px;
}

.hero::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 50%;

    right: -190px;
    bottom: -190px;
}


.hero-decoration {
    font-size: 45px;

    margin-bottom: 20px;
}


.small-title {
    font-size: 13px;

    letter-spacing: 5px;

    opacity: 0.8;

    margin: 0 0 30px;
}


.hero h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(42px, 7vw, 74px);

    line-height: 0.95;

    font-weight: 600;

    margin: 0;

    letter-spacing: 1px;
}


.hero-line {
    width: 90px;

    height: 1px;

    background: var(--gold);

    margin: 35px 0 25px;
}


.hero-date {
    font-family: "Cormorant Garamond", serif;

    font-size: 28px;

    margin: 0;
}


/* =========================
   КОНТЕНТ
========================= */

.content {
    padding: 70px;
}


/* =========================
   ВСТУПЛЕНИЕ
========================= */

.intro {
    max-width: 700px;

    margin: 0 auto 65px;

    text-align: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 25px;

    line-height: 1.45;
}


.intro p {
    margin: 0 0 22px;
}


.intro .lead {
    font-size: 35px;

    font-weight: 600;

    color: var(--wine);
}


/* =========================
   ОБЩАЯ ФОТОГРАФИЯ
========================= */

.family-photo {
    max-width: 760px;

    margin: 0 auto 75px;

    text-align: center;
}


.photo-frame {
    padding: 12px;

    background: white;

    box-shadow:
        0 20px 45px rgba(70, 40, 40, 0.18);

    transform: rotate(-1deg);

    position: relative;
}


/*
 * Маленький декоративный уголок
 */

.photo-frame::before {
    content: "❤️";

    position: absolute;

    z-index: 2;

    right: -12px;
    top: -20px;

    font-size: 35px;

    transform: rotate(8deg);
}


.photo-frame img {
    display: block;

    width: 100%;

    max-height: 600px;

    object-fit: cover;
}


.photo-text {
    margin: 25px 0 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 23px;

    color: var(--wine);
}


/* =========================
   БЛОК ДАТЫ И МЕСТА
========================= */

.event-card {
    text-align: center;

    background: var(--wine);

    color: white;

    padding: 60px 35px;

    margin-bottom: 75px;

    box-shadow:
        0 20px 40px rgba(60, 30, 30, 0.18);

    position: relative;

    overflow: hidden;
}


.event-card::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 50%;

    top: -125px;
    right: -125px;
}


.section-icon {
    font-size: 38px;

    margin-bottom: 15px;
}


.event-card h2,
.program h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: 33px;

    letter-spacing: 2px;

    margin: 0 0 25px;
}


.event-date {
    font-family: "Cormorant Garamond", serif;

    font-size: 58px;

    font-weight: 600;

    color: #f3d9a6;
}


.event-time {
    margin-top: 5px;

    line-height: 1.7;

    opacity: 0.9;
}


.place {
    display: flex;

    flex-direction: column;

    margin-top: 28px;

    font-size: 17px;

    line-height: 1.6;
}


.place strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 30px;
}


/* =========================
   КНОПКИ
========================= */

.buttons {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


.button {
    display: inline-block;

    padding: 13px 23px;

    border-radius: 30px;

    background: white;

    color: var(--wine);

    text-decoration: none;

    font-weight: 600;

    transition: 0.2s ease;
}


.button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.18);
}


.button-light {
    background: transparent;

    color: white;

    border: 1px solid rgba(255,255,255,0.5);
}


/* =========================
   ПРОГРАММА
========================= */

.program {
    text-align: center;

    margin-bottom: 75px;
}


.program h2 {
    color: var(--wine);
}


.program-list {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 12px;
}


.program-item {
    padding: 20px 8px;

    background: rgba(255,255,255,0.70);

    border: 1px solid rgba(113,55,70,0.12);
}


.program-item span {
    font-size: 30px;
}


.program-item p {
    margin: 10px 0 0;

    font-size: 13px;
}


/* =========================
   ФИНАЛ
========================= */

.final {
    text-align: center;

    padding: 65px 30px;

    border-top: 1px solid rgba(113,55,70,0.15);
}


.final-decoration {
    font-size: 32px;

    margin-bottom: 15px;
}


.final h2 {
    font-family: "Cormorant Garamond", serif;

    font-size: 45px;

    line-height: 1;

    color: var(--wine);

    margin: 0;
}


.final p {
    font-family: "Cormorant Garamond", serif;

    font-size: 25px;
}


.final-emoji {
    font-size: 40px;
}


/* =========================
   FOOTER
========================= */

footer {
    text-align: center;

    padding: 25px;

    background: var(--wine-dark);

    color: rgba(255,255,255,0.8);

    font-family: "Cormorant Garamond", serif;

    font-size: 20px;
}


/* =========================
   ТЕЛЕФОН
========================= */

@media (max-width: 700px) {

    .hero {
        min-height: 500px;

        padding: 70px 25px 55px;
    }


    .small-title {
        font-size: 10px;

        letter-spacing: 3px;
    }


    .hero h1 {
        font-size: clamp(37px, 11vw, 58px);
    }


    .hero-date {
        font-size: 23px;
    }


    .content {
        padding: 50px 20px 30px;
    }


    .intro {
        font-size: 22px;
    }


    .intro .lead {
        font-size: 29px;
    }


    .family-photo {
        margin-bottom: 60px;
    }


    .photo-frame {
        transform: rotate(0);
    }


    .photo-frame img {
        max-height: none;

        aspect-ratio: auto;
    }


    .photo-text {
        font-size: 21px;
    }


    .event-card {
        padding: 45px 20px;
    }


    .event-card h2,
    .program h2 {
        font-size: 28px;
    }


    .event-date {
        font-size: 48px;
    }


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


    .program-item:last-child {
        grid-column: span 2;
    }


    .final h2 {
        font-size: 36px;
    }

}

footer small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.45;
}
