/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a5a5;
    --secondary-color: #f8f0f0;
    --accent-color: #b88e8e;
    --text-color: #5a4a4a;
    --light-color: #fff9fb;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f5 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #7d6a6a;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 8px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Герой-секция */
.hero {
    min-height: 100vh; /* Изменено с height на min-height для адаптивности */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px; /* Добавлен отступ снизу для изображения */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,10 100,0 L100,100 Q50,90 0,100 Z" fill="%23fdf0f5"/></svg>');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #8a6e6e;
}

.names {
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
}

.heart-divider {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 15px;
}

.hero-image {
    width: 100%;
    margin: 40px auto 10px; /* Отступ сверху 40px, снизу 10px, центрирование */
    padding: 0 15px; /* Отступы по бокам */
    box-sizing: border-box;
}

.hero-image picture,
.hero-image img {
    width: 100%;
    height: auto; /* Сохраняем пропорции */
    display: block;
    border-radius: 15px;
    border: 6px solid var(--light-color);
    outline: 3px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05); /* Эффект масштабирования при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .hero-image {
        padding: 0 10px; /* Меньшие отступы для мобильных */
        margin: 30px auto 10px;
    }

    .hero-image picture,
    .hero-image img {
        border-width: 4px;
        outline-width: 2px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .hero-image {
        padding: 0 8px; /* Еще меньшие отступы для маленьких экранов */
        margin: 20px auto 10px;
    }

    .hero-image picture,
    .hero-image img {
        border-width: 3px;
        outline-width: 1px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Счётчик */
.countdown-section {
    background: linear-gradient(135deg, #fdf0f5 0%, #fce8ed 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    border-radius: 20px;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.countdown-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    font-size: 1.1rem;
    color: #8a6e6e;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

/* Контактная страница */
.contacts-section {
    padding: 100px 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.contact-content {
    font-size: 1.1rem;
    color: #7d6a6a;
    margin-bottom: 20px;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 2px solid transparent;
}

.contact-btn:hover {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Футер */
footer {
    background: #fce8ed;
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 80px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-text {
    font-size: 1.1rem;
    color: #8a6e6e;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(184, 142, 142, 0.3);
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Стили для свадебного сообщения */
.wedding-message {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--secondary-color) 100%);
    padding: 60px 20px;
    text-align: center;
    margin: 50px 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    animation: fadeIn 1.5s ease;
    box-sizing: border-box;
    border: 6px solid var(--light-color);
    outline: 3px solid var(--primary-color);
    box-shadow: 0 0 0 10px var(--secondary-color),
                0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.wedding-message-decor-top,
.wedding-message-decor-bottom {
    position: relative;
    height: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
}

.wedding-message-decor-top::before,
.wedding-message-decor-bottom::before {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--primary-color);
    top: 50%;
}

.wedding-message-decor-top::after,
.wedding-message-decor-bottom::after {
    content: '❤';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    background: transparent;
}

.wedding-message-decor-bottom {
    margin: 30px auto 0;
}

.wedding-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wedding-message p {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin: 20px 0;
    line-height: 1.6;
}

.hearts-animation {
    margin: 30px 0;
}

.hearts-animation i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 0 15px;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hearts-animation i:nth-child(2) {
    animation-delay: 0.3s;
}

.hearts-animation i:nth-child(3) {
    animation-delay: 0.6s;
}

/* Анимации */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .names {
        font-size: 2.2rem;
    }
    
    .countdown-item {
        width: 140px;
        height: 140px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .nav-links li {
        margin-left: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .wedding-message {
        margin: 30px 0;
        padding: 40px 15px;
        border-width: 4px;
        outline-width: 2px;
        box-shadow: 0 0 0 8px var(--secondary-color),
                    0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .wedding-message h2 {
        font-size: 2.5rem;
    }

    .wedding-message p {
        font-size: 1.3rem;
    }

    .hearts-animation i {
        font-size: 2rem;
        margin: 0 10px;
    }

    .hero-image {
        max-width: 300px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .names {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        width: 120px;
        height: 120px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .wedding-message h2 {
        font-size: 2rem;
    }

    .wedding-message p {
        font-size: 1.1rem;
    }

    .hearts-animation i {
        font-size: 1.8rem;
    }

    .hero-image {
        max-width: 250px;
        margin-top: 20px;
    }

    .hero-image img {
        border-width: 4px;
        outline-width: 2px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 480px) {
    .menu-toggle {
        display: block;
    }
}
