*{
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
    box-sizing: border-box;
}
body{
    --c-glass: #bbbbbc;
    --c-light: #fff;
    --c-dark: #000;

    --c-content: #224;
    --c-action: #0052f5;

    --c-bg: #E8E8E9;

    --glass-reflex-dark: 1;
    --glass-reflex-light: 1;

    --saturation: 150%;
}





.navbar-btn:hover {
    width: 8rem !important;
}

.important-ease{
    transition: 0.4s all ease 0.05s !important; 
}

.liquid-text{
    scale: 0;
    width: 0;
    transition: all 0.3s ease;
}

h1{
    font-size: 43px;
}

h2{
    font-size: 35px;
}

h3{
    font-size: 18px;
}
.bigger:hover{
    scale: 1.025;
}
.pre-line{
    white-space: pre-line;
}
.float {
    animation: floatY var(--time, 3s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@keyframes floatY {
    0% {
        transform: translatey(0px);
    }
    50% {
        transform: translatey(-10px);
    }
    100% {
        transform: translatey(0px);
    }
}

@keyframes jelly {
    0%   { transform: scale(1,1); }
    25%  { transform: scale(1.08,.92); }
    50%  { transform: scale(.95,1.05); }
    75%  { transform: scale(1.03,.97); }
    100% { transform: scale(1,1); }
}

.jelly:hover {
    animation: jelly 0.6s ease;
}

@keyframes floatX {
    from { transform: translate(calc(-50% - 10px), -50%); }
    to   { transform: translate(calc(-50% + 10px), -50%); }
}

h1, h2, h3, h4, h5, h6{
    font-family: "Unbounded-Bold", Helvetica;
    letter-spacing: 0.23px;
    margin: 2px;
    line-height: 1.2;
}



p{
    font-family: "Unbounded-Light", Helvetica;
    letter-spacing: 0.6px;
    margin: 2px;
    font-size: 14px;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/Unbounded.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded-SemiBold';
    src: url('/fonts/Unbounded-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded-ExtraBold';
    src: url('/fonts/static/Unbounded-ExtraBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded-Bold';
    src: url('/fonts/static/Unbounded-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded-Regular';
    src: url('/fonts/static/Unbounded-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Unbounded-Medium';
    src: url('/fonts/static/Unbounded-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded-Light';
    src: url('/fonts/static/Unbounded-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

a:-webkit-any-link {
    font-family: "Unbounded-Bold", Helvetica;
    font-size: 14px;
    letter-spacing: 0.23px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

a:hover {
    color: #B48CFF;
}

@keyframes open {
    0% {
        opacity: 0;
        transform: translateY(-1vw);
    }
    100% {
        opacity: 1;
        margin-left: 0px
    }
}

details[open] div {
    animation: open .5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

body{
    background-color: #272727;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN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NjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}



/* ---------- Scene & background ---------- */
:root{
    /* desktop defaults */
    --orbit-d: 520px;         /* диаметр орбиты */
    --ring-r: calc(var(--orbit-d) / 2);
    --ring-stroke: 2.5;       /* толщина пунктирного кольца */
    --gap-deg: 22;            /* «разрывы» под иконки (18–24°) */
}

.scene {
    height: 720px;
    position: relative;
    overflow: hidden;
}

/* ---------- Ring (SVG) ---------- */
.ring-svg {
    width: var(--orbit-d);
    height: var(--orbit-d);
}
.ring-svg path {
    stroke: rgba(255,255,255,0.9);
    stroke-width: var(--ring-stroke);
    stroke-linecap: round;
    fill: none;
    /* Пунктир 1:1 */
    stroke-dasharray: 8 8; /* можно настроить под вкус */
}

/* ---------- Orbit & nodes ---------- */
.orbit {
    width: var(--orbit-d);
    height: var(--orbit-d);
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
}
.node {
    position: absolute;
    left: 50%; top: 50%;
    transform-style: preserve-3d;
    will-change: transform;
    /* стартовые углы в deg через data-angle */
}
.node-pos {
    /* позиционирование узла на окружности:
       rotate(base) -> translate(radius) (иконка центрируется по окружности) */
    transform-origin: 0 0;
    will-change: transform;
}
.node-orient {
    /* контр-вращение контента */
    transform-origin: center;
}

/* Кнопка-«стекло» под иконку */
.glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow:
            0 8px 24px rgba(0,0,0,0.35),
            0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
    .animate-orbit-rot, .animate-orbit-counter {
        animation: none !important;
    }
}

@keyframes orbit-text {

    0% {
        transform: rotate(var(--default-rotate));
        color: red;
    }
    
    25% {
        transform: rotate(45deg);
        color: yellow;
    }
    

    50% {
        transform: rotate(var(--default-rotate) - 360deg);
        color: green;
    }

    75%{
        transform: rotate(var(--default-rotate) + 180deg);
        color: blue;
    }

    100% {
        transform: rotate(var(--default-rotate));
        color: purple;
    }
}

.animate-orbit-text {
    animation: orbit-text 60s linear infinite;
    --default-rotate: 175deg;
}

@media (width < 500px) {
    h1{
        font-size: var(--text-4xl) !important;
    }
}

.beat {
    animation: heartbeat 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    20%  { transform: scale(1.10); }
    35%  { transform: scale(1.00); }
    50%  { transform: scale(1.06); }
    70%  { transform: scale(1.00); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .beat { animation: none; }
}


/* Старт */
section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    will-change: opacity, transform;
}

/* Когда увидели */
section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}