@font-face {
    font-family: "Reey";
    src: url("fonts/Reey-Regular.otf");
}

@font-face {
    font-family: "Kind";
    src: url("fonts/Kindentosca.otf");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pink:     #FF1493;
    --hot:      #E5007A;
    --soft:     #FFB6D9;
    --pale:     #FFF0F8;
    --gold:     #D4A853;
    --gold-lt:  #F0D080;
    --dark:     #1A0010;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: var(--dark);
    overflow-x: hidden;
}

.watermark {
    content: "ya-invite";
    position: fixed;
    font-size: 80px;
    color: rgba(0, 0, 0, 0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 55555;
    white-space: nowrap;
    font-weight: 600; /* выглядит аккуратнее */
}



body::after {
    content: "ya-invite";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:5555555;
    white-space:nowrap;
}

html::after {
    content: "ya-invite";
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 80px;
    color: rgba(0,0,0,0.08);
    pointer-events:none;
    z-index:555555;
    white-space:nowrap;
}
.hidden-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hidden-center {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Когда элементы становятся видимыми */
.show {
    opacity: 1;
    transform: translateY(0);
}
.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
#mainContent {
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}

#mainContent.show {
    opacity: 1;
    visibility: visible;
}

#splash {
    opacity: 1;
    transition: opacity .6s ease;
}
#splash.hide {
    opacity: 0;
    pointer-events: none;
}
.barbie-wrap {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: linear-gradient(135deg, #d6a5bd 0%, #f480bf 30%, #e2abce 60%, #fa73b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.circle-bg {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.stars-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    color: rgba(255,255,255,0.7);
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes rise {
    0% { transform: translateY(0) scale(0.5); opacity: 1; }
    100% { transform: translateY(-180px) scale(1.2); opacity: 0; }
}

.content-box {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.barbie-logo-ring {
    position: relative;
    width: 130px;
    height: 130px;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.6);
    animation: pulse-ring 1.8s ease-out infinite;
}
.ring-pulse:nth-child(2) { animation-delay: 0.6s; }
.ring-pulse:nth-child(3) { animation-delay: 1.2s; }

.logo-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2.5px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-b img{
   width: 70px;
}

.barbie-title {
    font-family: 'Reey', serif;
    font-size: 46px;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 3px 20px rgba(199,21,133,0.5);
    line-height: 1;
}



.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 240px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: #fff;
    transform: rotate(45deg);
    opacity: 0.7;
}

.open-btn {
    margin-top: 0.5rem;
    position: relative;
    background: #fff;
    color: #C71585;
    border: none;
    border-radius: 40px;
    padding: 14px 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(199,21,133,0.35);
    outline: none;
    overflow: hidden;
}

.open-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,105,180,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.open-btn:hover::before { transform: translateX(100%); }
.open-btn:hover { transform: scale(1.05); box-shadow: 0 8px 32px rgba(199,21,133,0.5); }
.open-btn:active { transform: scale(0.98); }

.sparkle-row {
    display: flex;
    gap: 20px;
    margin-top: 0.25rem;
}

.sp {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: shimmer 2s ease-in-out infinite;
}
.sp:nth-child(2) { animation-delay: 0.4s; width: 5px; height: 5px; }
.sp:nth-child(3) { animation-delay: 0.8s; }
.sp:nth-child(4) { animation-delay: 1.2s; width: 5px; height: 5px; }
.sp:nth-child(5) { animation-delay: 1.6s; }

.corner-deco {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.25;
}
.tl { top: 16px; left: 16px; }
.tr { top: 16px; right: 16px; transform: scaleX(-1); }
.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.br { bottom: 16px; right: 16px; transform: scale(-1); }

.opened-msg {
    display: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

.heart-float {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}
/* ══════════ HERO ══════════ */
.hero {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: #FFD6E8;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 52px 24px 0;
}
.hero-svg{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    z-index: 1;
    pointer-events: none;
}
.hero-svg svg{
    width: 200px;
    filter: drop-shadow(2px 5px 18px rgba(0, 0, 0, 0.5));
    height: auto;
}
.hero-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(95%, 475px);
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    z-index: 3;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.hero-birthday {
    font-family: 'Reey', cursive;
    font-size: clamp(56px, 13vw, 85px);
    color: #fff;
    text-shadow: 2px 5px 18px rgba(0,0,0,0.5);
    margin-bottom: 32px;
}

.hero-info-block {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--hot);
    text-align: center;
   position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
}




/* ══════════ NAME REVEAL ══════════ */
.name-section {
    background: #fff;
    padding: 50px 25px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.line img {
    width: 100%;
    max-width: 900px;
    rotate: -50deg;
    position: absolute;
    top: -85px;
        z-index: 1;
    left: -175px;
}
.line2 img {
    width: 100%;
    rotate: -25deg;
    position: absolute;
    bottom: 26px;
    right: -65px;
}
.line3 img {
    width: 100%;
    rotate: -204deg;
    position: absolute;
    top: 0px;
    left: 0px;
}
.name-disco-wrap {
    position: relative; z-index: 1;
    margin-bottom: 50px;
}
.name-disco-wrap img {
    width: 100px;
    filter: drop-shadow(0 12px 32px rgba(255,20,147,0.35));
    animation: fl1 4s ease-in-out infinite;
}
.name-img {
    width: 100%;
    max-width: 600px;
}


.name-big {
    font-family: 'Reey', serif;
    font-size: clamp(72px, 16vw, 160px);
    color: var(--hot);
    position: relative;
    z-index: 1;
    margin: 20px 0;
    text-align: center;
}

.name-age-line {
    margin-top: 20px;
    position: relative; z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.name-age-line::before,
.name-age-line::after {
    content: '';
    width: 48px; height: 1px;
    background: var(--gold);
}

.name-age-text {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
}

.name-deco-img {
    position: absolute;
    z-index: 0;
    opacity: 0.15;
}


/* ══════════ DETAILS ══════════ */
.details-section {
    background: #be81a6;
    padding: 0px 24px 50px;
    position: relative;
    overflow: hidden;
}

.details-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(rgba(255,20,147,0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,20,147,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative; z-index: 1;
}

.section-eyebrow {
    font-family: 'Reey', serif;
    font-size: 18px;
    color: var(--hot);
    display: block;
}

.calendar {
    font-family: 'Cormorant Garamond', sans-serif;
    width: 400px;
    max-width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto;
    z-index: 5;
}
.calendar-date {
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendar-date .month,
.calendar-date .year{
    font-size: 30px;
    color: white;
    font-family: 'Kind', serif;
    font-weight: bold;
}
.calendar-date .month span{
    font-size: 60px;
    font-weight: normal;
    color: white;
    font-family: 'Kind', serif;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0px;
    font-size: 29px;
    justify-items: center;
    justify-content: center;
}
.day {
    padding: 10px;
    width: 40px;
    height: 50px;
    color: white;
    position: relative;
}
.day.empty {
    background: transparent;
}
.heart {
    font-size: 46px;
    position: absolute;
    bottom: -27px;
    right: -13px;
    z-index: 55;
}
.heart svg {
    width: 60px;
    height: 60px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 300;
    color: black;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.details-grid {
    max-width: 600px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    margin-top: 50px;
}
.loc-img {
    width: 90%;
    max-width: 600px;
    margin: 20px 0;
}
.map-link {
    text-decoration: none;
    border: 1px solid var(--hot);
    background-color: var(--hot);
    color: white;
    font-size: 22px;
    padding: 20px 60px;
    text-align: center;
    margin: 0 auto;
    display: block;
    border-radius: 50px;
    font-family: 'Cormorant Garamond', serif;
}
.detail-card {
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}




.detail-label {
    font-size: 60px;
    font-weight: normal;
    color: white;
    font-family: 'Kind', serif;
}

.detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 1px;
}

.details-deco-img {
    position: absolute;
    opacity: 0.08;
    filter: brightness(10) sepia(1) saturate(2) hue-rotate(300deg);
    pointer-events: none;
}


/* ══════════ DRESSCODE ══════════ */
.dress-section {
    background: var(--pale);
    padding: 50px 24px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dress-inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

.dress-pill-wrap {
    margin: 32px 0;
}

.dress-pill {
    font-family: 'Reey', serif;
    font-size: clamp(28px, 5vw, 50px);
    color: var(--hot);
    position: relative;
}

.dress-pill::before,
.dress-pill::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--gold);
}
.dress-pill::before { left: 20px; }
.dress-pill::after  { right: 20px; }

.dress-note {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: #8B1A4A;
    line-height: 1.7;
    letter-spacing: 1px;
}

.dress-bunting {
    width: 380px;
    position: absolute;
    top: -137px;
    left: -114px;
    rotate: -29deg;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(194, 24, 91, 0.12));
}

.dress-deco {
    position: absolute;
    opacity: 0.18;
    pointer-events: none;
}


/* ══════════ PROGRAMME ══════════ */
.programme-section {
    background: #fff;
    padding: 50px 24px 0px;
    position: relative;
    overflow: hidden;
}

.programme-inner {
    max-width: 640px;
    margin: 0 auto;
    position: relative; z-index: 1;
}

.programme-list {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.programme-item {
    display: grid;
    grid-template-columns: 80px 1px 1fr;
    gap: 0 24px;
    align-items: stretch;
    padding: 0 0 40px;
}

.programme-item:last-child { padding-bottom: 0; }

.prog-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--pink);
    text-align: right;
    padding-top: 2px;
    letter-spacing: 1px;
}

.prog-line-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.prog-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 4px rgba(255,20,147,0.15);
}

.prog-connector {
    flex: 1;
    width: 1px;
    background: linear-gradient(180deg, var(--pink), rgba(255,20,147,0.15));
    margin-top: 6px;
}

.programme-item:last-child .prog-connector { display: none; }

.prog-content {
    padding-bottom: 8px;
}

.prog-title {
    font-family: 'Kind', serif;
    font-size: clamp(28px, 3vw, 28px);
    color: var(--hot);
    margin-bottom: 4px;
}

.prog-desc {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.prog-deco {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}


/* ══════════ RSVP ══════════ */
.rsvp-section {
    background: white;
    padding: 100px 24px 0px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.rsvp-inner {
    position: relative; z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}






.wedding-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-size: 30px;
    text-align: left;
    color: var(--hot);
    font-family: 'Cormorant Garamond', serif;

    fieldset {
        border: none;
        margin-bottom: 15px;
    }

    legend {
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
        font-style: italic;
        font-family: 'Cormorant Garamond', serif;
    }

    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;

        border: 1px solid var(--hot);
        border-radius: 5px;
        font-size: 16px;
    }
    .wedding-form input[type="radio"],
    .wedding-form input[type="checkbox"],
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    textarea {
        min-height: 100px;
    }

    button {
        -webkit-appearance: none; /* Убирает дефолтные стили в Safari */
        -moz-appearance: none; /* Для Firefox */
        appearance: none; /* Общий сброс */
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        color: white;
        background-color: var(--hot);
        border: 1px solid var(--hot);

        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: gray;
        }
    }
}
@supports (-webkit-appearance: none) {
    .wedding-form {
        max-width: 700px;
        margin: 0 auto;
        padding: 20px;
        font-size: 30px;
        font-family: "Cormorant Infant", sans-serif;
    }

    fieldset {
        border: none !important;
        padding: 0;
    }

    legend {
        font-weight: bold;
        margin-bottom: 5px;
    }

    label {
        display: block;
        margin: 5px 0;
    }

    input[type="text"],
    textarea {
        width: 100%;
        padding: 8px;
        border: 1px solid #5c5c5c;
        border-radius: 5px;
        font-size: 16px;
    }

    textarea {
        min-height: 100px;
    }

    button {
        width: 100%;
        padding: 10px;
        background: var(--hot);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;

        &:hover {
            background: gray;
        }
    }
}




@keyframes heartbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
