﻿body {
    background-color: #fff9f9;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #4a4a4a;
    overflow-x: hidden;
}

/* Нежно-розовая палитра */
.bg-soft-pink {
    background-color: #fff5f5;
}

.bg-pink-light {
    background-color: #ffe9e9;
}

.bg-pink-soft {
    background-color: #ffdbdb;
}

.text-soft-pink {
    color: #d46b6b;
}

.border-soft-pink {
    border-color: #ffc0c0 !important;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 153, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 153, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 153, 0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Классы анимаций */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-on-scroll.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-on-scroll.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

/* Задержки анимаций */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* Эффекты при наведении */
.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 153, 153, 0.3);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 153, 153, 0.5);
}

/* Пульсирующая анимация для кнопок */
.pulse {
    animation: pulse 2s infinite;
}

/* Плавающая анимация для иконок */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Анимация для сердечек */
.heart-beat {
    animation: heartBeat 1.5s ease-in-out infinite;
}

/* Анимация для вращающихся элементов */
.rotate-slow {
    animation: rotate 20s linear infinite;
}

.rotate-medium {
    animation: rotate 10s linear infinite;
}

/* Сияющий эффект для текста */
.shimmer {
    background: linear-gradient(90deg, #b35f5f, #ffb3b3, #b35f5f);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

/* Hero секция */
.hero-section {
    background-color: #fff5f5;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 179, 0.1) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 180, 180, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 153, 153, 0.4);
}

/* Блоки */
.block {
    padding: 5rem 0;
    position: relative;
}

.block-soft-pink {
    background-color: #fff5f5;
}

.block-pink-light {
    background-color: #ffe9e9;
}

.block-pink {
    background-color: #ffdbdb;
}

/* Декоративные элементы */
.block-soft-pink::before,
.block-pink-light::before,
.block-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffb3b3, #ff9999, #ffb3b3, transparent);
}

/* Границы свадьбы */
.border-wedding {
    border: 2px solid #ffc0c0;
    padding: 3rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(255, 150, 150, 0.1);
    transition: all 0.3s ease;
}

.border-wedding:hover {
    box-shadow: 0 20px 40px rgba(255, 150, 150, 0.2);
    border-color: #ff9999;
}

/* Заголовки */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #b35f5f;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #ffb3b3;
    transition: width 0.3s ease;
}

.section-title:hover:after {
    width: 120px;
    background: linear-gradient(90deg, #ffb3b3, #ff9999, #ffb3b3);
}

.names-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #b35f5f;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 200, 200, 0.3);
    animation: fadeInUp 1s ease;
}

.date-title {
    font-size: 2.2rem;
    color: #d46b6b;
    margin-bottom: 2rem;
    font-style: italic;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Вертикальная временная шкала */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #ffb3b3, #ff8080, #ffb3b3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 153, 153, 0.2);
    border-color: #ff9999;
}

.timeline-item:hover .timeline-time::after {
    transform: translateY(-50%) scale(1.2);
    background-color: #ff8080;
}

.timeline-time {
    width: 100px;
    text-align: right;
    padding-right: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #b35f5f;
    position: relative;
    flex-shrink: 0;
}

.timeline-time::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ff9999;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ffb3b3;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-content {
    flex-grow: 1;
    background-color: rgba(255, 245, 245, 0.8);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    margin-left: 30px;
    box-shadow: 0 5px 20px rgba(255, 150, 150, 0.1);
    border: 1px solid #ffe0e0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.timeline-content h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #b35f5f;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.timeline-content .description {
    font-size: 1rem;
    color: #b35f5f;
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #ffcccc;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .description {
    border-top-color: #ff9999;
}

.timeline-content .location {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .timeline::before {
        left: 80px;
    }
    
    .timeline-time {
        width: 70px;
        font-size: 1.1rem;
        padding-right: 15px;
    }
    
    .timeline-content {
        padding: 1rem;
        margin-left: 15px;
    }
    
    .timeline-content h4 {
        font-size: 1.3rem;
    }
    
    .names-title {
        font-size: 2.5rem;
    }
    
    .date-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Карточка адреса */
.address-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ffcccc;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(255, 150, 150, 0.1);
    transition: all 0.3s ease;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 150, 150, 0.2);
    border-color: #ff9999;
}

.address-card h3 {
    color: #b35f5f;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.address-card:hover h3 {
    color: #ff8080;
}

.address-card p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Цветовые иконки */
.color-icon-wrapper {
    transition: all 0.3s ease;
}

.color-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
}

.color-icon-wrapper img {
    transition: all 0.3s ease;
}

.color-icon-wrapper:hover img {
    border-color: #ff9999 !important;
    box-shadow: 0 10px 25px rgba(255, 153, 153, 0.5) !important;
}

/* Форма */
.form-wedding {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid #ffcccc;
    box-shadow: 0 10px 30px rgba(255, 150, 150, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-wedding:hover {
    box-shadow: 0 20px 40px rgba(255, 150, 150, 0.2);
    border-color: #ff9999;
}

.form-wedding .form-control,
.form-wedding .form-check-input {
    border: 1px solid #ffcccc;
    border-radius: 10px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.form-wedding .form-control:focus,
.form-wedding .form-check-input:focus {
    border-color: #ff9999;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 153, 0.25);
    transform: scale(1.02);
}

.form-wedding .form-label {
    color: #b35f5f;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-wedding:hover .form-label {
    color: #ff8080;
}

/* Кнопка отправки */
.btn-submit {
    background-color: #ffb3b3;
    border: none;
    color: white;
    padding: 12px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 153, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    background-color: #ff9999;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 153, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Telegram кнопка */
.tg-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffb3b3;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 5px 15px rgba(255, 153, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.tg-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tg-button:hover::before {
    width: 300px;
    height: 300px;
}

.tg-button:hover {
    background-color: #ff9999;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 153, 0.4);
}

.tg-button i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.tg-button:hover i {
    transform: rotate(10deg) scale(1.2);
}

/* Футер */
.footer {
    background-color: #fff5f5;
    padding: 3rem;
    text-align: center;
    border-top: 1px solid #ffcccc;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 179, 179, 0.05) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
}

.footer h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #b35f5f;
    margin: 0;
    animation: fadeInUp 1s ease;
}

/* Бейдж дедлайна */
.deadline-badge {
    background-color: #ffb3b3;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(255, 153, 153, 0.3);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.deadline-badge:hover {
    transform: scale(1.05);
    background-color: #ff9999;
    animation: none;
}

/* SVG иконки */
svg {
    transition: all 0.3s ease;
}

svg:hover {
    transform: scale(1.1) rotate(5deg);
}

svg circle, svg path {
    transition: all 0.3s ease;
}

svg:hover circle,
svg:hover path {
    fill: #ff9999;
    stroke: #b35f5f;
}

/* Контейнер для иконок */
.ico-container {
    transition: all 0.3s ease;
}

.ico-container:hover {
    transform: scale(1.1);
}

/* Уведомление об успехе */
.position-fixed {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Медиа-запросы для анимаций */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.countdown-container {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 60px;
    border: 1px solid #ffcccc;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-title {
    color: #b35f5f;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 70px;
}

.countdown-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ff9999;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(255, 153, 153, 0.2);
}

.countdown-label {
    font-size: 0.8rem;
    color: #b35f5f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .countdown-grid {
        gap: 0.8rem;
    }
    .countdown-number {
        font-size: 1.5rem;
    }
    .countdown-item {
        min-width: 50px;
    }
}

.countdown-romantic {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff5f5, #ffe9e9);
    border-radius: 50px;
    border: 2px dashed #ffb3b3;
}

.countdown-hearts {
    color: #ff9999;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.countdown-hearts i {
    margin: 0 0.3rem;
	text-align: center
    animation: heartBeat 1.5s infinite;
}

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

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

/* Анимация падающих сердечек */
@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.heart-float {
    position: fixed;
    bottom: -50px;
    pointer-events: none;
    z-index: 9999;
    animation: floatHeart 4s linear forwards;
    font-size: 24px;
    filter: drop-shadow(0 0 5px rgba(255, 153, 153, 0.5));
}

/* Разные размеры сердечек */
.heart-float.small {
    font-size: 16px;
}

.heart-float.medium {
    font-size: 24px;
}

.heart-float.large {
    font-size: 32px;
}

/* Эффект вспышки при отправке */
@keyframes flash {
    0% { background-color: rgba(255, 179, 179, 0); }
    50% { background-color: rgba(255, 179, 179, 0.3); }
    100% { background-color: rgba(255, 179, 179, 0); }
}

.form-flash {
    animation: flash 0.5s ease;
}

/* Индикатор отправки */
.submit-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.submit-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}