/* RESET + базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.4;
}

/* Hero секция на весь экран */
/* Hero секция - используем svh для стабильной высоты */
/* Hero секция - фикс для мобильных без дерганья */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* fallback */
    min-height: 100svh; /* modern browsers */
    overflow: hidden;
    background-color: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Убираем динамическое изменение высоты */
@media (max-width: 768px) {
    .hero-section {
        height: auto !important;
        min-height: 100vh !important;
        min-height: 100svh !important;
    }
    
    .hero-image {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
    }
}

/* Поддержка для старых браузеров */
@supports not (height: 100svh) {
    .hero-section {
        min-height: 100vh;
    }
}

/* Вторая секция с фото */
.second-section {
    width: 100%;
}

.second-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Третья секция с фото */
.third-section {
    width: 100%;
}

.third-image {
    width: 100%;
    height: auto;
    display: block;
}


/* Четвертая секция - Timing */
.timing-section {
    width: 100%;
    background-color: #09221e;
    padding: 40px 40px; /* увеличил отступы слева и справа с 16px до 30px */
}

.timing-container {
    width: 100%;
}

.timing-title {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 46px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* Подключаем шрифты */
@font-face {
    font-family: 'SSFBreakthrough-Light';
    src: url('SSFBreakthrough-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Kommuna-Normal';
    src: url('Kommuna-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Kommuna-Normal', sans-serif;
    gap: 20px; /* добавляем контроль над расстоянием */
}

.schedule-time {
    font-size: 34px;
    color: #ffffff;
    font-weight: normal;
    font-weight: 00;
}

.schedule-event {
    font-size: 18px;
    color: #ffffff;
    text-align: right;
    font-weight: normal;
    max-width: 60%;
}


/* Пятая секция - Dress code */
.dresscode-section {
    width: 100%;
    background-image: url('fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 30px;
}

.dresscode-container {
    width: 100%;
}

.dresscode-title {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: normal;
    letter-spacing: 1px;
}

.dresscode-text {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 40px;
}

.colors-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.color-rectangle {
    width: 80px;
    height: 50px;
    border-radius: 0px;
}

/* Адаптив для маленьких экранов */
@media (max-width: 480px) {
    .color-rectangle {
        width: 70px;
        height: 35px;
    }
    
    .color-row {
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .color-rectangle {
        width: 60px;
        height: 40px;
    }
    
    .color-row {
        gap: 10px;
    }
}

/* Без адаптива для десктопа - только мобильные размеры */



/* Шестая секция - фото + текст + кнопка поверх */
.photo-button-section {
    width: 100%;
    background-color: #09221e;
}

.photo-wrapper {
    position: relative;
    width: 100%;
}

.section-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.confirmation-text {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 26px;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 30px;
}

.send-button {
    display: inline-block;
    width: auto;
    min-width: 280px !important;
    padding: 12px 30px;
    background-color: transparent;
    color: #000000;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 18px;
    text-align: center;
    border: 1px solid #000000;
    cursor: pointer;
}

.send-button:active {
    opacity: 0.7;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .photo-overlay {
        padding: 20px;
    }
    
    .confirmation-text {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .send-button {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 140px;
    }
}



/* Футер */
.footer {
    width: 100%;
    background-image: url('footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
}

.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-block {
    text-align: center;
}

.contact-label {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-number {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    font-weight: normal;
    margin-bottom: 8px;
}

.contact-tg {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
    opacity: 0.8;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .footer {
        padding: 60px 20px;
    }
    
    .footer-container {
        gap: 35px;
    }
    
    .contact-label {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .contact-number {
        font-size: 18px;
    }
    
    .contact-tg {
        font-size: 16px;
    }
}


/* Кнопка музыки в hero секции */
.hero-music {
    position: absolute;
    top: 75%;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    transform: translateY(-50%);
}

.music-button {
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 18px;
    cursor: pointer;
    white-space: nowrap;
}

.music-button:active {
    opacity: 0.7;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .music-button {
        padding: 10px 24px;
        font-size: 16px;
    }
}


/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #09221e;
    width: 90%;
    max-width: 400px;
    border-radius: 0;
    position: relative;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
}

.modal-slides {
    position: relative;
    min-height: 350px;
}

.slide {
    display: none;
    flex-direction: column;
    gap: 25px;
}

.slide.active {
    display: flex;
}

.slide-title {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
}

.modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.alcohol-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-textarea {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
}

.modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.slide-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.slide-next, .slide-prev, .slide-submit {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.slide-next:active, .slide-prev:active, .slide-submit:active {
    opacity: 0.7;
}

/* Убираем синее выделение при нажатии на мобильных */
button,
.send-button,
.music-button,
.slide-next,
.slide-prev,
.slide-submit,
.modal-close-btn {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Для всех элементов, которые могут быть нажаты */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Эффект нажатия для мобильных - через JS будет работать */
button,
.send-button,
.music-button,
.slide-next,
.slide-prev,
.slide-submit {
    transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Рабочий вариант для мобильных */
button.touch-active,
.send-button.touch-active,
.music-button.touch-active,
.slide-next.touch-active,
.slide-prev.touch-active,
.slide-submit.touch-active {
    transform: scale(0.96);
    opacity: 0.6;
}



/* Кастомные чекбоксы - зеленые и красивые */
.checkbox-label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Создаем кастомный чекбокс */
.checkmark {
    position: absolute;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

/* При наведении/нажатии */
.checkbox-label:hover input ~ .checkmark {
    border-color: #ffffff;
}

/* Когда чекбокс выбран */
.checkbox-label input:checked ~ .checkmark {
    background-color: #356352;
    border-color: #356352;
}

/* Создаем галочку */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Стиль галочки (красивая, тонкая) */
.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* Десктоп и планшет версия */
@media (min-width: 768px) {
    /* Ограничиваем максимальную ширину контента */
    body {
        background-color: #09221e;
    }
    
    main {
        max-width: 500px;
        margin: 0 auto;
        background-color: #09221e;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }
    
    /* Все секции остаются в своих пропорциях */
    .hero-section,
    .second-section,
    .third-section,
    .timing-section,
    .dresscode-section,
    .photo-button-section,
    .footer {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Фото не растягиваются, остаются в рамках контейнера */
    .hero-image,
    .second-image,
    .third-image,
    .section-photo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-image {
        position: relative;
        height: auto;
        min-height: 100vh;
    }
    
    /* Модальное окно по центру */
    .modal-content {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Для больших экранов (ноутбуки и ПК) */
@media (min-width: 1024px) {
    main {
        max-width: 500px;
    }
    
    .hero-section,
    .second-section,
    .third-section,
    .timing-section,
    .dresscode-section,
    .photo-button-section,
    .footer {
        max-width: 500px;
    }
}

/* Чтобы фото не растягивались на ПК */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero секция на ПК */
@media (min-width: 768px) {
    .hero-section {
        height: auto;
        position: relative;
    }
    
    .hero-image {
        position: relative;
        height: auto;
        object-fit: cover;
    }
}


.contact-tg-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-tg-button:active {
    transform: scale(0.97);
    opacity: 0.7;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .contact-tg-button {
        padding: 6px 16px;
        font-size: 12px;
    }
}


/* Убираем синее выделение для номеров телефона на мобильных */
.contact-number {
    font-family: 'SSFBreakthrough-Light', sans-serif;
    font-size: 22px;
    color: #ffffff;
    text-align: center;
    font-weight: normal;
    margin-bottom: 8px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* Отключаем автоматическое форматирование номеров в ссылки на iOS */
.contact-number,
a.contact-number {
    color: #ffffff;
    text-decoration: none;
    pointer-events: none; /* убирает возможность нажатия */
}

/* Если нужно чтобы номер можно было нажать для звонка, но без синего цвета */
.contact-number {
    pointer-events: auto;
    -webkit-touch-callout: none;
}

/* Глобально отключаем автоформатирование номеров в Safari */
body {
    -webkit-text-size-adjust: 100%;
}

/* Отключаем стилизацию телефонов в Safari */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}


/* Стиль для сообщения о подарках в модальном окне */
.gift-message {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    text-align: center;
    padding: 20px 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    margin: 10px 0;
}



/* Стили для контейнера карты и кнопки */
.map-button-wrapper {
    position: relative;
    width: 100%;
}

.map-button {
    position: absolute;
    bottom: 63px !important;
    left: 60%;
    transform: translateX(-50%);
    
    /* Стилизация кнопки */
    display: inline-block;
    padding: 5px 25px !important;
    background-color: #09221e;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 10;
    
    /* Эффект нажатия */
    -webkit-tap-highlight-color: transparent;
}

/* Эффект при нажатии/клике */
.map-button:active {
    transform: translateX(-50%) scale(0.96);
    opacity: 0.7;
    background-color: rgba(9, 34, 30, 0.9);
}

/* Адаптация для мобильных экранов */
@media (max-width: 480px) {
    .map-button {
        padding: 8px 20px;
        font-size: 14px;
        bottom: 20px;
    }
}

@media (max-width: 380px) {
    .map-button {
        padding: 6px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
}


.colors-grid {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dress-image {
    width: 80%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.inspire-text {
    font-family: 'Kommuna-Normal', sans-serif;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    margin: 30px 0 15px 0;
}

.example-image-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.example-image {
    width: 70%;
    max-width: 300px;
    height: auto;
    display: block;
}