/* Общий стиль страниц alc1.ru: аккаунт, документы, 404.
   Без внешних шрифтов и скриптов: никаких запросов к сторонним серверам. */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
:root {
    --white: #fff;
    --accent: #f5d76e;
    --hair: rgba(255, 255, 255, .16);
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: dark;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%
}
body {
    font-family: var(--sans);
    background: #050505;
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden
}
a {
    color: inherit
}
[hidden] {
    display: none !important
}

/* ——— фон ——— */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: screen;
    opacity: .85;
    will-change: transform;
    translate: calc(var(--px, 0) * var(--k, 1) * 1px) calc(var(--py, 0) * var(--k, 1) * 1px);
    transition: translate .9s cubic-bezier(.2, .7, .2, 1)
}

.b1 {
    --k: -1;
    width: 56vmax;
    height: 56vmax;
    left: -18vmax;
    top: -18vmax;
    background: radial-gradient(circle at 35% 35%, #8a2be2, #ff00a8 62%, transparent 76%);
    animation: d1 22s ease-in-out infinite alternate
}
.b2 {
    --k: 1.4;
    width: 48vmax;
    height: 48vmax;
    right: -14vmax;
    top: 4vmax;
    background: radial-gradient(circle at 60% 40%, #00c2ff, #0044ff 58%, transparent 74%);
    animation: d2 26s ease-in-out infinite alternate
}
.b3 {
    --k: .7;
    width: 46vmax;
    height: 46vmax;
    left: 14vmax;
    bottom: -18vmax;
    background: radial-gradient(circle at 50% 50%, #ff7a00, #ffd166 58%, transparent 74%);
    animation: d3 24s ease-in-out infinite alternate
}

.art {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050505
}
.art::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .07;
    mix-blend-mode: overlay;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")
}
.art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, .62))
}

@keyframes d1 {
    to {
        transform: translate(9vmax, 7vmax) scale(1.12)
    }
}
@keyframes d2 {
    to {
        transform: translate(-8vmax, 9vmax) scale(1.08) rotate(12deg)
    }
}
@keyframes d3 {
    to {
        transform: translate(7vmax, -8vmax) scale(1.15)
    }
}

/* ——— шапка и подвал ——— */
.nav {
    border-bottom: 1px solid var(--hair)
}
.footer {
    border-top: 1px solid var(--hair);
    font-size: 12px;
    color: rgba(255, 255, 255, .62);
    flex-wrap: wrap
}
.nav, .footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 40px;
    background: rgba(10, 10, 10, .35);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4)
}

.logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 12px
}
.logo .dot {
    color: var(--accent);
    margin-left: -8px
}
.logo .tagline {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .62)
}

.nav-links, .footer-links {
    display: flex;
    gap: 6px 22px;
    flex-wrap: wrap;
    align-items: center
}
.nav-links a, .footer-links a, .nav-links button {
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0
}
.nav-links a:hover, .footer-links a:hover, .nav-links button:hover {
    color: var(--accent)
}
.nav-links [aria-current="page"] {
    color: var(--accent)
}

/* ——— каркас ——— */
.main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 60px;
    padding: 70px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: center
}
.lead {
    font-size: 17px;
    color: rgba(255, 255, 255, .76);
    max-width: 460px;
    margin-bottom: 30px
}

h1 {
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2.5px;
    margin-bottom: 22px;
    overflow-wrap: anywhere
}
h1 .acc {
    background: linear-gradient(90deg, #fff 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 14px
}
.meta-item {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hair);
    max-width: 460px;
    font-size: 14px
}
.meta-item a {
    font-weight: 500;
    text-underline-offset: 3px
}
.meta-item a:hover {
    color: var(--accent)
}
.meta-label {
    color: rgba(255, 255, 255, .55)
}

/* ——— карочка и формы ——— */
.card {
    position: relative;
    border-radius: 28px;
    padding: 34px 30px;
    background: rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    backdrop-filter: blur(26px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35)
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap
}
.tab {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--hair);
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: background .2s, color .2s
}
.tab:hover {
    background: rgba(255, 255, 255, .16)
}
.tab[aria-current="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a0a
}
label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .64);
    margin: 15px 0 6px
}
input {
    width: 100%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--hair);
    border-radius: 12px;
    color: #fff;
    font-family: var(--sans);
    font-size: 15px;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s, background .2s
}
input:focus {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .12)
}
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px
}
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px
}
.field {
    position: relative
}
.field input {
    padding-right: 92px
}
.reveal {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, .72);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer
}
.reveal:hover {
    color: var(--accent)
}
.hint {
    font-size: 12px;
    color: rgba(255, 255, 255, .64);
    margin-top: 6px;
    line-height: 1.45
}
.btn {
    display: block;
    width: 100%;
    margin-top: 22px;
    background: var(--white);
    color: #0a0a0a;
    border: none;
    border-radius: 14px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .25s, transform .25s
}
.btn:hover {
    background: var(--accent);
    transform: translateX(6px)
}
.btn:disabled {
    opacity: .45;
    cursor: not-allowed
}
.btn:disabled:hover {
    background: var(--white);
    transform: none
}
.btn.auto {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 15px 26px
}
.btn.ghost {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 11px 16px;
    font-size: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid var(--hair);
    border-radius: 12px
}
.btn.ghost:hover {
    background: rgba(255, 255, 255, .2);
    transform: none
}
.btn.ghost.big {
    padding: 15px 26px;
    font-size: 14px
}
.link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .72);
    font-family: var(--sans);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 2px 0
}
.link:hover {
    color: var(--accent)
}
.err {
    font-size: 13px;
    color: #ff9b8a;
    margin-top: 13px;
    min-height: 18px;
    line-height: 1.45
}
.info {
    font-size: 13px;
    color: #b8f0c8;
    margin-top: 13px;
    line-height: 1.45
}
.info:empty {
    display: none
}
.view-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.25;
    margin-bottom: 8px
}
.view-text {
    font-size: 14px;
    color: rgba(255, 255, 255, .76);
    line-height: 1.5
}
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0
}
label.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
    color: rgba(255, 255, 255, .82);
    margin: 14px 0 0;
    cursor: pointer
}
.check input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 0;
    accent-color: var(--accent);
    cursor: pointer
}
.keybox {
    margin: 18px 0 14px;
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .28);
    border: 1px dashed rgba(255, 255, 255, .4);
    font-family: var(--mono);
    font-size: clamp(14px, 3.6vw, 19px);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-all;
    user-select: all
}
.key-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}
.nickchip {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-weight: 700;
    color: var(--accent)
}

/* ——— докумены ——— */
.doc-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 24px 72px
}
.doc {
    border-radius: 28px;
    padding: 44px 48px;
    background: rgba(10, 10, 14, .58);
    -webkit-backdrop-filter: blur(26px) saturate(1.4);
    backdrop-filter: blur(26px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4)
}
.doc h1 {
    font-size: clamp(30px, 4.4vw, 48px);
    letter-spacing: -1.5px;
    margin-bottom: 8px
}
.doc .date {
    font-size: 13px;
    color: rgba(255, 255, 255, .58);
    margin-bottom: 26px
}
.doc h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin: 38px 0 10px;
    line-height: 1.3
}
.doc p, .doc li {
    font-size: 15.5px;
    line-height: 1.72;
    color: rgba(255, 255, 255, .84)
}
.doc p + p {
    margin-top: 12px
}
.doc ul, .doc ol {
    margin: 10px 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 6px
}
.doc a {
    text-underline-offset: 3px;
    color: #fff
}
.doc a:hover {
    color: var(--accent)
}
.doc strong {
    color: #fff
}
.draft {
    margin-bottom: 26px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(245, 215, 110, .5);
    background: rgba(245, 215, 110, .1);
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9)
}
mark.todo {
    background: rgba(245, 215, 110, .2);
    color: var(--accent);
    padding: 0 5px;
    border-radius: 5px
}
.tbl {
    overflow-x: auto;
    margin-top: 12px
}
.tbl table {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 14px
}
.tbl th, .tbl td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hair);
    vertical-align: top;
    color: rgba(255, 255, 255, .84)
}
.tbl th {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .58);
    font-weight: 500
}
.tbl code {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent)
}

/* ——— 404——— */
.lost {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 24px 40px
}
.num {
    width: min(620px, 88vw);
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35))
}
.num .tube, .num .spark {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round
}
.num .tube {
    stroke: url(#tube);
    stroke-width: 44;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0
}
.num .spark {
    stroke: url(#spark);
    stroke-width: 3;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0
}
.num .t1 {
    animation: draw .9s cubic-bezier(.65, 0, .35, 1) .10s both
}
.num .t2 {
    animation: draw .9s cubic-bezier(.65, 0, .35, 1) .45s both
}
.num .t3 {
    animation: draw .9s cubic-bezier(.65, 0, .35, 1) .80s both
}
.num .period {
    fill: var(--accent);
    filter: drop-shadow(0 0 22px rgba(245, 215, 110, .85));
    transform-box: fill-box;
    transform-origin: center;
    animation: drop .8s cubic-bezier(.3, 1.5, .5, 1) 1.55s both
}
@keyframes draw {
    from {
        stroke-dashoffset: 1.001
    }
    to {
        stroke-dashoffset: 0
    }
}
@keyframes drop {
    from {
        transform: translateY(-190px) scale(.6);
        opacity: 0
    }
    60% {
        opacity: 1
    }
    to {
        transform: none;
        opacity: 1
    }
}
.lost h1.big {
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-top: 26px
}
.lost p {
    margin-top: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, .74);
    max-width: 460px
}
.path {
    margin-top: 20px;
    max-width: min(520px, 100%);
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--hair);
    background: rgba(0, 0, 0, .28);
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}
.lost .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px
}
@media (max-width: 900px) {
    .main {
        grid-template-columns:1fr;
        padding: 44px 20px;
        gap: 36px
    }

    .nav, .footer {
        padding-left: 20px;
        padding-right: 20px
    }

    .doc {
        padding: 30px 22px
    }

    .doc-wrap {
        padding: 32px 14px 56px
    }

    .logo .tagline {
        display: none
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}