/* cormorant-garamond-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/cormorant-garamond-v21-cyrillic_latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/cormorant-garamond-v21-cyrillic_latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* cormorant-garamond-600 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/cormorant-garamond-v21-cyrillic_latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/cormorant-garamond-v21-cyrillic_latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* playfair-display-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/playfair-display-v40-cyrillic_latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/playfair-display-v40-cyrillic_latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* playfair-display-italic - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/playfair-display-v40-cyrillic_latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/playfair-display-v40-cyrillic_latin-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* playfair-display-600 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/playfair-display-v40-cyrillic_latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/playfair-display-v40-cyrillic_latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* playfair-display-700 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/playfair-display-v40-cyrillic_latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* great-vibes-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/great-vibes-v21-cyrillic_latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/great-vibes-v21-cyrillic_latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --silver: #C0C0C0;
    --dark-silver: #A8A8A8;
    --light-silver: #E5E5E5;
    --white: #FFFFFF;
    --off-white: #F8F5F0;
    --ivory: #FFFFF8;
    --light-ivory: #FFFEF0;
    --light-gray: #F0F0F0;
    --medium-gray: #808080;
    --dark-gray: #4A4A4A;
    --darker-gray: #2D2D2D;
    --text-color: #333333;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    --transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-ivory) 100%);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(168, 168, 168, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(120, 120, 120, 0.12) 0%, transparent 25%),
        url("image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23a8a8a8' fill-opacity='0.12' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-color);
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 30%, rgba(168, 168, 168, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(120, 120, 120, 0.1) 0%, transparent 40%);
    z-index: -2;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-text {
    color: var(--dark-silver);
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--dark-silver);
    border-bottom: 2px solid var(--dark-silver);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px) translateX(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px) translateX(-5px);
    }
}

/* Плавающие элементы */
.floating-element {
    position: fixed;
    opacity: 0.85;
    z-index: -1;
    animation: float 15s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(168, 168, 168, 0.4));
    pointer-events: none;
    color: var(--dark-silver);
}

.floating-1 {
    top: 15%;
    left: 5%;
    font-size: 42px;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.floating-2 {
    top: 65%;
    right: 8%;
    font-size: 38px;
    animation-delay: -5s;
    transform: rotate(25deg);
}

.floating-3 {
    bottom: 25%;
    left: 12%;
    font-size: 32px;
    animation-delay: -10s;
    transform: rotate(10deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate));
    }
}

/* Лепестки */
.petal {
    position: fixed;
    font-size: 24px;
    color: var(--dark-silver);
    opacity: 1;
    z-index: 100;
    animation: fall linear forwards;
    text-shadow: 0 0 8px rgba(74, 74, 74, 0.2);
    pointer-events: none;
    top: -20px;
}

@keyframes fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0.7;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Секции */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    text-align: center;
    scroll-snap-align: start;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 245, 240, 0.92);
    z-index: -1;
    box-shadow: inset 0 0 40px rgba(229, 229, 229, 0.3);
}

section.hero::before {
    background: linear-gradient(135deg, rgba(248, 245, 240, 0.95) 0%, rgba(255, 254, 240, 0.95) 100%);
}

section.program::before {
    background: linear-gradient(135deg, rgba(245, 242, 238, 0.95) 0%, rgba(255, 255, 250, 0.95) 100%);
}

section.details::before {
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

section.guest::before {
    background: linear-gradient(135deg, rgba(243, 240, 235, 0.95) 0%, rgba(252, 251, 248, 0.95) 100%);
}

section.wishes::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 246, 242, 0.95) 100%);
}

section.footer::before {
    background: linear-gradient(135deg, rgba(247, 244, 239, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.section-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
    text-align: center;
}

.section-content p {
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    margin-bottom: 100vh;
}

/* Фото в шапке - анимация через ключевые кадры */
.hero-image {
    margin-top: 60px;
    position: absolute;
    width: 700px;
    height: 850px;
    z-index: 1;
    pointer-events: none;

    left: 50%;
    top: 100vh;
    transform: translateX(-50%);
    background-image: url('https://s3.twcstorage.ru/87610973-a94b7034-3ef3-4ca6-a8d2-32df9c132d89/we.png');
    background-position: center;
    background-repeat: no-repeat;
}

/* Герб */
.coat-of-arms {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    background: radial-gradient(circle, var(--silver) 0%, var(--dark-silver) 35%, var(--medium-gray) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 25px rgba(168, 168, 168, 0.5),
        inset 0 0 30px rgba(74, 74, 74, 0.15);
    border: 8px solid var(--dark-gray);
    animation: pulse 4s infinite;
}

.coat-of-arms::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-radius: 50%;
    z-index: -1;
}

.coat-of-arms::after {
    content: "А&Д";
    position: absolute;
    font-family: 'Great Vibes', cursive;
    font-size: 64px;
    color: var(--white);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(74, 74, 74, 0.3);
    z-index: 5;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 25px rgba(168, 168, 168, 0.5), inset 0 0 30px rgba(74,74,74,0.15); }
    50% { box-shadow: 0 0 35px rgba(168, 168, 168, 0.7), inset 0 0 40px rgba(74,74,74,0.25); }
}

/* Заголовки */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 82px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 12px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--silver);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.6);
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--darker-gray);
    margin: 30px 200px 25px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--silver);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 25px 0 20px;
    position: relative;
    display: inline-block;
}

h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: var(--silver);
}

p {
    font-size: 24px;
    margin: 20px 0;
    line-height: 1.7;
    max-width: 800px;
    position: relative;
    z-index: 5;
    color: var(--text-color);
}

.highlight {
    color: var(--dark-silver);
    font-weight: 600;
    font-style: italic;
    display: block;
    margin: 15px 0;
    font-size: 28px;
    position: relative;
    display: inline-block;
}

.highlight::before, .highlight::after {
    content: "✧";
    margin: 0 10px;
    color: var(--silver);
    font-size: 20px;
}

/* Декоративные элементы */
.divider {
    height: 4px;
    background: linear-gradient(to right, transparent, var(--silver) 20%, var(--silver) 80%, transparent);
    margin: 35px auto;
    width: 70%;
    position: relative;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.divider::before, .divider::after {
    content: "❦";
    position: absolute;
    top: -15px;
    color: var(--silver);
    font-size: 32px;
    background: transparent;
    padding: 0 15px;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.divider::before {
    left: 10%;
}

.divider::after {
    right: 10%;
}

.ornament {
    font-size: 48px;
    color: var(--silver);
    margin: 25px 0;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Программа торжества */
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    position: relative;
    padding: 0 20px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--silver);
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.timeline-item {
    display: flex;
    width: 100%;
    margin: 35px 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: calc(50% + 40px);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--silver);
    border-radius: 12px;
    padding: 25px;
    max-width: 350px;
    box-shadow: var(--shadow);
    position: relative;
    text-align: left;
    margin: 0 auto;
}

.timeline-content::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--medium-gray);
    border: 2px solid var(--silver);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -52px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -52px;
}

.timeline-date {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

/* Детали торжества */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin: 40px auto 0;
    width: 100%;
    max-width: 900px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--silver);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.detail-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.08) 0%, transparent 70%);
    z-index: -1;
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.detail-card:hover::before {
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
}

.detail-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-icon {
    font-size: 42px;
    color: var(--silver);
    margin-bottom: 15px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.detail-text {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Персональная информация - ПОЛНОСТЬЮ ПЕРЕДЕЛАНО ДЛЯ ЧИТАЕМОСТИ */
.guest-info {
    background: rgba(255, 255, 255, 0.98);
    border: 3px solid var(--silver);
    border-radius: 20px;
    padding: 45px;
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
    box-shadow:
        0 5px 35px rgba(0, 0, 0, 0.12),
        inset 0 0 15px rgba(192, 192, 192, 0.1);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
    text-align: center;
    background-clip: padding-box;
}

.guest-info::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--silver), var(--dark-silver), var(--medium-gray), var(--dark-gray));
    z-index: -1;
    border-radius: 23px;
    animation: gradientRotate 8s linear infinite;
    opacity: 0.7;
}

.guest-info p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--darker-gray);
    font-size: 26px;
    margin: 15px 0;
    position: relative;
    z-index: 5;
    line-height: 1.6;
}

.guest-info .highlight {
    color: var(--dark-gray);
    font-size: 25px;
    font-weight: 700;
    margin: 18px 0;
}

.guest-info.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loading {
    font-style: italic;
    color: var(--dark-silver);
    font-size: 28px;
    animation: pulseText 1.5s infinite;
    margin: 20px 0;
    color: var(--dark-gray);
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.error {
    color: #e53935;
    font-weight: bold;
    font-size: 24px;
    padding: 25px;
    background: rgba(255, 245, 245, 0.95);
    border: 2px solid #e53935;
    border-radius: 15px;
    margin: 25px 0;
    display: none;
}

/* Наши пожелания */
.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    width: 100%;
    max-width: 900px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--silver);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    margin: 0 auto;
}

.wish-card::before {
    content: "\"";
    position: absolute;
    top: -15px;
    left: 10px;
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    color: rgba(192, 192, 192, 0.15);
    line-height: 1;
}

.wish-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.wish-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-color);
}

.wish-author {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 20px;
}

/* Футер */
section.footer {
    min-height: 450px;
    padding: 50px 20px;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: var(--dark-gray);
    margin: 25px 0;
    display: block;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.06);
}

.contact-info {
    margin-top: 30px;
    font-size: 22px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    margin: 12px 0;
    position: relative;
    padding-left: 30px;
    color: var(--text-color);
}

.contact-info p::before {
    content: "❧";
    position: absolute;
    left: 0;
    color: var(--silver);
    font-size: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.seal {
    position: relative;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--silver) 0%, var(--dark-silver) 35%, var(--medium-gray) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px auto;
    box-shadow:
        0 0 20px rgba(168, 168, 168, 0.5),
        inset 0 0 25px rgba(74, 74, 74, 0.15);
    border: 5px solid var(--dark-gray);
}

.seal::before {
    content: "";
    position: absolute;
    width: 92%;
    height: 92%;
    background: radial-gradient(circle, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border-radius: 50%;
    z-index: -1;
}

.seal span {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--white);
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(74,74,74,0.3);
    line-height: 1.4;
}

.footer-text {
    font-size: 20px;
    font-style: italic;
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

/* Анимированные рамки */
.frame {
    position: absolute;
    border: 3px solid var(--silver);
    border-radius: 8px;
    pointer-events: none;
    z-index: -1;
    animation: frameFloat 15s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(168, 168, 168, 0.3);
}

.frame-1 {
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.frame-2 {
    top: 60%;
    right: 8%;
    width: 120px;
    height: 120px;
    animation-delay: -5s;
    transform: rotate(25deg);
}

.frame-3 {
    bottom: 15%;
    left: 15%;
    width: 100px;
    height: 100px;
    animation-delay: -10s;
    transform: rotate(10deg);
}

@keyframes frameFloat {
    0%, 100% {
        transform: rotate(var(--rotate)) translate(0, 0);
    }
    25% {
        transform: rotate(var(--rotate)) translate(15px, -15px);
    }
    50% {
        transform: rotate(var(--rotate)) translate(0, -30px);
    }
    75% {
        transform: rotate(var(--rotate)) translate(-15px, -15px);
    }
}

/* Кнопка прокрутки */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(192, 192, 192, 0.12);
    border: 2px solid var(--dark-silver);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-silver);
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    animation: bounce 2s infinite;
    box-shadow: 0 0 15px rgba(168, 168, 168, 0.3);
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 68px;
        letter-spacing: 8px;
    }

    h2 {
        font-size: 44px;
        margin: 30px 200px 25px;
    }

    h3 {
        font-size: 32px;
    }

    p {
        font-size: 22px;
    }

    .coat-of-arms {
        width: 170px;
        height: 170px;
    }

    .coat-of-arms::after {
        font-size: 54px;
    }

    .timeline::before {
        left: 50px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -52px;
        right: auto;
    }

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

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

    section.footer {
        min-height: 400px;
    }

    .signature {
        font-size: 40px;
    }

    .seal {
        width: 110px;
        height: 110px;
    }

    .seal span {
        font-size: 15px;
    }

    .footer-text {
        font-size: 19px;
    }

    .guest-info p {
        font-size: 24px;
    }

    .guest-info .highlight {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    section {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    h1 {
        font-size: 58px;
        letter-spacing: 6px;
    }

    h2 {
        font-size: 38px;
        margin: 30px 120px 25px;
    }

    h3 {
        font-size: 28px;
    }

    p {
        font-size: 20px;
    }

    .highlight {
        font-size: 24px;
    }

    .coat-of-arms {
        width: 140px;
        height: 140px;
    }

    .coat-of-arms::after {
        font-size: 44px;
    }

    .guest-info {
        padding: 30px 20px;
        margin: 25px auto;
    }

    .guest-info p {
        font-size: 22px;
    }

    .guest-info .highlight {
        font-size: 26px;
    }

    .detail-card {
        padding: 25px 20px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-text {
        font-size: 18px;
    }

    .wish-card {
        padding: 25px 20px;
    }

    .wish-text {
        font-size: 20px;
    }

    .wish-author {
        font-size: 18px;
    }

    .scroll-down {
        width: 50px;
        height: 50px;
        bottom: 30px;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .floating-element {
        font-size: 28px !important;
    }

    .frame {
        display: none;
    }

    section.footer {
        min-height: 350px;
        padding: 40px 15px;
    }

    .signature {
        font-size: 36px;
    }

    .contact-info {
        font-size: 20px;
    }

    .contact-info p::before {
        font-size: 16px;
    }

    .seal {
        width: 100px;
        height: 100px;
    }

    .seal span {
        font-size: 14px;
    }

    .footer-text {
        font-size: 18px;
    }

    .timeline {
        padding: 0 10px;
    }

    .timeline-content {
        padding: 20px 15px;
        max-width: 100%;
    }

    .hero {
        margin-bottom: 80vh;
    }

    /* Фото в шапке для мобильных */
    .hero-image {
        top: 70vh;
        background-size: 90%;
        width: 400px;
        height: 850px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 34px;
        margin: 30px 0 25px;
    }

    h3 {
        font-size: 26px;
    }

    p {
        font-size: 18px;
    }

    .highlight {
        font-size: 22px;
    }

    .divider {
        width: 90%;
    }

    .coat-of-arms {
        width: 120px;
        height: 120px;
    }

    .coat-of-arms::after {
        font-size: 36px;
    }

    .timeline-item {
        margin: 25px 0;
    }

    .timeline-content {
        padding: 20px 15px;
        max-width: 100%;
    }

    .timeline-date {
        font-size: 18px;
    }

    .guest-info {
        padding: 25px 15px;
        margin: 20px auto;
    }

    .guest-info p {
        font-size: 20px;
    }

    .guest-info .highlight {
        font-size: 24px;
    }

    section.footer {
        min-height: 300px;
        padding: 30px 10px;
    }

    .signature {
        font-size: 32px;
    }

    .contact-info {
        font-size: 18px;
    }

    .contact-info p {
        padding-left: 25px;
    }

    .contact-info p::before {
        font-size: 14px;
    }

    .seal {
        width: 90px;
        height: 90px;
    }

    .seal span {
        font-size: 13px;
    }

    .footer-text {
        font-size: 17px;
    }
}

.wedding-btn {
  position: relative;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  color: #5d5d5d;
  font-size: 18px;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(206, 206, 206, 0.4);
  letter-spacing: 1px;
}

.wedding-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -2px -2px 4px rgba(190, 190, 190, 0.4);
  color: #4a4a4a;
}

.wedding-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.1),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(206, 206, 206, 0.4);
}

.wedding-btn.booked {
  background: linear-gradient(145deg, #d4d4d4, #f0f0f0);
  color: #8a8a8a;
  cursor: default;
  padding: 16px 36px;
}

.wedding-btn.booked:hover {
  transform: none;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(206, 206, 206, 0.4);
}

.sparkle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
}

.wedding-btn:hover .sparkle {
  animation: sparkle 1.2s ease-out;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0) translate(0, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1) translate(var(--tx), var(--ty));
  }
}
