/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Цветовая палитра скандинавского стиля */
:root {
    --primary-color: #8fb3c5;
    --secondary-color: #d4c9c0;
    --accent-color: #a79b8a;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --text-color: #333;
    --border-color: #ddd;
    --beige-color: #f8f3eb;
    --white-color: #ffffff;
}

/* Общие стили контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

a[href^="tel:"] {
    color: #000 !important;
    pointer-events: auto; /* чтобы оставался кликабельным */
}

/* Блок 1: Заголовок с видео фоном */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #333;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    padding: 2rem;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #000;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin: 1rem 0;
    font-weight: 400;
    color: #000;
}

.hero-content p {
    font-size: 2.5rem;
    margin-top: 1rem;
    font-weight: 300;
    color: #000;
    font-family: 'Zen Maru Gothic', sans-serif;

}

/* Блок 2: Приветственный текст */
.welcome {
    padding: 4rem 2rem;
    background-color: var(--white-color);
}

.welcome h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(#000);
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.welcome-text {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.welcome-text p {
    margin: 1rem 0;
}

.welcome-image {
    text-align: center;
    margin: 2rem 0;
}

.welcome-image img {
    width: 700px;
    height: 700px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid #f8f3eb; /* светлая рамка под фон */
    display: block;
    margin: 2rem auto;
}

.countdown {
    text-align: center;
    margin-top: 2rem;
}

.countdown h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(#333);
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: normal;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.time-unit {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    min-width: 80px;
}

.time-unit span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    color: var(#000);
}

.time-unit p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.timing {
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    color: #000;
}

/* Видео фон */
.timing-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Затемнение поверх видео для читаемости текста */
.timing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.timing .container {
    position: relative;
    z-index: 2; /* Контент поверх видео и затемнения */
}

.timing h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
    font-size: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    letter-spacing: 2px;
}

.timeline {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    text-align: center;
    padding: 1.5rem;
}

.timeline-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    font-family: 'Zen Maru Gothic', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.timeline-event {
    font-size: 1.4rem;
    color: #333;
    font-weight: 500;
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* Разделительная линия между элементами */
.timeline-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background-color: #333;
    margin: 10px auto 0;
}


/* Блок 3: Дресс-код */
.dresscode {
    padding: 4rem 2rem;
    background-color: #fff;
}

.dresscode h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
    font-size: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* Новый стиль для текста просьбы */
.dresscode-request {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    font-weight: 400;
}

.color-palettes, .outfit-gallery {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

/* Стили для сетки палитры */
.palette-grid {
    display: flex; /* Используем flex для ряда кружочков */
    justify-content: center; /* Центрируем */
    gap: 25px; /* Расстояние между кружочками */
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Стили для самих кружочков */
.palette-item {
    width: 60px;  /* Фиксированная ширина */
    height: 60px; /* Фиксированная высота */
    border-radius: 50%; /* Делает элемент круглым */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    /* Убрали display: flex и стили текста, так как текста внутри больше нет */
}

.outfit-gallery h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.outfit-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 9/16;
}

.outfit-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.outfit-item:hover img {
    transform: scale(1.05);
}


/* Блок 3: Подсказки */
.tips {
    padding: 4rem 2rem;
    background-color: var(--beige-color);
}

.tips h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(#000);
    font-size: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tip-icon {
    flex-shrink: 0;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
}

.tip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tip-content {
    flex-grow: 1;
}

.tip-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tip-content p {
    margin: 0.5rem 0;
}

/* Блок 4: Место проведения */
.location {
    padding: 4rem 2rem;
    background-color: var(--white-color);
}

.location h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #000;
    font-size: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.location p {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.location-image {
    text-align: center;
    margin: 2rem 0;
}

.location-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 300px; /* ← уменьшаем для мобильных */
    object-fit: cover;
}

/* Карта — делаем адаптивной */
.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Важно: не задаём height напрямую — используем aspect-ratio или max-height */
    max-height: 300px;
    height: auto;
}

/* Блок 5: Форма регистрации */
.registration {
    padding: 4rem 2rem;
    background-color: var(--beige-color);
}

.registration h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(#000);
    font-size: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

input[type="text"], input[type="tel"], select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--beige-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="tel"]:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(143, 179, 197, 0.2);
}

.drink-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.drink-options label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--beige-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid var(--beige-color);
}

.drink-options label:hover {
    background-color: var(--secondary-color);
}

.drink-options input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.drink-options input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.drink-options input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

/* Дедлайн сообщение */
.deadline-message {
    color: var(#000);
    margin-left: 0.05rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    background-color: var(--beige-color);
    display: none;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 16px 24px;
    border-radius: 12px;
    background-color: var(--primary-color) !important; /* ← салатовый фон ВСЕГДА */
    color: #fff !important;             /* ← чёрный текст */
    font-weight: 600;
    font-size: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background-color: var(--success-color);
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Кастомный select */
.custom-select {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #fff;
  border: 1px solid var(--beige-color);
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  font-size: 1rem;
}

.custom-select-trigger .custom-arrow {
  font-size: 0.8rem;
  color: #999;
  transition: transform 0.3s;
}

.custom-select.open .custom-arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--beige-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.custom-options div {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-options div:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.custom-options div.selected {
  background-color: var(--primary-color);
  color: white;
}

/* Футер */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--dark-color);
    color: white;
    font-size: 0.9rem;
}


/* Адаптивный дизайн */
/* Адаптивный дизайн */
@media (max-width: 768px) {
    .hero-content {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 1.5rem;
    }

    .welcome-image img {
        width: 360px;
        height: 360px;
    }


    /* ✅ ИСПРАВЛЕНО: Таймер в ряд на всех мобильных */
    .countdown-timer {
        flex-direction: row; /* Было: column */
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .time-unit {
        min-width: 65px;
        padding: 0.6rem;
        flex: 0 0 auto;
    }
    
    .time-unit span {
        font-size: 1.6rem;
    }
    
    .time-unit p {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .timing {
        padding: 3rem 1.5rem;
    }
    
    .timing h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .timeline {
        gap: 2rem;
    }
    
    .timeline-time {
        font-size: 1.5rem;
    }
    
    .timeline-event {
        font-size: 1.2rem;
    }

    .dresscode {
        padding: 3rem 1.5rem;
    }

    .outfit-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }

    .outfit-item {
        aspect-ratio: 9/16;
    }
    
    .palette-item {
        width: 40px;
        height: 40px;
    }

    /* ✅ ИСПРАВЛЕНО: Иконки слева от текста на всех мобильных */
    .tip-item {
        flex-direction: row; /* Было: column */
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .tip-icon {
        flex-shrink: 0;
        margin-right: 1rem; /* Было: margin-bottom */
        margin-bottom: 0;
        width: 50px;
        height: 50px;
    }
    
    .tip-content {
        flex: 1;
    }
    
    .location-image img {
        max-height: 300px;
    }
    
    .map-container {
        max-height: 300px;
    }
    
    .drink-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.65rem;
    }
    
    .hero-content h2 {
        font-size: 1.9rem;
    }
    
    .hero-content p {
        font-size: 1.65rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .welcome-image img {
        width: 280px;
        height: 280px;
    }

    .countdown-timer {
        gap: 0.3rem;
    }
    
    .time-unit {
        min-width: 55px;
        padding: 0.5rem;
    }
    
    .time-unit span {
        font-size: 1.4rem;
    }
    
    .time-unit p {
        font-size: 0.65rem;
    }

    .timing {
        padding: 2.5rem 1rem;
    }
    
    .timeline-time {
        font-size: 1.3rem;
    }
    
    .timeline-event {
        font-size: 1.1rem;
    }

    .dresscode {
        padding: 3rem 1rem;
    }

    .outfit-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px;
    }

    .outfit-item {
        aspect-ratio: 9/16;
    }
    
    .palette-item {
        width: 35px;
        height: 35px;
    }
    
    .tip-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 0.75rem 0;
    }
    
    .tip-icon {
        margin-right: 0.75rem;
        width: 45px;
        height: 45px;
    }
    
    .tip-content {
        flex: 1;
    }
    
    .location-image img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .map-container {
        height: 350px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    input[type="text"], input[type="tel"], select {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 0.75rem;
    }
}
