@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Igra Sans', sans-serif !important;
}

/* Программа дня: иконка слева, время → название → пояснение (как референс-макет) */
.program-day-heading {
    letter-spacing: 0.02em;
}

.program-day-row {
    gap: 1rem;
}

@media (min-width: 576px) {
    .program-day-row {
        gap: 1.35rem;
    }
}

.program-day-icon {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1;
    opacity: 0.82;
    width: 2.75rem;
    flex-shrink: 0;
    text-align: center;
}

/* Галерея: фиксированная рамка, фото целиком без обрезки */
.gallery-carousel .carousel-inner {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: min(70vh, 32rem);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.gallery-carousel .carousel-item {
    height: 100%;
}

.gallery-carousel .carousel-item.active,
.gallery-carousel .carousel-item-next,
.gallery-carousel .carousel-item-prev {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.rsvp-table {
    font-size: 0.9rem;
}

.rsvp-table th {
    font-weight: 600;
    border-bottom-width: 1px;
}

.rsvp-table-num {
    width: 2.25rem;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
    text-align: center;
    vertical-align: middle;
}

.rsvp-table-name {
    white-space: normal;
}

.rsvp-table-fullname {
    font-weight: 500;
    line-height: 1.25;
}

.rsvp-table-role {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.2;
    opacity: 0.65;
}

.rsvp-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.rsvp-status--yes {
    background: #d8f0e0;
    color: #1b5e20;
}

.rsvp-status--overnight {
    background: #dde8f7;
    color: #1a237e;
}

.rsvp-status--no {
    background: #fce8f0;
    color: #880e4f;
}

.rsvp-status--pending {
    background: #eef1f5;
    color: #495057;
}

html[data-bs-theme="dark"] .rsvp-status--yes {
    background: rgba(102, 187, 106, 0.22);
    color: #c8e6c9;
}

html[data-bs-theme="dark"] .rsvp-status--overnight {
    background: rgba(121, 134, 203, 0.22);
    color: #c5cae9;
}

html[data-bs-theme="dark"] .rsvp-status--no {
    background: rgba(244, 143, 177, 0.2);
    color: #f8bbd0;
}

html[data-bs-theme="dark"] .rsvp-status--pending {
    background: rgba(158, 158, 158, 0.18);
    color: #bdbdbd;
}

.program-day-desc {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
}

.font-arabic {
    font-family: 'Igra Sans', sans-serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

/* Подвал «авторы»: на телефоне — слева, строки подряд без зазоров; от md — две колонки по центру */
.credits-footer-lines {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .credits-footer-lines {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 2rem;
        align-items: start;
        text-align: center;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .credits-footer-lines span:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .credits-footer-lines span:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .credits-footer-lines span:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }

    .credits-footer-lines span:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

/* Затемнение фоновых фото: на телефоне как раньше; на десктопе слева — без opacity */
.photo-fade-home {
    opacity: 0.25;
}

.photo-fade-desktop {
    opacity: 1;
}

.width-loading {
    width: 25%;
}

/* Ультраширокие мониторы: не разъезжать на всю ширину 21:9 / 4K */
#root.row {
    max-width: 100%;
}

@media screen and (min-width: 1200px) {
    #root.row {
        max-width: min(100vw, 92rem);
        margin-inline: auto !important;
    }
}

@media screen and (min-width: 1600px) {
    #root.row {
        max-width: min(100vw, 100rem);
    }
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (min-width: 992px) {
    .width-loading {
        width: min(28rem, 32%);
    }
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}