:root {
    --color-rose: #d8a8a4;
    --color-rose-light: #f1ddd9;
    --color-beige: #efe3d3;
    --color-milk: #fbf7f1;
    --color-green: #92a187;
    --color-text: #3e3a39;
    --color-text-soft: #7a7370;

    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', 'Manrope', sans-serif;

    --container-width: 880px;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-milk);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--color-green);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 560px;
}

/* ---------- ШАПКА ---------- */

.site-header {
    background: var(--color-milk);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-header__logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.site-header__logo:hover {
    text-decoration: none;
    color: var(--color-rose);
}

.site-nav__list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-text);
    border-bottom-color: var(--color-rose);
    text-decoration: none;
}

.site-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

@media (max-width: 640px) {
    .site-nav__toggle {
        display: flex;
    }
    .site-nav__list {
        display: none;
        position: absolute;
        right: 20px;
        top: 100%;
        background: var(--color-milk);
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: var(--radius);
        flex-direction: column;
        gap: 0;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .site-nav__list.is-open {
        display: flex;
    }
    .site-nav__list a {
        padding: 10px 14px;
        border-bottom: none;
        border-radius: 8px;
        display: block;
    }
    .site-nav__list a.is-active,
    .site-nav__list a:hover {
        background: var(--color-rose-light);
    }
}

/* ---------- ГЕРОЙ ---------- */

.hero {
    background: linear-gradient(180deg, var(--color-rose-light) 0%, var(--color-milk) 100%);
    padding: 64px 0;
    text-align: center;
}

.hero--small {
    padding: 40px 0;
}

.hero--photo {
    position: relative;
    padding: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(62,58,57,0.35) 0%, rgba(62,58,57,0.55) 100%);
}

.hero--photo .hero__inner {
    position: relative;
    z-index: 1;
    padding: 64px 0;
}

.hero--photo .hero__eyebrow {
    color: rgba(255,255,255,0.85);
}

.hero--photo .hero__date,
.hero--photo .hero__guest {
    color: rgba(255,255,255,0.92);
}

.hero--photo .hero__title {
    color: #fff;
}

@media (min-width: 641px) {
    .hero--photo {
        min-height: 70vh;
    }
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--color-text-soft);
    margin-bottom: 10px;
}

.hero__title {
    margin-bottom: 6px;
}

.hero__date {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    margin-bottom: 0;
}

.hero__guest {
    margin-top: 16px;
    font-size: 1.1rem;
}

/* ---------- СЕКЦИИ ---------- */

.section {
    padding: 56px 0;
    animation: fadeIn 0.6s ease-out both;
}

.section--center {
    text-align: center;
}

.section--accent {
    background: var(--color-beige);
}

.section__title {
    margin-bottom: 1em;
}

.section--center .section__title {
    text-align: center;
}

.lead {
    font-size: 1.15rem;
}

.prose p {
    margin-bottom: 1em;
}

.prose.timing p {
    font-family: var(--font-body);
    white-space: pre-line;
}

.muted {
    color: var(--color-text-soft);
    font-size: 0.92rem;
}

/* ---------- ФОТО В БЛОКАХ ---------- */

.story-photo {
    margin: 0 0 28px;
    text-align: center;
}

.story-photo img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.story-photo--end {
    margin: 28px 0 0;
}

.palette-photo {
    margin: 0 0 24px;
}

.palette-photo img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.palette-groups {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    text-align: left;
}

@media (min-width: 641px) {
    .palette-groups {
        grid-template-columns: repeat(3, 1fr);
    }
}

.palette-group h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--color-text);
}

.palette-group p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- ГРИДЫ И КАРТОЧКИ ---------- */

.grid {
    display: grid;
    gap: 20px;
}

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

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

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.card h3 {
    margin-bottom: 0.4em;
}

.card__time {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-rose);
    margin-bottom: 0.2em;
}

.link-arrow {
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}

/* ---------- ПАЛИТРА ---------- */

.palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.palette__swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #fff;
}

.palette__swatch--rose  { background: var(--color-rose); }
.palette__swatch--beige { background: var(--color-beige); }
.palette__swatch--milk  { background: var(--color-milk); border: 2px solid #eee; }
.palette__swatch--green { background: var(--color-green); }

/* ---------- КНОПКИ ---------- */

.btn {
    display: inline-block;
    background: var(--color-rose);
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
    background: #cf9590;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(216,168,164,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-rose);
}

.btn--outline:hover {
    background: var(--color-rose-light);
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

.invite-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
}

/* ---------- ФОРМЫ ---------- */

.rsvp-deadline {
    text-align: center;
    color: var(--color-text-soft);
    margin-bottom: 1.5em;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.field input[type="text"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
}

.field input[disabled] {
    background: var(--color-beige);
    color: var(--color-text-soft);
}

.field textarea {
    resize: vertical;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio,
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}

.radio:has(input:checked),
.checkbox:has(input:checked) {
    border-color: var(--color-rose);
    background: var(--color-rose-light);
}

.radio input,
.checkbox input {
    accent-color: var(--color-rose);
}

.conditional-block {
    transition: opacity 0.2s;
}

.conditional-block.is-hidden {
    display: none;
}

/* ---------- УВЕДОМЛЕНИЯ ---------- */

.alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert--success {
    background: #e7efe2;
    color: #4d5e44;
}

.alert--error {
    background: #f6e3e1;
    color: #8a3b34;
}

.alert--error p {
    margin: 0;
}

/* ---------- ПОДВАЛ ---------- */

.site-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.site-footer__contact {
    margin-top: 6px;
}
