/* Рамка с приглашением */
.invitation-frame-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    /* background-image: url('../img/sky.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
}

.invitation-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Внешняя рамка (цвет #505940) */
.outer-frame {
    background-color: #505940;
    padding: 8px;          /* толщина внешней рамки */
    border-radius: 32px;
    max-width: 750px;
    width: 100%;
    position: relative;
}

/* Белая рамка */
.inner-frame {
    background-color: #ffffff;
    padding: 4px;           /* толщина белой рамки */
    border-radius: 500px 500px 500px 500px;
    border-color: #717d4f;
    border: 10px solid #717d4f;
    box-shadow: 0px 0px 30px 0px #717d4f;
    transform-origin: center center;
    border-width: 4px;
}

.inner-frame, .content-box {
    width: 100%;
    height: 100%;
}

/* Внутренний блок с фоном #505940 и белым текстом */
.content-box {
    background-color: #717d4f;
    border-radius: 500px 500px 500px 500px;
    padding: 40px 30px;
    text-align: center;
    color: #ffffff;
    transition: transform 0.3s ease;
    border-color: white;
    border: 10px solid;
}

.invitation-quote {
    font-size: 2rem;
    color: #d4af7a;        /* золотой акцент */
    margin-bottom: 0.5rem;
    /* margin-top: 50px; */
}

.invitation-title {
    font-size: 3em;
    font-weight: 100;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Aurora-Script', serif;
}

.second-block-main {
    max-width: 1200px !important;
    place-self: center;
}

.second-names {
    font-family: 'Aurora-Script', serif !important;
    font-size: 300% !important;
}

.invitation-text p {
    font-size: clamp(1.1rem, 3.5vw, 1.2rem);
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-family: 'kazak-gothic', sans-serif;
    font-weight: 400;
    width: 70%;
    place-self: center;
}

.invitation-decoration {
    margin-top: 20px;
    font-size: 1rem;
    letter-spacing: 4px;
    color: #d4af7a;
}


/* Контейнер для относительного позиционирования */
.invitation-card {
    position: relative;
}


.inner-frame {
    position: relative;
    overflow: visible;   /* явно разрешаем выход за пределы */
}

.corner-flower-tl {
    position: absolute;
    top: -10%;            /* отступ в процентах от высоты родителя */
    left: -10%;           /* отступ в процентах от ширины */
    width: 70%;          /* размер относительно ширины родителя */
    max-width: 240px;    /* ограничение на больших экранах */
    transform: rotate(-15deg);
    pointer-events: none;
    opacity: 0.95;
}

.corner-flower-br {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 70%;
    max-width: 240px;
    transform: rotate(-7deg);
    pointer-events: none;
    opacity: 0.95;
    transform: scaleX(-1);
}

.corner-sky-tl {
    position: absolute;
    top: -7%; 
    right: -10%;
    width: 70%;
    max-width: 240px;
    transform: rotate(-7deg);
    pointer-events: none;
    opacity: 0.5;
    transform: scaleX(-1);
}

.corner-sky-br {
    position: absolute;
    bottom: -15%; 
    left: -10%;
    width: 70%;
    max-width: 240px;
    transform: rotate(-60deg);
    pointer-events: none;
    opacity: 0.5;
}


/* Адаптив */
@media (max-width: 768px) {
    .content-box {
        padding: 100px 20px;
    }
    .outer-frame::before,
    .outer-frame::after {
        width: 35px;
        height: 35px;
        top: -10px;
        left: -10px;
    }
    .outer-frame::after {
        bottom: -10px;
        right: -10px;
    }


    .invitation-text p {
        width: 100%;
        place-self: center;
    }
}

@media (max-width: 576px) {
    .outer-frame::before,
    .outer-frame::after {
        display: none;      /* на очень маленьких экранах убираем цветы, чтобы не мешали */
    }
}