.home-page {
    --panel-bg: linear-gradient(180deg, rgba(8, 37, 96, 0.74) 0%, rgba(12, 92, 183, 0.62) 100%);
    --panel-line: rgba(255, 255, 255, 0.14);
    --white: #ffffff;
    --soft-white: rgba(255, 255, 255, 0.9);
    --input-text: #14467d;
    --input-bg: rgba(255, 255, 255, 0.96);
    --button-bg: linear-gradient(180deg, #82f4ff 0%, #34cdfd 100%);
    --button-bg-hover: linear-gradient(180deg, #9af7ff 0%, #51d7ff 100%);
    --button-text: #0b4d88;
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", Arial, sans-serif;
    background: url("../images/bg.jpg") center center / cover no-repeat fixed;
    color: var(--white);
}

.home-page * {
    box-sizing: border-box;
}

.home-page .page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
}

.home-page .invitation {
    width: min(100%, 1240px);
}

.home-page .content {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    /*padding: 28px;*/
}

.home-page .content::before {
    /*content: "";*/
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(9, 25, 65, 0.3), rgba(10, 49, 112, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 90px rgba(2, 14, 43, 0.3);
}

.home-page .content-split {
    display: grid;
    grid-template-columns: minmax(320px, 0.98fr) minmax(420px, 0.92fr);
    gap: 28px;
    align-items: stretch;
}

.home-page .invite-card,
.home-page .rsvp-panel {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

.home-page .invite-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 25px 60px rgba(4, 18, 53, 0.28);
}

.home-page .invite-media {
    /*padding: 18px 18px 0;*/
}

.home-page .invite-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 700px;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
}

.home-page .invite-copy {
    padding: 20px 22px 24px;
    background: linear-gradient(180deg, rgba(10, 44, 112, 0.98), rgba(8, 37, 96, 0.98));
    text-align: left;
}

.home-page .invite-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(116, 242, 255, 0.14);
    color: #8ef6ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-page .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-page .countdown-item {
    padding: 16px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(120, 235, 255, 0.18);
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(1, 13, 41, 0.22);
}

.home-page .countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: #8ff8ff;
}

.home-page .countdown-label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(240, 247, 255, 0.82);
}

.home-page .invite-text {
    margin: 14px 0 0;
    color: rgba(234, 243, 255, 0.92);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.home-page .rsvp-panel {
    padding: 34px 32px 28px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-line);
    box-shadow: 0 24px 60px rgba(5, 22, 58, 0.24);
    text-align: center;
}

.home-page .title {
    margin: 0;
    color: #74f2ff;
    font-size: clamp(36px, 5vw, 36px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0.03em;
}

.home-page .subtitle {
    max-width: 520px;
    margin: 14px auto 28px;
    color: var(--soft-white);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.home-page .rsvp-form {
    display: grid;
    gap: 20px;
}

.home-page .field,
.home-page .guest-field,
.home-page .textarea-field {
    border: 0;
    background: var(--input-bg);
    color: var(--input-text);
    box-shadow: 0 14px 30px rgba(6, 23, 61, 0.16);
}

.home-page .field::placeholder,
.home-page .guest-field::placeholder,
.home-page .textarea-field::placeholder {
    color: rgba(20, 70, 125, 0.45);
}

.home-page .field:focus,
.home-page .guest-field:focus,
.home-page .textarea-field:focus {
    background: #ffffff;
    color: var(--input-text);
    box-shadow: 0 0 0 0.2rem rgba(116, 242, 255, 0.25);
}

.home-page .field {
    height: 60px;
    border-radius: 14px;
    font-size: 20px;
    padding: 0 22px;
}

.home-page .guest-wrap {
    display: flex;
}

.home-page .guest-field {
    height: 55px;
    border-radius: 14px;
    font-size: 20px;
}

.home-page .textarea-field {
    min-height: 120px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 500;
    padding: 18px 22px;
    resize: vertical;
}

.home-page .submit {
    justify-self: center;
    min-width: 220px;
    height: 60px;
    border: 0;
    border-radius: 18px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(44, 210, 255, 0.28);
}

.home-page .submit:hover,
.home-page .submit:focus {
    background: var(--button-bg-hover);
    color: var(--button-text);
    transform: translateY(-2px);
}

.home-page #rsvp-feedback {
    border-radius: 14px;
    margin-bottom: 20px;
}

.home-page .brand-block {
    margin-top: 26px;
}

.home-page .brand-logo {
    width: 96px;
    margin: 0 auto 8px;
}

.home-page .brand-company {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--soft-white);
}

.home-page .brand-hotline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-text);
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(44, 210, 255, 0.28);
}

.home-page .brand-hotline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    font-size: 20px;
}

@media (max-width: 992px) {
    .home-page {
        background: url("../images/bg-mobi.jpg") center center / cover no-repeat;
    }

    .home-page .content-split {
        grid-template-columns: 1fr;
    }

    .home-page .invite-media img {
        min-height: 420px;
    }

    .home-page .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .home-page .page {
        padding: 14px 10px;
    }

    .home-page .content {
        padding: 12px;
    }

    .home-page .rsvp-panel {
        padding: 24px 16px;
    }

    .home-page .title {
        font-size: 27px;
    }

    .home-page .subtitle {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .home-page .field,
    .home-page .guest-field {
        width: 100%;
        height: 58px;
        font-size: 18px;
    }

    .home-page .textarea-field {
        min-height: 150px;
        font-size: 17px;
    }

    .home-page .submit {
        min-width: 180px;
        height: 60px;
        font-size: 20px;
    }

    .home-page .brand-company {
        font-size: 13px;
    }

    .home-page .brand-hotline {
        width: 100%;
        justify-content: center;
        font-size: 18px;
    }

    .home-page .countdown-value {
        font-size: 28px;
    }

    .home-page .invite-text {
        font-size: 25px;
    }
}

.home-page .brand-hotline-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
