:root {
    --cream: #f5efe6;
    --paper: #fcf9f4;
    --ink: #49372e;
    --muted: #8b796c;
    --accent: #a17d65;
    --line: #d9c9b9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
.date-large,
.footer-names {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
}

em {
    font-weight: 400;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 10px;
    font-weight: 700;
}

/* Шапка сайта */

.site-header {
    height: 86px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
}

.monogram {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.monogram span {
    font-style: italic;
    color: var(--accent);
    font-size: 19px;
}

.site-header nav {
    display: flex;
    gap: 36px;
}

.site-header nav a {
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header nav a:hover,
.text-link:hover {
    color: var(--accent);
}

/* Первый экран */

.hero {
    min-height: 680px;
    min-height: calc(100svh - 86px);
    background: var(--cream);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px;
}

.hero-frame {
    width: min(100%, 1060px);
    min-height: 580px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 55px 20px;
}

.hero .eyebrow {
    margin-bottom: 30px;
}

.ornament {
    color: var(--accent);
    font-size: 30px;
    line-height: 1;
    margin-bottom: 18px;
}

h1 {
    font-size: clamp(58px, 9vw, 128px);
    line-height: 1.2;
    letter-spacing: -0.055em;
    margin: 0 0 12px;
}

h1 em {
    color: var(--accent);
    font-size: 0.8em;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.07em;
}

.hero-rule {
    width: 75px;
    height: 1px;
    background: var(--accent);
    margin: 35px auto 26px;
}

.date {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    margin: 0;
}

.day {
    font-size: 11px;
    letter-spacing: 0.23em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 5px;
}

.text-link {
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 42px;
}

.text-link span {
    margin-left: 8px;
}

.hero-corner {
    position: absolute;
    bottom: 24px;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.hero-corner-left {
    left: 6%;
}

.hero-corner-right {
    right: 6%;
}

/* Общие секции */

.section {
    padding: 130px 24px;
    text-align: center;
}

.section h2,
.location h2 {
    font-size: clamp(36px, 5vw, 65px);
    line-height: 1.35;
    letter-spacing: -0.035em;
    margin: 20px 0 38px;
}

.section h2 em,
.location h2 em {
    color: var(--accent);
}

.section-copy {
    max-width: 580px;
    margin: auto;
}

.section-copy p {
    margin-bottom: 22px;
}

.signature {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 25px;
    margin-top: 35px;
}

/* Панель с датой */

.date-panel {
    background: #e8dbcb;
    text-align: center;
    padding: 75px 20px;
}

.date-panel .eyebrow {
    margin-bottom: 10px;
}

.date-large {
    font-size: clamp(65px, 12vw, 150px);
    letter-spacing: -0.05em;
    line-height: 1.2;
    white-space: nowrap;
}

.date-large .slash {
    color: var(--accent);
    font-size: 0.7em;
    padding: 0 0.1em;
}

.date-panel > p:last-child {
    font-size: 12px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* Программа дня */

.schedule {
    background: var(--paper);
}

.section-intro {
    color: var(--muted);
}

.timeline {
    max-width: 700px;
    margin: 65px auto 0;
    text-align: left;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    border-top: 1px solid var(--line);
    padding: 25px 0;
}

.timeline-item:last-child {
    border-bottom: 1px solid var(--line);
}

.timeline-time {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    color: var(--accent);
}

.timeline-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 25px;
    font-weight: 400;
    margin: 0;
}

.timeline-content p {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

.schedule-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 24px;
}

/* Пожелания гостям */

.wishes {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.wishes .section-intro {
    max-width: 600px;
    margin: 0 auto;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px;
    max-width: 1100px;
    margin: 75px auto 0;
    text-align: center;
}

.wish-item {
    position: relative;
    padding: 25px 10px;
}

.wish-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 46px;
    font-style: italic;
    color: var(--accent);
    opacity: 0.65;
    margin-bottom: 20px;
}

.wish-item h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    margin-bottom: 22px;
}

.wish-item p {
    font-size: 13px;
    line-height: 2;
    color: var(--muted);
    margin: 0;
}

.wish-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -28px;
    top: 20%;
    height: 65%;
    width: 1px;
    background: var(--line);
}

/* Место проведения и карта */

.location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cream);
    min-height: 510px;
}

.location-content {
    padding: 95px max(35px, 9vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.location-content h2 {
    margin-bottom: 18px;
}

.location-content > p:not(.eyebrow) {
    max-width: 390px;
}

.button {
    background: var(--ink);
    color: white;
    text-decoration: none;
    display: inline-flex;
    gap: 25px;
    align-items: center;
    padding: 14px 24px;
    margin-top: 20px;
    font-size: 12px;
    transition: background 0.2s;
}

.button:hover {
    background: var(--accent);
}

.location-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 24px;
}

.map-area {
    position: relative;
    min-height: 450px;
    background: #e5dbd0;
}

.map-area iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
    display: block;
    filter: grayscale(0.5);
}

.map-notice {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(252, 249, 244, 0.96);
    padding: 9px 12px;
    font-size: 11px;
    line-height: 1.5;
}

/* Подвал */

.footer {
    text-align: center;
    padding: 100px 20px 55px;
}

.footer-names {
    font-size: clamp(40px, 7vw, 75px);
    margin: 10px 0;
}

.footer-names em {
    color: var(--accent);
}

.footer > p:nth-last-child(2) {
    font-size: 12px;
    letter-spacing: 0.2em;
}

.footer a {
    display: inline-block;
    margin-top: 40px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
    color: var(--muted);
}

/* Планшеты и телефоны */

@media (max-width: 850px) {
    .wishes-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 15px;
        margin-top: 45px;
    }

    .wish-item {
        padding: 30px 15px;
    }

    .wish-item:not(:last-child)::after {
        right: 20%;
        left: 20%;
        top: auto;
        bottom: 0;
        width: 60%;
        height: 1px;
    }

    .wish-number {
        font-size: 38px;
        margin-bottom: 10px;
    }

    .wish-item h3 {
        font-size: 27px;
    }
}

@media (max-width: 750px) {
    .site-header {
        height: 75px;
        padding: 0 22px;
    }

    .site-header nav {
        gap: 13px;
    }

    .site-header nav a {
        font-size: 9px;
        letter-spacing: 0;
    }

    .hero {
        min-height: 620px;
        padding: 20px;
    }

    .hero-frame {
        min-height: 565px;
    }

    .hero-subtitle {
        max-width: 240px;
    }

    .hero-corner {
        display: none;
    }

    .section {
        padding: 90px 22px;
    }

    .section h2 br {
        display: none;
    }

    .timeline {
        margin-top: 40px;
    }

    .timeline-item {
        grid-template-columns: 90px 1fr;
        gap: 12px;
    }

    .timeline-time {
        font-size: 27px;
    }

    .timeline-content h3 {
        font-size: 22px;
    }

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

    .location-content {
        padding: 80px 30px;
    }

    .map-area,
    .map-area iframe {
        min-height: 340px;
    }

    .date-panel {
        padding: 60px 10px;
    }
}

@media (max-width: 390px) {
    .site-header nav a {
        font-size: 8px;
    }

    .site-header nav {
        gap: 9px;
    }

    h1 {
        font-size: 53px;
    }

    .hero-frame {
        padding: 35px 10px;
    }

    .date-large {
        font-size: 58px;
    }
}
