* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.guest-alcohol-item {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: 0.2s;
}

.guest-alcohol-item:hover {
    background: #f0edf5;
}

.alcohol-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.alcohol-select:focus {
    border-color: #764ba2;
    outline: none;
}
/* From Uiverse.io by Mike11jr */ 
.btn {
 width: 130px;
 height: 40px;
 font-size: 1.1em;
 cursor: pointer;
 background-color: #171717;
 color: #fff;
 border: none;
 border-radius: 5px;
 transition: all .4s;
}

.btn:hover {
 border-radius: 5px;
 transform: translateY(-10px);
 box-shadow: 0 7px 0 -2px #f85959,
  0 15px 0 -4px #39a2db,
  0 16px 10px -3px #39a2db;
}

.btn:active {
 transition: all 0.2s;
 transform: translateY(-5px);
 box-shadow: 0 2px 0 -2px #f85959,
  0 8px 0 -4px #39a2db,
  0 12px 10px -3px #39a2db;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Первая секция: Имена */
#names {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
}

.names-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.groom-name {
    animation-delay: 0.3s;
}

.bride-name {
    animation-delay: 0.6s;
}

.and {
    font-size: 2rem;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.wedding-date {
    font-size: 1.5rem;
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.arrow {
    font-size: 2rem;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

/* Вторая секция: Приглашение */
#invitation {
    background: #f8f9fa;
}

.invitation-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.invitation-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #764ba2;
}

.invitation-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.photo-placeholder {
    aspect-ratio: 1;
    background: #e9ecef;
    border: 2px dashed #764ba2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

/* Третья секция: Опросник */
#questionnaire {
    background: white;
}

.questionnaire-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.questionnaire-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #764ba2;
}

.toggle-form {
    background: #764ba2;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-form:hover {
    background: #667eea;
}

.form-container {
    margin-top: 30px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #764ba2;
}

.radio-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #218838;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Четвертая секция: Программа дня */
#program {
    background: #f8f9fa;
}

.program-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.program-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #764ba2;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #764ba2;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #764ba2;
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.time {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 10px;
}

.event {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.location {
    color: #6c757d;
    font-style: italic;
}

/* Пятая секция: Таймер */
#countdown {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.countdown-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.time-unit span {
    font-size: 3rem;
    font-weight: bold;
    display: block;
}

.time-unit .label {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #764ba2;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}
/* Карта */
#location {
    background: #f8f9fa;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.address h3 {
    color: #764ba2;
    margin-bottom: 20px;
}

.address p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.map-placeholder {
    background: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #6c757d;
    font-style: italic;
}

/* Фото в пригласительной секции */
.story-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.story-item {
    text-align: center;
}

.story-photo {
    width: 81%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.story-photo:hover {
    transform: translateY(-5px);
}

.photo-caption {
    font-style: italic;
    color: #666;
    font-size: 1rem;
}

/* Плейсхолдер для фото */
.story-photo .photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .location-info {
        grid-template-columns: 1fr;
    }
}
/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 12px;
    }
}
/* Адаптивность */
@media (max-width: 768px) {
    .names-content h1 {
        font-size: 2.5rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }
    
    .timeline-item::before {
        left: 10px !important;
    }
    
    .timer {
        gap: 15px;
    }
    
    .time-unit {
        min-width: 80px;
        padding: 15px;
    }
    
    .time-unit span {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .names-content h1 {
        font-size: 2rem;
    }
    
    .invitation-content h2,
    .questionnaire-content h2,
    .program-content h2,
    .countdown-content h2 {
        font-size: 2rem;
    }
    
    .timer {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 10px;
    }
/* Шестая секция: Подарки и пожелания */
#gifts {
    background: linear-gradient(135deg, #fef9f0 0%, #fff5e6 100%);
    min-height: auto;
    padding: 80px 20px;
}

.gifts-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gifts-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #764ba2;
    position: relative;
    display: inline-block;
}

.gifts-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #764ba2;
    border-radius: 2px;
}

.gifts-card {
    background: white;
    border-radius: 30px;
    padding: 45px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gifts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(118, 75, 162, 0.15);
}

.gifts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: gentleFloat 3s ease-in-out infinite;
}

.gifts-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}

.gifts-text:first-of-type {
    font-weight: 500;
    color: #2c3e50;
}

.gifts-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #764ba2, #667eea, #764ba2, transparent);
    margin: 30px auto;
    border-radius: 2px;
}

.flowers-warning {
    background: #fef5e8;
    border-radius: 20px;
    padding: 20px 25px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    border-left: 4px solid #e67e22;
}

.flowers-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.flowers-warning p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #5a3a2a;
    font-style: italic;
}

.gifts-heart {
    font-size: 2rem;
    margin-top: 20px;
    opacity: 0.7;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* Адаптив для секции подарков */
@media (max-width: 768px) {
    #gifts {
        padding: 50px 20px;
    }
    
    .gifts-content h2 {
        font-size: 1.8rem;
    }
    
    .gifts-card {
        padding: 30px 20px;
    }
    
    .gifts-text {
        font-size: 1rem;
    }
    
    .flowers-warning {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .flowers-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gifts-content h2 {
        font-size: 1.5rem;
    }
    
    .gifts-icon {
        font-size: 3rem;
    }
    
    .gifts-card {
        padding: 25px 15px;
    }
}
    
    .time-unit span {
        font-size: 1.5rem;
    }
}
/* Адаптивная карта — исправление выпадения на мобильных */
.map-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px;
}

/* Дополнительная защита для очень маленьких экранов */
@media (max-width: 768px) {
    .location-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .map-placeholder {
        padding-bottom: 75%; /* Чуть выше на мобильных */
        min-height: 300px;
    }
    
    .map-placeholder iframe {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .map-placeholder {
        padding-bottom: 100%;
    }
}