/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    background-color: #35476c;
}
body {
    font-family: 'Lora', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2{
    margin-top: 2rem;
}
.mt-3{
    margin-top: 3rem;
}
.mt-4{
    margin-top: 4rem;
}
.mt-5{
    margin-top: 5rem;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2{
    margin-bottom: 2rem;
}
.mb-3{
    margin-bottom: 3rem;
}
.mb-4{
    margin-bottom: 4rem;
}
.mb-5{
    margin-bottom: 5rem;
}
.container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.info-header{
    font-size: 28px;
    text-align: center;
    font-weight: 500;
}
.info-text{
    text-align: center;
    margin-top: 1rem;
    font-size: 17px;
    font-weight: 500;
    padding: 0 30px;
}
/* Floating Hearts Animation */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.heart:before,
.heart:after {
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    background: #ff6b9d;
    border-radius: 50%;
}

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

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

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 25%; animation-delay: 1s; }
.heart:nth-child(3) { left: 50%; animation-delay: 2s; }
.heart:nth-child(4) { left: 75%; animation-delay: 3s; }
.heart:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(45deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
        transform: translateY(90vh) rotate(45deg) scale(1);
    }
    90% {
        opacity: 0.7;
        transform: translateY(-10vh) rotate(45deg) scale(1);
    }
}

/* Flying Elements */
.flying-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.plane {
    position: absolute;
    font-size: 30px;
    animation: fly 15s linear infinite;
    top: 20%;
}

.butterfly {
    position: absolute;
    font-size: 25px;
    animation: butterfly-fly 12s ease-in-out infinite;
    top: 40%;
}

.bird {
    position: absolute;
    font-size: 25px;
    animation: bird-fly 18s linear infinite;
    top: 15%;
}

@keyframes fly {
    0% {
        left: -10%;
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(3deg);
    }
    100% {
        left: 110%;
        transform: rotate(0deg);
    }
}

@keyframes butterfly-fly {
    0%, 100% {
        left: -10%;
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        left: 30%;
        transform: translateY(-20px) rotate(10deg);
    }
    50% {
        left: 60%;
        transform: translateY(20px) rotate(-10deg);
    }
    75% {
        left: 90%;
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes bird-fly {
    0% {
        left: 110%;
        transform: scaleX(1);
    }
    100% {
        left: -10%;
        transform: scaleX(-1);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('img/back1.jpg') no-repeat center center/cover;
    z-index: 2;
}

.hero-background{
    background-color: rgba(0,0,0,0);
    min-height: 100vh;
    width: 100%;
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bride-name, .groom-name {
    display: inline-block;
    animation: heartbeatName 3s ease-in-out infinite;
}

.and {
    font-size: 2.5rem;
    margin: 0 1rem;
    opacity: 0.8;
}

.wedding-date {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0;
    margin-top: 3rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

@keyframes heartbeatName {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Section Styles */
.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #8b5a83;
}

/* Wedding Details Section */
.wedding-details {
    padding: 30px 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.detail-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #ffeef8, #f0e6ff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
}

.detail-card .icon {
    font-size: 3rem;
    color: #ff6b9d;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #8b5a83;
}

.time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6b9d;
    margin-bottom: 0.5rem;
}

.venue {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Love Story Section */
.love-story {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    position: relative;
    z-index: 2;
}

.story-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b9d;
    min-width: 100px;
    margin-right: 2rem;
}

.timeline-content {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #8b5a83;
}



.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0e6ff;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b9d;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.rsvp-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6880b2, #35476c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
}

.rsvp-btn i {
    margin-right: 0.5rem;
}

/* Registry Section */
.registry-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    position: relative;
    z-index: 2;
}

.registry-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.registry-link {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    color: #8b5a83;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.registry-link:hover {
    transform: translateY(-5px);
    color: #ff6b9d;
}

.registry-link i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

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

.photo-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ffeef8, #f0e6ff);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.photo-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b5a83;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 100%);
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8b5a83;
}

.contact-item p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item i {
    margin-right: 0.5rem;
    color: #ff6b9d;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: #35476C;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer .container{
    margin: 30px auto;
}

.footer i {
    color: #ff6b9d;
}
.rsvp-section{
    background: url("/img/back2.jpg") no-repeat center center/cover;
}
.rsvp-background{
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.container-rsvp{
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.radio-group label {
    font-size: 1rem;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

.rsvp-header {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.rsvp-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
/* Responsive Design */
@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .registry-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 3rem;
    }
    
    .and {
        font-size: 2rem;
        margin: 0 0.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

<!-- style2.css — добавьте в конец -->
/* Чистый вертикальный таймлайн */
.timeline-clean {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 64px;
}

.timeline-clean::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9e9ee;
}

.tl-item {
    position: relative;
    padding: 0 0 22px 0;
    animation: fadeUp .5s ease both;
}

.tl-item:nth-child(1){ animation-delay:.05s }
.tl-item:nth-child(2){ animation-delay:.12s }
.tl-item:nth-child(3){ animation-delay:.19s }
.tl-item:nth-child(4){ animation-delay:.26s }

.tl-marker {
    position: absolute;
    left: 32px;
    top: 8px;               /* выравнивание маркера по первой строке */
    transform: translate(-50%, 0);
    width: 24px;
    height: 24px;
}

.tl-dot { width: 24px; height: 24px; display: block; }

.tl-content { padding-left: 0; }

.tl-time {
    display: inline-block;
    font: 600 14px/1.1 "Poppins", sans-serif;
    color: #141414;
    background: #fff;
    border: 1px solid #efeff4;
    padding: 6px 10px;
    border-radius: 999px;
    margin: 0 0 8px 0;
}

.tl-title {
    margin: 0 0 4px 0;
    font: 600 20px/1.25 "Lora", serif;
    color: #1d1d1f;
    letter-spacing: .02em;
}

.tl-text {
    margin: 0;
    color: #5b5b5f;
    font: 400 15px/1.55 "Poppins", sans-serif;
}

/* Тонкая адаптация */
@media (max-width: 600px) {
    .timeline-clean { padding-left: 56px; }
    .timeline-clean::before, .tl-marker { left: 28px; }
    .tl-time { font-size: 13px; padding: 5px 10px; }
    .tl-title { font-size: 18px; }
}

/* Анимация появления */
@keyframes fadeUp { from { opacity:0; transform: translateY(6px);} to { opacity:1; transform: translateY(0);} }