:root {
    --ink: #f7fbff;
    --muted: #b7cad6;
    --soft: #d8e6ec;
    --night: #07141d;
    --deep: #0d2635;
    --panel: rgba(10, 29, 41, 0.78);
    --panel-strong: rgba(9, 25, 36, 0.92);
    --line: rgba(166, 216, 234, 0.18);
    --blue: #49bde8;
    --green: #7fc77b;
    --amber: #f0b85a;
    --coral: #ee775f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

@font-face {
    font-family: "OpenSansRegular";
    src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "OpenSansBold";
    src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
}

@font-face {
    font-family: "OpenSansLight";
    src: url("../fonts/OpenSans-Light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--night) url("../images/bg_rg.png") center / cover fixed no-repeat;
    color: var(--ink);
    font-family: "OpenSansRegular", Arial, sans-serif;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(140deg, rgba(7, 20, 29, 0.76), rgba(17, 50, 61, 0.58)),
        linear-gradient(0deg, rgba(7, 20, 29, 0.58), rgba(7, 20, 29, 0.14));
}

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(7, 20, 29, 0.92), rgba(12, 40, 56, 0.76)),
        url("../images/tx_label_blue.png") center / auto repeat;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.brand-lockup {
    display: grid;
    grid-template-columns: minmax(88px, 150px) 64px minmax(88px, 150px);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo,
.brand-word {
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.brand-logo {
    width: 64px;
    height: 64px;
    background-image: url("../images/logo_rg.png");
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
    animation: logo-breathe 5s ease-in-out infinite;
}

.brand-word {
    height: 38px;
}

.brand-word--left {
    background-image: url("../images/text_rg_1.png");
}

.brand-word--right {
    background-image: url("../images/text_rg_2.png");
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav__link {
    position: relative;
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--soft);
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
    background-color: rgba(73, 189, 232, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 86svh;
    overflow: hidden;
    padding: 138px clamp(18px, 5vw, 72px) 44px;
    isolation: isolate;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5, 16, 24, 0.86) 0%, rgba(6, 20, 29, 0.56) 46%, rgba(6, 20, 29, 0.18) 100%),
        linear-gradient(0deg, rgba(7, 20, 29, 0.95) 0%, rgba(7, 20, 29, 0.18) 48%, rgba(7, 20, 29, 0.62) 100%),
        url("../images/site_screen_1.jpg") center / cover no-repeat;
    animation: scenic-pan 22s ease-in-out infinite alternate;
    transform: scale(1.04);
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--amber);
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "OpenSansBold", Arial, sans-serif;
    line-height: 1.08;
}

h1 {
    max-width: 820px;
    font-size: clamp(46px, 8vw, 112px);
}

h2 {
    font-size: clamp(30px, 4vw, 56px);
}

h3 {
    font-size: clamp(20px, 2vw, 26px);
}

.hero__lead {
    max-width: 680px;
    margin-top: 20px;
    color: var(--soft);
    font-size: clamp(18px, 2vw, 24px);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: "OpenSansBold", Arial, sans-serif;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.button--primary {
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #06202c;
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.34);
    background-color: rgba(8, 26, 38, 0.38);
    color: #ffffff;
}

.hero__signal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(820px, 100%);
    margin-top: 54px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.hero__signal span {
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 14px;
    background-color: rgba(8, 26, 38, 0.68);
    color: var(--soft);
    font-family: "OpenSansBold", Arial, sans-serif;
    text-align: center;
}

.section {
    padding: clamp(62px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section--intro {
    padding-top: clamp(40px, 7vw, 82px);
}

.section__inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.intro-grid,
.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.scene-break p:not(.eyebrow),
.contact-panel p {
    max-width: 680px;
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(17px, 1.5vw, 20px);
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric {
    min-height: 146px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--panel);
    box-shadow: var(--shadow);
}

.metric__value {
    display: block;
    color: var(--green);
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: 38px;
    line-height: 1;
}

.metric__label {
    display: block;
    margin-top: 22px;
    color: var(--soft);
    font-family: "OpenSansBold", Arial, sans-serif;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 280px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(160deg, rgba(12, 40, 56, 0.92), rgba(8, 23, 32, 0.86)),
        url("../images/tx_label_blue.png") center / auto repeat;
    box-shadow: var(--shadow);
    transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--amber), var(--coral));
}

.feature-card:hover {
    border-color: rgba(127, 199, 123, 0.44);
    transform: translateY(-6px);
}

.feature-card__mark {
    display: inline-block;
    margin-bottom: 54px;
    color: var(--amber);
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: 13px;
}

.feature-card p {
    margin-top: 16px;
    color: var(--muted);
}

.scene-break {
    position: relative;
    min-height: 470px;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(90deg, rgba(6, 19, 28, 0.86), rgba(6, 19, 28, 0.32)),
        linear-gradient(0deg, rgba(7, 20, 29, 0.86), rgba(7, 20, 29, 0.12)),
        url("../images/site_screen_2.jpg") center / cover no-repeat;
    background-attachment: fixed;
}

.scene-break__content {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.scene-break h2 {
    max-width: 650px;
}

.process-list {
    display: grid;
    gap: 14px;
}

.process-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--panel);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.process-item__number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background-color: rgba(73, 189, 232, 0.14);
    color: var(--blue);
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: 22px;
}

.process-item p {
    margin-top: 8px;
    color: var(--muted);
}

.section--contact {
    padding-top: 0;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(11, 40, 55, 0.94), rgba(21, 47, 42, 0.86)),
        url("../images/tx_label_blue.png") center / auto repeat;
    box-shadow: var(--shadow);
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    padding: 18px;
    border-top: 1px solid var(--line);
    background-color: rgba(7, 20, 29, 0.92);
}

.footer-about {
    color: #879da8;
    font-family: "OpenSansRegular", Arial, sans-serif;
    text-align: center;
}

.reveal {
    transform: none;
    opacity: 1;
}

.js-enabled .reveal {
    transform: translateY(24px);
    opacity: 0;
    transition: opacity 620ms ease, transform 620ms ease;
}

.js-enabled .reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.js-enabled .feature-card:nth-child(2),
.js-enabled .process-item:nth-child(2) {
    transition-delay: 110ms;
}

.js-enabled .feature-card:nth-child(3),
.js-enabled .process-item:nth-child(3) {
    transition-delay: 220ms;
}

/* Compatibility styles for the existing privacy page header. */
.header-name_and_logo {
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    padding: 20px clamp(18px, 5vw, 64px);
    background:
        linear-gradient(90deg, rgba(7, 20, 29, 0.88), rgba(12, 40, 56, 0.72)),
        url("../images/tx_label_blue.png") center / auto repeat;
}

.logo-part-1,
.logo-part-2,
.logo_image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.logo-part-1 {
    width: min(360px, 32vw);
    height: 80px;
    background-image: url("../images/text_rg_1.png");
}

.logo-part-2 {
    width: min(360px, 32vw);
    height: 80px;
    background-image: url("../images/text_rg_2.png");
}

.logo_image {
    width: 144px;
    height: 144px;
    background-image: url("../images/logo_rg.png");
}

.main_menu {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 8vw, 110px);
    flex-wrap: wrap;
    padding: 10px 18px;
    border-top: 1px solid #35759b;
    border-bottom: 1px solid rgba(166, 216, 234, 0.18);
    background-color: rgba(13, 38, 53, 0.96);
}

.main_menu-element {
    color: #fcfbf6;
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: clamp(18px, 3vw, 32px);
}

.main_menu-element__link {
    color: #a5b3bc;
    transition: color 180ms ease;
}

.main_menu-element__link:hover,
#current-menu-element {
    color: #57ccff;
}

.privacy-policy-text {
    width: min(1040px, calc(100% - 32px));
    margin: 42px auto 64px;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--panel-strong);
    box-shadow: var(--shadow);
}

.privacy-policy-text_main-label {
    padding: 16px 0 8px;
    color: #ffffff;
    font-family: "OpenSansBold", Arial, sans-serif;
    font-size: clamp(22px, 3vw, 30px);
}

.privacy-policy-text_link_text {
    display: block;
    overflow-wrap: anywhere;
    color: #83d9ff;
    font-family: "OpenSansRegular", Arial, sans-serif;
    font-size: clamp(16px, 2vw, 19px);
}

.privacy-policy-text_link_text:hover {
    color: #ffffff;
}

.privacy-policy-text_common_text {
    padding: 10px 0;
    color: #b7d0dd;
    font-family: "OpenSansRegular", Arial, sans-serif;
    font-size: clamp(16px, 2vw, 18px);
}

@keyframes scenic-pan {
    from {
        transform: scale(1.04) translate3d(-1.5%, 0, 0);
    }
    to {
        transform: scale(1.08) translate3d(1.5%, -1%, 0);
    }
}

@keyframes logo-breathe {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.025);
    }
}

@media (max-width: 980px) {
    .site-header {
        position: absolute;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding-top: 190px;
    }

    .intro-grid,
    .process-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

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

    .feature-card {
        min-height: 220px;
    }

    .contact-panel .button {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .site-header {
        gap: 14px;
    }

    .brand-lockup {
        grid-template-columns: minmax(74px, 1fr) 54px minmax(74px, 1fr);
        gap: 8px;
        width: 100%;
    }

    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-word {
        height: 30px;
    }

    .site-nav__link {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .hero {
        min-height: 88svh;
        padding-top: 178px;
        padding-bottom: 28px;
    }

    .hero__signal,
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .hero__signal span {
        min-height: 50px;
    }

    .scene-break {
        min-height: 430px;
        background-attachment: scroll;
    }

    .process-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .process-item__number {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .button {
        width: 100%;
    }

    .hero__actions,
    .contact-panel .button {
        width: 100%;
    }

    .header-name_and_logo {
        min-height: 128px;
        gap: 8px;
    }

    .logo-part-1,
    .logo-part-2 {
        width: 34vw;
        height: 52px;
    }

    .logo_image {
        width: 74px;
        height: 74px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
