:root {
    --rn-red: #e31b23;
    --rn-red-dark: #b90f18;
    --rn-ink: #111418;
    --rn-charcoal: #1c2025;
    --rn-muted: #69717c;
    --rn-line: #e6e8eb;
    --rn-soft: #f5f6f7;
    --rn-white: #ffffff;
    --rn-green: #1b9b68;
    --rn-shadow: 0 24px 70px rgba(17, 20, 24, .13);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--rn-white);
    color: var(--rn-ink);
    font-family: 'Manrope', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body.portal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.rn-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding-left: 28px;
    padding-right: 28px;
    width: 100%;
}

.rn-nav {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(17, 20, 24, .08);
    display: flex;
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
}

.rn-nav-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.rn-brand {
    align-items: center;
    display: inline-flex;
    text-decoration: none;
}

.rn-brand img {
    display: block;
    height: auto;
    max-width: 168px;
    width: 100%;
}

.rn-nav-links {
    align-items: center;
    display: flex;
    gap: 30px;
}

.rn-nav-links>a {
    color: #3e454e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.rn-nav-links>a:hover {
    color: var(--rn-red);
}

.rn-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 9px;
    justify-content: center;
    min-height: 46px;
    padding: 0 21px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.rn-btn:hover {
    transform: translateY(-2px);
}

.rn-btn-primary {
    background: var(--rn-red);
    box-shadow: 0 11px 28px rgba(227, 27, 35, .24);
    color: #fff;
}

.rn-btn-primary:hover {
    background: var(--rn-red-dark);
}

.rn-btn-dark {
    background: var(--rn-ink);
    color: #fff;
}

.rn-btn-outline {
    background: #fff;
    border-color: #d8dce1;
    color: var(--rn-ink);
}

.rn-btn-ghost {
    background: transparent;
    border-color: rgba(17, 20, 24, .18);
    color: var(--rn-ink);
}

.rn-hero {
    overflow: hidden;
    padding: 74px 0 82px;
    position: relative;
}

.rn-hero::before {
    background: radial-gradient(circle, rgba(227, 27, 35, .11), transparent 68%);
    content: '';
    height: 570px;
    left: -290px;
    pointer-events: none;
    position: absolute;
    top: -250px;
    width: 570px;
}

.rn-hero-grid {
    align-items: center;
    display: grid;
    gap: 66px;
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
}

.rn-hero-grid > *,
.rn-process-grid > *,
.rn-register-layout > *,
.rn-section-head > * {
    min-width: 0;
}

.rn-eyebrow {
    align-items: center;
    color: var(--rn-red);
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: .16em;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.rn-eyebrow::before {
    background: var(--rn-red);
    content: '';
    height: 2px;
    width: 30px;
}

.rn-hero h1 {
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .99;
    margin: 0;
}

.rn-hero h1 span {
    color: var(--rn-red);
}

.rn-hero-copy>p {
    color: var(--rn-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 26px 0 30px;
    max-width: 540px;
}

.rn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rn-trust-row {
    border-top: 1px solid var(--rn-line);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 42px;
    padding-top: 23px;
}

.rn-trust-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.rn-trust-item span {
    color: var(--rn-muted);
    font-size: 11px;
    line-height: 1.5;
}

.rn-hero-media {
    min-height: 560px;
    position: relative;
}

.rn-photo-frame {
    border-radius: 8px 8px 96px 8px;
    box-shadow: var(--rn-shadow);
    height: 100%;
    inset: 0;
    overflow: hidden;
    position: absolute;
}

.rn-photo-frame::after {
    background: linear-gradient(180deg, transparent 58%, rgba(8, 10, 12, .56));
    content: '';
    inset: 0;
    position: absolute;
}

.rn-photo-frame img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rn-live-card {
    align-items: center;
    background: #fff;
    border-radius: 14px;
    bottom: 28px;
    box-shadow: 0 18px 48px rgba(17, 20, 24, .2);
    display: flex;
    gap: 13px;
    left: -36px;
    padding: 15px 18px;
    position: absolute;
    z-index: 2;
}

.rn-live-card .rn-live-icon {
    align-items: center;
    background: #fff0f1;
    border-radius: 50%;
    color: var(--rn-red);
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    margin-top: 0;
    width: 42px;
}

.rn-live-icon i {
    font-size: 17px;
}

.rn-live-card strong,
.rn-live-card span {
    display: block;
}

.rn-live-card strong {
    font-size: 13px;
}

.rn-live-card span {
    color: var(--rn-muted);
    font-size: 10px;
    margin-top: 3px;
}

.rn-section {
    padding: 92px 0;
}

.rn-section-soft {
    background: var(--rn-soft);
}

.rn-section-dark {
    background: var(--rn-charcoal);
    color: #fff;
}

.rn-section-head {
    align-items: end;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 42px;
}

.rn-section-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0;
    max-width: 650px;
}

.rn-section-head p {
    color: var(--rn-muted);
    font-size: 13px;
    line-height: 1.75;
    margin: 0;
    max-width: 400px;
}

.rn-service-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.rn-service-card {
    background: #fff;
    border: 1px solid var(--rn-line);
    border-radius: 6px;
    min-height: 250px;
    padding: 28px;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
}

.rn-service-card:hover {
    box-shadow: 0 18px 42px rgba(17, 20, 24, .08);
    transform: translateY(-5px);
}

.rn-service-number {
    color: #b8bdc3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.rn-service-icon {
    align-items: center;
    background: #fff1f2;
    border-radius: 12px;
    color: var(--rn-red);
    display: flex;
    font-size: 18px;
    height: 48px;
    margin: 28px 0 22px;
    justify-content: center;
    width: 48px;
}

.rn-service-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
}

.rn-service-card p {
    color: var(--rn-muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.rn-work-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.45fr .75fr .75fr;
}

.rn-work-card {
    background: #fff;
    border-radius: 8px;
    min-height: 390px;
    overflow: hidden;
    position: relative;
}

.rn-work-card-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rn-work-card-photo::after {
    background: linear-gradient(180deg, transparent 42%, rgba(10, 12, 14, .9));
    content: '';
    inset: 0;
    position: absolute;
}

.rn-work-caption {
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 30px;
    position: absolute;
    right: 0;
    z-index: 1;
}

.rn-work-caption span {
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rn-work-caption h3 {
    font-size: 24px;
    margin: 8px 0 0;
}

.rn-work-card-copy {
    border: 1px solid var(--rn-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
}

.rn-work-card-system {
    background: #101317;
    border-color: #101317;
    color: #fff;
    isolation: isolate;
    justify-content: flex-end;
}

.rn-work-card-system::after {
    background: linear-gradient(180deg, rgba(9, 11, 14, .08) 22%, rgba(9, 11, 14, .88) 100%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.rn-work-card-background {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    transition: transform .5s ease;
    width: 100%;
    z-index: 0;
}

.rn-work-card-system:hover .rn-work-card-background {
    transform: scale(1.035);
}

.rn-work-card-system > i {
    display: none !important;
}

.rn-work-card-system > div {
    position: relative;
    z-index: 2;
}

.rn-work-card-copy.rn-work-card-system p {
    color: rgba(255, 255, 255, .72);
}

.rn-work-card-copy.is-dark {
    background: var(--rn-charcoal);
    border-color: var(--rn-charcoal);
    color: #fff;
}

.rn-work-card-copy i {
    color: var(--rn-red);
    font-size: 24px;
}

.rn-work-card-copy h3 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.rn-work-card-copy p {
    color: var(--rn-muted);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.rn-work-card-copy.is-dark p {
    color: rgba(255, 255, 255, .58);
}

.rn-process-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: .8fr 1.2fr;
}

.rn-process-copy h2 {
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0 0 18px;
}

.rn-process-copy p {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.8;
    max-width: 450px;
}

.rn-process-list {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.rn-process-item {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    gap: 20px;
    grid-template-columns: 48px 1fr auto;
    min-height: 94px;
}

.rn-process-item>b {
    color: var(--rn-red);
    font-size: 11px;
}

.rn-process-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.rn-process-item span {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

.rn-process-item i {
    color: rgba(255, 255, 255, .35);
}

.rn-cta {
    align-items: center;
    display: flex;
    gap: 36px;
    justify-content: space-between;
    padding: 72px 0;
}

.rn-cta h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -.045em;
    margin: 0 0 10px;
}

.rn-cta p {
    color: var(--rn-muted);
    font-size: 13px;
    margin: 0;
}

.rn-footer {
    border-top: 1px solid var(--rn-line);
    color: var(--rn-muted);
    font-size: 11px;
    padding: 27px 0;
}

.rn-footer-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.rn-footer img {
    filter: grayscale(1);
    opacity: .72;
    width: 118px;
}

/* Staff portal dialog */
.rn-portal[hidden] {
    display: none;
}

.rn-portal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 100;
}

.rn-portal-backdrop {
    background: rgba(10, 12, 15, .76);
    border: 0;
    cursor: default;
    inset: 0;
    position: absolute;
    backdrop-filter: blur(7px);
}

.rn-portal-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, .3);
    max-height: calc(100vh - 48px);
    max-width: 460px;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.rn-portal-close {
    align-items: center;
    background: #f1f2f4;
    border: 0;
    border-radius: 50%;
    color: #555d66;
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 36px;
}

.rn-portal-kicker {
    color: var(--rn-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.rn-portal-dialog h2 {
    font-size: 30px;
    letter-spacing: -.035em;
    margin: 12px 0 8px;
}

.rn-portal-subtitle {
    color: var(--rn-muted);
    font-size: 12px;
    line-height: 1.65;
    margin: 0 0 24px;
}

.rn-alert {
    align-items: flex-start;
    border: 1px solid;
    border-radius: 9px;
    display: flex;
    font-size: 12px;
    font-weight: 650;
    gap: 10px;
    line-height: 1.55;
    margin-bottom: 19px;
    padding: 12px 14px;
}

.rn-alert-danger {
    background: #fff3f4;
    border-color: #ffc9cc;
    color: #8d1a20;
}

.rn-alert-success {
    background: #effaf5;
    border-color: #bde8d4;
    color: #176b4c;
}

.rn-form-group {
    margin-bottom: 17px;
}

.rn-form-label {
    color: #30363d;
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.rn-input-wrap {
    position: relative;
}

.rn-input-wrap>i,
.rn-input-wrap>.rn-input-icon {
    color: #a1a7ae;
    left: 15px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.rn-input,
.rn-select,
.rn-textarea {
    background: #f8f9fa;
    border: 1px solid #dde0e4;
    border-radius: 9px;
    color: var(--rn-ink);
    font-size: 13px;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}

.rn-input,
.rn-select {
    height: 48px;
    padding: 0 14px;
}

.rn-input.has-icon,
.rn-select.has-icon {
    padding-left: 42px;
}

.rn-textarea {
    min-height: 92px;
    padding: 13px 14px;
    resize: vertical;
}

.rn-input:focus,
.rn-select:focus,
.rn-textarea:focus {
    background: #fff;
    border-color: var(--rn-red);
    box-shadow: 0 0 0 4px rgba(227, 27, 35, .09);
}

.rn-login-submit {
    border-radius: 9px;
    margin-top: 5px;
    width: 100%;
}

.rn-portal-meta {
    border-top: 1px solid var(--rn-line);
    color: var(--rn-muted);
    font-size: 11px;
    line-height: 1.6;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.rn-portal-meta a {
    color: var(--rn-red);
    font-weight: 800;
    text-decoration: none;
}

/* Registration */
.rn-register-page {
    background: var(--rn-soft);
}

.rn-register-nav {
    position: relative;
}

.rn-register-layout {
    display: grid;
    gap: 40px;
    grid-template-columns: 340px minmax(0, 1fr);
    padding-bottom: 70px;
    padding-top: 52px;
}

.rn-register-aside {
    align-self: start;
    position: sticky;
    top: 118px;
}

.rn-register-aside h1 {
    font-size: 38px;
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 18px 0 14px;
}

.rn-register-aside>p {
    color: var(--rn-muted);
    font-size: 12px;
    line-height: 1.75;
    margin: 0 0 24px;
}

.rn-register-photo {
    border-radius: 8px 8px 54px 8px;
    height: 208px;
    margin-bottom: 25px;
    overflow: hidden;
}

.rn-register-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.rn-register-steps {
    display: grid;
    gap: 10px;
}

.rn-register-step {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--rn-line);
    border-radius: 9px;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr;
    padding: 12px;
}

.rn-register-step>b {
    align-items: center;
    background: var(--rn-ink);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 10px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.rn-register-step strong,
.rn-register-step span {
    display: block;
}

.rn-register-step strong {
    font-size: 11px;
}

.rn-register-step span {
    color: var(--rn-muted);
    font-size: 9px;
    margin-top: 2px;
}

.rn-register-card {
    background: #fff;
    border: 1px solid var(--rn-line);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(17, 20, 24, .08);
    overflow: hidden;
}

.rn-register-card-head {
    border-bottom: 1px solid var(--rn-line);
    padding: 30px 34px 24px;
}

.rn-register-card-head h2 {
    font-size: 25px;
    letter-spacing: -.035em;
    margin: 0 0 7px;
}

.rn-register-card-head p {
    color: var(--rn-muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.rn-register-card-body {
    padding: 30px 34px 34px;
}

.rn-hint {
    align-items: flex-start;
    background: #f6f8fb;
    border-left: 3px solid var(--rn-red);
    color: #58616b;
    display: flex;
    font-size: 11px;
    gap: 10px;
    line-height: 1.6;
    margin-bottom: 27px;
    padding: 12px 14px;
}

.rn-hint i {
    color: var(--rn-red);
    margin-top: 3px;
}

.rn-form-section {
    border-top: 1px solid var(--rn-line);
    margin-top: 28px;
    padding-top: 24px;
}

.rn-form-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.rn-form-section-title {
    align-items: center;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 9px;
    margin-bottom: 18px;
}

.rn-form-section-title i {
    color: var(--rn-red);
}

.rn-form-grid {
    display: grid;
    gap: 17px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rn-form-grid .rn-form-group {
    margin: 0;
}

.rn-form-grid .is-full {
    grid-column: 1 / -1;
}

.rn-required {
    color: var(--rn-red);
}

.rn-register-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

@media (max-width: 1020px) {
    .rn-hero-grid {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }

    .rn-hero-media {
        min-height: 470px;
    }

    .rn-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rn-work-grid {
        grid-template-columns: 1.3fr .7fr;
    }

    .rn-work-card:last-child {
        grid-column: 1 / -1;
        min-height: 250px;
    }
}

@media (max-width: 820px) {
    .rn-nav-links>a:not(.rn-btn) {
        display: none;
    }

    .rn-hero {
        padding-top: 48px;
    }

    .rn-hero-grid,
    .rn-process-grid,
    .rn-register-layout {
        grid-template-columns: 1fr;
    }

    .rn-hero-media {
        min-height: 520px;
    }

    .rn-live-card {
        left: 18px;
    }

    .rn-section-head,
    .rn-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .rn-register-aside {
        position: static;
    }

    .rn-register-photo {
        height: 320px;
    }

    .rn-register-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .rn-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rn-nav {
        height: 68px;
    }

    .rn-brand img {
        width: 132px;
    }

    .rn-nav-links {
        gap: 0;
    }

    .rn-nav .rn-btn {
        gap: 0;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        width: 40px;
    }

    .rn-nav .rn-btn span {
        display: none;
    }

    .rn-hero {
        padding-bottom: 58px;
    }

    .rn-hero h1 {
        font-size: clamp(36px, 11vw, 46px);
        max-width: 100%;
    }

    .rn-hero-grid {
        display: block;
    }

    .rn-hero-copy {
        width: 100%;
    }

    .rn-hero-copy > p {
        font-size: 14px;
    }

    .rn-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rn-actions .rn-btn {
        width: 100%;
    }

    .rn-trust-row {
        grid-template-columns: 1fr;
    }

    .rn-hero-media {
        margin-top: 42px;
        min-height: 390px;
        width: 100%;
    }

    .rn-photo-frame {
        border-radius: 7px 7px 54px 7px;
    }

    .rn-live-card {
        bottom: 18px;
    }

    .rn-section {
        padding: 68px 0;
    }

    .rn-service-grid,
    .rn-work-grid,
    .rn-form-grid,
    .rn-register-steps {
        grid-template-columns: 1fr;
    }

    .rn-work-card:last-child {
        grid-column: auto;
    }

    .rn-work-card {
        min-height: 300px;
    }

    .rn-process-item {
        grid-template-columns: 34px 1fr;
    }

    .rn-process-item>i {
        display: none;
    }

    .rn-portal {
        align-items: flex-end;
        padding: 0;
    }

    .rn-portal-dialog {
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        max-width: none;
        padding: 31px 22px 28px;
    }

    .rn-register-layout {
        padding-top: 32px;
    }

    .rn-register-photo {
        height: 230px;
    }

    .rn-register-card-head,
    .rn-register-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .rn-register-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .rn-register-actions .rn-btn {
        width: 100%;
    }

    .rn-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
