* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    color: #10233f;
    background: #f5f8fc;
}

body {
    margin: 0;
}

.shell {
    width: min(1120px, 92%);
    margin: auto;
}

.site-header {
    background: #061b35;
    color: white;
    border-bottom: 3px solid #168eea;
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .04em;
}

nav {
    display: flex;
    gap: 22px;
}

nav a {
    color: #dcecff;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    padding: 75px 0 45px;
}

.eyebrow {
    color: #087cc8;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    line-height: 1;
    margin: .2em 0;
}

.lead {
    max-width: 760px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #42566e;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 70px;
}

.card {
    background: white;
    padding: 25px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15,40,70,.06);
}

.button {
    display: inline-block;
    background: #087cc8;
    color: white;
    padding: 13px 20px;
    border: 0;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.button.secondary {
    background: #102f53;
}

form {
    max-width: 760px;
    background: white;
    padding: 28px;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    margin: 30px 0;
}

label {
    display: block;
    margin: 17px 0 7px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bccbda;
    border-radius: 8px;
    font: inherit;
}

.notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    background: #e9f6ff;
}

.error {
    background: #fff0f0;
    color: #8b2020;
}

footer {
    margin-top: 70px;
    padding: 30px 0;
    background: #061b35;
    color: #cbd9e8;
}

@media (max-width: 760px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }

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

/* =========================================
   RR V1 MULTILINGUAL SUPPORT
   EN / ZH / AR / KO / JA
   ========================================= */

.language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.language-link {
    display: inline-block;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.language-link:hover {
    border-color: currentColor;
}

.language-link.active {
    border-color: currentColor;
    font-weight: 700;
}

/* Chinese / Korean / Japanese */

.lang-zh,
.lang-ko,
.lang-ja {
    font-family:
        Arial,
        "Noto Sans CJK SC",
        "Noto Sans CJK KR",
        "Noto Sans CJK JP",
        "Microsoft YaHei",
        "PingFang SC",
        "Malgun Gothic",
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;
}

/* Arabic */

.lang-ar {
    font-family:
        Arial,
        "Noto Sans Arabic",
        Tahoma,
        sans-serif;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav {
    direction: rtl;
}

html[dir="rtl"] nav {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    direction: rtl;
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] label,
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    text-align: right;
}

/*
 * Machine identifiers remain LTR even
 * inside the Arabic interface.
 */

html[dir="rtl"] input[name="rrid"],
html[dir="rtl"] input[name="serial_number"],
html[dir="rtl"] input[type="email"] {
    direction: ltr;
    text-align: left;
}

/* Responsive language navigation */

@media (max-width: 760px) {
    .language-switcher {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }

    html[dir="rtl"] .language-switcher {
        margin-right: 0;
    }
}

/* =========================================
   RR PREMIUM PUBLIC FINISH
   ========================================= */

body {
    background:
        linear-gradient(
            180deg,
            #f7faff 0%,
            #ffffff 46%,
            #f4f8fc 100%
        );
    color: #10233f;
}

.site-header {
    box-shadow:
        0 8px 30px rgba(3, 24, 48, .12);
}

.nav {
    width: min(1180px, 92%);
    margin: auto;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.brand a {
    color: #ffffff;
    text-decoration: none;
}

nav a {
    transition:
        color .2s ease,
        opacity .2s ease;
}

nav a:hover {
    color: #ffffff;
}

.rr-home-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, .65fr);
    gap: 60px;
    align-items: center;
    padding: 95px 0 75px;
}

.rr-home-hero h1 {
    max-width: 850px;
    font-size:
        clamp(3rem, 6.5vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.registry-panel {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            #061b35,
            #0a315d 65%,
            #075c96
        );
    color: #ffffff;
    box-shadow:
        0 24px 60px rgba(5, 34, 65, .2);
}

.registry-panel::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    border:
        28px solid rgba(46, 178, 255, .12);
}

.registry-mark {
    color: #73d4ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.registry-example {
    margin: 32px 0 18px;
    font-size:
        clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: .055em;
    direction: ltr;
    text-align: left;
}

.registry-panel p {
    max-width: 320px;
    color: #dcecff;
    line-height: 1.7;
}

.trust-line {
    margin-top: 32px;
    padding-top: 20px;
    border-top:
        1px solid rgba(255,255,255,.18);
    color: #a9ddff;
    font-size: .82rem;
    font-weight: 700;
}

.section-heading {
    max-width: 800px;
    padding: 70px 0 15px;
}

.section-heading h2,
.trust-section h2,
.registry-cta h2 {
    margin: 10px 0;
    font-size:
        clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.section-heading p,
.trust-copy {
    color: #53677d;
    font-size: 1.08rem;
    line-height: 1.75;
}

.feature-grid {
    margin-top: 25px;
}

.feature-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

a.feature-card:hover {
    transform: translateY(-4px);
    border-color: #a9d9f7;
    box-shadow:
        0 18px 42px rgba(15,40,70,.11);
}

.feature-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border-radius: 50%;
    background: #e8f5ff;
    color: #087cc8;
    font-weight: 800;
}

.feature-card h2 {
    margin: 0 0 10px;
    font-size: 1.65rem;
}

.feature-card p {
    color: #53677d;
    line-height: 1.7;
}

.card-link {
    margin-top: auto;
    padding-top: 20px;
    color: #087cc8;
    font-weight: 800;
}

.rrid-mini {
    margin-top: auto;
    padding-top: 20px;
    color: #0a4775;
    font-weight: 800;
    letter-spacing: .04em;
    direction: ltr;
    text-align: left;
}

.trust-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin: 90px 0;
    padding: 55px 0;
    border-top: 1px solid #dbe6f0;
    border-bottom: 1px solid #dbe6f0;
}

.registry-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 80px 0;
    padding: 45px;
    border-radius: 24px;
    background: #edf7ff;
    border: 1px solid #cfe7f7;
}

.registry-cta p {
    color: #53677d;
}

.registry-record dl {
    display: grid;
    grid-template-columns:
        minmax(150px, .45fr)
        minmax(0, 1fr);
    gap: 0;
}

.registry-record dt,
.registry-record dd {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #e1e8ef;
}

.registry-record dt {
    font-weight: 800;
}

.registry-record dd {
    color: #42566e;
}

@media (max-width: 900px) {

    .rr-home-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto;
        padding: 65px 0 45px;
    }

    .trust-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .registry-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {

    .nav {
        width: 92%;
    }

    .container {
        width: 92%;
    }

    .rr-home-hero h1 {
        font-size:
            clamp(2.7rem, 13vw, 4rem);
    }

    .registry-panel {
        padding: 28px;
    }

    .registry-cta {
        padding: 28px;
    }

    .registry-record dl {
        grid-template-columns: 1fr;
    }

    .registry-record dt {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .registry-record dd {
        padding-top: 3px;
    }
}

html[dir="rtl"] .registry-example,
html[dir="rtl"] .rrid-mini {
    direction: ltr;
    text-align: right;
}

/* =========================================
   RR OFFICIAL BRANDING
   ========================================= */

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand a {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 310px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .brand-logo {
        height: 46px;
        max-width: 270px;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        height: 40px;
        max-width: 235px;
    }
}

/* =========================================
   RR LIGHT GLOBAL HEADER + FOOTER
   STEP 11A
   ========================================= */

.site-header {
    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #f5fbff 48%,
            #e6f5ff 100%
        );
    border-bottom: 1px solid #b9ddf5;
    box-shadow: 0 3px 16px rgba(6, 48, 86, 0.08);
}

.site-header .nav {
    min-height: 82px;
}

.site-header .brand a {
    color: #08294c;
}

.site-header nav a {
    color: #102f50;
    font-weight: 700;
}

.site-header nav a:hover {
    color: #0784d1;
}

.brand-logo {
    height: 58px;
    max-width: 325px;
}

.language-link {
    background: rgba(255,255,255,0.72);
    border: 1px solid #8fc9ee;
    color: #1269a6;
}

.language-link:hover {
    background: #ffffff;
    border-color: #168ed5;
    color: #075b94;
}

.language-link.active {
    background: #087fc5;
    border-color: #087fc5;
    color: #ffffff;
}

.site-footer {
    margin-top: 70px;
    background:
        linear-gradient(
            110deg,
            #eef9ff 0%,
            #dff2ff 50%,
            #edf9ff 100%
        );
    border-top: 1px solid #b9ddf5;
    color: #173a5c;
}

.site-footer a {
    color: #0a6cae;
}

.site-footer a:hover {
    color: #084f81;
}

@media (max-width: 900px) {
    .site-header .nav {
        min-height: 72px;
    }

    .brand-logo {
        height: 50px;
        max-width: 285px;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        height: 44px;
        max-width: 245px;
    }
}

/* =========================================
   RR PUBLIC NAV + FOOTER
   STEP 11B-2
   ========================================= */

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-header nav a {
    text-decoration: none;
    white-space: nowrap;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-top: 42px;
    padding-bottom: 30px;
}

.footer-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 290px;
    object-fit: contain;
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 470px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links strong {
    color: #102f50;
    margin-bottom: 4px;
}

.footer-links a {
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #b9ddf5;
    padding-top: 18px;
    padding-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.page-hero {
    padding: 68px 0 38px;
    max-width: 900px;
}

.page-hero h1 {
    max-width: 850px;
}

.content-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 20px 0 46px;
}

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

.step-number {
    display: inline-block;
    font-weight: 800;
    color: #0784d1;
    margin-bottom: 12px;
    letter-spacing: .08em;
}

.info-section,
.cta-panel {
    margin: 38px 0;
    padding: 32px;
    border: 1px solid #c9e3f4;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(8, 57, 94, .06);
}

.cta-panel .button {
    margin-right: 10px;
    margin-top: 8px;
}

html[dir="rtl"] .cta-panel .button {
    margin-right: 0;
    margin-left: 10px;
}

@media (max-width: 1050px) {
    .site-header nav {
        gap: 12px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .content-grid,
    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header nav {
        width: 100%;
    }
}

/* =========================================
   RR HOMEPAGE HERO IMAGE - STEP 11C
   ========================================= */

.rr-home-hero {
    align-items: stretch;
}

.hero-visual {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(8, 57, 94, .16);
    background: #eaf6fd;
}

.rr-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    object-position: center;
}

.hero-rrid-card {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(6, 34, 59, .88);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
}

.hero-rrid-card .registry-mark {
    color: #8edcff;
}

.hero-rrid-card .registry-example {
    color: #ffffff;
}

.hero-rrid-card p {
    color: #e8f6ff;
    margin-bottom: 0;
}

html[dir="rtl"] .hero-rrid-card {
    text-align: right;
}

@media (max-width: 900px) {
    .hero-visual,
    .rr-hero-image {
        min-height: 380px;
    }
}

@media (max-width: 600px) {
    .hero-visual,
    .rr-hero-image {
        min-height: 310px;
    }

    .hero-rrid-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 14px 16px;
    }
}

/* =========================================
   RR FULL-WIDTH CINEMATIC HERO
   ========================================= */

.rr-home-hero {
    position: relative;
    display: block;
    min-height: 650px;
    margin-top: 34px;
    margin-bottom: 70px;
    padding: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #eaf6fd;
    box-shadow: 0 24px 60px rgba(8, 57, 94, .14);
}

.rr-home-hero .hero-visual {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

.rr-home-hero .rr-hero-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.rr-home-hero .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(246, 251, 255, .98) 0%,
            rgba(246, 251, 255, .93) 32%,
            rgba(246, 251, 255, .58) 52%,
            rgba(246, 251, 255, .08) 76%
        );
    pointer-events: none;
}

.rr-home-hero .hero-copy {
    position: relative;
    z-index: 3;
    width: min(610px, 55%);
    padding: 82px 0 82px 64px;
}

.rr-home-hero h1 {
    max-width: 610px;
    font-size: clamp(3.1rem, 5.5vw, 5.25rem);
}

.rr-home-hero .lead {
    max-width: 570px;
    color: #334c65;
}

.rr-home-hero .hero-rrid-card {
    z-index: 4;
    left: auto;
    right: 26px;
    bottom: 26px;
    width: min(330px, 32%);
}

@media (max-width: 900px) {

    .rr-home-hero {
        min-height: 720px;
        margin-top: 22px;
    }

    .rr-home-hero .hero-visual::after {
        background:
            linear-gradient(
                180deg,
                rgba(246, 251, 255, .98) 0%,
                rgba(246, 251, 255, .92) 48%,
                rgba(246, 251, 255, .18) 78%
            );
    }

    .rr-home-hero .hero-copy {
        width: auto;
        padding: 48px 34px;
    }

    .rr-home-hero .hero-rrid-card {
        left: 24px;
        right: 24px;
        bottom: 24px;
        width: auto;
    }
}

@media (max-width: 600px) {

    .rr-home-hero {
        min-height: 760px;
        border-radius: 22px;
    }

    .rr-home-hero .hero-copy {
        padding: 38px 24px;
    }

    .rr-home-hero h1 {
        font-size: clamp(2.6rem, 12vw, 3.6rem);
    }

    .rr-home-hero .lead {
        font-size: 1rem;
        line-height: 1.55;
    }
}

/* =========================================
   RR ARABIC / RTL PRESENTATION FIX
   ========================================= */

/*
 * The RR hero artwork has its primary robot
 * subjects on the right. Keep Arabic copy in
 * the open left portion while preserving RTL
 * typography inside the copy itself.
 */

html[dir="rtl"] .rr-home-hero {
    direction: ltr;
}

html[dir="rtl"] .rr-home-hero .hero-copy {
    direction: rtl;
    text-align: right;
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .rr-home-hero .hero-actions {
    direction: rtl;
    justify-content: flex-start;
}

html[dir="rtl"] .rr-home-hero .hero-rrid-card {
    direction: rtl;
    text-align: right;
    left: auto;
    right: 26px;
}

/*
 * Preserve natural Arabic typography without
 * forcing oversized English-style tracking.
 */

html[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

html[dir="rtl"] .rr-home-hero h1 {
    line-height: 1.08;
    letter-spacing: 0;
}

/*
 * Keep the informational sections readable
 * and naturally aligned in Arabic.
 */

html[dir="rtl"] .section-heading,
html[dir="rtl"] .feature-card,
html[dir="rtl"] .trust-section,
html[dir="rtl"] .registry-cta {
    text-align: right;
}

html[dir="rtl"] .feature-grid {
    direction: rtl;
}

html[dir="rtl"] .trust-section {
    direction: rtl;
}

html[dir="rtl"] .registry-cta {
    direction: rtl;
}

html[dir="rtl"] .cta-actions {
    direction: rtl;
}

@media (max-width: 900px) {

    html[dir="rtl"] .rr-home-hero .hero-copy {
        width: auto;
        margin: 0;
    }

    html[dir="rtl"] .rr-home-hero .hero-rrid-card {
        left: 24px;
        right: 24px;
        width: auto;
    }
}

/* =========================================
   RR CONTACT FORM
   ========================================= */

.contact-form-section {
    margin-top: 36px;
}

.contact-form {
    margin-top: 28px;
    max-width: 900px;
}

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

.contact-form label {
    display: block;
    font-weight: 700;
    color: #092846;
}

.contact-form label span {
    display: block;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfd5e5;
    border-radius: 12px;
    background: #ffffff;
    color: #092846;
    font: inherit;
    padding: 13px 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid #5eb9ec;
    outline-offset: 1px;
    border-color: #1788c9;
}

.message-field {
    margin-top: 20px;
    margin-bottom: 22px;
}

.form-message {
    max-width: 900px;
    padding: 15px 18px;
    margin: 18px 0;
    border-radius: 12px;
    font-weight: 700;
}

.form-message.success {
    background: #e9f8ef;
    border: 1px solid #9bd6ae;
    color: #145b2c;
}

.form-message.error {
    background: #fff0f0;
    border: 1px solid #e2aaaa;
    color: #8b2020;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

html[dir="rtl"] .contact-form,
html[dir="rtl"] .contact-form label {
    text-align: right;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   RR FINAL RESPONSIVE HEADER
   Desktop: brand/languages + navigation row
   Mobile: clean stacked navigation
   ========================================= */

.site-header .nav {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "brand languages"
        "navigation navigation";
    align-items: center;
    column-gap: 28px;
    row-gap: 4px;
    padding-top: 12px;
    padding-bottom: 11px;
    min-height: 0;
}

.site-header .brand {
    grid-area: brand;
    min-width: 0;
}

.site-header nav {
    grid-area: navigation;
    width: 100%;
    justify-content: center;
    gap: 10px 22px;
    padding-top: 9px;
    border-top: 1px solid rgba(23, 136, 201, .12);
}

.site-header .language-switcher {
    grid-area: languages;
    justify-self: end;
    margin-left: 0;
    gap: 5px;
}

.site-header .language-link {
    color: #31516e;
    background: rgba(255,255,255,.72);
    border: 1px solid #c4deee;
    border-radius: 999px;
    padding: 5px 9px;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.site-header .language-link:hover {
    color: #075f99;
    background: #ffffff;
    border-color: #7fc3e8;
}

.site-header .language-link.active {
    color: #ffffff;
    background: #0a6cae;
    border-color: #0a6cae;
}

@media (max-width: 1050px) {

    .site-header nav {
        gap: 9px 15px;
        font-size: 13px;
    }

    .site-header .language-link {
        padding: 5px 7px;
        font-size: 11px;
    }
}

@media (max-width: 900px) {

    .site-header .nav {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "languages"
            "navigation";
        row-gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-header .brand {
        justify-self: center;
    }

    .site-header .language-switcher {
        width: 100%;
        justify-content: center;
        justify-self: stretch;
        margin: 0;
    }

    .site-header nav {
        justify-content: center;
        padding-top: 12px;
        gap: 10px 18px;
    }

    html[dir="rtl"] .site-header .language-switcher {
        margin: 0;
    }
}

@media (max-width: 600px) {

    .site-header .nav {
        width: 92%;
        align-items: stretch;
    }

    .site-header .brand-logo {
        height: 42px;
        max-width: min(245px, 82vw);
    }

    .site-header .language-switcher {
        gap: 5px;
    }

    .site-header .language-link {
        padding: 5px 7px;
        font-size: 10px;
    }

    .site-header nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 8px;
        width: 100%;
    }

    .site-header nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 5px 7px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        border-radius: 8px;
        background: rgba(255,255,255,.58);
    }

    html[dir="rtl"] .site-header nav a {
        text-align: center;
    }
}

@media (max-width: 360px) {

    .site-header .language-link {
        padding: 4px 5px;
        font-size: 9px;
    }

    .site-header nav {
        font-size: 12px;
    }
}

