* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-green: #1a3a2f;
    --medium-green: #2d5a45;
    --olive-green: #6b8e23;
    --beige: #f5f1e8;
    --milk: #fffef9;
    --white: #ffffff;
    --dark-brown: #5d4037;
    --light-beige: #f8f5f0;
    --accent-green: #4a7663;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background-color: var(--dark-green);
    color: var(--dark-brown);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: 300px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-divider {
    height: 60px;
    background-image: none;
    background-size: 100% 100%;
}

.floral-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.9;
}

/* Обложка */
.cover-section {
    min-height: 100vh;
    background: linear-gradient(rgba(26, 58, 47, 0.8), rgba(26, 58, 47, 0.9)), url('1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-content {
    max-width: 800px;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.floral-frame {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border: 2px solid var(--beige);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.names {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: var(--beige);
    margin-bottom: 20px;
    letter-spacing: 10px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.names::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: var(--beige);
    margin: 30px auto;
    opacity: 0.5;
}

.date {
    font-size: 2.2rem;
    color: var(--beige);
    margin-bottom: 50px;
    letter-spacing: 5px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.greeting-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(245, 241, 232, 0.2);
}

.greeting-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--beige);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    text-align: right;
    color: var(--beige);
}

/* Календарь */
.calendar-section {
    background: var(--white);
    padding: 80px 0;
}

.calendar-container {
    background: var(--beige);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark-green);
    cursor: pointer;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    color: var(--olive-green);
    transform: scale(1.1);
}

.calendar-month-year {
    font-size: 1.8rem;
    color: var(--dark-green);
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    padding: 10px;
    color: var(--dark-green);
    font-weight: 500;
    font-size: 0.9rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--dark-green);
}

.calendar-day:hover {
    background: rgba(106, 142, 35, 0.1);
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.wedding-day {
    background: var(--olive-green);
    color: white;
    font-weight: 600;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(106, 142, 35, 0.3);
}

/* Timing - Расписание дня */
.timing-section {
    background: var(--beige);
    position: relative;
    overflow: hidden;
}

.timing-container {
    background: var(--white);
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(26, 58, 47, 0.1);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 3px;
    position: relative;
}

.section-title::after {
    content: '❧';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--olive-green);
    font-size: 2rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--olive-green);
    opacity: 0.3;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 40px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--olive-green);
}

.timeline-icon i {
    font-size: 2rem;
    color: var(--dark-green);
}

.timeline-content {
    flex: 1;
}

.timeline-time {
    font-size: 1.8rem;
    color: var(--dark-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-text {
    font-size: 1.2rem;
    color: var(--dark-brown);
    opacity: 0.9;
}

/* Location - Локация */
.location-section {
    background: var(--white);
    position: relative;
}

.location-block {
    background: var(--dark-green);
    color: var(--white);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
}

.location-header {
    padding: 40px 40px 20px;
    position: relative;
}

.location-header::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: var(--dark-green);
    border-radius: 0 0 50% 50%;
}

.location-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--beige);
}

.location-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.location-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.location-address {
    font-size: 1.4rem;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--olive-green);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.2rem;
}

.contact-info i {
    color: var(--olive-green);
    font-size: 1.3rem;
}

.location-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.location-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.map-button {
    display: inline-block;
    background: var(--olive-green);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.map-button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Dress Code */
.dresscode-section {
    background: var(--beige);
}

.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dresscode-text {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: var(--dark-brown);
}

/* Цветовая палитра с кружочками (порядок как в примере) */
.color-palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.color-item {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.color-item:hover {
    transform: scale(1.1) rotate(10deg);
}

.color-beige { 
    background: #e6d5c1; /* Бежевый (первый в примере) */
}
.color-pink { 
    background: #dc8389; /* Розовый вместо оливкового (второй в примере) */
}
.color-sage { 
    background: #9caf88; /* Шалфейный (третий в примере) */
}
.color-dark-green { 
    background: #3a5a40; /* Тёмно-зелёный (четвертый в примере) */
}
.color-brown { 
    background: #8b7355; /* Коричневый (пятый в примере) */
}
.color-black { 
    background: #000000; /* Чёрный вместо молочного (шестой в примере) */
    border: 3px solid rgba(255, 255, 255, 0.8);
}

/* Убираем старый контейнер для фото в дресс-коде */
.dresscode-photo-container {
    display: none;
}

/* Form - Анкета */
.form-section {
    background: var(--beige);
    position: relative;
}

.form-container {
    background: var(--white);
    border-radius: 25px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(26, 58, 47, 0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.form-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-green);
    font-size: 1.2rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--beige);
    border-radius: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--dark-brown);
    background: var(--milk);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive-green);
    box-shadow: 0 5px 15px rgba(106, 142, 35, 0.1);
}

.form-group select {
    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='%231a3a2f'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--olive-green);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--olive-green);
}

.submit-button {
    display: block;
    width: 100%;
    background: var(--olive-green);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.submit-button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(106, 142, 35, 0.2);
}

.closing-message {
    text-align: center;
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--beige);
    color: var(--dark-brown);
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Уведомления */
.notification {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.notification.show {
    display: block;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Футер */
footer {
    background: var(--dark-green);
    color: var(--beige);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

footer p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.contact-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 241, 232, 0.3);
}

.footer-floral {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-image: none;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.1;
}

/* Оптимизация для смартфонов */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .cover-content {
        padding: 0 40px;
    }

    .names {
        font-size: 4rem;
    }

    .date {
        font-size: 1.8rem;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .timeline-item::before {
        left: 50%;
        height: calc(100% - 80px);
        top: 80px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .names {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    .date {
        font-size: 1.5rem;
    }

    .greeting-block {
        padding: 30px;
        margin-top: 30px;
    }

    .greeting-text {
        font-size: 1.1rem;
    }

    .signature {
        font-size: 1.5rem;
    }

    .calendar-container {
        padding: 30px 20px;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .timing-container,
    .form-container {
        padding: 30px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-icon i {
        font-size: 1.5rem;
    }

    .timeline-time {
        font-size: 1.5rem;
    }

    .timeline-text {
        font-size: 1.1rem;
    }

    .color-item {
        width: 50px;
        height: 50px;
    }

    .radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .location-content {
        padding: 30px 20px;
    }

    .location-image img {
        height: 250px;
    }

    .map-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .contact-info {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .names {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .date {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .calendar-container {
        padding: 20px 15px;
    }

    .calendar-month-year {
        font-size: 1.5rem;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .timeline-icon i {
        font-size: 1.2rem;
    }

    .timeline-time {
        font-size: 1.3rem;
    }

    .timeline-text {
        font-size: 1rem;
    }

    .form-container {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .color-item {
        width: 40px;
        height: 40px;
    }

    footer {
        padding: 50px 0;
    }

    footer p {
        font-size: 1.1rem;
    }

    .closing-message {
        margin-top: 40px;
        padding-top: 40px;
        font-size: 1.1rem;
    }

    .contact-info {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .names {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .calendar-month-year {
        font-size: 1.3rem;
    }

    .color-palette {
        gap: 15px;
    }

    .color-item {
        width: 35px;
        height: 35px;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .calendar-day:hover {
        background: transparent;
    }
    
    .color-item:hover {
        transform: none;
    }
    
    .submit-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    .map-button:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Dress Code - с двумя фото для мужчин и женщин */
.dresscode-section {
    background: var(--beige);
}

.dresscode-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.dresscode-text {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: var(--dark-brown);
}

/* Контейнер для двух фото */
.photos-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.gender-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gender-title {
    font-size: 1.6rem;
    color: var(--dark-green);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Стили для фото (одинаковые для обоих) */
.dresscode-photo {
    width: 700px;
    height: 140px;
    overflow: hidden;
    border-radius: 5px;
}

.dresscode-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Для планшетов */
@media (max-width: 900px) {
    .dresscode-photo {
        width: 600px;
        height: 120px;
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .dresscode-photo {
        width: 500px;
        height: 100px;
    }
    
    .gender-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .dresscode-photo {
        width: 400px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .dresscode-photo {
        width: 350px;
        height: 70px;
    }
    
    .dresscode-text {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .gender-title {
        font-size: 1.3rem;
    }
    
    .photos-container {
        gap: 30px;
    }
}

@media (max-width: 400px) {
    .dresscode-photo {
        width: 300px;
        height: 60px;
    }
}

/* Музыкальный плеер */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    background: var(--olive-green);
    color: var(--white);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 142, 35, 0.3);
}

.music-btn:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 142, 35, 0.4);
}

.music-btn i {
    font-size: 1.2rem;
}

.music-btn.playing {
    background: var(--medium-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 142, 35, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(106, 142, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 142, 35, 0);
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .music-player {
        top: 15px;
        right: 15px;
    }
    
    .music-btn {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .music-text {
        display: none; /* На мобильных скрываем текст */
    }
    
    .music-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .music-player {
        top: 10px;
        right: 10px;
    }
    
    .music-btn {
        width: 40px;
        height: 40px;
    }
}

/* Moments - Наши моменты */
.moments-section {
    background: var(--beige);
    padding: 100px 0;
}

.moments-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .moments-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: span 2;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .moments-section {
        padding: 60px 0;
    }
    
    .moments-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item:nth-child(3) {
        grid-column: span 1;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 250px;
    }
}


.gallery-item:nth-child(1) img {
    object-position: center 60%;
}

.gallery-item:nth-child(2) img {
    object-position: center 30%;
}

/* Мини-уведомление о музыке */
.music-mini-notification {
    position: fixed;
    top: 70px;
    right: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 280px;
    animation: slideInMini 0.4s ease-out forwards;
    border: 2px solid var(--olive-green);
    transform: translateX(300px);
    opacity: 0;
    padding: 8px 12px;
}

@keyframes slideInMini {
    from {
        transform: translateX(300px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.music-mini-notification.hidden {
    animation: slideOutMini 0.4s ease-out forwards;
}

@keyframes slideOutMini {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(300px);
        opacity: 0;
    }
}

.mini-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.mini-notification-content i.fa-music {
    font-size: 1.2rem;
    color: var(--olive-green);
    flex-shrink: 0;
}

.mini-notification-text {
    color: var(--dark-green);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    flex-grow: 1;
}

.mini-notification-arrow {
    color: var(--olive-green);
    font-size: 0.9rem;
    animation: arrowFloatMini 2s infinite;
    opacity: 0.8;
    margin-right: 5px;
}

@keyframes arrowFloatMini {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.mini-close-btn {
    background: none;
    border: none;
    color: var(--dark-brown);
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 4px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mini-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Стрелка-указатель */
.music-mini-notification::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--olive-green);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .music-mini-notification {
        top: 65px;
        right: 10px;
        max-width: 260px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .music-mini-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
        margin: 0;
    }
    
    .mini-notification-content {
        gap: 10px;
    }
    
    .mini-notification-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .music-mini-notification {
        top: 55px;
        padding: 6px 10px;
    }
    
    .mini-notification-text {
        font-size: 0.8rem;
    }
    
    .mini-notification-content i.fa-music {
        font-size: 1rem;
    }
    
    .mini-notification-arrow {
        font-size: 0.8rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .music-mini-notification {
        top: 50px;
    }
    
    .mini-notification-text {
        font-size: 0.75rem;
    }
}

/* Убираем синие выделения при тапе на мобильных устройствах */
@media (hover: none) and (pointer: coarse) {
    /* Для всех кнопок */
    button,
    .map-button,
    .submit-button,
    .music-btn,
    .close-notification,
    .calendar-nav {
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Для ссылок */
    a {
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    /* Для инпутов и текстовых полей */
    input,
    textarea,
    select {
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    /* Убираем outline при фокусе (но оставляем доступность) */
    *:focus {
        outline: none;
    }
    
    /* Альтернатива для доступности - тонкая рамка */
    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
        outline: 2px solid var(--olive-green);
        outline-offset: 2px;
    }
}

/* Более универсальный вариант (работает на всех устройствах) */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Но сохраняем фокус для клавиатурной навигации */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--olive-green);
    outline-offset: 2px;
    outline-style: auto;
}

/* Убираем стандартные синие подсветки на iOS */
input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

/* Убираем серое выделение при долгом нажатии на iOS */
* {
    -webkit-touch-callout: none;
}

/* Убираем подсветку при активном состоянии */
button:active,
.map-button:active,
.submit-button:active,
.music-btn:active {
    background-color: var(--olive-green) !important;
    opacity: 0.9;
    transform: translateY(1px);
}

/* Для кнопки карты на мобильных */
@media (max-width: 768px) {
    .map-button:active {
        background-color: var(--accent-green) !important;
        transform: translateY(1px);
    }
}

/* Секции с фото */
.photo-section {
    background: var(--white); /* Белый фон для фотосекций */
    padding: 60px 0;
}

.photo-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.photo-container img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.photo-container img:hover {
    transform: scale(1.01);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .photo-section {
        padding: 50px 0;
    }
    
    .photo-container {
        max-width: 90%;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .photo-section {
        padding: 40px 0;
    }
    
    .photo-container img {
        max-width: 95%;
        border-radius: 10px;
    }
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
    .photo-section {
        padding: 30px 0;
    }
}

.ampersand {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    font-size: 4rem;
    display: inline-block;
    margin: 0 10px;
}

.signature .ampersand {
    font-family: 'Bodoni Moda', serif;
    font-weight: 400;
    display: inline-block;
    margin: 0 5px;
    font-size: 1.2rem;
    
}