/*!
 * Republjika Vilgerska · vilgeria.com
 * © 2026 RV Software Board. All rights reserved.
 */

:root {
    --green: #1e3d2b;
    --green-2: #1f3b2c;
    --accent: #5fae7e;
    --flag-white: #f4f3ee;
    --flag-black: #0b0b0b;

    --bg: #08090a;
    --bg-2: #0d0f0e;
    --surface: #121513;
    --surface-2: #171b18;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #f2f2ee;
    --muted: rgba(242, 242, 238, 0.64);
    --dim: rgba(242, 242, 238, 0.4);

    --font-display: 'Unbounded', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', Roboto, sans-serif;

    --radius: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.83, 0, 0.17, 1);

    --topbar-h: 76px;
    --wrap: 1240px;
    --gutter: 24px;
    --rail: 4px;

    --pt-dur: 0.55s;
    --pt-stagger: 0.07s;
}

html.i18n-pending body > :not(.pt) { visibility: hidden; }

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

::selection {
    color: #fff;
    background: var(--green-2);
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-x: clip;
}

html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

html { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

a { color: inherit; }

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

h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
}

.link:hover { color: #fff; border-color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

body::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2050;
    width: var(--rail);
    pointer-events: none;
    background: linear-gradient(180deg,
        var(--green-2) 0 33.33%,
        var(--flag-white) 33.33% 66.66%,
        #2b2b2b 66.66% 100%);
    opacity: 0.9;
}

body.home::before { display: none; }

.pt {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
}

html.pt-go .pt,
html.pt-arrive .pt { visibility: visible; }

html.pt-go .pt { pointer-events: all; }

.pt__stripe {
    position: absolute;
    left: -15%;
    width: 130%;
    height: calc(100% / 3 + 2px);
    transform: translateX(-120%) skewX(-12deg);
    will-change: transform;
}

.pt__stripe:nth-child(1) { --i: 0; top: -1px; background: var(--green); }
.pt__stripe:nth-child(2) { --i: 1; top: calc(100% / 3); background: var(--flag-white); }
.pt__stripe:nth-child(3) { --i: 2; top: calc(200% / 3 - 1px); background: var(--flag-black); }

.pt__emblem {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    margin: -56px 0 0 -56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #1f3a2a, #0b120e 70%);
    box-shadow: 0 0 0 4px var(--flag-white), 0 0 0 9px var(--green), 0 30px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.6) rotate(-10deg);
}

.pt__emblem img { width: 64%; height: 64%; object-fit: contain; }

html.pt-go .pt__stripe {
    animation: pt-in var(--pt-dur) var(--ease-io) forwards;
    animation-delay: calc(var(--i) * var(--pt-stagger));
}

html.pt-go .pt__emblem { animation: pt-emblem-in 0.4s var(--ease) 0.36s forwards; }

html.pt-arrive .pt__stripe {
    transform: translateX(0) skewX(-12deg);
    animation: pt-out var(--pt-dur) var(--ease-io) forwards;
    animation-delay: calc(2.5s + var(--i) * var(--pt-stagger));
}

html.pt-arrive .pt__emblem {
    opacity: 1;
    transform: none;
    animation: pt-emblem-out 0.3s ease forwards 2.4s;
}

html.pt-arrive.pt-leaving .pt__stripe { animation-delay: calc(0.12s + var(--i) * var(--pt-stagger)); }
html.pt-arrive.pt-leaving .pt__emblem { animation-delay: 0s; }

@keyframes pt-in {
    from { transform: translateX(-120%) skewX(-12deg); }
    to   { transform: translateX(0) skewX(-12deg); }
}

@keyframes pt-out {
    from { transform: translateX(0) skewX(-12deg); }
    to   { transform: translateX(120%) skewX(-12deg); }
}

@keyframes pt-emblem-in {
    to { opacity: 1; transform: none; }
}

@keyframes pt-emblem-out {
    to { opacity: 0; transform: scale(1.25); }
}

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

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 2000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, transform 0.45s var(--ease);
    user-select: none;
}

.topbar.is-scrolled,
.topbar.is-solid {
    background: rgba(8, 9, 10, 0.8);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}

.topbar.is-hidden { transform: translateY(-100%); }

.topbar__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-right: auto;
    min-width: 0;
}

.brand img { height: 42px; width: auto; flex-shrink: 0; }

.brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0.12em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--muted);
    border-radius: 999px;
    transition: color 0.25s, background 0.25s;
}

.nav__link.is-current { color: #fff; }

.nav__link.is-current::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}

.nav__ext { opacity: 0.5; font-size: 0.85em; margin-left: 2px; font-style: normal; }

.nav .nav__cta-mobile { display: none; }

.vid { --vid-radius: 999px; --vid-height: 38px; --vid-font-size: 12px; }
.vid--top { margin-left: 8px; flex-shrink: 0; }
.nav .vid--mobile { display: none; }

.prefs { display: flex; align-items: center; flex-shrink: 0; }

.prefs__lang {
    position: relative;
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 9, 10, 0.35);
    cursor: pointer;
    font-family: var(--font-display);
    transition: border-color 0.25s;
}

.prefs__lang span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.35s var(--ease);
}

.prefs__lang::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 28px;
    border-radius: 999px;
    background: var(--flag-white);
    transition: transform 0.45s var(--ease);
}

html[lang="en"] .prefs__lang::before { transform: translateX(34px); }

html:not([lang="en"]) .prefs__lang [data-lang="ru"],
html[lang="en"] .prefs__lang [data-lang="en"] { color: #08090a; }

.nav__group { position: relative; }

.nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

.nav__chev {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    transition: transform 0.35s var(--ease);
}

.nav__group.is-open > .nav__trigger { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__group.is-open .nav__chev { transform: rotate(180deg); }

.nav__drop {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.98);
    transform-origin: 50% 0;
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0.25s;
}

.nav__drop::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav__group.is-open .nav__drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav__panel {
    position: relative;
    width: 370px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(13, 15, 14, 0.97);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.nav__panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d5a41 0 33.4%, var(--flag-white) 33.4% 66.7%, #3a3d3b 66.7%);
}

.nav__panel--wide {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    width: 600px;
}

.nav__label {
    margin: 6px 12px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
}

.nav__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.25s;
}

.nav__item b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.nav__item small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

.nav__ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(95, 174, 126, 0.1);
    border: 1px solid rgba(95, 174, 126, 0.18);
    color: var(--accent);
    transition: background 0.25s, color 0.25s, transform 0.35s var(--ease);
}

.nav__ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav__ico--fill svg { fill: currentColor; stroke: none; }

.nav__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 2px 8px 2px 7px;
    border-radius: 999px;
    vertical-align: 1px;
    font-size: 10.5px;
    font-weight: 800;
    font-style: normal;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #e8c46a;
    background: rgba(232, 196, 106, 0.1);
    border: 1px solid rgba(232, 196, 106, 0.28);
}

.nav__badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: badge-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-pulse { 50% { opacity: 0.3; } }

.nav__more {
    display: block;
    margin: 6px 4px 2px;
    padding: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
}

.nav__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    border-radius: 13px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(0deg, rgba(8, 9, 10, 0.95) 20%, rgba(8, 9, 10, 0.35)),
        url('/images/opt/valgrad-960.jpg') center / cover;
    border: 1px solid var(--line);
}

.nav__feature img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6));
}

.nav__feature b { font-family: var(--font-display); font-size: 15px; line-height: 1.25; }
.nav__feature small { font-size: 12.5px; line-height: 1.45; color: rgba(244, 243, 238, 0.72); }

.nav__feature-cta {
    align-self: flex-start;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--flag-white);
    color: #08090a;
    transition: transform 0.35s var(--ease);
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(8, 9, 10, 0.35);
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

.burger span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }

.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.lbl-short { display: none; }

.btn {
    --btn-bg: var(--green);
    --btn-fg: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    user-select: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.24) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--green), var(--green-2)); }
.btn--light { --btn-bg: var(--flag-white); --btn-fg: #0b0b0b; }

.btn--ghost {
    --btn-bg: rgba(255, 255, 255, 0.05);
    border-color: var(--line-strong);
}

.btn--sm { padding: 10px 20px; font-size: 12px; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (hover: hover) {
    .nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
    .nav__item:hover { background: rgba(255, 255, 255, 0.05); }
    .nav__item:hover .nav__ico { background: var(--accent); color: #08090a; transform: rotate(-6deg) scale(1.05); }
    .nav__more:hover { color: #fff; }
    .prefs__lang:hover { border-color: var(--accent); }
    html:not([lang="en"]) .prefs__lang:hover [data-lang="en"],
    html[lang="en"] .prefs__lang:hover [data-lang="ru"] { color: #fff; }
    .nav__feature:hover .nav__feature-cta { transform: translateX(4px); }
    .btn:hover { transform: translateY(-2px); }
    .btn:hover::before { transform: translateX(100%); }
    .btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(95, 174, 126, 0.55); }
    .btn--light:hover { box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.4); }
    .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    flex-shrink: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-2) 0 33%, var(--flag-white) 33% 66%, #555 66%);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 18px;
}

.section-title.center { text-align: center; }

.section-lead {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 36px 0 14px;
}

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

[data-tooltip] { position: relative; }

@media (hover: hover) {
    [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translate(-50%, 6px);
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        color: #fff;
        background: var(--surface-2);
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
        z-index: 999;
    }

    [data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

.js .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js .reveal[data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: inset(100% 0 0 0 round var(--radius-lg));
    transition: clip-path 1.2s var(--ease-io);
    transition-delay: var(--d, 0s);
}

.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

.js .stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.js .stagger.is-visible > * { opacity: 1; transform: none; }

.w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.w > span { display: inline-block; }

.js [data-split] .w > span {
    transform: translateY(110%);
    transition: transform 0.9s var(--ease);
    transition-delay: calc(var(--wi, 0) * 0.05s + var(--d, 0s));
}

.js [data-split].is-visible .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal[data-reveal="clip"],
    .js .stagger > *,
    .js [data-split] .w > span {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }
}

.footer {
    position: relative;
    background: #050606;
    border-top: 1px solid var(--line);
    padding: 72px 0 32px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-2) 0 33.33%, var(--flag-white) 33.33% 66.66%, #2a2a2a 66.66%);
    opacity: 0.85;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer__grid > * { min-width: 0; }

.footer__brand p {
    color: var(--dim);
    max-width: 320px;
    margin-top: 18px;
    font-size: 15px;
}

.footer h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }

.footer li a {
    color: var(--dim);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.25s;
}

.socials { display: flex; gap: 10px; }

.social {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    color: #fff;
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.social svg { width: 20px; height: 20px; }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--dim);
}

.footer__legal { display: flex; gap: 8px 22px; flex-wrap: wrap; }

.footer__legal a {
    color: var(--dim);
    text-decoration: none;
    transition: color 0.25s;
}

@media (hover: hover) {
    .footer li a:hover,
    .footer__legal a:hover { color: #fff; }
    .social:hover { background: var(--green); border-color: var(--green-2); transform: translateY(-3px); }
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 0;
    background: rgba(18, 21, 19, 0.88);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.3s, visibility 0.3s, transform 0.4s var(--ease), background 0.3s;
    z-index: 1000;
}

.back-to-top svg.ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top .ring circle {
    fill: none;
    stroke-width: 2.5;
}

.back-to-top .ring .ring__track { stroke: var(--line-strong); }

.back-to-top .ring .ring__bar {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 150.8;
    stroke-dashoffset: 150.8;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

@media (hover: hover) {
    .back-to-top:hover { background: var(--green); }
}

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.custom-toast {
    min-width: 260px;
    max-width: calc(100vw - 40px);
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    font-size: 14px;
    animation: toast-in 0.35s var(--ease) forwards;
}

.custom-toast.error { border-left-color: #e5534b; }
.custom-toast.is-leaving { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

@media (max-width: 900px) {
    :root { --topbar-h: 64px; }

    .topbar__inner { padding: 0 16px 0 18px; gap: 12px; }
    .brand img { height: 36px; }

    .topbar__cta { display: none; }
    .vid--top { display: none; }
    .burger { display: block; }

    .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: calc(var(--topbar-h) + 28px) 24px 36px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        background: rgba(8, 9, 10, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s, visibility 0.35s;
    }

    .nav.is-open { opacity: 1; visibility: visible; }

    .topbar.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

    .nav > * {
        flex-shrink: 0;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    }

    .nav.is-open > * { opacity: 1; transform: none; }
    .nav.is-open > :nth-child(2) { transition-delay: 0.05s; }
    .nav.is-open > :nth-child(3) { transition-delay: 0.1s; }
    .nav.is-open > :nth-child(4) { transition-delay: 0.15s; }
    .nav.is-open > :nth-child(5) { transition-delay: 0.2s; }

    .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 18px 2px;
        border-radius: 0;
        border-bottom: 1px solid var(--line);
        font-family: var(--font-display);
        font-size: 1.35rem;
        text-align: left;
        color: #fff;
    }

    .nav__link.is-current::after { left: auto; right: 6px; bottom: 50%; transform: translateY(50%); width: 6px; height: 6px; }

    .nav__chev { width: 16px; height: 16px; }
    .nav__group.is-open > .nav__trigger { background: none; color: var(--accent); }

    .nav__drop {
        position: static;
        display: grid;
        grid-template-rows: 0fr;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: grid-template-rows 0.45s var(--ease);
    }

    .nav__drop::before { display: none; }
    .nav__group.is-open .nav__drop { grid-template-rows: 1fr; transform: none; }

    .nav__panel,
    .nav__panel--wide {
        display: block;
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        overflow: hidden;
        overflow: clip;
    }

    .nav__panel::before, .nav__feature, .nav__label { display: none; }

    .nav__list { padding: 8px 0 14px; }
    .nav__panel:not(.nav__panel--wide) { padding-top: 8px; }
    .nav__panel:not(.nav__panel--wide) > :last-child { margin-bottom: 14px; }

    .nav__item { padding: 10px 4px; }
    .nav__item:active { background: rgba(255, 255, 255, 0.05); }

    .nav .nav__cta-mobile { display: inline-flex; justify-content: center; margin-top: 30px; }
    .nav .vid--mobile { display: block; margin-top: 12px; --vid-width: 100%; --vid-height: 52px; --vid-font-size: 14px; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    :root { --gutter: 18px; --rail: 3px; }

    .brand span { display: none; }

    .lbl-long { display: none; }
    .lbl-short { display: inline; }

    .section-head { margin-bottom: 36px; }
    .section-lead { font-size: 1rem; }

    .footer { padding: 56px 0 28px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 40px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__legal { justify-content: center; }

    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }

    .pt__emblem { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
}
