@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Great+Vibes&display=swap');

@font-face {
    font-family: 'Felidae';
    src: url('fonts/Felidae.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KudryWeird';
    src: url('fonts/kudry_weird-headline.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MrsEaves';
    src: url('fonts/mrs-eaves-ot-italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navigation {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.nav-item {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-item.active, .nav-item:hover {
    color: #d4917b;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d4917b;
    transition: width 0.3s;
}

.nav-item.active::after, .nav-item:hover::after {
    width: 100%;
}

.section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

#invitation {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4917b, transparent);
    margin: 15px auto 0;
}

.underline {
    height: 2px;
    width: 100px;
    background: #d4917b;
    margin: 0 auto 40px;
}

.card-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.subtitle {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 20px;
}

.names {
    font-family: 'MrsEaves', serif;
    font-size: 100px;
    color: #d4917b;
    margin: 20px 0;
    line-height: 1.2;
    font-weight: normal;
    font-style: italic;
}

.name {
    display: inline-block;
}

.and {
    font-family: 'MrsEaves', serif;
    display: inline-block;
    font-size: 60px;
    margin: 0 20px;
    font-weight: normal;
    font-style: italic;
}

.invitation-text {
    font-size: 18px;
    max-width: 700px;
    margin: 30px auto;
    color: #666;
}

.invitation-subtext {
    font-style: italic;
    color: #999;
    margin-bottom: 30px;
}

.date {
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day {
    font-size: 80px;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

.month-year {
    font-size: 20px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
}

.event-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.event-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #333;
}

.event-time {
    font-size: 18px;
    font-weight: bold;
    color: #d4917b;
}

.event-description {
    color: #666;
    margin-bottom: 10px;
}

.event-location {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Минималистичное улучшение карты - безопасный подход */
.map {
    width: 100%;
    margin: 20px auto;
    border-radius: 15px; /* Умеренное закругление углов */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); /* Легкая тень */
}

.map iframe {
    border-radius: 15px;
    width: 100%;
    border: 2px solid rgba(212, 145, 123, 0.35);
}

/* Красивая кнопка для карты */
.map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: #d4917b;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    margin: 15px auto;
    box-shadow: 0 5px 15px rgba(212, 145, 123, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 15px;
    width: auto;
    max-width: 300px;
}

.map-link:hover {
    background: #c07a6a;
    transform: translateY(-2px);
}

/* Улучшение иконок парковки и трансфера */
.location-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
}

.location-feature {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.location-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.countdown-container {
    text-align: center;
    margin: 25px auto;
}

.cd-heading {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 15px;
}

/* ===== ВАРИАНТ 1: Карточки ===== */
.cd-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cd-card {
    background: white;
    border: 2px solid rgba(212, 145, 123, 0.3);
    border-radius: 12px;
    padding: 18px 22px;
    min-width: 90px;
    text-align: center;
    transition: all 0.3s ease;
}

.cd-card:hover {
    border-color: #d4917b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 145, 123, 0.15);
}

.cd-card-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 600;
    color: #d4917b;
    line-height: 1;
}

.cd-card-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 6px;
    text-transform: lowercase;
}

/* ===== ВАРИАНТ 2: Строка с вертикальными разделителями ===== */
.cd-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0 8px;
}

.cd-line-num {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 600;
    color: #d4917b;
    line-height: 1;
}

.cd-line-word {
    font-size: 16px;
    color: #999;
    margin-right: 2px;
}

.cd-line-sep {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: rgba(212, 145, 123, 0.3);
    margin: 0 12px;
    vertical-align: middle;
    align-self: center;
}

/* ===== ВАРИАНТ 3: Вертикальный стек ===== */
.cd-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cd-stack-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.cd-stack-num {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #d4917b;
    line-height: 1.1;
    min-width: 70px;
    text-align: right;
}

.cd-stack-word {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #999;
    min-width: 80px;
    text-align: left;
}

.wedding-date {
    text-align: center;
    margin: 40px auto;
    position: relative;
}

.wedding-date-inner {
    display: inline-block;
}

.date-number {
    font-size: 80px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #333;
    line-height: 1;
}

.date-text {
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #666;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #d4917b;
    border-bottom: 2px solid #d4917b;
    transform: rotate(45deg);
    margin-top: 10px;
}

.scroll-text {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.location-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.feature-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.feature-card {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 20px;
    margin-right: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Секция дресс-кода */
#dress-code {
    text-align: center;
    padding: 4rem 2rem 0;
    background-color: transparent;
}

#dress-code h2 {
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #333;
}

.dress-code-text {
    max-width: 800px;
    margin: 2rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
}

.dress-code-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.dress-code-palette {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 40px auto;
    gap: 25px;
}

.dress-code-row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 25px;
    margin-bottom: 30px;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.color-item:hover {
    transform: translateY(-5px);
}

.color-circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.color-item:hover .color-circle {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.color-name {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 0;
}

.color-code {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
    text-align: center;
}

.dress-code-description {
    text-align: center;
    margin: 50px auto 30px;
}

.dress-code-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: normal;
    color: #333;
    position: relative;
    display: inline-block;
}

.dress-code-description h3:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4917b, transparent);
    bottom: -10px;
    left: 25%;
}

.inspiration-text {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 500;
}

.inspiration-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.inspiration-image {
    width: 300px;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inspiration-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.inspiration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.inspiration-image:hover img {
    transform: scale(1.05);
}

.rsvp-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.no-money-gift {
    display: block;
    font-style: italic;
    color: #d4917b;
    margin-top: 10px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-control {
    margin-bottom: 25px;
}

.form-control p {
    margin-bottom: 10px;
    color: #666;
}

input[type="text"], 
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #333;
    background-color: #f8f8f8;
}

input[type="text"]:focus, 
input[type="tel"]:focus {
    border-color: #d4917b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 145, 123, 0.2);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.radio-custom,
.checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #d4917b;
    background-color: white;
    position: relative;
}

.radio-custom {
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-option:hover .radio-custom,
.checkbox-option:hover .checkbox-custom {
    border-color: #c07a6a;
}

.radio-custom::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #d4917b;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid #d4917b;
    border-width: 0 2px 2px 0;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.radio-option input:checked ~ .radio-custom::after,
.checkbox-option input:checked ~ .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-option input:checked ~ .checkbox-custom::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.thank-you-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    animation: modal-appear 0.3s forwards;
}

.telegram-info {
    font-size: 14px;
    padding: 10px 15px;
    background-color: #f5f9ff;
    border-radius: 8px;
    color: #3b5998;
    margin-top: 15px;
    border-left: 3px solid #0088cc;
    text-align: left;
}

@keyframes modal-appear {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.thank-you-content h3 {
    color: #d4917b;
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.thank-you-content p {
    color: #666;
    margin-bottom: 20px;
}

.thank-you-close {
    background-color: #d4917b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.thank-you-close:hover {
    background-color: #c07a6a;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 14px;
}

@media screen and (max-width: 1024px) {
    .names {
        font-size: 80px;
    }
    
    .day {
        font-size: 70px;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 30px 15px;
    }
    
    .names {
        font-size: 60px;
    }
    
    .and {
        font-size: 40px;
        margin: 0 10px;
    }
    
    .day {
        font-size: 50px;
    }
    
    .month-year {
        font-size: 16px;
    }
    
    .countdown-number {
        font-size: 30px;
    }
    
    .feature-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .color-circle {
        width: 50px;
        height: 50px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-time {
        margin-top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .names {
        font-size: 40px;
    }
    
    .and {
        font-size: 30px;
        margin: 0 5px;
    }
    
    .day {
        font-size: 40px;
    }
    
    .countdown-item {
        padding: 10px;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .event-card {
        padding: 20px;
    }
}

/* Удаляем все стили для веток */
.branch,
.branch-left,
.branch-right,
.section-leaf, 
.section-leaf-1, 
.section-leaf-2,
.schedule-decorative-leaf-left, 
.schedule-decorative-leaf-right {
    display: none !important;
}

/* Состояния и анимации формы */
.input-focused {
    transform: translateY(-3px);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Красивый разделитель между секциями */
.section-divider {
    position: relative;
    height: 20px;
    margin: 10px 0;
    text-align: center;
}

.section-divider:before {
    content: '';
    position: absolute;
    height: 1px;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(212, 145, 123, 0.3), transparent);
}

.section-divider:after {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #d4917b;
    background: white;
    padding: 0 15px;
}

.section-divider .divider-ornament {
    display: none;
}

/* Обновление стрелки прокрутки */
.scroll-arrow-container {
    position: relative;
    margin: 40px auto 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-arrow-container:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

.scroll-arrow {
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #d4917b;
    border-right: 2px solid #d4917b;
    transform: rotate(45deg);
    margin-top: -5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: rotate(45deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
}

/* Счётчик — мобильные стили */

/* Анимация появления элементов при прокрутке */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Красивые интерактивные кнопки */
.map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4917b, #c07a6a);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(212, 145, 123, 0.2);
    transition: all 0.3s ease;
}

.map-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 145, 123, 0.3);
}

.map-button:hover:before {
    left: 100%;
}

/* Элегантные разделители между секциями */
.section-divider {
    position: relative;
    height: 30px;
    margin: 40px 0;
    text-align: center;
}

.section-divider:before {
    content: '';
    position: absolute;
    height: 1px;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(212, 145, 123, 0.3), transparent);
}

.section-divider:after {
    content: '♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #d4917b;
    background: white;
    padding: 0 15px;
}

/* Более элегантное оформление цитаты */
.love-quote {
    position: relative;
    padding: 20px 40px;
    font-style: italic;
    color: #9e7070;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    line-height: 1.7;
    font-family: 'Cormorant Garamond', serif;
    font-size: 19px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.love-quote:before, .love-quote:after {
    content: '❝';
    font-family: serif;
    position: absolute;
    font-size: 60px;
    color: rgba(212, 145, 123, 0.2);
}

.love-quote:before {
    top: 0;
    left: 10px;
}

.love-quote:after {
    content: '❞';
    bottom: -20px;
    right: 10px;
}

.quote-author {
    margin-top: 15px;
    font-style: normal;
    font-size: 16px;
    color: #999;
    position: relative;
}

.quote-author:before {
    content: '';
    position: absolute;
    height: 1px;
    width: 50px;
    background: rgba(212, 145, 123, 0.3);
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
}

/* Анимированный фон с сердцами */
@keyframes floatHeart {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.floating-hearts {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    z-index: -1;
}

.heart {
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24' fill='%23d4917b' stroke='none'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
    opacity: 0;
    animation: floatHeart 15s infinite linear;
}

/* Фото пары */
.couple-photo {
    text-align: center;
    margin: 50px auto;
    position: relative;
    transition: all 0.5s ease;
}

.photo-frame {
    display: inline-block;
    padding: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 5px;
    transform: rotate(-2deg);
    transition: all 0.5s ease;
    max-width: 400px;
}

.photo-frame img {
    max-width: 100%;
    border-radius: 3px;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Дополнительный контейнер для галереи изображений */
.location-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px auto;
    max-width: 900px;
}

.location-image {
    width: calc(33.333% - 12px);
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
    position: relative;
}

/* Нижний ряд (4 и 5 фото) — крупнее */
.location-image:nth-child(n+4) {
    width: calc(50% - 10px);
    height: 260px;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.location-image:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.location-image:hover img {
    transform: scale(1.05);
}

/* Кнопка отправки формы */
.submit-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4917b, #c07a6a);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 145, 123, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 145, 123, 0.3);
}

.submit-button:hover:before {
    left: 100%;
}

.names-image {
    margin: 40px 0;
    text-align: center;
}

.names-image img {
    max-width: 100%;
    height: auto;
    width: 600px;
}

.names-text {
    margin: 40px 0;
    text-align: center;
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 72px;
    color: #d4917b;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 2px;
}

@media screen and (max-width: 768px) {
    .couple-names {
        font-size: 48px;
    }
}

@media screen and (max-width: 480px) {
    .couple-names {
        font-size: 36px;
    }
}

#location .map-container {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
}

#dress-code .color-palette {
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

#rsvp .rsvp-form {
    padding: 30px;
    border-radius: 15px;
}

/* Аудиоплеер */
.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.music-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.music-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.music-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4917b, #c07a6a);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.music-button:hover:before {
    opacity: 0.1;
}

.music-icon {
    font-size: 24px;
    color: #d4917b;
    transition: all 0.3s ease;
}

.music-button.playing .music-icon {
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.music-button.muted .music-icon {
    color: #999;
}

.music-button.muted:before {
    opacity: 0;
}

.location-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
}

.map-link-container {
    text-align: center;
    margin: 15px 0;
}

.rsvp-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
    color: #666;
}

.dress-code-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #777;
    font-size: 16px;
}

/* Стиль для мужского дресс-кода */
.dress-code-men {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* Таймлайн расписания */
.schedule-date {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.schedule-timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Вертикальная линия таймлайна */
.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #d4917b 15%, #d4917b 85%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    flex: 0 0 120px;
    text-align: right;
    padding-right: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: #d4917b;
}

.timeline-dot {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #d4917b;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #d4917b;
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(212, 145, 123, 0.15);
}

.timeline-content {
    flex: 0 0 200px;
    padding-left: 30px;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Адрес площадки */
.location-address {
    font-size: 15px;
    color: #888;
    line-height: 1.6;
    margin-top: 8px;
}

/* Адаптив для таймлайна */
@media screen and (max-width: 768px) {
    .schedule-timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start;
    }

    .timeline-time {
        flex: 0 0 auto;
        padding-right: 15px;
        font-size: 22px;
        min-width: 70px;
        text-align: center;
    }

    .timeline-dot {
        flex: 0 0 12px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        flex: 1;
        padding-left: 15px;
    }

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

    .schedule-date {
        font-size: 17px;
    }
}

@media screen and (max-width: 480px) {
    .timeline-time {
        font-size: 20px;
        min-width: 60px;
        padding-right: 10px;
    }

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

    .timeline-content p {
        font-size: 13px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.wedding-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

/* Стили для сердца */
.heart-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.heart-container .heart {
    background-color: var(--primary-color);
    width: 30px;
    height: 30px;
    position: relative;
    transform: rotate(45deg);
    animation: heartbeat 1.2s infinite;
}

.heart-container .heart:before,
.heart-container .heart:after {
    content: '';
    background-color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
}

.heart-container .heart:before {
    top: -15px;
    left: 0;
}

.heart-container .heart:after {
    top: 0;
    left: -15px;
}

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(0.8); }
    5% { transform: rotate(45deg) scale(0.9); }
    10% { transform: rotate(45deg) scale(0.8); }
    15% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(0.8); }
    100% { transform: rotate(45deg) scale(0.8); }
}

/* Стили для колец */
.rings-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
}

.rings-container .ring {
    position: absolute;
    border: 3px solid;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.rings-container .ring-left {
    border-color: var(--primary-color);
    top: 25px;
    left: 15px;
    animation: ring-left 3s infinite;
}

.rings-container .ring-right {
    border-color: var(--primary-dark);
    top: 25px;
    right: 15px;
    animation: ring-right 3s infinite;
}

@keyframes ring-left {
    0% { transform: translateX(0) scale(1); }
    25% { transform: translateX(10px) scale(1.1); }
    50% { transform: translateX(0) scale(1); }
    75% { transform: translateX(-5px) scale(0.9); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes ring-right {
    0% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-10px) scale(1.1); }
    50% { transform: translateX(0) scale(1); }
    75% { transform: translateX(5px) scale(0.9); }
    100% { transform: translateX(0) scale(1); }
}

#loading-text {
    margin-top: 20px;
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 1;
    animation: none;
    transition: opacity 0.5s ease;
}

/* Универсальные CSS переменные для всех версий сайта */
:root {
    /* Основные цвета */
    --primary-color: #d4917b;
    --primary-dark: #c07a6a;
    --primary-light: #f0d5cf;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --bg-light: #fdfbf8;
    
    /* Размеры и отступы (будут изменяться через JS) */
    --base-font-size: 18px;
    --small-font-size: 14px;
    --medium-font-size: 16px;
    --large-font-size: 24px;
    --title-font-size: 36px;
    --section-padding: 50px;
    --card-border-radius: 10px;
    
    /* Шрифты */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-accent: 'Great Vibes', cursive;
    
    /* Тени */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Анимации */
    --transition-short: all 0.3s ease;
    --transition-medium: all 0.5s ease;
}

.loading-status {
    margin-top: 20px;
    text-align: center;
}

.progress-bar-container {
    width: 200px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.3s ease;
}

#loading-text {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInOut 1.5s infinite ease-in-out;
    margin: 0;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ====== Фото букета в дресс-коде ====== */
#dress-code .section-content {
    padding-bottom: 0 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dress-code-image {
    text-align: center;
    max-width: 600px;
    margin: 20px auto 0;
    height: 320px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.dress-code-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .dress-code-image {
        max-width: 400px;
        height: 220px;
    }
}

/* ====== Полупрозрачные секции поверх фонового изображения ====== */
.section .section-content {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(212, 145, 123, 0.3);
}

#invitation .section-content {
    background: rgba(255, 255, 255, 0.85);
}

header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ====== ВАРИАНТ 2: Карточки с иконками ====== */
.schedule-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 145, 123, 0.35);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 145, 123, 0.15);
    border-color: #d4917b;
}

.schedule-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.schedule-card-time {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #d4917b;
    margin-bottom: 8px;
}

.schedule-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.schedule-card-desc {
    font-size: 14px;
    color: #999;
}

@media screen and (max-width: 768px) {
    .schedule-cards {
        flex-direction: column;
        gap: 15px;
        max-width: 350px;
    }

    .schedule-card {
        padding: 20px 15px;
    }

    .schedule-card-time {
        font-size: 26px;
    }
}

/* ====== ВАРИАНТ 3: Минималистичный ====== */
.schedule-minimal {
    max-width: 600px;
    margin: 0 auto;
}

.schedule-min-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(212, 145, 123, 0.15);
}

.schedule-min-item:last-child {
    border-bottom: none;
}

.schedule-min-time {
    flex: 0 0 130px;
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 300;
    color: #d4917b;
    letter-spacing: -1px;
    line-height: 1;
}

.schedule-min-colon {
    color: rgba(212, 145, 123, 0.5);
}

.schedule-min-line {
    flex: 0 0 40px;
    height: 1px;
    background: linear-gradient(90deg, #d4917b, transparent);
    margin: 0 20px;
}

.schedule-min-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.schedule-min-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.schedule-min-sub {
    font-size: 14px;
    color: #999;
}

@media screen and (max-width: 768px) {
    .schedule-min-time {
        flex: 0 0 90px;
        font-size: 36px;
    }

    .schedule-min-line {
        flex: 0 0 25px;
        margin: 0 12px;
    }

    .schedule-min-title {
        font-size: 17px;
    }

    .schedule-min-item {
        padding: 18px 0;
    }
}

@media screen and (max-width: 480px) {
    .schedule-min-time {
        flex: 0 0 70px;
        font-size: 30px;
    }

    .schedule-min-line {
        flex: 0 0 20px;
        margin: 0 8px;
    }

    .schedule-min-title {
        font-size: 15px;
    }

    .schedule-min-sub {
        font-size: 12px;
    }
}