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

.sites { --accent-rgb: 95, 174, 126; }

.web__title {
    position: absolute;
    left: 28px;
    bottom: 68px;
    z-index: 0;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 6.2vw, 7.6rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 2.2s var(--ease) 0.3s, filter 2.2s var(--ease) 0.3s;
}

.web__line { display: block; white-space: nowrap; }

.web__line:first-child {
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.18);
}

.web__line--accent {
    background: linear-gradient(90deg, rgba(95, 174, 126, 0.3), rgba(91, 155, 213, 0.3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.js .web__stage.is-loading .web__title { opacity: 0; filter: blur(16px); }

.web__title [data-lang="en"] { display: none; }
html[lang="en"] .web__title [data-lang="en"] { display: inline; }
html[lang="en"] .web__title [data-lang="ru"] { display: none; }

.gnode--nrp,
.info--nrp,
.legend__zone--nrp {
    --accent: #5b9bd5;
    --accent-rgb: 91, 155, 213;
    --green: #20466b;
    --green-2: #1d3a58;
}

.browser {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.browser__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.browser__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.browser__bar i:nth-child(1) { background: var(--green); }
.browser__bar i:nth-child(2) { background: var(--flag-white); opacity: 0.7; }

.browser__url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transform: translateX(-20px);
}

.browser__url svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.2;
    stroke-linecap: round;
}

.browser__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b0c0b;
}

.browser__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
}

.shot {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s var(--ease), transform 1.5s var(--ease);
}

.shot.is-active { opacity: 1; transform: none; }

.browser__screen--soon {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--accent-rgb), 0.3), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px),
        #0b0d0c;
}

.browser__screen--soon img {
    width: 28%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
    animation: soon-float 6s ease-in-out infinite;
}

.soon__icon {
    width: 22%;
    height: auto;
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 26px rgba(var(--accent-rgb), 0.45));
    animation: soon-float 6s ease-in-out infinite;
}

.soon__label {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.soon__bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
}

.soon__bars i { height: 6px; }
.soon__bars i:nth-child(1) { background: var(--green); }
.soon__bars i:nth-child(2) { background: var(--flag-white); }
.soon__bars i:nth-child(3) { background: #0c0c0c; }

@keyframes soon-float { 50% { transform: translateY(-8px); } }

.site__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.site__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

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

.status--live { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.status--dev { color: #e8c46a; background: rgba(232, 196, 106, 0.1); border: 1px solid rgba(232, 196, 106, 0.28); }

.site__tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}

.info__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    overflow-wrap: normal;
    hyphens: none;
    color: #fff;
}

.site__domain {
    margin: 10px 0 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.site__text { color: var(--muted); font-size: 1.02rem; margin-bottom: 24px; }

.site__features {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
    list-style: none;
}

.site__features li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
}

.site__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.12);
}

.site__features li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: calc(0.32em + 3px);
    width: 12px;
    height: 12px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.info--nrp .btn--primary { --btn-bg: linear-gradient(135deg, #2c5b8a, #1f4468); }

.btn.is-disabled { opacity: 0.5; pointer-events: none; }

.web { position: relative; }

.web__stage {
    position: relative;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
    isolation: isolate;
    background: #06080a;
    border-block: 1px solid var(--line);
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.web__stage.is-drag { cursor: grabbing; }

.web__stage::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px circle at 40% 58%, rgba(95, 174, 126, 0.15), transparent 62%),
        radial-gradient(900px circle at 88% 36%, rgba(91, 155, 213, 0.16), transparent 62%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px;
    pointer-events: none;
}

.web__canvas,
.web__nodes { position: absolute; left: 0; top: var(--topbar-h); width: 100%; height: calc(100% - var(--topbar-h)); }

.web__canvas { z-index: 0; }
.web__nodes { z-index: 1; pointer-events: none; }

.gnode {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    --r: 32px;
    --k: 1;
}

.gnode--hub { --r: 44px; }

.gnode__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(var(--r) * 2 * var(--k));
    height: calc(var(--r) * 2 * var(--k));
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.38), rgba(8, 10, 9, 0.92) 72%);
    border: 1.5px solid rgba(var(--accent-rgb), 0.75);
    box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.32);
    transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}

.gnode--dev .gnode__dot { border-style: dashed; background: radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.16), rgba(8, 10, 9, 0.92) 72%); }

.gnode__dot svg {
    width: 46%;
    height: 46%;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gnode__dot img { width: 54%; height: 54%; object-fit: contain; }

.gnode__st {
    position: absolute;
    right: 2px;
    top: 2px;
    width: calc(12px * var(--k));
    height: calc(12px * var(--k));
    border-radius: 50%;
    border: 2px solid #06080a;
    background: var(--accent);
}

.gnode--dev .gnode__st { background: #e8c46a; }

.gnode__label {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px * var(--k));
    transform: translateX(-50%);
    padding: calc(4px * var(--k)) calc(11px * var(--k));
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(6, 8, 10, 0.78);
    font-size: calc(13.5px * var(--k));
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.gnode:hover .gnode__dot,
.gnode:focus-visible .gnode__dot {
    transform: scale(1.14);
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.6);
}

.gnode:focus-visible { outline: none; }
.gnode:focus-visible .gnode__label { border-color: var(--accent); }

.gnode.is-selected .gnode__dot {
    transform: scale(1.18);
    background: radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.7), rgba(8, 10, 9, 0.9) 78%);
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.22), 0 0 56px rgba(var(--accent-rgb), 0.75);
}

.gnode.is-selected .gnode__label { color: #08090a; background: var(--accent); border-color: var(--accent); }

.web__loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    align-content: center;
    gap: 22px;
    background:
        radial-gradient(700px circle at 50% 46%, rgba(95, 174, 126, 0.14), transparent 62%),
        #06080a;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.js .web__loader { display: grid; }

.web__stage:not(.is-loading) .web__loader { opacity: 0; visibility: hidden; pointer-events: none; }

.web__loader img {
    width: 96px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 30px rgba(95, 174, 126, 0.45));
    animation: loader-pulse 2.2s ease-in-out infinite;
}

.web__loader b {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dim);
}

.web__loader-bar {
    position: relative;
    width: 170px;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.web__loader-bar i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45%;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), #5b9bd5, transparent);
    animation: loader-run 1.3s var(--ease-io) infinite;
}

@keyframes loader-pulse { 50% { transform: scale(1.06); opacity: 1; } }
@keyframes loader-run { from { left: -45%; } to { left: 100%; } }

.js .web__stage.is-loading .web__legend,
.js .web__stage.is-loading .web__reset,
.js .web__stage.is-loading .web__zoom { opacity: 0; transform: translateY(10px); }

.web__legend,
.web__reset,
.web__zoom { transition: opacity 1.1s var(--ease) 0.9s, transform 1.1s var(--ease) 0.9s, color 0.25s, border-color 0.25s; }

.web__zoom {
    position: absolute;
    z-index: 6;
    right: var(--gutter);
    top: calc(var(--topbar-h) + 62px);
    display: grid;
    gap: 8px;
}

.web__zoom button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(6, 8, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.web__zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.web__zoom button:hover { color: #fff; border-color: var(--accent); transform: scale(1.08); }

.web__panel {
    position: absolute;
    z-index: 5;
    top: calc(50% + var(--topbar-h) / 2);
    left: 28px;
    width: min(540px, calc(100% - 56px));
    max-height: calc(100% - var(--topbar-h) - 40px);
    overflow-y: auto;
    padding: 22px;
    transform: translate(-28px, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--ease), transform 0.8s var(--ease), visibility 0s 0.5s;
    border-radius: var(--radius-lg);
    --pz: 95, 174, 126;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(460px circle at 0% 0%, rgba(var(--pz), 0.2), transparent 62%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(9, 12, 11, 0.42);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: default;
    user-select: text;
    -webkit-user-select: text;
    scrollbar-width: thin;
}

.web__panel[data-zone="nrp"] { --pz: 91, 155, 213; }

.web__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    pointer-events: auto;
    transition-delay: 0s;
}

.web__close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(6, 8, 10, 0.75);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
}

.web__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.web__close:hover { color: #fff; border-color: var(--accent); }

.info { display: none; }
.info.is-active { display: block; animation: info-in 0.55s var(--ease); }

@keyframes info-in { from { opacity: 0; transform: translateY(14px); } }

.info .browser { margin-bottom: 18px; border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); border-color: rgba(255, 255, 255, 0.14); }
.info .browser__bar { height: 34px; }
.info .site__meta { margin-bottom: 12px; }
.info .site__domain { margin: 8px 0 14px; }
.info .site__text { font-size: 1.04rem; margin-bottom: 20px; }
.info .site__features { gap: 9px; margin-bottom: 22px; }
.info h2 { font-size: clamp(1.55rem, 2.2vw, 2.1rem); }

.web__reset {
    position: absolute;
    z-index: 6;
    right: var(--gutter);
    top: calc(var(--topbar-h) + 14px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 8, 10, 0.7);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
}

.web__reset svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.web__reset:hover { color: #fff; border-color: var(--accent); }

.web__legend {
    position: absolute;
    z-index: 6;
    right: var(--gutter);
    bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dim);
}

.web__hint { margin-right: 6px; }

.legend__zone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 8, 10, 0.7);
    font: inherit;
    font-weight: 800;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s, border-color 0.25s;
}

.legend__zone b {
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 10px;
    color: #08090a;
    background: var(--accent);
}

.legend__zone:hover { color: #fff; border-color: var(--accent); }

.legend__key { display: inline-flex; align-items: center; gap: 7px; }
.legend__key b { color: #fff; }

.legend__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.legend__dot--dev { background: #e8c46a; }

@media (max-height: 940px) {
    .info .site__features { display: none; }
}

@media (max-width: 900px) {
    .web__stage { height: auto; min-height: 0; padding-top: calc(var(--topbar-h) + 590px); overflow: visible; border-bottom: 0; }
    .web__canvas,
    .web__nodes { height: 520px; }
    .web__title {
        left: var(--gutter);
        top: calc(var(--topbar-h) + 400px);
        bottom: auto;
        font-size: 10vw;
    }
    .web__panel {
        position: relative;
        top: auto;
        left: auto;
        display: none;
        width: auto;
        max-height: none;
        margin: 0 var(--gutter) 24px;
        scroll-margin-top: calc(var(--topbar-h) + 12px);
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .web__panel.is-open { display: block; transform: none; }
    .web__hint { display: none; }
    .web__zoom { top: calc(var(--topbar-h) + 62px); }
    .web__legend { left: var(--gutter); right: var(--gutter); bottom: auto; top: calc(var(--topbar-h) + 524px); justify-content: flex-start; }
    .web__reset span { display: none; }
    .web__reset { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .browser__screen--soon img, .soon__icon, .status::before, .web__loader img, .web__loader-bar i { animation: none; }
    .shot { transition: none; transform: none; }
    .info.is-active { animation: none; }
}
