:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --gradient-bg: linear-gradient(135deg, #0ea5e9, #3b82f6, #1e3a8a);
    --wave-color: #06b6d4;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Главный экран */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6, #1e3a8a);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 10;
    animation: slideInLeft 1.2s ease-out;
    height: 60vh;
}

.hero-right {
    flex: 1;
    position: relative;
    height: 60vh;
    animation: slideInRight 1.2s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стили для карты */
.map-container {
    width: 100%;
    max-width: 839px;
    margin: 0 auto;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container script {
    display: block;
    width: 100%;
}

/* Мигающий эффект для важных сообщений */
.blinking-warning {
    animation: blink 1.5s infinite;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #ff4757;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    text-align: center;
    font-size: 1.1em;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.blinking-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; transform: scale(1); }
    25% { opacity: 0.7; transform: scale(1.02); }
    75% { opacity: 0.9; transform: scale(0.98); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Адаптивность для карты */
@media (max-width: 900px) {
    .map-container {
        max-width: 100%;
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .map-container {
        margin: 0 15px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .map-container {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .map-container iframe {
        height: 300px !important;
        min-height: 300px;
    }
}

/* Дополнительные стили для iframe карты */
.map-container iframe {
    width: 100% !important;
    border: none;
    border-radius: inherit;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px !important;
    }
}



.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"></path></svg>') repeat-x;
    background-size: 1200px 120px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    text-align: center;
    position: relative;
    animation: fadeInUp 1.5s ease-out;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    transition: all 0.6s ease;
}

.hero-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.anchor-decoration {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.main-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.main-title span {
    color: #ffffff !important;
}

.names {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #FFD700;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 20px rgba(255,215,0,0.5);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.waves-decoration {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    animation: wave 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(135, 206, 235, 0.6));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    25% {
        transform: translateX(8px) scale(1.05);
    }
    50% {
        transform: translateX(15px) scale(1.1);
    }
    75% {
        transform: translateX(8px) scale(1.05);
    }
}

.wedding-date {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 15px rgba(255,215,0,0.4);
}

.wedding-time {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cta-button, .game-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    color: #4169e1;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
}

.game-button {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #1e3c72;
    border: 2px solid #d4af37;
    font-size: 1em;
    animation: pulse 2s infinite;
}

.cta-button::before {
    content: '⚓';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 10px;
}

.cta-button:hover {
    background: linear-gradient(45deg, rgba(255,255,255,0.4), rgba(255,255,255,0.2));
    transform: translateY(-5px) scale(1.05);
    padding-left: 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.6);
}

.game-button:hover {
    background: linear-gradient(45deg, #ffd700, #d4af37);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.heart-decoration {
    font-size: 3rem;
    margin: 1rem 0;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Слайдер фотографий с друзьями */
.friends-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Горизонтальная ориентация слайдера (по умолчанию) */
.friends-slider.horizontal-slider {
    height: 400px;
}

.friends-slider.horizontal-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Вертикальная ориентация слайдера */
.friends-slider.vertical-slider {
    height: 600px;
    max-height: 80vh;
}

.friends-slider.vertical-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Кнопки навигации */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Точки навигации */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

/* Адаптивность слайдера */
@media (max-width: 768px) {
    .friends-slider {
        height: 300px;
    }
    
    .friends-slider.horizontal-slider {
        height: 300px;
    }
    
    .friends-slider.vertical-slider {
        height: 500px;
        max-height: 70vh;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .friends-slider {
        height: 250px;
    }
    
    .friends-slider.horizontal-slider {
        height: 250px;
    }
    
    .friends-slider.vertical-slider {
        height: 400px;
        max-height: 60vh;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .slider-dots {
        bottom: 8px;
        gap: 6px;
        flex-wrap: wrap;
        max-width: 90%;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Адаптивность для двухколоночной структуры */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-left {
        flex: none;
        height: 50%;
        padding: 1.5rem;
    }
    
    .hero-right {
        flex: none;
        height: 50%;
    }
    
    .friends-slider {
        transform: none;
        border-radius: 15px;
    }
    
    .friends-slider:hover {
        transform: scale(1.01);
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-left {
        height: auto;
        padding: 1rem;
    }
    
    .hero-right {
        height: auto;
    }
    
    .friends-slider {
        height: 300px;
        transform: none;
        border-radius: 15px;
    }
    
    .friends-slider:hover {
        transform: none;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 50px;
        height: 50px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .anchor-decoration {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        height: auto;
    }
    
    .hero-left {
        height: auto;
    }
    
    .hero-right {
        height: auto;
    }
    
    .friends-slider {
        height: 250px;
        transform: none;
        border-radius: 10px;
    }
    
    .friends-slider:hover {
        transform: none;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 45px;
        height: 45px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

.invitation-text {
    font-size: 1.2rem;
    color: #ffffff !important;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #d63384;
    animation: bounce 2s infinite;
}

@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 {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d63384;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #d63384, #6f42c1);
    border-radius: 2px;
}

/* О нас */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.photo-placeholder {
    background: linear-gradient(135deg, #ffeef8, #f0e6ff);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #666;
    font-style: italic;
    border: 2px dashed #d63384;
}

/* Детали свадьбы */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.detail-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    color: #d63384;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Программа дня */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #d63384;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #d63384;
}

.time {
    font-weight: bold;
    color: #6f42c1;
    margin-right: 2rem;
    min-width: 80px;
}

.event {
    color: #333;
}

/* Подарки */
.gifts-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.gifts-content > p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* Стили для блока информации о подарках */
.gift-info {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,249,250,0.9));
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.gift-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border-color: #ffd700;
}

.gift-info .anchor-decoration {
    position: relative;
    z-index: 2;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(30, 58, 138, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(30, 58, 138, 0.8)); }
}

.gift-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gift-info p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    animation: slideInRight 0.8s ease-out 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Стили для приоритетного подарка */
.priority-gift {
    background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
    animation: slideInUp 0.8s ease-out 0.5s both, pulse 2s ease-in-out infinite;
}

.priority-gift p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1e3a8a;
    line-height: 1.6;
}

.priority-gift p:first-child {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Стили для блока с конвертом */
.envelope-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
    animation: slideInUp 0.8s ease-out 0.7s both;
}

.envelope-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #0c4a6e;
    line-height: 1.5;
    text-align: center;
}

.envelope-info .envelope-icon {
    font-size: 2rem;
    color: #0ea5e9;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Стили для деталей подарка */
.gift-details {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
    border-left: 4px solid var(--accent-color);
    animation: slideInUp 0.8s ease-out 0.6s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-details p {
    display: block;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out calc(0.8s + var(--delay, 0s)) both;
    line-height: 1.6;
    padding: 8px 0;
}

.gift-details p:nth-child(1) { --delay: 0.1s; }
.gift-details p:nth-child(2) { --delay: 0.2s; }
.gift-details p:nth-child(3) { --delay: 0.3s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gift-details p:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.gift-details strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

.gift-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gift-option {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gift-option:hover {
    transform: translateY(-5px);
}

.gift-option h3 {
    color: #d63384;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* RSVP */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact h3 {
    color: #d63384;
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Карта */
.map-placeholder {
    background: #f8f9fa;
    height: 400px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d63384;
    color: #666;
    text-align: center;
}

/* Футер */
footer {
    background: linear-gradient(135deg, #d63384, #6f42c1);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Стили для блока завершения игры */
#game-completion {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 50%, #0f172a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#game-completion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path></svg>') repeat-x;
    background-size: 1200px 120px;
    animation: wave 10s ease-in-out infinite;
    opacity: 0.1;
}

.completion-content {
    position: relative;
    z-index: 2;
}

.treasure-chest {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: treasureGlow 3s ease-in-out infinite;
}

@keyframes treasureGlow {
    0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,215,0,0.3); }
    50% { box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,215,0,0.6); }
}

.chest-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.revealed-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.info-card h4 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1e3a8a;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
    animation: badgeShine 2s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-icon {
    font-size: 1.5rem;
}

#revealed-code {
    color: #ffd700;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .names {
        font-size: 2.5rem;
    }
    
    .wedding-date {
        font-size: 1.5rem;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item::before {
        left: 50%;
        top: -10px;
        transform: translateX(-50%);
    }
    
    .time {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .treasure-chest {
        padding: 20px;
    }
    
    .revealed-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .names {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .detail-card,
    .gift-option,
    .contact {
        padding: 1.5rem;
    }
}

/* Game Section Styles */
.game-section {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6, #1e3a8a);
    padding: 40px 0;
    position: relative;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-title {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
}

.game-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-dark);
}

.start-btn, .submit-btn, .hint-btn, .back-btn {
    background: var(--gradient-bg);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.start-btn:hover, .submit-btn:hover, .hint-btn:hover, .back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ship-rooms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.room-card {
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.room-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.room-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.progress-container {
    text-align: center;
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-bg);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.code-digit {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 1.2rem;
    font-weight: bold;
}

.answer-input {
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 10px;
    width: 300px;
    text-align: center;
}

.final-code {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.final-digit {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--gradient-bg);
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.venue-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.venue-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.venue-address {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.venue-details {
    color: var(--secondary-color);
    font-style: italic;
}

/* Responsive design for game */
@media (max-width: 768px) {
    .ship-rooms {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .answer-input {
        width: 250px;
    }
}

/* Стили для описаний головоломок */
.puzzle-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.2em;
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.puzzle-hint {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--secondary-color);
    font-style: italic;
    padding: 15px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

/* Стили для крестиков-ноликов */
.tic-tac-toe-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 5px;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cell {
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.cell:hover {
    background: #f0f8ff;
    transform: scale(1.05);
}

.cell.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.game-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для поиска сокровищ */
.treasure-hunt-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.treasure-map {
    display: grid;
    grid-template-columns: repeat(6, 50px);
    grid-template-rows: repeat(6, 50px);
    gap: 2px;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.map-cell {
    background: #87ceeb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.map-cell:hover {
    background: #b0e0e6;
    transform: scale(1.1);
}

.map-cell.searched {
    background: #ffd700;
    color: #8b4513;
}

.map-cell.treasure {
    background: #ff6b6b;
    color: white;
    animation: treasure-glow 1s ease-in-out infinite alternate;
}

@keyframes treasure-glow {
    from { box-shadow: 0 0 10px #ff6b6b; }
    to { box-shadow: 0 0 20px #ff6b6b, 0 0 30px #ff6b6b; }
}

.treasure-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.treasure-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    min-width: 300px;
}

.treasure-attempts {
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
    padding: 5px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 5px;
}

@media (max-width: 480px) {
    .ship-rooms {
        grid-template-columns: 1fr;
    }
    
    .screen {
        padding: 20px;
    }
    
    .final-digit {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
    }
    
    .treasure-controls {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .treasure-controls input {
        width: 100%;
        max-width: 300px;
    }
    
    .treasure-controls button {
        width: 100%;
        max-width: 200px;
    }
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    color: white;
    text-align: center;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Стили для модальных окон уведомлений */
.modal-content.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%, #2e7d32 100%);
    border: 3px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.3);
}

.modal-content.success h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-content.success::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.modal-content.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%, #c62828 100%);
    border: 3px solid rgba(244, 67, 54, 0.5);
    box-shadow: 0 20px 60px rgba(244, 67, 54, 0.3);
}

.modal-content.error h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-content.error::before {
    content: '⚠️';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: shake 0.5s ease-in-out;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes sparkle {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(-50%) translateX(0); }
    25% { transform: translateX(-50%) translateX(-5px); }
    75% { transform: translateX(-50%) translateX(5px); }
}

/* Адаптивные стили для модальных окон */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
    
    .close {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 25% auto;
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    .modal-content p {
        font-size: 0.95rem;
    }
}

/* Стили для секции дресскода */
.dress-code-content {
    max-width: 1000px;
    margin: 0 auto;
}

.dress-code-intro {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.dress-code-intro .anchor-decoration {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dress-code-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dress-code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dress-code-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.dress-suggestions {
    margin-bottom: 2rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(52, 152, 219, 0.2);
}

.suggestion-item .icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    min-width: 30px;
}

.suggestion-item span:last-child {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.photo-gallery {
    margin-top: 1rem;
}

.photo-gallery h4 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(52, 152, 219, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Стили для модального окна галереи */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-image-container {
    position: relative;
    background: #f8f9fa;
}

.gallery-image-container img {
    width: 100%;
    height: 60vh;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-info {
    padding: 20px;
    background: white;
    text-align: center;
}

.gallery-info p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.gallery-counter {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .gallery-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .gallery-image-container img {
        height: 50vh;
    }
    
    .gallery-nav {
        font-size: 20px;
        padding: 10px 15px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}

.photo-placeholder {
    border: 2px dashed var(--accent-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background: rgba(52, 152, 219, 0.05);
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
}

.photo-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.photo-icon {
    font-size: 3rem;
    color: var(--accent-color);
}

.photo-slot p {
    color: var(--text-color);
    font-style: italic;
    margin: 0;
}

.dress-code-tips {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(155, 89, 182, 0.1));
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--accent-color);
}

.dress-code-tips h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 35px;
}

.tip-item span:last-child {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Адаптивность для дресскода */
@media (max-width: 768px) {
    .dress-code-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dress-code-card {
        padding: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-item,
    .tip-item {
        padding: 0.6rem;
    }
    
    .photo-placeholder {
        padding: 1.5rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-height: 300px;
    }
    
    .photo-item img {
        height: 100px;
    }
    
    .zoom-icon {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* Стили для модального окна галереи */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.gallery-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-image-container {
    position: relative;
    background-color: #f8f9fa;
}

.gallery-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    pointer-events: all;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-info {
    padding: 20px;
    text-align: center;
    background-color: white;
}

.gallery-info p {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.gallery-counter {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивные стили для галереи */
@media (max-width: 768px) {
    .gallery-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-prev,
    .gallery-next {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .gallery-nav {
        padding: 0 10px;
    }
    
    .gallery-info {
        padding: 15px;
    }
    
    .gallery-info p {
        font-size: 14px;
    }
}

/* Анимации */
@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}