.rf-footer {
    --rf-navy: #253b61;
    --rf-navy-deep: #172b4c;
    --rf-coral: #df6d72;
    --rf-coral-strong: #bf4b54;
    --rf-ink: #182236;
    --rf-muted: #6c7686;
    --rf-line: #dfe4ea;
    --rf-paper: #f4f6f8;
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

#footer.rf-footer {
    position: relative;
    display: block !important;
    clear: both;
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    background: var(--rf-navy-deep);
    color: #fff;
}

.rf-footer *,
.rf-footer *::before,
.rf-footer *::after {
    box-sizing: border-box;
}

.rf-footer a {
    color: inherit;
    text-decoration: none;
}

.rf-footer button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.rf-footer h2,
.rf-footer h3,
.rf-footer p,
.rf-footer address {
    margin: 0;
    padding: 0;
}

.rf-shell {
    width: min(1440px, calc(100% - 80px));
    margin: 0 auto;
}

.rf-main {
    background:
        radial-gradient(circle at 88% 22%, rgba(101, 132, 172, .16), transparent 25%),
        var(--rf-navy-deep);
}

.rf-main__head {
    display: flex;
    min-height: 126px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.rf-logo {
    display: inline-flex;
}

.rf-logo img {
    display: block;
    width: auto;
    max-width: none;
    height: 50px;
}

.rf-policy {
    display: flex;
    align-items: center;
    gap: 28px;
}

.rf-policy a {
    position: relative;
    color: #c4cfdd;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s ease;
}

.rf-policy a + a::before {
    position: absolute;
    left: -14px;
    top: 50%;
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .2);
    content: "";
    transform: translateY(-50%);
}

.rf-policy a:hover,
.rf-policy .is-primary {
    color: #fff;
}

.rf-policy .is-primary {
    font-weight: 700;
}

.rf-chapels {
    display: grid;
    padding: 48px 0 54px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.rf-chapel {
    position: relative;
    min-height: 198px;
    padding: 2px clamp(22px, 2.7vw, 42px);
}

.rf-chapel:first-child {
    padding-left: 0;
}

.rf-chapel:last-child {
    padding-right: 0;
}

.rf-chapel + .rf-chapel::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, .14);
    content: "";
}

.rf-chapel__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.rf-chapel__head > span {
    color: #91a6c1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.rf-chapel__head h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.rf-chapel address {
    display: flex;
    flex-direction: column;
    color: #afbdce;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.rf-chapel address p {
    min-height: 48px;
    color: #d3dce7;
    word-break: keep-all;
}

.rf-chapel address a {
    width: fit-content;
}

.rf-chapel__map {
    display: inline-flex;
    margin-top: 20px;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
}

.rf-chapel__map span {
    color: #91a6c1;
    transition: transform .2s ease;
}

.rf-chapel__map:hover span {
    transform: translate(2px, -2px);
}

.rf-bottom {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #778ba7;
    font-size: 12px;
    letter-spacing: .015em;
}

.rf-visitors {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-visitors > span {
    color: #9aabc0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.rf-visitors p {
    color: #8699b3;
}

.rf-visitors strong {
    margin-left: 4px;
    color: #d1dae6;
    font-weight: 700;
}

.rf-visitors i {
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, .17);
}

.rf-top-wrap {
    position: fixed;
    z-index: 80;
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease;
}

.rf-top-wrap.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rf-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 8px 18px rgba(12, 27, 49, .15));
    transform: rotate(-90deg);
}

.rf-top-ring circle {
    fill: none;
    stroke-width: 2;
}

.rf-top-ring__track {
    stroke: rgba(37, 59, 97, .18);
}

.rf-top-ring__progress {
    stroke: #6f91ba;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    stroke-linecap: round;
    transition: stroke-dashoffset .08s linear;
}

.rf-top {
    position: absolute;
    inset: 5px;
    display: flex;
    width: 54px;
    height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 50%;
    background: var(--rf-navy) !important;
    box-shadow: 0 10px 28px rgba(12, 27, 49, .22);
    color: #fff;
    transition: background-color .2s ease, transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .rf-top:hover {
        background: var(--rf-coral) !important;
        transform: translateY(-2px);
    }
}

.rf-top > span {
    font-size: 17px;
    line-height: 1;
}

.rf-top small {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}

.rf-affiliate-quick {
    position: fixed;
    z-index: 81;
    right: 28px;
    bottom: 28px;
    width: 64px;
    height: 64px;
    transition: bottom .25s ease;
}

.rf-affiliate-quick.has-top-button {
    bottom: 104px;
}

.rf-affiliate-quick__trigger {
    display: flex;
    width: 64px;
    height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: 50%;
    background: var(--rf-coral-strong) !important;
    box-shadow: 0 10px 28px rgba(112, 43, 48, .28);
    color: #fff !important;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.rf-affiliate-quick__trigger > span {
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.rf-affiliate-quick__trigger small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
}

.rf-affiliate-quick__trigger[aria-expanded="true"] {
    background: var(--rf-navy) !important;
    color: #fff !important;
}

.rf-affiliate-quick__trigger[aria-expanded="true"] > span {
    transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
    .rf-affiliate-quick__trigger:hover {
        background: var(--rf-navy) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }
}

.rf-affiliate-quick__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 390px;
    padding: 24px;
    border: 1px solid #dce3ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(12, 27, 49, .22);
    color: var(--rf-ink);
}

.rf-affiliate-quick__panel[hidden] {
    display: none;
}

.rf-affiliate-quick__panel::after {
    position: absolute;
    right: 25px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid #dce3ec;
    border-bottom: 1px solid #dce3ec;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.rf-affiliate-quick__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e7ebf0;
}

.rf-affiliate-quick__head > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rf-affiliate-quick__head small {
    color: #8a96a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.rf-affiliate-quick__head strong {
    color: var(--rf-ink);
    font-size: 19px;
    letter-spacing: -.035em;
}

.rf-affiliate-quick__head button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f3f7;
    color: #647187;
    font-size: 20px;
}

.rf-affiliate-quick__group + .rf-affiliate-quick__group {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
}

.rf-affiliate-quick__group h2 {
    margin: 0 0 11px;
    color: var(--rf-navy);
    font-size: 13px;
    font-weight: 800;
}

.rf-affiliate-quick__group > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.rf-affiliate-quick__group a {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    background: #f8fafc;
    color: #526074;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.rf-affiliate-quick__group a:hover {
    border-color: var(--rf-navy);
    background: var(--rf-navy);
    color: #fff;
}

.rf-footer a:focus-visible,
.rf-footer button:focus-visible {
    outline: 3px solid rgba(223, 109, 114, .6);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .rf-shell {
        width: calc(100% - 48px);
    }

    .rf-chapels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 0;
    }

    .rf-chapel:nth-child(3) {
        padding-left: 0;
    }

    .rf-chapel:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .rf-shell {
        width: calc(100% - 32px);
    }

    .rf-main__head {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 0 30px;
    }

    .rf-logo img {
        height: 42px;
    }

    .rf-policy {
        flex-wrap: wrap;
        gap: 12px 22px;
    }

    .rf-policy a {
        font-size: 13px;
    }

    .rf-policy a + a::before {
        left: -11px;
    }

    .rf-chapels {
        display: block;
        padding: 8px 0 18px;
    }

    .rf-chapel,
    .rf-chapel:first-child,
    .rf-chapel:last-child,
    .rf-chapel:nth-child(3) {
        min-height: 0;
        padding: 28px 0 30px;
    }

    .rf-chapel + .rf-chapel::before,
    .rf-chapel:nth-child(3)::before {
        display: block;
        top: 0;
        width: 100%;
        height: 1px;
    }

    .rf-chapel__head {
        margin-bottom: 18px;
    }

    .rf-chapel address p {
        min-height: 0;
        margin-bottom: 7px;
    }

    .rf-chapel__map {
        margin-top: 14px;
    }

    .rf-bottom {
        min-height: 0;
        flex-direction: column-reverse;
        align-items: flex-start;
        padding: 25px 0 34px;
        gap: 17px;
        line-height: 1.55;
    }

    .rf-top-wrap {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .rf-top {
        inset: 4px;
        width: 46px;
        height: 46px;
    }

    .rf-affiliate-quick {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .rf-affiliate-quick.has-top-button {
        bottom: 84px;
    }

    .rf-affiliate-quick__trigger {
        width: 54px;
        height: 54px;
    }

    .rf-affiliate-quick__panel {
        width: min(360px, calc(100vw - 32px));
        padding: 20px 18px;
        border-radius: 15px;
    }

    .rf-affiliate-quick__panel::after {
        right: 19px;
    }

    .rf-affiliate-quick__head {
        margin-bottom: 17px;
        padding-bottom: 14px;
    }

    .rf-affiliate-quick__head strong {
        font-size: 17px;
    }

    .rf-affiliate-quick__group > div {
        gap: 6px;
    }

    .rf-affiliate-quick__group a {
        min-height: 36px;
        padding: 5px 6px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf-footer * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
