@charset "utf-8";

/* s: Gnuboard popup layer */
#hd_pop {
    position: relative;
    z-index: 1100;
    width: min(100%, var(--rb-content-width));
    height: 0;
    margin: 0 auto;
}

#hd_pop > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hd_pops {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 14px;
    background: var(--rb-white);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.hd_pops img {
    max-width: 100%;
}

.hd_pops_footer {
    position: relative;
    padding: 0;
    background: var(--rb-black);
    color: var(--rb-white);
}

.hd_pops_footer::after {
    display: block;
    clear: both;
    content: "";
}

.hd_pops_footer button {
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    background: var(--rb-black);
    color: var(--rb-white);
    font-size: 16px;
}

.hd_pops_footer .hd_pops_close {
    position: absolute;
    top: 0;
    right: 0;
    background: #283143;
}
/* e: Gnuboard popup layer */

/* s: header */
.rb-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 1000;
    width: min(calc(100% - 36px), var(--rb-content-width));
    height: var(--rb-header-height);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(5, 10, 20, 0.82);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
    color: var(--rb-white);
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.rb-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 14px 0 22px;
}

.rb-logo {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
}

.rb-logo a,
.rb-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rb-logo img,
.rb-footer-logo img {
    width: 38px;
    height: 38px;
}

.rb-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.6vw, 46px);
}

.rb-nav a {
    position: relative;
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rb-nav a::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 1px;
    background: var(--rb-white);
    content: "";
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.25s ease;
}

.rb-nav a:hover,
.rb-nav a:focus-visible {
    color: var(--rb-white);
}

.rb-nav a:hover::after,
.rb-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.rb-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rb-admin {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 700;
}

.rb-header__consult {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--rb-blue);
    color: var(--rb-white);
    font-size: 16px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rb-header__consult:hover,
.rb-header__consult:focus-visible {
    background: #4381ff;
    transform: translateY(-2px);
}

.rb-menu {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.rb-menu span {
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--rb-white);
    transition: top 0.2s ease, transform 0.2s ease;
}

.rb-menu span:first-child {
    top: 18px;
}

.rb-menu span:last-child {
    top: 26px;
}

.rb-menu.is-open span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.rb-menu.is-open span:last-child {
    top: 22px;
    transform: rotate(-45deg);
}
/* e: header */

/* s: common labels and buttons */
.rb-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
}

.rb-kicker > span {
    width: 32px;
    height: 2px;
    background: currentColor;
}

.rb-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 62px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rb-button > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.rb-button:hover,
.rb-button:focus-visible {
    transform: translateY(-3px);
}

.rb-button--primary {
    background: var(--rb-blue);
    color: var(--rb-white);
}

.rb-button--primary:hover,
.rb-button--primary:focus-visible {
    background: #4381ff;
}

.rb-button--text {
    gap: 14px;
    min-height: 0;
    padding: 16px 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
}

.rb-button--text > span {
    background: transparent;
}

.rb-button--light {
    background: var(--rb-white);
    color: var(--rb-blue-dark);
}

.rb-button--light > span {
    background: rgba(11, 72, 201, 0.08);
}
/* e: common labels and buttons */

/* s: fullpage section navigation */
.rb-section-nav {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 900;
    color: var(--rb-white);
    transform: translateY(-50%);
    transition: color 0.25s ease;
}

.rb-section-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.rb-section-nav a {
    display: grid;
    grid-template-columns: 24px 28px 72px;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: inherit;
    font-size: 16px;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.rb-section-nav a:hover,
.rb-section-nav a:focus-visible,
.rb-section-nav a.is-active {
    opacity: 1;
}

.rb-section-nav a span,
.rb-section-nav a b {
    font-size: 16px;
    font-weight: 700;
}

.rb-section-nav a i {
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0.35);
    transform-origin: right center;
    transition: transform 0.25s ease;
}

.rb-section-nav a.is-active i {
    transform: scaleX(1);
}

body[data-rb-theme="light"] .rb-section-nav {
    color: var(--rb-ink);
}

body[data-rb-theme="blue"] .rb-section-nav {
    color: var(--rb-white);
}
/* e: fullpage section navigation */

/* s: sub pages */
.rb-site:not(.rb-site--home) #wrapper {
    min-height: calc(100vh - 260px);
    padding: 132px var(--rb-side-space) 100px;
    background: var(--rb-paper);
}

.rb-site:not(.rb-site--home) #container {
    width: min(100%, 1240px);
    margin: 0 auto;
}

.rb-page-head {
    padding-bottom: 36px;
    margin-bottom: 42px;
    border-bottom: 1px solid #d8dde7;
}

.rb-page-head p {
    margin-bottom: 8px;
    color: var(--rb-blue);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.rb-page-head h2 {
    color: var(--rb-ink);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.08;
}
/* e: sub pages */

/* s: footer and floating consultation */
.rb-footer {
    padding: 54px 0;
    background: var(--rb-black);
    color: var(--rb-white);
}

.rb-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto auto;
    align-items: center;
    gap: 32px;
}

.rb-footer__inner > p,
.rb-footer nav a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 16px;
}

.rb-footer nav ul {
    display: flex;
    gap: 24px;
}

.rb-floating-consult {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 950;
    display: none;
    align-items: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 18px 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(7, 11, 20, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    color: var(--rb-white);
    font-size: 16px;
    font-weight: 800;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rb-floating-consult b {
    font-size: 18px;
}
/* e: footer and floating consultation */
