/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f5f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для навигации */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Gogol', sans-serif;
    font-size: 24px;
    color: #402C21;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #735A4C;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Стили для прелоадера */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f9f5f0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #735A4C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-inner {
    width: 100%;
    height: 100%;
}

.loader-text {
    font-family: 'Gogol', sans-serif;
    font-size: 18px;
    color: #402C21;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для хедера */
header {
    padding: 150px 0 80px;
    text-align: center;
}

.header-content h1 {
    font-family: 'Gogol', sans-serif;
    font-size: 4rem;
    color: #402C21;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #735A4C;
    margin-bottom: 30px;
}

.calendar {
    margin-bottom: 40px;
}

.calendar p {
    font-size: 1.2rem;
    color: #A69E94;
    margin-bottom: 10px;
}

.calendar .date {
    font-family: 'Gogol', sans-serif;
    font-size: 6rem;
    color: #402C21;
    line-height: 1;
}

.photo {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto 40px;
    display: block;
}

/* Стили для обратного отсчета */
.countdown-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown-title {
    font-family: 'Gogol', sans-serif;
    font-size: 1.8rem;
    color: #402C21;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: 'Gogol', sans-serif;
    font-size: 3rem;
    color: #735A4C;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.9rem;
    color: #A69E94;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Стили для блоков */
.block {
    padding: 80px 0;
    border-bottom: 1px solid #e8e0d8;
}

.block-full {
    max-width: 800px;
    margin: 0 auto;
}

.block h2 {
    font-family: 'Gogol', sans-serif;
    font-size: 2.5rem;
    color: #402C21;
    text-align: center;
    margin-bottom: 40px;
}

/* Стили для локации */
.location-address {
    font-size: 1.3rem;
    color: #735A4C;
    text-align: center;
    margin-bottom: 20px;
}

.location-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.facilities {
    margin-bottom: 50px;
}

.facility {
    margin-bottom: 40px;
}

.facility h3 {
    font-family: 'Gogol', sans-serif;
    font-size: 1.8rem;
    color: #402C21;
    text-align: center;
    margin-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.photo-item img:hover {
    transform: scale(1.05);
}

.map {
    margin-top: 40px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#yandex-map {
    width: 100%;
    height: 100%;
}

/* Стили для тайминга */
.date-highlight {
    font-size: 1.5rem;
    color: #735A4C;
    text-align: center;
    margin: 30px 0 20px;
    font-weight: bold;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #735A4C;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #402C21;
    border: 3px solid #f9f5f0;
}

.timeline-content h3 {
    font-family: 'Gogol', sans-serif;
    font-size: 1.5rem;
    color: #402C21;
    margin-bottom: 10px;
}

/* Стили для референсов */
.references {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.reference-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для дресс-кода */
.dresscode-image {
    text-align: center;
    margin: 20px 0 30px;
}

.dresscode-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dresscode-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Стили для подарков */
.gift-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.gift-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gift-item:hover {
    transform: translateY(-5px);
}

.gift-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.gift-item a {
    color: #735A4C;
    text-decoration: none;
    font-weight: 500;
    display: block;
}

.gift-item a:hover {
    text-decoration: underline;
}

.wishlist-link {
    text-align: center;
    font-size: 1.1rem;
}

.wishlist-link a {
    color: #402C21;
    text-decoration: none;
    font-weight: bold;
}

.wishlist-link a:hover {
    text-decoration: underline;
}

/* Стили для списка вещей */
.list-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.clean-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.clean-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e8e0d8;
}

.clean-list li:last-child {
    border-bottom: none;
}

/* Стили для формы подтверждения */
.confirmation-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
    font-family: 'Gogol', sans-serif;
    font-size: 1.8rem;
    color: #402C21;
    margin-bottom: 20px;
    text-align: center;
}

.inline-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.inline-form-group {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #402C21;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e0d8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #735A4C;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button[type="submit"] {
    background: #735A4C;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

button[type="submit"]:hover {
    background: #402C21;
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    margin-top: 20px;
}

.success-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: #ccc;
}

#modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
}

/* Стили для футера */
.footer {
    background: #402C21;
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 50px;
}

.signature {
    font-family: 'Gogol', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-decoration {
    font-size: 2rem;
    margin-bottom: 20px;
}

.creator {
    font-size: 0.9rem;
    color: #A69E94;
}

.creator a {
    color: #D8D9D7;
    text-decoration: none;
}

.creator a:hover {
    text-decoration: underline;
}

/* Стили для вишлиста */
.wishlist-link {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20px;
}

.wishlist-link a {
    color: #402C21;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid #735A4C;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.wishlist-link a:hover {
    background: #735A4C;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(115, 90, 76, 0.3);
}

/* Цветовые схемы для блоков */
.block-white {
    background: #FFFFFF;
    color: #333;
}

.block-beige {
    background: #F9F5F0;
    color: #333;
}

.block-brown {
    background: #735A4C;
    color: white;
}

.block-brown h2,
.block-brown h3,
.block-brown p {
    color: white;
}

.block-dark {
    background: #402C21;
    color: white;
}

.block-dark h2,
.block-dark h3,
.block-dark p {
    color: white;
}

/* Стили для блока подарков */
.gift-container {
    margin: 40px 0;
}

.gift-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.gift-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gift-image {
    height: 200px;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gift-card:hover .gift-image img {
    transform: scale(1.05);
}

.gift-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gift-content h3 {
    font-family: 'Gogol', sans-serif;
    font-size: 1.4rem;
    color: #402C21;
    margin-bottom: 10px;
    text-align: center;
}

.gift-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.gift-link {
    display: inline-block;
    padding: 12px 25px;
    background: #735A4C;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #735A4C;
}

.gift-link:hover {
    background: transparent;
    color: #735A4C;
}

/* Стили для вишлиста */
.wishlist-container {
    text-align: center;
    margin-top: 30px;
}

.wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #402C21;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #402C21;
}

.wishlist-btn:hover {
    background: transparent;
    color: #402C21;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 44, 33, 0.3);
}

/* Обновленные стили для дресс-кода */
.dresscode-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dresscode-main {
    font-size: 1.2rem;
    font-weight: 500;
    color: #402C21;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dresscode-secondary {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.color-palette {
    margin-top: 30px;
}

.color-palette h3 {
    font-family: 'Gogol', sans-serif;
    font-size: 1.5rem;
    color: #402C21;
    margin-bottom: 20px;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Адаптивность для подарков */
@media (max-width: 968px) {
    .gift-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .gift-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
    }
}

/* Цветовые схемы для блоков */
.block {
    padding: 80px 0;
    border-bottom: 1px solid #e8e0d8;
}

.block-white {
    background: #FFFFFF;
    color: #333;
}

.block-beige {
    background: #F9F5F0;
    color: #333;
}

.block-brown {
    background: #735A4C;
    color: white;
}

.block-brown h2,
.block-brown h3,
.block-brown p,
.block-brown .location-address,
.block-brown .location-description {
    color: white;
}

.block-dark {
    background: #402C21;
    color: white;
}

.block-dark h2,
.block-dark h3,
.block-dark p,
.block-dark .confirmation-intro,
.block-dark label {
    color: white;
}

/* Специфичные стили для темных блоков */
.block-dark .form-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.block-dark input,
.block-dark select,
.block-dark textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.block-dark input:focus,
.block-dark select:focus,
.block-dark textarea:focus {
    border-color: #A69E94;
    background: white;
}

/* Добавьте в css/style.css */
.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-weight: 500;
}

.success-message {
    transition: opacity 0.3s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для темной темы в блоке подтверждения */
.block-dark .error-message {
    background: rgba(248, 215, 218, 0.1);
    color: #f8d7da;
    border: 1px solid rgba(245, 198, 203, 0.3);
}


/* Стили для обратного отсчета */
.countdown-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown-title {
    font-family: 'Gogol', sans-serif;
    font-size: 1.8rem;
    color: #402C21;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: 'Gogol', sans-serif;
    font-size: 3rem;
    color: #735A4C;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.9rem;
    color: #A69E94;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Стили для хедера */
header {
    padding: 150px 0 80px;
    text-align: center;
}

.header-content h1 {
    font-family: 'Gogol', sans-serif;
    font-size: 4rem;
    color: #402C21;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #735A4C;
    margin-bottom: 40px;
}

.photo {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* Добавь в css/style.css */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    top: 0;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1000;
    animation: confetti-fall 3s linear forwards;
}

/* Стили для кнопки конфетти (опционально) */
.confetti-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #735A4C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.confetti-btn:hover {
    transform: scale(1.1);
}

/* Стили для календаря */
.calendar {
    margin: 30px 0;
    text-align: center;
}

.calendar p {
    font-size: 1.2rem;
    color: #A69E94;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 2px;
}

.calendar .date {
    font-family: 'Gogol', sans-serif;
    font-size: 6rem;
    color: #402C21;
    line-height: 1;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Стили для обратного отсчета */
.countdown-container {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.countdown-title {
    font-family: 'Gogol', sans-serif;
    font-size: 1.8rem;
    color: #402C21;
    margin-bottom: 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: 'Gogol', sans-serif;
    font-size: 3rem;
    color: #735A4C;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.9rem;
    color: #A69E94;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Стили для хедера */
header {
    padding: 150px 0 80px;
    text-align: center;
}

.header-content h1 {
    font-family: 'Gogol', sans-serif;
    font-size: 4rem;
    color: #402C21;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #735A4C;
    margin-bottom: 30px;
}

.photo {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}