@font-face {
    font-family: 'HoneyVineyard';
    src: url('/assets/fonts/HoneyVineyard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
}

.time {
    font-family: 'HoneyVineyarde', 'Cormorant Garamond', serif;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

/* HERO */
/* ========== FULLSCREEN HERO ========== */
.hero-fullscreen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff; /* белый фон */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Фон с ограничением ширины, прозрачностью 0.75 и размытием по краям */
.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 700 / 986;
    background: url('/assets/bg.png') center center no-repeat;
    background-size: contain;
    z-index: 1;
    opacity: 0.75;
    pointer-events: none;

    /* Размытие по краям через маску */
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 90%);
}

/* Альтернативный вариант размытия через box-shadow (если mask-image не поддерживается) */
@supports not (mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%)) {
    .hero-fullscreen::before {
        box-shadow: 0 0 60px 40px #ffffff inset, 0 0 0 0 rgba(0,0,0,0);
    }
}

/* Дополнительное размытие краёв через blur-эффект */
.hero-fullscreen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 700 / 986;
    background: url('/assets/bg.png') center center no-repeat;
    background-size: contain;
    z-index: 0;
    opacity: 0.3;
    filter: blur(15px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    width: 100%;
    color: #000000;
    padding: 2rem;
}

.hero-date {
    font-family: 'Cormorant Infant', 'CormorantInfant-Light', serif;
    font-size: clamp(18px, 5vw, 26px);
    letter-spacing: 4px;
    margin-bottom: 18px;
    color: #000000;
    font-weight: 500;
}

.hero-fullscreen h1 {
    font-family: 'HoneyVineyard', 'Cormorant Infant', serif;
    font-size: clamp(36px, 10vw, 78px);
    font-weight: normal;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #000000;
    letter-spacing: 2px;
}

.hero-fullscreen h1 span {
    color: #c27e3a;
}

.hero-text {
    font-family: 'Cormorant Infant', 'CormorantInfant-Light', serif;
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.65;
    margin-bottom: 30px;
    color: #000000;
    font-weight: 500;
}

.together-forever {
    font-family: 'Cormorant Infant', 'CormorantInfant-Light', serif;
    font-size: clamp(24px, 6vw, 32px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000000;
    margin: 20px 0 10px;
    font-weight: 600;
}

.timer-section {
    margin: 35px 0 20px;
    width: 100%;
}

.timer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.timer-item {
    background: transparent;
    padding: 0.3rem 0;
    min-width: 85px;
    text-align: center;
}

.timer-item span {
    font-family: 'Cormorant Infant', 'CormorantInfant-Light', serif;
    font-size: clamp(32px, 8vw, 52px);
    font-weight: 700;
    color: #000000;
    display: block;
    line-height: 1;
    letter-spacing: 2px;
}

.timer-item small {
    font-family: 'Cormorant Infant', 'CormorantInfant-Light', serif;
    font-size: clamp(12px, 3vw, 18px);
    text-transform: lowercase;
    color: #333333;
    font-weight: 400;
}

/* Адаптивность */
@media (max-width: 700px) {
    .hero-content {
        padding: 1.5rem;
    }

    .timer-row {
        gap: 0.8rem;
    }

    .timer-item {
        min-width: 70px;
    }
}

@media (max-width: 550px) {
    .timer-item {
        min-width: 60px;
    }
}

/* SECTIONS */
section {
    padding: 110px 0;
}

.card,
.details-card,
.rsvp-card {
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 55px;
    box-shadow: 0 20px 60px rgba(80,120,180,.12);
}

h2 {
    font-size: 56px;
    text-align: center;
    margin-bottom: 30px;
    color: #2d4d70;
    font-family: 'HoneyVineyard', sans-serif;
}

.card p,
.details-card p {
    text-align: center;
    line-height: 1.9;
    font-size: 18px;
    color: #4d6178;
}

/* INFO */
.info-grid {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item {
    background: linear-gradient(180deg, #eef7ff, #dcefff);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
}

.label {
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7292b3;
    margin-bottom: 12px;
}

.value {
    font-size: 24px;
    color: #2d4d70;
}

/* TIMELINE */
.timeline {
    background: linear-gradient(180deg, #f4f9ff 0%, #e5f2ff 100%);
}

.timeline-wrapper {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255,255,255,.75);
    border-radius: 35px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(80,120,180,.12);
    padding: 45px;
}

.timeline-list {
    margin-top: 35px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 25px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(237,246,255,.95), rgba(225,239,255,.95));
    border-radius: 24px;
    padding: 26px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.time {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, #8fc6ff, #6ea9e6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(110,169,230,.35);
}

.content h3 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #2d4d70;
}

.content p {
    margin-bottom: 6px;
    font-size: 17px;
}

.content small {
    color: #7c8fa5;
    line-height: 1.6;
    font-size: 15px;
}

/* MAP */
.map-section {
    padding-top: 30px;
}

.map-card {
    overflow: hidden;
    border-radius: 35px;
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(80,120,180,.12);
}

.map-card iframe {
    width: 100%;
    height: 420px;
    border: none;
}

.map-info {
    padding: 35px;
    text-align: center;
}

.map-info h3 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #2d4d70;
}

.map-info p {
    color: #67809c;
    line-height: 1.7;
    font-size: 17px;
}

/* RSVP */
.rsvp-card form {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input,
select,
textarea {
    width: 100%;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid #d7e9fb;
    background: rgba(255,255,255,.9);
    font-size: 16px;
    outline: none;
    font-family: 'CormorantInfant-Light', 'Cormorant Infant', serif;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* FOOTER */
footer {
    padding: 40px 20px 60px;
    text-align: center;
    color: #6b89a8;
    font-size: 18px;
}



/* АНИМАЦИИ */
section,
.timeline-item,
.card {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

section.show,
.timeline-item.show,
.card.show {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,.25), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.15), transparent 40%);
    animation: floatBg 12s ease-in-out infinite;
    pointer-events: none;
}

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

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 42px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .time {
        margin: 0 auto;
    }

    .card,
    .details-card,
    .rsvp-card,
    .timeline-wrapper {
        padding: 35px 25px;
    }

    section {
        padding: 80px 0;
    }


    .hero-date {
        font-size: 18px;
        letter-spacing: 4px;
    }
}

/* Стеклянный эффект */
.card::before,
.timeline-item::before,
.details-card::before,
.rsvp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.35), rgba(255,255,255,0));
    pointer-events: none;
    border-radius: inherit;
}

.card, .details-card, .rsvp-card, .timeline-item {
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
}

.hero {
    background-attachment: fixed;
}