/* ОБЩИЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: var(--doc-height);
    overflow-x: hidden;
    overflow-y: auto; /* ВАЖНО: включаем скролл */
    width: 100%;
    position: relative; /* Убираем fixed */
}

.container {
    max-width: 100%;
    margin: 0 auto;
    flex: 1 0 auto;
    width: 100%;
}

/* ПЕРВОЕ ФОТО С ИМЕНАМИ И ДАТОЙ */
.hero-section {
    margin-bottom: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    height: var(--doc-height);
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 900px;
    z-index: 2;
    padding: 0 20px;
}

.names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    word-wrap: break-word;
}

.ampersand {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: clamp(2.2rem, 7vw, 4rem);
}

.date {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 10px 0;
    display: inline-block;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    width: 90%;
}

/* Музыкальный плеер */
.music-player {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.music-circle {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    touch-action: manipulation;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    outline: none;
    border: none;
}

.music-btn.playing {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.music-btn.playing i {
    transform: translateY(0px); /* Другое значение! */
}

.music-text-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.music-text-around {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    fill: white;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.music-btn i {
    pointer-events: none;
    transform: translateX(2px);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ТЕКСТ ПРИГЛАШЕНИЯ ПОД ФОТО */
.invitation-text-section {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    margin-bottom: 0;
}

.invitation-text {
    max-width: 800px;
    margin: 0 auto;
}

.invitation-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 30px;
    color: #222;
}

.invitation-text p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.invitation-text .signature {
    font-style: italic;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-top: 30px;
    color: #777;
}

/* Цитата в приглашении */
.invitation-text .quote {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-style: italic;
    color: #5a7c6c;
    margin: 30px 0;
    padding: 20px;
    border-left: 4px solid #c4a69c;
    background-color: #f9f5f2;
    font-weight: 500;
    line-height: 1.6;
}

/* ВТОРОЕ ФОТО - ДРЕСС-КОД */
.dresscode-section {
    margin-bottom: 0;
}

.dresscode-image {
    position: relative;
    width: 100%;
    height: 100vh;
    height: var(--doc-height);
    overflow: hidden;
}

.dresscode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dresscode-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
    color: white;
    width: 95%;
    z-index: 3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.dresscode-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

.dresscode-main {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 30px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    color: white;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dresscode-details p {
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

.dresscode-gender {
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    margin-right: 8px;
}

.dresscode-palette-wrapper {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.dresscode-palette-wrapper .dresscode-palette,
img.dresscode-palette[src*="5.png"] {
    width: 80% !important;
    max-width: 450px !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    display: block;
}

/* СЕКЦИЯ С ДЕТАЛЯМИ (ТАЙМИНГ) */
.details-section {
    margin-bottom: 60px;
    padding: 60px 20px;
    background-color: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 7vw, 2.8rem);
    text-align: center;
    margin-bottom: 50px;
    color: #222;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 1px;
    background-color: #ddd;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: -40px;
    width: 1px;
    background-color: #e0e0e0;
}

.timeline-item:last-child:before {
    display: none;
}

.timeline-time {
    font-weight: 500;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: #777;
    margin-bottom: 10px;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 8px;
    color: #333;
}

.timeline-content p {
    color: #666;
    font-size: clamp(0.95rem, 3vw, 1rem);
}

/* ТРЕТЬЕ ФОТО С МЕСТОМ ПРОВЕДЕНИЯ */
.location-section {
    margin-bottom: 0;
}

.location-image {
    position: relative;
    width: 100%;
    height: 100vh;
    height: var(--doc-height);
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
    padding: 0 20px;
}

.location-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.location-info {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.location-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.location-info i {
    margin-right: 12px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    min-width: 24px;
}

.map-button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 30px;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    min-height: 44px;
}

.map-button:hover {
    background-color: white;
    color: #333;
}

.map-container {
    margin-top: 0;
    padding: 20px;
    background-color: white;
}

.map-placeholder {
    height: 350px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777;
    text-align: center;
    padding: 25px;
}

.map-placeholder i {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-bottom: 20px;
    color: #ccc;
}

.map-placeholder p {
    margin-bottom: 10px;
    max-width: 500px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.close-map-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    margin-top: 20px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1rem);
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    min-height: 44px;
}

.hidden {
    display: none;
}

/* СЕКЦИЯ "ПОЖЕЛАНИЯ" */
.wishes-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #fff, #faf8f5);
    margin-bottom: 0;
}

.wishes-content {
    max-width: 900px;
    margin: 0 auto;
}

.wishes-block {
    margin-bottom: 50px;
    padding: 35px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0eae4;
}

.wishes-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wishes-block h3 i {
    color: #c4a69c;
    font-size: 1.8rem;
}

.wishes-block p {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    margin-bottom: 18px;
    color: #555;
    line-height: 1.7;
}

.florist-contact {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: #f9f5f2;
    border-left: 4px solid #c4a69c;
    border-radius: 0 8px 8px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.florist-label {
    font-weight: 600;
    color: #4a4a4a;
    font-size: 1.05rem;
}

.florist-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5a7c6c;
    text-decoration: none;
    border-bottom: 2px solid #c4a69c;
    padding-bottom: 2px;
}

.contact-link {
    color: #5a7c6c;
    text-decoration: none;
    border-bottom: 1px dashed #5a7c6c;
    font-weight: 600;
}

.contact-link:hover {
    border-bottom-style: solid;
}

/* Таймер обратного отсчета */
.timer-section {
    padding: 60px 20px 40px; /* Уменьшен нижний отступ */
    background: linear-gradient(to bottom, #faf8f5, #ffffff);
    text-align: center;
    margin-top: -170px; /* Поднимает секцию вверх */
    position: relative; /* Для корректного отображения */
/* Чтобы не перекрывался другими элементами */
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 15px 10px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0eae4;
}

.timer-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 600;
    color: #333;
    line-height: 1;
}

.timer-label {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ФОРМА RSVP */
.rsvp-section {
    margin-bottom: 0;
    padding: 60px 20px;
    background-color: #ffffff;
    border-top: 1px solid #f0eae4;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
}

.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    flex: 1;
    width: 100%;
    margin-bottom: 25px;
}

.form-group.full-width {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: clamp(0.95rem, 3vw, 1rem);
}

input, select, textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.95rem, 3vw, 1rem);
    background-color: white;
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    min-height: 44px;
    transition: border-color 0.3s;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #999;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 40px auto 0;
    padding: 16px;
    background-color: #222;
    color: white;
    border: none;
    font-size: clamp(1rem, 3vw, 1.1rem);
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    min-height: 44px;
}

.submit-btn:hover {
    background-color: #444;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    display: block;
}

/* ФУТЕР */
.footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    position: relative;
}

.footer-image {
    position: relative;
    width: 100%;
    height: 80vh;
    height: calc(var(--doc-height) * 0.8);
    min-height: 500px;
    overflow: hidden;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    padding: 0 20px;
    z-index: 2;
}

.footer-text p {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 15px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 7vw, 3rem) !important;
    font-weight: 500;
    margin: 25px 0 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.footer-contacts {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-align: center;
    line-height: 1.6;
    z-index: 3;
    background: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.contacts-title {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.contacts-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-label {
    font-weight: 700;
    color: white;
    margin-right: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.contact-phone {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    transition: border-color 0.2s;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.contact-phone:hover {
    border-bottom-color: white;
}

/* iOS ФИКС */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    input[type="text"]:focus,
    input[type="email"]:focus,
    textarea:focus,
    select:focus {
        font-size: 16px !important;
    }
    
    /* УБИРАЕМ position: fixed, который блокировал скролл */
    body {
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: var(--doc-height);
    }
}

/* ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-image, .dresscode-image, .location-image, .footer-image {
        height: 120vh;
        height: calc(var(--doc-height) * 1.2);
    }
    
    .hero-text, .dresscode-text, .location-text, .footer-text {
        transform: translate(-50%, -40%);
    }
    
    .names {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .footer-text p {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }
    
    .footer-names {
        font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
    }
    
    .footer-contacts {
        bottom: 15px;
    }
    
    .footer-text {
        top: 35%;
    }
}

/* МЕЛКИЕ ДЕВАЙСЫ */
@media (max-width: 480px) {
    .music-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .music-circle {
        width: 120px;
        height: 120px;
    }
    
    .music-text-around {
        font-size: 14px;
    }

    .countdown-timer {
        gap: 8px;
    }
    
    .timer-block {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .timer-number {
        font-size: 1.8rem;
    }
    
    .timer-label {
        font-size: 0.7rem;
    }
    
    .florist-phone {
        font-size: 1rem;
    }
    
    .dresscode-palette {
        width: 85%;
        border-radius: 8px;
    }
    
    .dresscode-palette-wrapper {
        margin-top: 20px;
    }
    
    .footer-contacts {
        bottom: 15px;
        padding: 12px;
    }
    
    .contacts-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .contact-label, .contact-phone {
        font-size: 0.9rem;
    }
}

@media (max-width: 350px) {
    .names {
        font-size: 2rem;
    }

    .music-circle {
        width: 100px;
        height: 100px;
    }
    
    .ampersand {
        font-size: 1.8rem;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .invitation-text-section {
        padding: 40px 15px;
    }
    
    .footer-text p {
        font-size: 1.2rem;
    }
    
    .footer-names {
        font-size: 1.6rem !important;
    }
    
    .map-button, .submit-btn, .close-map-btn {
        padding: 12px 20px;
    }
    
    .dresscode-palette {
        width: 100%;
    }
    
    .wishes-block {
        padding: 20px;
    }
    
    .timer-block {
        min-width: 55px;
        padding: 10px 5px;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }

    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .music-text-around {
        font-size: 12px;
    }
}

/* ВЫСОКИЕ УСТРОЙСТВА */
@media (min-height: 900px) {
    .hero-text, .dresscode-text, .location-text, .footer-text {
        transform: translate(-50%, -45%);
    }
}

/* ПЛАНШЕТЫ */
@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-item {
        flex-direction: row;
        padding-left: 0;
    }
    
    .timeline-item:before {
        left: 120px;
    }
    
    .timeline-time {
        width: 120px;
        text-align: right;
        padding-right: 20px;
        margin-bottom: 0;
    }
    
    .timeline-content {
        padding-left: 40px;
    }
    
    .contacts-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
    
    .dresscode-palette {
        max-width: 600px;
    }
}

/* ДЕСКТОПЫ */
@media (min-width: 1025px) {
    .timeline-item {
        flex-direction: row;
        padding-left: 0;
    }
    
    .timeline-item:before {
        left: 120px;
    }
    
    .timeline-time {
        width: 120px;
        text-align: right;
        padding-right: 20px;
        margin-bottom: 0;
    }
    
    .timeline-content {
        padding-left: 40px;
    }
    
    .contacts-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }
    
    .dresscode-palette {
        max-width: 800px;
    }
    
    .footer-contacts {
        bottom: 40px;
    }
}

/* АДАПТАЦИЯ ДЛЯ ФОТО ПАЛИТРЫ */
@media (max-width: 768px) {
    .dresscode-palette {
        width: 95%;
        max-width: 600px;
    }
    
    .footer-contacts {
        bottom: 20px;
        padding: 15px;
    }
    
    .contacts-wrapper {
        gap: 8px;
    }
}


/* ================ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КАРТЫ ================ */
/* Добавьте этот код в самый конец файла style.css */

/* Стили для контейнера с картой */
.map-container {
    margin-top: 0;
    padding: 20px;
    background-color: white;
}

/* Обертка для карты и кнопки закрытия */
.map-wrapper {
    max-width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
    height: 400px;
    border: 1px solid #e0e0e0;
}

.close-map-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1rem);
    -webkit-appearance: none;
    border-radius: 0;
    touch-action: manipulation;
    min-height: 44px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

.close-map-btn:hover {
    background-color: #555;
}

.close-map-btn:active {
    background-color: #222;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .map-wrapper {
        padding: 15px;
    }
    
    .map-wrapper iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        padding: 10px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .close-map-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 350px) {
    .map-wrapper iframe {
        height: 250px;
    }
}

/* Для устройств с горизонтальной ориентацией */
@media (max-height: 600px) and (orientation: landscape) {
    .map-wrapper iframe {
        height: 250px;
    }
}
