* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    color: #f7f0e6;
    background:
        linear-gradient(rgba(28, 20, 15, 0.72), rgba(28, 20, 15, 0.82)),
        radial-gradient(circle at top, #6f4a2f, #211712 70%);
}

.page {
    max-width: 980px;
    margin: 0 auto;
    padding: 38px 24px 48px;
}

.header {
    text-align: center;
    margin-bottom: 34px;
}

.header__small {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    color: #d8c0a0;
}

h1 {
    margin: 10px 0 12px;
    font-size: clamp(38px, 7vw, 72px);
    font-weight: 600;
}

.header__line {
    width: 90px;
    height: 2px;
    margin: 0 auto;
    background: #d8b46a;
}

.content {
    width: 100%;
}

.intro {
    text-align: center;
}

.intro p {
    margin: 0 0 26px;
    font-size: 25px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.company-tile {
    min-height: 170px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff7ec;
    text-decoration: none;
    font-size: 30px;
    line-height: 1.2;
    text-align: center;
    border: 1px solid rgba(216, 180, 106, 0.55);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.company-tile:hover,
.company-tile:focus {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
    border-color: #d8b46a;
}

.card {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(216, 180, 106, 0.45);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-title h2 {
    margin: 4px 0 0;
    font-size: 40px;
}

.section-title__small,
.person__label,
.table-label {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 15px;
    font-weight: 700;
    color: #d8b46a;
    margin-bottom: 10px;
}

.back-link {
    color: #ead6b8;
    font-family: Arial, sans-serif;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(234, 214, 184, 0.5);
}

.guest-list {
    display: grid;
    gap: 10px;
}

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    color: #fff7ec;
    text-decoration: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.18s ease, transform 0.18s ease;
}

.guest-item:hover,
.guest-item:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

.guest-name {
    font-size: 23px;
}

.guest-partner,
.partner {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #f1d39a;
    white-space: nowrap;
}

.detail-card {
    max-width: 760px;
    margin: 0 auto;
}

.person {
    text-align: center;
    margin-bottom: 32px;
}

.person h2 {
    margin: 8px 0;
    font-size: clamp(34px, 7vw, 58px);
}

.table-info {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 26px;
    align-items: center;
    padding: 26px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(216, 180, 106, 0.5);
}

.table-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    font-size: 82px;
    font-weight: 700;
    color: #2b1c13;
    background: #d8b46a;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.table-text h3 {
    margin: 0 0 14px;
    font-size: clamp(42px, 8vw, 62px);
    line-height: 0.95;
    font-weight: 700;
}
.table-text p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: clamp(16px, 3.7vw, 22px);
    line-height: 1.35;
    color: #f4e7d7;
}
.notice {
    padding: 18px 20px;
    border-radius: 15px;
    background: rgba(216, 180, 106, 0.16);
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-block;
    padding: 13px 19px;
    border-radius: 999px;
    color: #281b13;
    background: #d8b46a;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.button--secondary {
    color: #fff7ec;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 760px) {
    .page {
        padding: 24px 14px 34px;
    }

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

    .company-tile {
        min-height: 120px;
        font-size: 28px;
    }

    .section-title {
        display: block;
    }

    .back-link {
        display: inline-block;
        margin-top: 10px;
    }

    .guest-item {
        display: block;
    }

    .guest-partner {
        display: block;
        margin-top: 4px;
    }

    .table-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .table-mark {
        width: 130px;
        margin: 0 auto;
        font-size: 62px;
    }
}
.timeout-wrap {
    margin-top: 18px;
    height: 3px;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.timeout-bar {
    height: 100%;
    width: 100%;
    background: rgba(216, 180, 106, 0.9);
    transform-origin: left center;
    animation: timeoutBar 10s linear forwards;
}

@keyframes timeoutBar {
    from {
        transform: scaleX(1);
        opacity: 1;
    }

    to {
        transform: scaleX(0);
        opacity: 0.35;
    }
}
.language-switch {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #f7f0e6;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    border: 1px solid rgba(216, 180, 106, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.language-switch:hover,
.language-switch:focus {
    background: rgba(255, 255, 255, 0.14);
}
.table-name-box {
    margin: 8px 0 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(216, 180, 106, 0.12);
    border: 1px solid rgba(216, 180, 106, 0.35);
}

.table-name-label {
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: #d8c0a0;
}