* {
    margin: 0;

    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', sans-serif;
    /* background-image: url("BG_6.jpeg");
    background-size: cover;
    background-position: center; */
    margin: 0;
    min-height: 100vh;

    background: linear-gradient(
        135deg,
        #fbc3d6,
        #fda2bc,
        #ffd3e2
    );
    color: #333;
    line-height: 1.6;
    /* background: linear-gradient(135deg, #d7b9f4 0%, #f8c8dc 50%, #ffe4e6 100%); */

}

.header {
    text-align: center;
    padding: 20px 20px;
    background: transparent;
    margin-top: 40px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center
}

/* START Секция с фотографией  */
.photo-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(5deg);
    }
}

.main_photo {
    display: block;
    width: 320px;
    height: 320px;
    background-image: url("/img/vika_2.jpeg");
    background-position: -100px -88px;
    background-size: 160%;

    border-radius: 50%;
    border: 12px solid transparent;
    background-clip: content-box, border-box;
    box-shadow:
        /* Основная тень */
        0 25px 50px rgba(0, 0, 0, 0.3),
        /* Радужное свечение */
        0 0 60px rgba(255, 105, 180, 0.7),
        0 0 100px rgba(255, 182, 193, 0.5),
        /* 3D эффект */
        inset 0 0 30px rgba(255, 255, 255, 0.4),
        inset 0 10px 20px rgba(255, 255, 255, 0.2),
        inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.photo {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;

    border: 12px solid transparent;
    background-clip: content-box, border-box;
    box-shadow:
        /* Основная тень */
        0 25px 50px rgba(0, 0, 0, 0.3),
        /* Радужное свечение */
        0 0 60px rgba(255, 105, 180, 0.7),
        0 0 100px rgba(255, 182, 193, 0.5),
        /* 3D эффект */
        inset 0 0 30px rgba(255, 255, 255, 0.4),
        inset 0 10px 20px rgba(255, 255, 255, 0.2),
        inset 0 -10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: saturate(1.2) contrast(1.1);
}

.photo:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(255, 105, 180, 0.9),
        0 0 150px rgba(255, 182, 193, 0.7),
        inset 0 0 40px rgba(255, 255, 255, 0.6);
    filter: saturate(1.4) brightness(1.1);
}

.glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.3) 90deg, transparent 180deg);
    animation: rotateGlow 4s linear infinite;
    z-index: -1;
}

@keyframes rotateGlow {
    100% {
        transform: rotate(360deg);
    }
}

.stars {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

@keyframes twinkle {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.3);
    }
}


.stars span {
    width: 8px;
    height: 8px;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 2s ease-in-out infinite alternate;
}

.stars span:nth-child(2) {
    animation-delay: 0.2s;
}

.stars span:nth-child(3) {
    animation-delay: 0.4s;
}

.stars span:nth-child(4) {
    animation-delay: 0.6s;
}

.stars span:nth-child(5) {
    animation-delay: 0.8s;
}

.stars span:nth-child(6) {
    animation-delay: 1s;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border-radius: 3px;
    animation: confettiFall 3s linear infinite;
}

.confetti:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    animation-duration: 4s;
}

.confetti:nth-child(3) {
    right: 20%;
    animation-delay: 1s;
    background: linear-gradient(45deg, #ff9ff3, #f368e0);
    animation-duration: 3.5s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* END Секция с фотографией Тони */

.bgstars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    /* звёздный фон */
    background-image: radial-gradient(
        rgba(255,255,255,0.6) 1px,
        transparent 1px
    );

    background-size: 80px 80px;

    animation: starsMove 20s linear infinite,
    starsTwinkle 4s ease-in-out infinite;
}

@keyframes starsTwinkle {
    0%   { opacity: 0.55; }
    50%  { opacity: 1; }
    100% { opacity: 0.55; }
}

/* медленное движение фона */
@keyframes starsMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200px 200px;
    }
}


.header h1 {
    font-family: 'Playfair Display', cursive;
    font-size: 2.5em;
    color: #B83C8F;
    text-align: center;
    display: block;
    width: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25),
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 18px rgba(212, 120, 255, 0.7);

}

.subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8em;
    color: #7A4FA3;
    font-weight: 400;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(212, 120, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.subtitle2 {
    font-family: 'Marck Script', cursive;
    font-size: 1.0em;
    color: #7A4FA3;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(212, 120, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.15);

}
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.box {
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
    position: relative;
}

h2 {
    font-family: 'Playfair Display', cursive;
    font-size: 32px;
    color: #7A4FA3;
    text-align: center;
    position: relative;
    margin: 20px 0;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(212, 120, 255, 0.6);
}




.photo {
    margin-bottom: 20px;

}

.photoAntonina {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;

}

/* Программа */
.program-box {
    max-width: 600px;
    width: 100%;
    margin: 40px auto 10px auto;
    padding: 25px 20px;

    /* прозрачный фон */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;

    /* тени и свечение */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15),
        0 0 25px rgba(212, 120, 255, 0.5);

    position: relative;
    backdrop-filter: blur(10px);
  
    border: 1px solid rgba(212, 120, 255, 0.3);
    /* лёгкое свечение по краю */
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-list li {
    font-family: 'Playfair Display', cursive;
    font-size: 18px;
    color: #721dc1;
    margin: 15px 0;
    padding-bottom: 15px;
    position: relative;

    text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}


.program-list span {
    font-weight: bold;
    color: #B83C8F;

    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.9),
        0 0 12px rgba(212, 120, 255, 0.6);
}

/* Анимация для линий между пунктами */
@keyframes glowLine {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* линия между пунктами */
.program-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #d8a3ff,
            transparent);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(199, 108, 255, 0.6);
    border-radius: 1px;
    animation: glowLine 3s linear infinite;
}

.programnote {
    font-size: 20px;       
    font-family: 'Marck Script', serif;
    color: #7A4FA3;
    line-height: 1;
}
/* Время и место */

.time-place-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.time-box {
    padding: 25px 20px 5px 20px;
}

.place-box {
    padding: 25px 20px 25px 20px;
}

.time-box,
.place-box {
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(145deg, #f8e6ff, #efd4ff);
    border-radius: 20px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15),
        /* мягкая тень */
        0 0 15px rgba(212, 120, 255, 0.5);
    /* внешнее свечение */
    transition: 0.3s ease;
}

.time-box h3,
.place-box h3 {
    font-family: 'Playfair Display', sans-serif;
    font-size: 24px;
    color: #7A4FA3;
    margin-bottom: 10px;
}

.time-box p {
    font-size: 30px;
    font-family: 'Marck Script', cursive;
    color: #C44F9E
}

.place-box p {
    font-size: 20px;
    font-family: 'Marck Script', cursive;
    color: #C44F9E
}

.datetime {
    line-height: 1.3;
}

.confirmation {
    font-size: 15px;       
    font-family: 'Marck Script', serif;
    color: #7A4FA3;
    line-height: 1;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    margin-top: 10px;
    border: none;
}

/* Wishlist */

.wishlist {
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
}

.wishlist-card {
    width: 100%;
    max-width: 600px;
}

.wishlist-head {
    padding: 18px 6px 0;
}

.wishlist-head h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.05;
    color: #6a2f90;
}

.wishlist-head p {
    margin: 10px 0 0;
    color: #8b659f;
    font-size: 15px;
}

.wishes-box {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 10px auto;
    padding: 22px 20px 18px;
    position: relative;
    background: linear-gradient(145deg, #fff3ff, #f5dcff 65%, #eed2ff);
    border: 1px solid rgba(123, 70, 163, 0.22);
    border-radius: 24px;
    min-width: 150px;
    box-shadow: 0 14px 28px rgba(83, 28, 112, 0.17);
}

.wishlist-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.wishlist-stat {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(123, 70, 163, 0.24);
    border-radius: 14px;
    padding: 10px 12px;
}

.wishlist-stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a5da5;
}

.wishlist-stat strong {
    display: block;
    margin-top: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #5c2a7b;
}

.wishlist-error,
.wishlist-loading,
.wishlist-empty {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.wishlist-error {
    background: #ffe8ef;
    border: 1px solid #f7c0d0;
    color: #a52657;
}

.wishlist-loading {
    background: #f4edff;
    border: 1px solid #dcc9ff;
    color: #5f4490;
}

.wishlist-empty {
    background: #ffffffc4;
    border: 1px solid #e5d3f7;
    color: #7a58a5;
}

.gift-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wishlist-note {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    
    color: #7A4FA3;
    /* text-align: center; */
}

.gift-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(133, 82, 168, 0.28);
    border-radius: 14px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1px);
}

.gift-item.not-available {
    opacity: 0.7;
    background: rgba(238, 238, 238, 0.82);
}

.gift-info h3 {
    margin: 0;
    color: #8342c1;
    font-size: 18px;
}

.gift-info a {
    display: inline-block;
    margin-top: 8px;
    color: #9a3780;
    text-decoration: none;
    border-bottom: 1px dashed #b86ea8;
}

.gift-info a:hover {
    color: #702f8d;
    border-bottom-color: #702f8d;
}

.gift-actions {
    margin-left: auto;
    align-self: center;
}

.btn-buy,
.gift-status {
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-buy {
    background: linear-gradient(135deg, #c69df1, #9150e1);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(111, 51, 182, 0.27);
}

.btn-buy:hover {
    filter: brightness(0.96);
}

.btn-buy:disabled {
    background: linear-gradient(135deg, #dcdada, #b9bdb9);
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
}

.btn-buy.is-loading:disabled {
    background: linear-gradient(135deg, #a05ce7, #6f33b6);
    box-shadow: 0 8px 16px rgba(111, 51, 182, 0.27);
    cursor: wait;
}

.loading-dots {
    display: inline-block;
    width: 1.3em;
    overflow: hidden;
    vertical-align: bottom;
    animation: dotsSteps 1.2s steps(4, end) infinite;
}

.loading-dots::after {
    content: "...";
}

@keyframes dotsSteps {
    0% {
        width: 0;
    }

    100% {
        width: 1.3em;
    }
}

.gift-status {
    font-weight: 600;
}

.gift-status.mine {
    background: #e8f6eb;
    color: #2e8f49;
    border: 1px solid #9fd9ac;
    cursor: pointer;
}

.gift-status.reserved {
    background: #ececec;
    color: #6d6d6d;
    border: 1px solid #d4d4d4;
}

@media (max-width: 560px) {
    .wishlist-head h2 {
        font-size: 30px;
    }

    .gift-item {
        flex-direction: column;
    }

    .gift-actions {
        margin-left: 0;
        width: 100%;
    }

    .btn-buy,
    .gift-status {
        width: 100%;
        text-align: center;
    }
}

.note-title {
    font-family: 'Marck Script', cursive;
    font-size: 15px;
    line-height: 1.2;

}

.highlight {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
}


.external-link {
    font-family: 'Marck Script', cursive;
    font-size: 20px;
    margin-right: 12px;
}
