:root {
    --bg: #050506;
    --bg2: #09090b;
    --card: #0e0e11;
    --line: #1f1f24;
    --text: #f1f1ef;
    --muted: #8d8d94;
    --accent: #f1f1ef;
    --accent-text: #050506;
    --p: 235,235,240;
    --ga: .2;
    --gk: 1;
    --grain: .06;
    --glow: rgba(var(--p),calc(var(--ga) * var(--gk)));
    --sh: #7d7d86,#fff,#7d7d86;
    --ease: cubic-bezier(.22,1,.36,1);
    --r: 20px
}

[data-theme=light] {
    --bg: #f3f4f6;
    --bg2: #eaecef;
    --card: #fff;
    --line: #dcdee3;
    --text: #111113;
    --muted: #6b7078;
    --accent: #111113;
    --accent-text: #f3f4f6;
    --p: 80,86,104;
    --ga: .24;
    --grain: .09;
    --sh: #4b5060,#9aa1b3,#4b5060
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px
}

body {
    font-family: 'Inter',system-ui,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .5s var(--ease),color .5s var(--ease)
}

a {
    color: inherit;
    text-decoration: none
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px
}

section {
    padding: 110px 0
}

.alt {
    background: var(--bg2)
}

h1, h2, h3 {
    letter-spacing: -.03em;
    line-height: 1.1
}

h1 {
    font-size: clamp(2.6rem,6.5vw,5rem);
    font-weight: 800
}

h2 {
    font-size: clamp(2rem,4vw,3rem);
    font-weight: 700;
    margin-bottom: 16px
}

.eyebrow {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
    margin-bottom: 18px;
    display: block
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 560px
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    z-index: 100
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color .4s
}

    .site-header.scrolled {
        border-color: var(--line)
    }

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px
}

.logo {
    font-weight: 800;
    letter-spacing: -.04em;
    font-size: 1.2rem
}

.links {
    display: flex;
    gap: 32px;
    font-size: .92rem;
    color: var(--muted)
}

    .links a {
        transition: color .3s
    }

        .links a:hover {
            color: var(--text)
        }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: transform .4s var(--ease),background .3s,color .3s,border-color .3s
}

    .btn:hover {
        transform: translateY(-2px);
        border-color: var(--text)
    }

    .btn.primary {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent)
    }

    .btn.sm {
        padding: 9px 20px
    }

.theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .5s var(--ease),border-color .3s
}

    .theme:hover {
        transform: rotate(25deg);
        border-color: var(--text)
    }

    .theme svg {
        width: 18px;
        height: 18px
    }

.moon {
    display: none
}

[data-theme=light] .moon {
    display: block
}

[data-theme=light] .sun {
    display: none
}

.hero {
    padding-top: 170px;
    min-height: 100vh;
    position: relative;
    overflow: hidden
}

    .hero::before {
        content: "";
        position: absolute;
        width: 700px;
        height: 700px;
        right: -200px;
        top: -100px;
        border-radius: 50%;
        background: radial-gradient(circle,color-mix(in srgb,var(--text) 8%,transparent),transparent 65%)
    }

@keyframes float {
    50% {
        transform: translate(-40px,40px)
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: center;
    position: relative
}

.hero h1 span {
    color: var(--muted)
}

.hero .lead {
    margin: 28px 0 40px
}

.cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.trust {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    color: var(--muted);
    font-size: .88rem;
    flex-wrap: wrap
}

    .trust b {
        color: var(--text);
        font-weight: 600
    }

.profile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
    animation: float 9s ease-in-out infinite
}

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

.av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    display: grid;
    place-items: center;
    font-weight: 700
}

.ph small, .row small {
    color: var(--muted)
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    font-size: .92rem
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .78rem;
    margin: 4px 4px 0 0
}

.match {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .88rem
}

    .match i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text);
        display: inline-block;
        margin-right: 8px;
        animation: pulse 2s infinite
    }

@keyframes pulse {
    50% {
        opacity: .2
    }
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 56px
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 32px;
    transition: transform .5s var(--ease),border-color .3s
}

    .card:hover {
        transform: translateY(-6px);
        border-color: var(--muted)
    }

.num {
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 40px;
    display: block
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px
}

.card p {
    color: var(--muted);
    font-size: .96rem
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px
}

    .fields span {
        padding: 10px 18px;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: .9rem;
        background: var(--card);
        transition: all .3s
    }

        .fields span:hover {
            background: var(--accent);
            color: var(--accent-text)
        }

.profile-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: .9rem;
    line-height: 1.35;
    transition: background .3s,color .3s,border-color .3s,transform .3s
}

    .profile-links a:hover {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
        transform: translateY(-2px)
    }

    .profile-links a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px
    }

.profile-media {
    display: grid;
    gap: 12px;
    margin: 10px 0 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb,var(--bg2) 58%,transparent)
}

.media-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 54px
}

    .media-row > div:first-child {
        flex: 1;
        min-width: 0
    }

    .media-row small {
        display: block;
        color: var(--muted);
        font-size: .78rem;
        line-height: 1.4
    }

.media-title {
    display: block;
    font-weight: 650;
    font-size: .9rem
}

.file-btn {
    position: relative;
    overflow: hidden;
    flex: none
}

    .file-btn input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer
    }

.avatar-preview {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 800;
    overflow: hidden
}

    .avatar-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.document-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    font-size: .85rem
}

    .document-list a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 3px
    }

.doc-remove {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 5px
}

    .doc-remove:hover {
        color: var(--text)
    }

.enrollment-row {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 4px
}

.paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 56px
}

.faq {
    max-width: 760px;
    margin-top: 48px
}

    .faq details {
        border-top: 1px solid var(--line);
        padding: 22px 0
    }

        .faq details:last-child {
            border-bottom: 1px solid var(--line)
        }

    .faq summary {
        cursor: pointer;
        font-weight: 600;
        font-size: 1.05rem;
        list-style: none;
        display: flex;
        justify-content: space-between
    }

        .faq summary::after {
            content: "+";
            transition: transform .4s var(--ease);
            font-weight: 300;
            font-size: 1.4rem;
            line-height: 1
        }

    .faq details[open] summary::after {
        transform: rotate(45deg)
    }

    .faq p {
        color: var(--muted);
        margin-top: 12px
    }

.final {
    text-align: center
}

    .final .lead {
        margin: 0 auto 36px
    }

footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    color: var(--muted);
    font-size: .88rem
}

    footer .wrap {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px
    }

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

    .reveal.in {
        opacity: 1;
        transform: none
    }

@media(max-width:860px) {
    .links {
        display: none
    }

    .hero-grid, .split, .paths, .grid3 {
        grid-template-columns: 1fr
    }

    section {
        padding: 80px 0
    }

    .hero {
        padding-top: 120px
    }
}

html[data-os-reduce=on] * {
    animation: none !important;
    transition-duration: .01ms !important
}

html[data-os-reduce=on] {
    scroll-behavior: auto
}
/* ---- inner pages ---- */
.auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 110px 24px 60px
}

.panel {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 40px
}

    .panel.wide {
        max-width: 760px
    }

    .panel h1 {
        font-size: 2rem;
        margin-bottom: 8px
    }

    .panel .lead {
        font-size: 1rem;
        margin-bottom: 28px
    }

.field {
    display: block;
    margin-bottom: 18px
}

    .field span {
        display: block;
        font-size: .82rem;
        color: var(--muted);
        margin-bottom: 8px
    }

    .field input, .field select, .field textarea {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        outline: 0;
        transition: border-color .3s,box-shadow .3s
    }

    .field textarea {
        min-height: 96px;
        resize: vertical
    }

        .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--text);
            box-shadow: 0 0 0 4px color-mix(in srgb,var(--text) 10%,transparent)
        }

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.panel .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px
}

.alt-link {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
    font-size: .9rem
}

    .alt-link a {
        color: var(--text);
        text-decoration: underline
    }

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%,20px);
    background: var(--accent);
    color: var(--accent-text);
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all .5s var(--ease);
    z-index: 200
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%,0)
    }

.inner {
    padding: 130px 0 80px;
    min-height: 100vh
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 32px 0
}

.tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: all .3s
}

    .tab.active {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent)
    }

.vlist {
    display: grid;
    gap: 16px
}

.vac {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap
}

    .vac h3 {
        font-size: 1.15rem;
        margin: 4px 0 8px
    }

    .vac p {
        color: var(--muted);
        font-size: .95rem;
        max-width: 560px
    }

    .vac small {
        color: var(--muted)
    }

    .vac .btn {
        width: auto
    }

        .vac .btn[disabled] {
            opacity: .5;
            cursor: default;
            transform: none
        }

.empty {
    color: var(--muted);
    padding: 48px 0;
    text-align: center
}

@media(max-width:860px) {
    .two {
        grid-template-columns: 1fr
    }

    .panel {
        padding: 28px
    }
}
/* ---- premium layer: ivory / deep black, halftone ---- */
[hidden] {
    display: none !important
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")
}

#halftone {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .57
}

[data-page=home] #halftone {
    opacity: .72
}

[data-theme=light] #halftone {
    opacity: .44
}

[data-theme=light] [data-page=home] #halftone {
    opacity: .54
}

.halftone-wordmark {
    position: fixed;
    left: -34vw;
    bottom: 18vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    color: var(--text);
    font-size: clamp(4rem,13vw,12rem);
    font-weight: 900;
    letter-spacing: -.08em;
    white-space: nowrap;
    filter: blur(1px);
    -webkit-mask-image: radial-gradient(ellipse at center,#000 22%,transparent 74%);
    mask-image: radial-gradient(ellipse at center,#000 22%,transparent 74%)
}

    .halftone-wordmark.fly {
        animation: wordmark-flight 8s cubic-bezier(.2,.7,.2,1) both
    }

@keyframes wordmark-flight {
    0% {
        transform: translateX(0) rotate(-4deg);
        opacity: 0
    }

    18% {
        opacity: .08
    }

    50% {
        opacity: .045
    }

    82% {
        opacity: .06
    }

    100% {
        transform: translateX(150vw) rotate(4deg);
        opacity: 0
    }
}

[data-motion=off] .halftone-wordmark {
    display: none
}

main {
    isolation: isolate
}

    main::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--bg) 78%,transparent) 18%,color-mix(in srgb,var(--bg) 86%,transparent) 80%,transparent)
    }

main, footer {
    position: relative;
    z-index: 1
}

.alt {
    background: color-mix(in srgb,var(--bg2) 60%,transparent)
}

.hero::before {
    display: none
}

.hero h1 span {
    color: var(--muted);
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none
}

.react-hero-tools, .card, .panel, .profile {
    isolation: isolate
}

@keyframes shine {
    to {
        background-position: 200% center
    }
}

.btn.primary {
    box-shadow: 0 8px 30px -8px var(--glow)
}

    .btn.primary:hover {
        box-shadow: 0 0 38px var(--glow)
    }

.card, .panel, .profile {
    position: relative;
    overflow: hidden
}

    .card::after, .panel::after, .profile::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: 0;
        transition: opacity .4s;
        background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%),var(--glow),transparent 45%)
    }

    .card:hover::after, .panel:hover::after, .profile:hover::after {
        opacity: .6
    }

.av {
    box-shadow: 0 0 24px var(--glow)
}

.match i {
    box-shadow: 0 0 10px var(--text)
}
/* notifications */
.theme {
    position: relative
}

.bell-wrap {
    position: relative
}

.badge {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 0 2px var(--bg),0 0 12px var(--glow)
}

.npanel {
    position: absolute;
    right: 0;
    top: 54px;
    width: 340px;
    max-width: 88vw;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: all .35s var(--ease);
    overflow: hidden;
    z-index: 60
}

    .npanel.open {
        opacity: 1;
        transform: none;
        pointer-events: auto
    }

.nhead {
    padding: 16px 20px;
    font-weight: 700;
    border-bottom: 1px solid var(--line)
}

.nlist {
    max-height: 360px;
    overflow: auto
}

.nitem {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-size: .88rem;
    transition: background .2s
}

    .nitem:hover {
        background: var(--bg2)
    }

    .nitem small {
        display: block;
        color: var(--muted);
        margin-top: 4px;
        font-size: .76rem
    }

    .nitem.unread {
        font-weight: 600
    }

        .nitem.unread::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text);
            margin-right: 8px;
            vertical-align: middle
        }

.nempty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    font-size: .9rem
}
/* company cabinet */
.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin: 28px 0 0
}

.stat b {
    display: block;
    font-size: 2.4rem;
    letter-spacing: -.03em;
    line-height: 1
}

.stat small {
    color: var(--muted)
}

.form-card {
    max-width: 760px
}

    .form-card .btn {
        margin-top: 8px
    }

.acts {
    display: flex;
    gap: 8px
}

a.tag:hover {
    background: var(--accent);
    color: var(--accent-text)
}

@media(max-width:860px) {
    .stats {
        grid-template-columns: 1fr
    }
}
/* chat */
.chat {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    height: calc(100vh - 250px);
    min-height: 460px;
    margin-top: 32px
}

    .chat .card {
        padding: 0;
        display: flex;
        flex-direction: column
    }

        .chat .card:hover {
            transform: none
        }

.clist {
    overflow: auto
}

.citem {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    transition: background .25s
}

    .citem:hover, .citem.active {
        background: var(--bg2)
    }

    .citem b {
        display: block
    }

    .citem small {
        display: block;
        color: var(--muted);
        font-size: .78rem
    }

    .citem span {
        display: block;
        color: var(--muted);
        font-size: .86rem;
        margin-top: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

.chead {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 14px;
    align-items: center
}

    .chead small {
        display: block;
        color: var(--muted);
        font-size: .8rem
    }

.back {
    display: none;
    font-size: 1.3rem
}

.msgs {
    flex: 1;
    overflow: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth
}

.msg {
    max-width: 75%;
    align-self: flex-start;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 18px 18px 18px 4px;
    padding: 10px 14px;
    animation: pop .4s var(--ease)
}

    .msg.me {
        align-self: flex-end;
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
        border-radius: 18px 18px 4px 18px;
        box-shadow: 0 8px 24px -10px var(--glow)
    }

    .msg p {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: .94rem
    }

    .msg small {
        display: block;
        opacity: .55;
        font-size: .7rem;
        margin-top: 4px
    }

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.97)
    }
}

.mform {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line)
}

    .mform input {
        flex: 1;
        min-width: 0;
        padding: 13px 18px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        outline: 0;
        transition: border-color .3s
    }

        .mform input:focus {
            border-color: var(--text)
        }

@media(max-width:860px) {
    .chat {
        grid-template-columns: minmax(0,1fr);
        height: clamp(280px,calc(100dvh - 280px - env(safe-area-inset-bottom)),680px);
        min-height: 0
    }

        .chat .card {
            min-height: 0;
            min-width: 0
        }

        .chat .thread {
            display: none;
            height: 100%;
            min-height: 0
        }

        .chat.open .thread {
            display: flex
        }

        .chat.open .clist {
            display: none
        }

        .chat .msgs {
            min-height: 0
        }

        .chat .mform {
            flex: 0 0 auto;
            padding-bottom: max(14px,env(safe-area-inset-bottom))
        }

    .back {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px
    }

    body:has(.chat.open) .tabbar {
        display: none
    }

    body.hastab:has(.chat.open) {
        padding-bottom: env(safe-area-inset-bottom)
    }
}
/* ---- палитры ---- */
[data-palette=gold][data-theme=dark] {
    --bg: #0a0805;
    --bg2: #0f0c07;
    --card: #14100a;
    --line: #2a2214;
    --text: #f4ecd8;
    --muted: #9a8f78;
    --accent: #d9c28a;
    --accent-text: #0a0805;
    --p: 217,194,138;
    --sh: #8a7a52,#fff3cf,#8a7a52
}

[data-palette=gold][data-theme=light] {
    --bg: #f5f0e5;
    --bg2: #ece5d6;
    --card: #fbf8f0;
    --line: #dcd3bf;
    --text: #17140e;
    --muted: #786f5f;
    --accent: #17140e;
    --accent-text: #f5f0e5;
    --p: 150,115,45;
    --sh: #6e6450,#b79f5f,#6e6450
}

[data-palette=sapphire][data-theme=dark] {
    --bg: #04070f;
    --bg2: #070b16;
    --card: #0b101d;
    --line: #182036;
    --text: #e8eefc;
    --muted: #7f8cab;
    --accent: #8fb4ff;
    --accent-text: #04070f;
    --p: 120,160,255;
    --sh: #5a76b8,#e6efff,#5a76b8
}

[data-palette=sapphire][data-theme=light] {
    --bg: #eef3fb;
    --bg2: #e2eaf6;
    --card: #f9fbff;
    --line: #cfdaec;
    --text: #0b1a38;
    --muted: #5d6e8f;
    --accent: #14306b;
    --accent-text: #eef3fb;
    --p: 40,80,170;
    --sh: #1b3a80,#6f95e0,#1b3a80
}

[data-palette=emerald][data-theme=dark] {
    --bg: #030a07;
    --bg2: #06100b;
    --card: #0a1710;
    --line: #15291d;
    --text: #e6f7ee;
    --muted: #7a9a89;
    --accent: #7fe3b5;
    --accent-text: #03140c;
    --p: 100,220,165;
    --sh: #4a9a76,#e0fff0,#4a9a76
}

[data-palette=emerald][data-theme=light] {
    --bg: #eef5f0;
    --bg2: #e0ece4;
    --card: #f8fcf9;
    --line: #c9dccf;
    --text: #0c261a;
    --muted: #5a7565;
    --accent: #0f4a35;
    --accent-text: #eef5f0;
    --p: 20,110,75;
    --sh: #14573e,#5fb08a,#14573e
}

[data-palette=ruby][data-theme=dark] {
    --bg: #0b0406;
    --bg2: #12070a;
    --card: #190a0e;
    --line: #2e1219;
    --text: #fbe9ed;
    --muted: #a07780;
    --accent: #ff8fa3;
    --accent-text: #190509;
    --p: 255,120,145;
    --sh: #b55468,#ffe3e9,#b55468
}

[data-palette=ruby][data-theme=light] {
    --bg: #faf0f0;
    --bg2: #f3e2e3;
    --card: #fffafa;
    --line: #e8cfd2;
    --text: #2a0a12;
    --muted: #8a6168;
    --accent: #6b1426;
    --accent-text: #faf0f0;
    --p: 150,30,55;
    --sh: #6b1426,#c25a70,#6b1426
}

[data-palette=amethyst][data-theme=dark] {
    --bg: #07050d;
    --bg2: #0c0816;
    --card: #120d20;
    --line: #221938;
    --text: #efe8ff;
    --muted: #8c80ab;
    --accent: #c4a6ff;
    --accent-text: #0b0618;
    --p: 175,140,255;
    --sh: #7f62bf,#f0e8ff,#7f62bf
}

[data-palette=amethyst][data-theme=light] {
    --bg: #f3f0fa;
    --bg2: #e8e2f5;
    --card: #fbfaff;
    --line: #d9d0ee;
    --text: #1a0f35;
    --muted: #6f6490;
    --accent: #3d1f78;
    --accent-text: #f3f0fa;
    --p: 90,50,170;
    --sh: #3d1f78,#9a7fe0,#3d1f78
}

html {
    font-size: calc(16px * var(--fs,1))
}

    html[data-motion=off] {
        scroll-behavior: auto
    }

        html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after {
            animation: none !important;
            transition-duration: .01ms !important
        }

.panel, .profile {
    border-radius: calc(var(--r) + 8px)
}

@media(max-width:520px) {
    .right {
        gap: 6px
    }

    .theme {
        width: 36px;
        height: 36px
    }

    .btn.sm {
        padding: 8px 14px
    }

    .logo {
        font-size: 1rem
    }
}

/* ---- настройки ---- */
.sbk {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease)
}

.sdrawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 390px;
    max-width: 100vw;
    z-index: 150;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-left: 1px solid var(--line);
    box-shadow: -40px 0 80px -30px rgba(0,0,0,.5),0 0 80px -30px var(--glow);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .55s var(--ease),visibility 0s .55s
}

#settings.open .sbk {
    opacity: 1;
    pointer-events: auto
}

#settings.open .sdrawer {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

.shead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem
}

.sbody {
    flex: 1;
    overflow: auto;
    padding: 8px 24px 24px
}

.sgroup {
    padding: 20px 0;
    border-bottom: 1px solid var(--line)
}

    .sgroup:last-child {
        border: 0
    }

    .sgroup h4 {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .16em;
        color: var(--muted);
        margin-bottom: 14px;
        font-weight: 600
    }

.seg {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px
}

    .seg button {
        padding: 9px;
        border: 0;
        border-radius: 999px;
        background: none;
        color: var(--muted);
        font: inherit;
        font-size: .88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all .35s var(--ease)
    }

        .seg button.on {
            background: var(--accent);
            color: var(--accent-text)
        }

.pals {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px
}

.pal {
    background: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    font: inherit;
    font-size: .78rem;
    transition: all .35s var(--ease)
}

    .pal:hover {
        transform: translateY(-3px)
    }

    .pal.on {
        border-color: var(--text);
        box-shadow: 0 0 24px -6px var(--glow)
    }

    .pal i {
        display: block;
        height: 46px;
        border-radius: 10px;
        margin-bottom: 8px;
        position: relative;
        background: linear-gradient(105deg,var(--a) 50%,var(--b) 50%);
        box-shadow: inset 0 0 0 1px rgba(128,128,128,.25)
    }

        .pal i::after {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            width: 14px;
            height: 14px;
            transform: translate(-50%,-50%);
            border-radius: 50%;
            background: var(--c);
            box-shadow: 0 0 0 2px rgba(128,128,128,.45),0 0 14px var(--c)
        }

.sw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: .95rem
}

    .sw input {
        display: none
    }

    .sw i {
        width: 44px;
        height: 26px;
        border-radius: 99px;
        background: var(--line);
        position: relative;
        transition: background .3s;
        flex: none
    }

        .sw i::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--text);
            transition: transform .4s var(--ease),background .3s
        }

    .sw input:checked + i {
        background: var(--accent)
    }

        .sw input:checked + i::after {
            transform: translateX(18px);
            background: var(--accent-text)
        }

.rg {
    display: block;
    padding: 10px 0
}

    .rg span {
        display: flex;
        justify-content: space-between;
        color: var(--muted);
        font-size: .86rem;
        margin-bottom: 8px
    }

    .rg b {
        color: var(--text);
        font-weight: 600
    }

    .rg input {
        width: 100%;
        accent-color: var(--accent);
        cursor: pointer
    }

.sfoot {
    padding: 16px 24px;
    border-top: 1px solid var(--line)
}

    .sfoot .btn {
        width: 100%;
        justify-content: center
    }

/* ---- уведомления (премиум) ---- */
.badge {
    animation: pulse 2.4s infinite
}

.npanel {
    width: 390px;
    border-radius: calc(var(--r) + 4px);
    background: color-mix(in srgb,var(--card) 94%,transparent);
    backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid color-mix(in srgb,var(--text) 14%,transparent);
    box-shadow: 0 40px 80px -24px rgba(0,0,0,.6),0 0 70px -24px var(--glow)
}

.nhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border: 0;
    font-size: 1.05rem
}

.nchip {
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 0 16px var(--glow)
}

.nlist {
    max-height: 380px;
    padding: 0 8px 8px
}

.nsec {
    padding: 10px 12px 6px;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--muted);
    font-weight: 600
}

.nitem {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    margin: 2px 0;
    border: 0;
    border-radius: calc(var(--r) - 6px);
    transition: background .3s,transform .4s var(--ease)
}

    .nitem:hover {
        background: var(--bg2);
        transform: translateX(3px)
    }

    .nitem.unread {
        font-weight: 400;
        background: linear-gradient(90deg,var(--glow),transparent 75%)
    }

        .nitem.unread::before {
            content: none
        }

        .nitem.unread::after {
            content: "";
            position: absolute;
            right: 14px;
            top: 18px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--text);
            box-shadow: 0 0 10px var(--text)
        }

.nic {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--text)
}

.nitem.unread .nic {
    background: var(--accent);
    color: var(--accent-text);
    border-color: transparent;
    box-shadow: 0 6px 18px -6px var(--glow)
}

.nic svg {
    width: 18px;
    height: 18px
}

.nbody {
    display: block;
    min-width: 0;
    padding-right: 14px
}

    .nbody em {
        display: block;
        font-style: normal;
        font-size: .68rem;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: var(--muted);
        font-weight: 600;
        margin-bottom: 3px
    }

    .nbody > span {
        display: block;
        font-size: .9rem;
        line-height: 1.4
    }

    .nbody small {
        display: block;
        margin: 5px 0 0;
        color: var(--muted);
        font-size: .74rem
    }

.nfoot {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    font-size: .86rem;
    font-weight: 600;
    transition: background .3s
}

    .nfoot:hover {
        background: var(--bg2)
    }

.nempty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 36px 20px;
    text-align: center
}

    .nempty .nic {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        margin-bottom: 8px
    }

    .nempty small {
        color: var(--muted)
    }

.ntoasts {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 200;
    display: grid;
    gap: 12px;
    width: 370px;
    max-width: calc(100vw - 32px)
}

.ntoast {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: calc(var(--r) + 2px);
    background: color-mix(in srgb,var(--card) 90%,transparent);
    backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid color-mix(in srgb,var(--text) 16%,transparent);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.55),0 0 60px -20px var(--glow);
    animation: nin .6s var(--ease);
    transition: opacity .4s,transform .4s var(--ease)
}

    .ntoast.out {
        opacity: 0;
        transform: translateX(30px)
    }

    .ntoast .nic {
        background: var(--accent);
        color: var(--accent-text);
        border-color: transparent;
        box-shadow: 0 6px 18px -6px var(--glow)
    }

    .ntoast::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 100%;
        background: var(--accent);
        transform-origin: left;
        animation: nbar 6.5s linear forwards
    }

    .ntoast:hover::after {
        animation-play-state: paused
    }

.nx {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1
}

    .nx:hover {
        color: var(--text)
    }

@keyframes nin {
    from {
        opacity: 0;
        transform: translateX(40px) scale(.96)
    }
}

@keyframes nbar {
    to {
        transform: scaleX(0)
    }
}

@media(max-width:520px) {
    .ntoasts {
        top: 76px;
        right: 16px
    }

    .npanel {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto
    }
}
/* простые сообщения */
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb,var(--card) 92%,transparent);
    color: var(--text);
    border: 1px solid color-mix(in srgb,var(--text) 16%,transparent);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px -18px rgba(0,0,0,.55),0 0 40px -16px var(--glow);
    padding: 13px 22px 13px 18px;
    font-weight: 500;
    font-size: .92rem
}

    .toast::before {
        content: "";
        flex: none;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--text);
        box-shadow: 0 0 12px var(--glow)
    }

/* ===== v3: пароль, адаптив, дашборды, эффекты ===== */
body {
    overflow-x: hidden
}

.pwwrap {
    position: relative
}

    .pwwrap input {
        padding-right: 50px
    }

.eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color .3s,background .3s
}

    .eye:hover, .eye.on {
        color: var(--text)
    }

    .eye:hover {
        background: var(--bg2)
    }

    .eye svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round
    }

.links a.on {
    color: var(--text)
}

.burger {
    display: none
}

@keyframes drop {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }
}

@media(max-width:1000px) {
    .links {
        display: none
    }

    .burger {
        display: grid
    }

    .links.open {
        display: flex;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
        background: color-mix(in srgb,var(--card) 96%,transparent);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--line);
        animation: drop .4s var(--ease)
    }

        .links.open a {
            padding: 14px 4px;
            font-size: 1.05rem;
            color: var(--text);
            border-bottom: 1px solid var(--line)
        }
}

.tabbar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 90;
    padding: 8px;
    border-radius: 24px;
    gap: 4px;
    justify-content: space-around;
    background: color-mix(in srgb,var(--card) 90%,transparent);
    backdrop-filter: blur(22px) saturate(1.4);
    border: 1px solid color-mix(in srgb,var(--text) 14%,transparent);
    box-shadow: 0 20px 50px -18px rgba(0,0,0,.6),0 0 50px -22px var(--glow)
}

    .tabbar a {
        flex: 1;
        min-width: 0;
        display: grid;
        justify-items: center;
        gap: 3px;
        padding: 8px 2px;
        border-radius: 16px;
        font-size: .66rem;
        font-weight: 600;
        color: var(--muted);
        transition: all .35s var(--ease)
    }

    .tabbar svg {
        width: 21px;
        height: 21px
    }

    .tabbar a.on {
        color: var(--accent-text);
        background: var(--accent);
        box-shadow: 0 6px 18px -6px var(--glow)
    }

@media(max-width:860px) {
    .tabbar {
        display: flex
    }

    body.hastab {
        padding-bottom: calc(96px + env(safe-area-inset-bottom))
    }

    .toast {
        bottom: calc(104px + env(safe-area-inset-bottom))
    }

    section {
        padding: 70px 0
    }

    .inner {
        padding-top: 110px
    }

    .stats4 {
        grid-template-columns: repeat(2,1fr)
    }

    .sdrawer {
        width: 100vw
    }
}

.vbanner {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 45;
    text-align: center;
    padding: 9px 16px;
    font-size: .88rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--accent-text)
}

    .vbanner a {
        text-decoration: underline;
        margin-left: 8px
    }

.linkbtn {
    background: none;
    border: 0;
    color: var(--text);
    text-decoration: underline;
    font: inherit;
    cursor: pointer
}

    .linkbtn[disabled] {
        color: var(--muted);
        text-decoration: none;
        cursor: default
    }

.codein {
    font-size: 2rem !important;
    letter-spacing: .5em;
    text-align: center;
    font-weight: 700
}

.devhint {
    padding: 12px 16px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 18px
}

    .devhint b {
        color: var(--text);
        letter-spacing: .2em
    }

.ok {
    color: var(--text);
    font-weight: 600
}
/* дашборды */
.rise {
    animation: rise .7s var(--ease) both;
    animation-delay: var(--d,0s)
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px)
    }
}

.dash {
    display: grid;
    gap: 20px;
    margin-top: 32px
}

.dtop {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px
}

.dcols {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px
}

.stats4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px
}

    .stats4.s2 {
        grid-template-columns: repeat(2,1fr);
        align-content: start
    }

.stat b {
    display: block;
    font-size: 2.4rem;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 4px
}

.card h4 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    margin-bottom: 16px;
    font-weight: 600
}

.ring {
    --v: 0;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    margin: 0 auto 16px;
    background: conic-gradient(var(--accent) calc(var(--v)*1%),var(--line) 0);
    box-shadow: 0 0 40px -10px var(--glow)
}

    .ring::before {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 50%;
        background: var(--card)
    }

    .ring b {
        position: relative;
        font-size: 1.9rem;
        letter-spacing: -.03em
    }

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 190px;
    padding-top: 10px
}

.bar {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-width: 0
}

    .bar i {
        display: block;
        width: 100%;
        max-width: 44px;
        height: var(--h);
        min-height: 4px;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient(var(--accent),color-mix(in srgb,var(--accent) 25%,transparent));
        transform-origin: bottom;
        animation: grow 1s var(--ease)
    }

    .bar b {
        font-size: .78rem
    }

    .bar small {
        color: var(--muted);
        font-size: .62rem
    }

@keyframes grow {
    from {
        transform: scaleY(0)
    }
}

.mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: .92rem
}

    .mini small {
        color: var(--muted)
    }

.qa {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.platform-info {
    margin: 28px 0 22px;
    padding: 26px 30px;
    background: linear-gradient(120deg,color-mix(in srgb,var(--card) 94%,transparent),color-mix(in srgb,var(--accent) 8%,var(--card)));
    border-color: color-mix(in srgb,var(--accent) 24%,var(--line))
}

    .platform-info h2, .platform-info h3 {
        font-size: 1.5rem;
        margin: 0 0 10px
    }

        .platform-info h2::before, .platform-info h3::before {
            display: none
        }

    .platform-info p {
        max-width: 680px;
        color: var(--muted);
        margin: 0 0 18px
    }

.platform-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0
}

    .platform-links li {
        margin: 0
    }

@media(max-width:860px) {
    .dtop, .dcols {
        grid-template-columns: 1fr
    }
}
/* вакансии: фильтры, теги, избранное */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px
}

    .tags .tag {
        margin: 0
    }

.fav {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all .3s var(--ease)
}

    .fav:hover {
        transform: scale(1.12);
        color: var(--text)
    }

    .fav.on {
        background: var(--accent);
        color: var(--accent-text);
        border-color: transparent;
        box-shadow: 0 6px 18px -6px var(--glow)
    }

.filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px
}

    .filters input, .filters select {
        padding: 13px 16px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: var(--card);
        color: var(--text);
        font: inherit;
        outline: 0;
        width: 100%
    }

.chk {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: .9rem;
    white-space: nowrap;
    cursor: pointer
}

    .chk input {
        width: auto !important;
        accent-color: var(--accent)
    }

@media(max-width:860px) {
    .filters {
        grid-template-columns: 1fr 1fr
    }

        .filters input[type=search] {
            grid-column: 1/-1
        }
}

.vac .acts {
    flex-wrap: wrap;
    align-items: center
}

.chat.single {
    grid-template-columns: 1fr;
    height: calc(100dvh - 330px)
}
/* Живые эффекты главной страницы определены ниже. */
.rot {
    display: inline-block;
    transition: opacity .45s,transform .45s var(--ease),filter .45s
}

    .rot.swap {
        opacity: 0;
        transform: translateY(.25em);
        filter: blur(6px)
    }

.tw {
    transition: transform .35s var(--ease);
    will-change: transform
}

.num-sec {
    padding: 80px 0
}

/* меню профиля */
.links .mh {
    display: none
}

.umenu {
    position: relative
}

.uavatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px var(--glow);
    transition: transform .4s var(--ease),box-shadow .3s;
    overflow: hidden;
    padding: 0
}

.uavatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.uavatar:hover {
    transform: scale(1.07);
    box-shadow: 0 0 26px var(--glow)
}

.udrop {
    position: absolute;
    right: 0;
    top: 54px;
    width: 268px;
    padding: 8px;
    border-radius: calc(var(--r) + 4px);
    background: color-mix(in srgb,var(--card) 94%,transparent);
    backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid color-mix(in srgb,var(--text) 14%,transparent);
    box-shadow: 0 40px 80px -24px rgba(0,0,0,.6),0 0 70px -24px var(--glow);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: all .35s var(--ease);
    z-index: 60
}

    .udrop.open {
        opacity: 1;
        transform: none;
        pointer-events: auto
    }

.uhead {
    padding: 12px 14px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px
}

    .uhead b {
        display: block
    }

    .uhead small {
        color: var(--muted);
        word-break: break-all
    }

.udrop a, .udrop button.ul {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    background: none;
    border-radius: calc(var(--r) - 8px);
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
    text-align: left;
    transition: background .25s,transform .3s var(--ease)
}

    .udrop a:hover, .udrop button.ul:hover {
        background: var(--bg2);
        transform: translateX(3px)
    }

.udrop svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted)
}

.udrop hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 6px 0
}

.form-card:hover {
    transform: none
}

@media(max-width:1000px) {
    .links.open .mh {
        display: block
    }
}

@media(max-width:860px) {
    body.hastab .burger {
        display: none
    }
}

@media(max-width:520px) {
    .udrop {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto
    }
}

/* чипы-фильтры, режим «на проверке» */
.filters {
    grid-template-columns: 2fr 1fr 1fr
}

.chips {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .35s var(--ease)
}

    .chip:hover {
        color: var(--text);
        border-color: var(--muted);
        transform: translateY(-2px)
    }

    .chip.on {
        background: var(--accent);
        color: var(--accent-text);
        border-color: transparent;
        box-shadow: 0 6px 18px -6px var(--glow)
    }

@media(max-width:860px) {
    .filters {
        grid-template-columns: 1fr 1fr
    }
}

.locked [data-uid], .locked [data-st], .locked [data-vdo] {
    opacity: .4;
    pointer-events: none
}

.mform {
    align-items: flex-end
}

    .mform textarea {
        flex: 1;
        padding: 12px 18px;
        border-radius: 20px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        outline: 0;
        resize: none;
        max-height: 160px;
        transition: border-color .3s
    }

        .mform textarea:focus {
            border-color: var(--text)
        }

/* заявка компании в чате поддержки (админ) */
.acomp {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg,var(--glow),transparent 85%);
    font-size: .88rem
}

    .acomp b {
        display: block
    }

    .acomp small {
        color: var(--muted)
    }

/* окно отклика, письма */
.mbk {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fade .3s
}

.modal {
    width: 100%;
    max-width: 560px;
    max-height: 90dvh;
    overflow: auto;
    background: var(--card);
    border: 1px solid color-mix(in srgb,var(--text) 14%,transparent);
    border-radius: calc(var(--r) + 8px);
    padding: 30px;
    box-shadow: 0 50px 100px -30px rgba(0,0,0,.7),0 0 80px -30px var(--glow);
    animation: mpop .5s var(--ease)
}

    .modal h3 {
        font-size: 1.4rem;
        margin-bottom: 8px
    }

    .modal .lead {
        font-size: .95rem;
        margin-bottom: 18px
    }

    .modal textarea {
        width: 100%;
        min-height: 200px;
        padding: 14px 16px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        resize: vertical;
        outline: 0;
        transition: border-color .3s
    }

        .modal textarea:focus {
            border-color: var(--text)
        }

.mcount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: .82rem;
    margin: 10px 0 20px
}

.mact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end
}

@keyframes fade {
    from {
        opacity: 0
    }
}

@keyframes mpop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96)
    }
}

.cl {
    margin-top: 10px;
    font-size: .88rem
}

    .cl summary {
        cursor: pointer;
        color: var(--muted);
        font-weight: 600
    }

    .cl p {
        white-space: pre-wrap;
        margin-top: 8px;
        padding: 12px 14px;
        border-radius: 12px;
        background: var(--bg2);
        border: 1px solid var(--line)
    }
/* резюме */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 794px;
    margin: 0 auto 20px
}

    .toolbar .hint {
        color: var(--muted);
        font-size: .85rem
    }

.paper {
    background: #fff;
    color: #16171a;
    max-width: 794px;
    margin: 0 auto;
    padding: 56px 60px;
    border-radius: 6px;
    box-shadow: 0 40px 90px -30px rgba(0,0,0,.6),0 0 80px -30px var(--glow);
    font-size: 14px;
    line-height: 1.6
}

    .paper > header {
        display: flow-root;
        overflow-wrap: anywhere
    }

    .paper h1 {
        font-size: 2.1rem;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin-bottom: 6px
    }

    .paper .resume-avatar {
        float: right;
        width: 88px;
        height: 88px;
        border-radius: 22px;
        object-fit: cover;
        margin: 0 0 16px 24px
    }

    .paper .rrole {
        color: #5b5f68;
        margin-bottom: 14px
    }

    .paper .rcontacts {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 18px;
        color: #3b3e45;
        font-size: .9rem;
        padding-bottom: 18px;
        border-bottom: 2px solid #16171a
    }

    .paper h3 {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .16em;
        color: #7a7f89;
        margin: 24px 0 8px;
        font-weight: 700
    }

    .paper p {
        white-space: pre-wrap;
        word-break: break-word
    }

    .paper .skills {
        display: flex;
        flex-wrap: wrap;
        gap: 6px
    }

        .paper .skills span {
            padding: 4px 12px;
            border: 1px solid #cfd2d8;
            border-radius: 99px;
            font-size: .85rem
        }

    .paper a {
        color: #16171a;
        text-decoration: underline
    }

    .paper .rfoot {
        margin-top: 34px;
        padding-top: 12px;
        border-top: 1px solid #e3e5e9;
        color: #9a9ea7;
        font-size: .75rem
    }

    .paper .empty {
        color: #5b5f68
    }

@media(max-width:860px) {
    .paper {
        padding: 28px 22px
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm
    }

    html, body {
        background: #fff !important
    }

        #halftone, .site-header, .tabbar, .vbanner, .progress, .toolbar, .ntoasts, .toast, #settings, body::before, body::after, main::before {
            display: none !important
        }

        body.hastab {
            padding-bottom: 0 !important
        }

    .inner {
        padding: 0 !important;
        min-height: 0 !important
    }

    .wrap {
        max-width: none;
        padding: 0
    }

    .paper {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        padding: 0;
        margin: 0
    }

        .paper a {
            text-decoration: none
        }
}

/* подбор вакансий */
.mrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0 4px
}

    .mrow .tag {
        margin: 0
    }

.mpill {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 5px 14px;
    border-radius: 99px;
    border: 1px solid var(--line);
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap
}

    .mpill::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        width: calc(var(--v) * 1%);
        background: color-mix(in srgb,var(--accent) 26%,transparent);
        animation: grow2 1s var(--ease)
    }

    .mpill b {
        color: var(--text)
    }

    .mpill.hi {
        border-color: var(--accent);
        box-shadow: 0 0 18px -6px var(--glow)
    }

@keyframes grow2 {
    from {
        width: 0
    }
}

.tag.why {
    border-color: color-mix(in srgb,var(--text) 28%,transparent);
    color: var(--text)
}

.chipsel {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    outline: 0;
    cursor: pointer;
    margin-left: auto
}

a.mini {
    color: var(--text);
    transition: transform .3s var(--ease)
}

    a.mini:hover {
        transform: translateX(4px)
    }

/* воронка откликов */
.subh {
    margin: 34px 0 14px;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--muted);
    font-weight: 600
}

.kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(264px,1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity
}

.kcol {
    scroll-snap-align: start;
    background: color-mix(in srgb,var(--card) 70%,transparent);
    border: 1px solid var(--line);
    border-radius: calc(var(--r) - 2px);
    padding: 12px;
    min-height: 230px;
    align-content: start;
    display: grid;
    gap: 10px;
    transition: border-color .3s,background .3s
}

    .kcol.over {
        border-color: var(--accent);
        background: color-mix(in srgb,var(--accent) 8%,var(--card))
    }

.khead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px 8px;
    font-size: .9rem
}

    .khead span {
        min-width: 26px;
        text-align: center;
        padding: 2px 8px;
        border-radius: 99px;
        background: var(--bg2);
        border: 1px solid var(--line);
        font-size: .78rem;
        color: var(--muted)
    }

.kcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    gap: 6px;
    cursor: grab;
    transition: transform .3s var(--ease),border-color .3s,opacity .3s,box-shadow .3s;
    animation: pop .4s var(--ease)
}

    .kcard:hover {
        border-color: var(--muted);
        box-shadow: 0 14px 30px -18px rgba(0,0,0,.6),0 0 30px -20px var(--glow)
    }

    .kcard.drag {
        opacity: .4;
        transform: scale(.97)
    }

    .kcard small, .kmeta {
        color: var(--muted);
        font-size: .8rem
    }

.kmeta {
    word-break: break-word
}

.kiv {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg2);
    border: 1px solid var(--line);
    font-size: .84rem;
    line-height: 1.5
}

    .kiv small {
        color: var(--muted)
    }

.kact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 4px
}

    .kact .btn {
        padding: 7px 12px;
        font-size: .8rem
    }

    .kact select {
        padding: 7px 10px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: var(--bg);
        color: var(--text);
        font: inherit;
        font-size: .8rem;
        outline: 0;
        cursor: pointer
    }

.kempty {
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
    padding: 18px 0
}

.steps {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 6px
}

    .steps span {
        padding: 4px 12px;
        border-radius: 99px;
        border: 1px solid var(--line);
        font-size: .74rem;
        color: var(--muted);
        transition: all .4s var(--ease)
    }

        .steps span.on {
            background: var(--accent);
            color: var(--accent-text);
            border-color: transparent
        }

    .steps.bad span {
        border-style: dashed
    }

.vac > div:first-child {
    flex: 1;
    min-width: 0
}

.locked [data-iv], .locked [data-stage] {
    opacity: .4;
    pointer-events: none
}

@media(max-width:860px) {
    .kanban {
        grid-auto-columns: 82%
    }
}

/* ===== плавность ===== */
:root {
    --ease2: cubic-bezier(.22,.8,.24,1)
}

.reveal {
    opacity: 1;
    transform: none;
    transition: transform .5s var(--ease),border-color .3s,box-shadow .3s,background .3s,color .3s
}

    .reveal.in {
        animation: revealIn .45s var(--ease2) backwards;
        animation-delay: var(--d,0s)
    }

.profile.reveal.in {
    animation: revealIn 1.3s var(--ease2) backwards,float 9s ease-in-out infinite;
    animation-delay: var(--d,0s),0s
}

@keyframes revealIn {
    from {
        transform: translateY(8px)
    }
}
/* заголовок: слова сменяют друг друга без скачков */
.hero h1 span.rot {
    display: inline-grid;
    vertical-align: top;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: inherit;
    animation: none
}

.rw {
    grid-area: 1/1;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease2)
}

    .rw.on {
        opacity: 1;
        transform: none;
        filter: blur(0);
        pointer-events: auto
    }

.hero h1 span {
    animation-duration: 10s
}
/* плавное переключение темы и палитры */
.theming, .theming *, .theming *::before, .theming *::after {
    transition: background-color .7s var(--ease2),color .7s var(--ease2),border-color .7s var(--ease2),box-shadow .7s var(--ease2),fill .7s,stroke .7s !important
}

.muted-cap {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 14px
}

.nf h1 {
    font-size: clamp(5rem,16vw,8rem);
    margin-bottom: 10px
}

/* Единая навигация, доступность и мобильная версия */
[hidden] {
    display: none !important
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px
}

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

button, a, input, select, textarea, summary {
    -webkit-tap-highlight-color: transparent
}

    button, summary, a.btn {
        touch-action: manipulation
    }

header nav {
    gap: 20px
}

.logo {
    white-space: nowrap
}

.links {
    gap: 26px;
    align-items: center
}

    .links > a, .nav-group > .nav-disclosure {
        min-height: 44px;
        display: flex;
        align-items: center
    }

.nav-group {
    position: relative
}

    .nav-group > .nav-disclosure {
        gap: 8px;
        cursor: pointer;
        white-space: nowrap;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
        padding: 0 2px;
        transition: color .2s
    }

        .nav-group > .nav-disclosure:hover, .nav-group.open > .nav-disclosure {
            color: var(--text)
        }

.nav-disclosure .chev {
    width: 16px;
    height: 16px;
    flex: none;
    color: currentColor;
    transition: transform .2s var(--ease)
}

.nav-group.open .chev {
    transform: rotate(180deg)
}

.nav-group > .nav-disclosure:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 6px
}
/* Та же визуальная система, что у меню профиля: карточка, строки, тонкие иконки. */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 292px;
    padding: 8px;
    display: grid;
    gap: 0;
    background: var(--card);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid color-mix(in srgb,var(--text) 14%,transparent);
    border-radius: calc(var(--r) + 4px);
    box-shadow: 0 24px 64px -24px rgba(0,0,0,.4);
    z-index: 70;
    transform: translateX(-50%)
}

    .nav-dropdown[hidden] {
        display: none !important
    }

.nav-group.open .nav-dropdown {
    animation: platform-menu-in .18s var(--ease)
}

.nav-menu-head {
    padding: 12px 14px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    color: var(--text)
}

    .nav-menu-head b {
        display: block;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 650
    }

    .nav-menu-head small {
        display: block;
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.5;
        color: var(--muted)
    }

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: calc(var(--r) - 8px);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    transition: background .2s
}

    .nav-dropdown a:hover, .nav-dropdown a:focus-visible {
        background: var(--bg2)
    }

    .nav-dropdown a:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px
    }

.nav-dropdown svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--muted)
}

.nav-dropdown hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 6px 0
}

@keyframes platform-menu-in {
    from {
        opacity: 0;
        translate: 0 -6px
    }

    to {
        opacity: 1;
        translate: 0 0
    }
}

html[data-os-reduce=on] .nav-group.open .nav-dropdown {
    animation: none
}

html[data-os-reduce=on] .nav-disclosure .chev {
    transition: none
}

[data-motion=off] .nav-group.open .nav-dropdown {
    animation: none
}

.theme, .uavatar, .fav {
    min-width: 44px;
    min-height: 44px
}

.btn {
    min-height: 44px;
    justify-content: center;
    text-align: center
}

.hero-grid {
    grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr);
    gap: 48px
}

.hero h1 {
    font-size: clamp(2.5rem,5vw,4rem);
    line-height: 1.12
}

.hero-grid > * {
    min-width: 0
}

.hero .lead {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 54ch
}

.hero h1 span.rot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0,1fr);
    text-wrap: balance
}

.hero h1 .rw {
    display: block;
    min-width: 0;
    background: linear-gradient(100deg,var(--sh));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 9s linear infinite;
    line-height: 1.16;
    padding-bottom: .08em;
    overflow-wrap: normal
}

.rw {
    transition: opacity 1.15s var(--ease2),transform 1.5s var(--ease2),filter 1.25s var(--ease2)
}

.hero .profile {
    border-radius: 24px
}

.row {
    gap: 16px
}

    .row span {
        text-align: right
    }

    .row[style] span {
        text-align: left
    }

.site-footer {
    padding: 64px 0 24px;
    background: color-mix(in srgb,var(--bg2) 60%,transparent)
}

    .site-footer .footer-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr 1.15fr;
        gap: 40px 24px
    }

    .site-footer .logo {
        color: var(--text);
        font-size: 22px
    }

.footer-brand p {
    margin: 16px 0 20px;
    font-size: 14px;
    line-height: 1.8
}

.footer-catalog {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    font-size: 14px
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    gap: 0;
    font-size: 14px
}

.footer-col h3 {
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px
}

.footer-col a, .footer-settings {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    line-height: 1.5;
    text-align: left
}

.footer-settings {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer
}

.site-footer a, .footer-settings {
    transition: color .2s
}

    .site-footer a:hover, .footer-settings:hover {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 5px
    }

.footer-bottom {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 16px 32px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 14px
}

    .footer-bottom a {
        margin-left: auto;
        min-height: 44px;
        display: flex;
        align-items: center
    }

.catalog-note {
    max-width: 680px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 16px
}

#list {
    margin-top: 24px;
    transition: opacity .2s
}

    #list[aria-busy=true] {
        opacity: .65
    }

.vac {
    align-items: flex-start
}

    .vac h3, .vac p {
        overflow-wrap: anywhere
    }

    .vac p {
        white-space: pre-line
    }

    .vac .acts {
        flex-shrink: 0;
        display: flex;
        gap: 10px;
        align-self: center
    }

    .vac:target {
        border-color: var(--accent)
    }

.auth-gate {
    position: fixed;
    inset: 0;
    margin: auto;
    width: calc(100% - 32px);
    max-width: 510px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 80px #0006;
    animation: mpop .45s var(--ease)
}

    .auth-gate::backdrop {
        background: #0009;
        backdrop-filter: blur(8px)
    }

    .auth-gate h2 {
        font-size: 30px;
        max-width: 340px
    }

    .auth-gate p {
        color: var(--muted);
        font-size: 16px;
        line-height: 1.7
    }

.gate-close {
    position: absolute;
    right: 12px;
    top: 12px
}

.auth-gate .eyebrow {
    padding-right: 20px;
    font-size: 12px
}

.gate-actions {
    display: grid;
    gap: 12px;
    margin: 28px 0 16px
}

.gate-cancel {
    min-height: 44px;
    font-size: 14px
}

.help-page h1 {
    font-size: clamp(2.3rem,5vw,3.6rem);
    max-width: 740px;
    margin-bottom: 24px
}

.help-layout {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr);
    gap: 64px;
    margin-top: 48px
}

.help-index {
    position: sticky;
    top: 100px;
    height: max-content;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--muted)
}

    .help-index a {
        padding: 10px 0;
        min-height: 44px
    }

        .help-index a:hover {
            color: var(--text)
        }

.help-content section {
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line)
}

.help-content h2 {
    font-size: 28px;
    line-height: 1.25
}

.help-content p {
    margin: 16px 0;
    color: var(--muted);
    line-height: 1.8
}

    .help-content p a {
        color: var(--text);
        text-decoration: underline;
        text-underline-offset: 4px
    }

@media(max-width:1100px) {
    header nav {
        gap: 16px
    }

    .links {
        gap: 16px
    }

    .right {
        gap: 8px
    }

        .right .btn.sm {
            padding-inline: 14px
        }
}

@media(max-width:1000px) {
    .links.open {
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
        align-items: stretch;
        padding: 12px 24px 24px
    }

        .links.open > a, .links.open .nav-group > .nav-disclosure {
            font-size: 16px;
            min-height: 48px
        }

        .links.open .nav-group > .nav-disclosure {
            border-bottom: 1px solid var(--line);
            color: var(--text);
            justify-content: space-between;
            width: 100%;
            text-align: left
        }

    .nav-dropdown {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: none;
        border: 1px solid var(--line);
        border-radius: var(--r);
        margin: 8px 0 12px;
        padding: 8px;
        background: var(--card);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: none
    }

    .links.open .nav-dropdown a {
        font-size: 14px;
        padding: 11px 14px;
        border: 0;
        min-height: 44px
    }
}

@media(max-width:860px) {
    .hero-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 40px
    }

    .hero {
        min-height: 0;
        padding-top: 124px;
        padding-bottom: 64px
    }

        .hero h1 {
            font-size: clamp(2.5rem,7.5vw,3.8rem);
            max-width: 700px
        }

        .hero .profile {
            max-width: 540px
        }

        .hero .lead {
            max-width: 58ch
        }

        .hero::before {
            width: 100%;
            right: -35%;
            top: 10%
        }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 32px
    }

    .help-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 32px
    }

    .help-index {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0 20px
    }

    .two, .split, .paths, .grid3 {
        min-width: 0;
        grid-template-columns: minmax(0,1fr)
    }

    .tabs {
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin
    }

        .tabs .tab {
            min-height: 44px;
            flex-shrink: 0
        }

    .vbanner {
        font-size: 14px
    }

        .vbanner a {
            display: inline-block
        }

    body:has(.vbanner) .inner {
        padding-top: 160px
    }
}

@media(max-width:520px) {
    .wrap {
        padding: 0 20px
    }

    header .wrap {
        padding: 0 12px
    }

    header nav {
        gap: 8px
    }

    .logo {
        font-size: 16px
    }

    .right {
        gap: 6px
    }

        .right .btn.sm {
            font-size: 14px;
            padding: 8px 12px
        }

    #reg-btn {
        display: none
    }

    .right > .theme:not(.burger):not(#theme) {
        display: none
    }

    .theme {
        width: 44px;
        height: 44px
    }

    .burger:hover {
        transform: none
    }

    section {
        padding: 56px 0
    }

    .hero {
        padding-top: 112px
    }

        .hero h1 {
            font-size: clamp(2.1rem,9.5vw,3rem);
            letter-spacing: -.045em;
            line-height: 1.13
        }

    h2 {
        font-size: clamp(1.75rem,7.5vw,2.2rem);
        line-height: 1.17
    }

    .hero .lead, .lead {
        font-size: 16px;
        line-height: 1.7
    }

    .hero .lead {
        margin: 20px 0 28px
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: .12em
    }

    .cta {
        gap: 10px
    }

        .cta .btn {
            width: 100%
        }

    .trust {
        margin-top: 28px;
        gap: 10px 20px;
        font-size: 14px
    }

    .profile {
        padding: 22px
    }

    .row {
        font-size: 14px
    }

        .row small {
            font-size: 14px
        }

    .match {
        font-size: 14px;
        gap: 12px;
        padding: 12px
    }

    .fields {
        gap: 8px
    }

        .fields span {
            font-size: 14px;
            padding: 8px 12px
        }

    .card, .panel {
        padding: 22px
    }

    .grid3, .paths {
        margin-top: 28px;
        gap: 14px
    }

    .split {
        gap: 24px
    }

    .num {
        margin-bottom: 24px
    }

    .stats4 {
        gap: 12px
    }

    .stat {
        padding: 20px 14px
    }

        .stat b {
            font-size: 32px
        }

        .stat small {
            font-size: 14px
        }

    .faq {
        margin-top: 28px
    }

        .faq summary {
            font-size: 16px;
            gap: 20px
        }

        .faq p {
            font-size: 16px
        }

    .inner {
        padding: 104px 0 48px
    }

    .filters {
        grid-template-columns: minmax(0,1fr);
        gap: 10px
    }

        .filters input[type=search] {
            grid-column: auto
        }

        .filters input, .filters select {
            min-width: 0;
            width: 100%;
            min-height: 48px;
            font-size: 16px
        }

    .chips {
        gap: 8px
    }

        .chips .chip {
            font-size: 14px;
            min-height: 44px
        }

        .chips .chipsel {
            flex: 1 1 100%;
            margin-left: 0
        }

    .tabs {
        gap: 8px
    }

    .tab {
        font-size: 14px;
        padding: 10px 14px
    }

    .vac {
        gap: 20px
    }

        .vac > div:first-child {
            flex-basis: 100%
        }

        .vac .acts {
            width: 100%
        }

            .vac .acts .btn {
                flex: 1;
                padding: 12px 16px
            }

        .vac h3 {
            font-size: 20px
        }

        .vac p {
            font-size: 16px
        }

        .vac small {
            font-size: 14px
        }

    .tag {
        font-size: 14px
    }

    .auth {
        padding: 104px 16px 48px
    }

        .auth .panel {
            width: 100%;
            min-width: 0
        }

        .auth h1 {
            font-size: 32px
        }

        .auth input, .auth select, .field input, .field textarea, .field select {
            font-size: 16px;
            min-height: 48px
        }

    .auth-gate {
        padding: 44px 24px 24px
    }

        .auth-gate h2 {
            font-size: 28px
        }

    .gate-actions .btn {
        font-size: 14px
    }

    .site-footer {
        padding: 40px 0 24px
    }

        .site-footer .footer-grid {
            gap: 28px 16px
        }

    .footer-brand {
        grid-column: 1/-1
    }

        .footer-brand p {
            margin: 8px 0
        }

    .footer-bottom {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start
    }

        .footer-bottom a {
            margin-left: 0
        }

    .help-layout {
        margin-top: 24px
    }

    .help-content h2 {
        font-size: 25px
    }

    .help-content section {
        margin-bottom: 28px;
        padding-bottom: 28px
    }

    .sdrawer .shead {
        padding: 20px
    }

    .sbody {
        padding: 20px
    }

    .sdrawer input {
        font-size: 16px
    }
}

/* Home interaction panel */
#react-hero-tools {
    max-width: 540px;
    margin-top: 30px
}

.react-hero-tools {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb,var(--card) 78%,transparent);
    border-color: var(--line) !important;
    box-shadow: 0 24px 56px -42px rgba(0,0,0,.8);
    backdrop-filter: blur(14px)
}

    .react-hero-tools::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .24;
        background-image: radial-gradient(var(--muted) .7px,transparent .7px);
        background-size: 9px 9px;
        mask-image: linear-gradient(120deg,#000,transparent 70%)
    }

    .react-hero-tools > * {
        position: relative
    }

.react-mode {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    padding: 8px 14px;
    font-weight: 600;
    transition: transform .25s var(--ease),color .25s,background .25s,border-color .25s
}

    .react-mode:hover {
        transform: translateY(-2px);
        border-color: var(--text);
        color: var(--text)
    }

    .react-mode.active {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--accent-text)
    }

.react-hero-copy {
    display: grid;
    gap: 8px;
    animation: react-copy-in .45s var(--ease) both
}

.react-hero-kicker {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em
}

.react-hero-copy strong {
    font-size: 1.2rem;
    line-height: 1.25
}

.react-hero-copy p {
    max-width: 440px;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55
}

.react-action {
    justify-self: start;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    transition: transform .25s var(--ease),box-shadow .25s
}

    .react-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px -10px var(--glow)
    }

@keyframes react-copy-in {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:520px) {
    #react-hero-tools {
        margin-top: 22px
    }

    .react-hero-tools {
        padding: 18px !important
    }

    .react-hero-copy strong {
        font-size: 1.1rem
    }
}

html[data-motion=off] .react-hero-copy {
    animation: none
}

@media print {
    .site-footer {
        display: none !important
    }
}

html[data-os-reduce=on] .hero::before {
    animation: none
}

html[data-os-reduce=on] .rw {
    filter: none !important
}

.eyebrow, .muted-cap {
    font-size: 14px
}

.auth-gate .eyebrow {
    font-size: 14px
}

@media(max-width:520px) {
    .site-footer .footer-col:last-of-type {
        grid-column: 1/-1;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: 16px;
        align-items: start
    }

        .site-footer .footer-col:last-of-type h3 {
            grid-column: 1/-1;
            margin-bottom: 12px
        }

        .site-footer .footer-col:last-of-type a, .site-footer .footer-col:last-of-type button {
            align-self: start
        }
}
/* Читаемый перелив в светлых палитрах, без светлых провалов контраста. */
[data-theme=light][data-palette] {
    --muted: color-mix(in srgb,var(--text) 65%,var(--bg));
    --sh: var(--text),var(--muted),var(--text)
}

@media(max-width:1000px) {
    .links.open {
        background: var(--card)
    }
}

@media(max-width:520px) {
    .modal {
        padding: 24px
    }

        .modal textarea {
            font-size: 16px
        }

    .mcount {
        gap: 12px;
        flex-wrap: wrap
    }

    .mcount, .field > span, .alt-link {
        font-size: 14px
    }
}

/* v6 — статистика: две читаемые колонки на телефоне, без сжатых слов */
.stats4 {
    grid-template-columns: repeat(4,minmax(0,1fr));
    min-width: 0
}

    .stats4.s2 {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

    .stats4 > .stat {
        min-width: 0;
        max-width: 100%
    }

    .stats4 .stat b {
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere
    }

    .stats4 .stat small {
        display: block;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.5
    }

.dtop {
    grid-template-columns: minmax(0,320px) minmax(0,1fr)
}

    .dash, .dtop > *, .dcols > * {
        min-width: 0
    }

@media(max-width:860px) {
    .dtop {
        grid-template-columns: minmax(0,1fr)
    }
}

@media(max-width:700px) {
    .stats4, .stats4.s2 {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px
    }

        .stats4 > .stat {
            padding: 20px;
            min-height: 128px
        }

        .stats4 .stat b {
            font-size: 32px;
            line-height: 1.15;
            margin-bottom: 8px
        }

        .stats4 .stat small {
            font-size: 14px
        }
}

/* v6 — каталог: компактные карточки с отдельной страницей вакансии */
.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65
}

.entity-link:hover, .text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px
}

    .vacancy-grid > .empty, .vacancy-grid > .devhint {
        grid-column: 1/-1
    }

.catalog-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: var(--muted);
    font-size: .875rem
}

    .catalog-more[hidden], .catalog-more button[hidden] {
        display: none
    }

.file-btn:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

.vacancy-card.card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .2s,box-shadow .2s
}

.vacancy-card:hover {
    border-color: color-mix(in srgb,var(--text) 35%,var(--line));
    box-shadow: 0 12px 28px -22px #0008
}

.vacancy-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px
}

.vacancy-company {
    font-size: 14px;
    color: var(--muted);
    min-width: 0;
    overflow-wrap: anywhere
}

    .vacancy-company a, .vacancy-card .fav {
        position: relative;
        z-index: 2
    }

.vacancy-card h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere
}

.vacancy-card h3, .vacancy-card-link {
    position: static
}

    .vacancy-card-link::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: var(--r)
    }

    .vacancy-card-link:focus-visible {
        outline: 0
    }

.vacancy-card:has(.vacancy-card-link:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 4px
}

.vacancy-card .tags {
    margin: 0;
    gap: 6px
}

.vacancy-card .tag {
    font-size: 14px;
    padding: 4px 10px;
    white-space: normal
}

.vacancy-excerpt {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere
}

.vacancy-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    font-size: 14px;
    color: var(--muted)
}

.vacancy-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600
}

.vacancy-card .fav {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0
}

.fav svg, .detail-actions .btn svg {
    width: 20px;
    height: 20px;
    flex: none
}

.fav.on svg {
    fill: currentColor
}

@media(max-width:1100px) {
    .vacancy-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:700px) {
    .vacancy-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px
    }

    .vacancy-card.card {
        padding: 10px 12px;
        gap: 6px;
        border-radius: 16px
    }

    .vacancy-card-top {
        min-height: 30px;
        gap: 4px
    }

    .vacancy-company {
        font-size: .75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap
    }

    .vacancy-card h3 {
        font-size: .94rem;
        line-height: 1.25
    }

    .vacancy-card-link > span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden
    }

    .vacancy-card .tags, .vacancy-card .vacancy-excerpt, .vacancy-more, .vacancy-published {
        display: none
    }

    .vacancy-card-bottom {
        padding-top: 0;
        font-size: .75rem
    }

    .vacancy-card .fav {
        min-width: 44px;
        min-height: 44px
    }

        .vacancy-card .fav svg {
            width: 16px;
            height: 16px
        }

    .profile-media .media-row {
        flex-wrap: wrap;
        gap: 8px
    }

        .profile-media .media-row > div:first-child {
            min-width: 8rem
        }
}

/* v6 — детали вакансии и профили */
.entity-page .back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px
}

.entity-heading {
    margin-bottom: 32px;
    min-width: 0
}

    .entity-heading .entity-avatar {
        float: right;
        width: 88px;
        height: 88px;
        border-radius: 24px;
        object-fit: cover;
        margin: 0 0 18px 24px;
        border: 1px solid var(--line)
    }

    .entity-heading h1 {
        font-size: clamp(30px,4vw,48px);
        line-height: 1.15;
        max-width: 880px;
        overflow-wrap: anywhere;
        margin-bottom: 16px
    }

    .entity-heading .eyebrow {
        margin-bottom: 12px
    }

.entity-subtitle {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 16px;
    overflow-wrap: anywhere
}

.entity-heading .tags {
    margin: 16px 0 0
}

.entity-heading .qa {
    margin-top: 24px
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    grid-template-areas: "copy actions";
    gap: 24px;
    align-items: start
}

.detail-copy {
    grid-area: copy;
    min-width: 0
}

.detail-actions {
    grid-area: actions;
    display: grid;
    gap: 12px;
    position: sticky;
    top: 100px;
    min-width: 0
}

.entity-page .card {
    padding: 28px
}

.entity-page h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 20px
}

.detail-actions h2 {
    font-size: 20px;
    margin: 0 0 4px
}

.detail-actions .btn {
    width: 100%;
    padding: 12px 18px
}

    .detail-actions .btn.saved {
        border-color: var(--accent)
    }

.btn:disabled {
    opacity: .65;
    cursor: default;
    transform: none
}

.prose {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 75ch
}

.entity-facts {
    display: grid;
    gap: 16px;
    margin: 28px 0;
    min-width: 0
}

    .entity-facts > div {
        display: grid;
        grid-template-columns: 160px minmax(0,1fr);
        gap: 16px;
        border-top: 1px solid var(--line);
        padding-top: 16px;
        font-size: 16px
    }

    .entity-facts dt {
        color: var(--muted)
    }

    .entity-facts dd {
        overflow-wrap: anywhere;
        white-space: pre-wrap
    }

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    text-align: left
}

.external-link {
    margin-top: 20px
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 40px 0 24px
}

    .section-heading h2 {
        margin: 0
    }

.profile-sections {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
    align-items: start
}

    .profile-sections > section {
        min-width: 0;
        margin: 0
    }

.portfolio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow-wrap: anywhere
}

    .portfolio-links a {
        max-width: 100%;
        text-decoration: underline;
        text-underline-offset: 4px;
        min-height: 44px;
        display: inline-flex;
        align-items: center
    }

.entity-error {
    max-width: 760px;
    margin: 32px auto
}

    .entity-error h1 {
        font-size: clamp(26px,4vw,40px);
        line-height: 1.2;
        margin-bottom: 20px;
        overflow-wrap: anywhere
    }

    .entity-error p {
        color: var(--muted);
        margin-bottom: 24px
    }

@media(max-width:860px) {
    .detail-layout {
        grid-template-columns: minmax(0,1fr);
        grid-template-areas: "actions" "copy"
    }

    .detail-actions {
        position: static
    }

    .profile-sections {
        grid-template-columns: minmax(0,1fr)
    }
}

@media(max-width:520px) {
    .entity-page .card {
        padding: 24px 20px
    }

    .entity-page .back-link {
        margin-bottom: 16px
    }

    .entity-heading {
        margin-bottom: 24px
    }

        .entity-heading h1 {
            font-size: 32px
        }

    .entity-subtitle {
        font-size: 16px
    }

    .entity-facts > div {
        grid-template-columns: minmax(0,1fr);
        gap: 4px
    }

    .entity-facts {
        margin: 24px 0
    }

    .entity-heading .qa .btn {
        width: 100%
    }

    .section-heading {
        margin-top: 32px
    }

    .detail-actions .btn {
        min-height: 48px
    }

    .profile-sections {
        gap: 16px
    }
}

html[data-os-reduce=on] .vacancy-card {
    transition: none
}

.vacancy-management {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: grid;
    gap: 12px
}

    .vacancy-management .qa {
        gap: 8px
    }

    .vacancy-management .btn {
        font-size: 14px;
        padding: 9px 16px
    }

/* На телефоне фильтры не вытесняют карточки за первый экран. */
.filter-fields {
    display: contents
}

.filter-toggle {
    display: none
}

@media(max-width:700px) {
    .filters {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: stretch
    }

        .filters input[type=search] {
            grid-column: 1;
            min-width: 0
        }

    .filter-toggle {
        display: inline-flex;
        grid-column: 2;
        padding: 12px 14px;
        font-size: 14px;
        border-radius: var(--r);
        gap: 10px
    }

        .filter-toggle svg {
            width: 18px;
            height: 18px;
            flex: none
        }

    .filter-fields {
        display: grid;
        grid-column: 1/-1;
        grid-template-columns: minmax(0,1fr);
        gap: 12px
    }

    .filters:not(.expanded) .filter-fields {
        display: none
    }
}

.company-stats {
    grid-template-columns: repeat(3,minmax(0,1fr))
}

.vacancy-publish {
    margin-bottom: 24px
}

    .vacancy-publish > summary {
        list-style: none;
        width: max-content;
        max-width: 100%
    }

        .vacancy-publish > summary::-webkit-details-marker {
            display: none
        }

    .vacancy-publish[open] > summary {
        margin-bottom: 20px
    }

@media(max-width:700px) {
    .company-stats {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }

        .company-stats > .stat:last-child {
            grid-column: 1/-1
        }

    .vacancy-publish > summary {
        width: 100%
    }
}

/* v7 — реальные компании и полученные отклики в секции «Живые цифры» */
.home-partners {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    padding-top: 40px
}

.partners-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px
}

    .partners-heading h3 {
        font-size: 28px;
        line-height: 1.25;
        margin: 0 0 12px
    }

    .partners-heading p {
        font-size: 16px;
        line-height: 1.6;
        color: var(--muted);
        max-width: 620px
    }

.partners-label {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
    margin-top: 8px
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
    min-width: 0
}

.partner-card.card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    min-width: 0;
    text-decoration: none;
    transition: border-color .2s,background .2s
}

    .partner-card.card:hover {
        transform: none;
        border-color: color-mix(in srgb,var(--text) 40%,var(--line))
    }

.partner-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px
}

.partner-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}


.partner-arrow {
    font-size: 24px;
    color: var(--muted)
}

.partner-card h4 {
    font-size: 22px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--text);
    text-transform: none;
    letter-spacing: -.02em;
    font-weight: 700
}

.partner-meta {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    overflow-wrap: anywhere
}

.partner-count {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px
}

    .partner-count b {
        font-size: 36px;
        line-height: 1.1;
        letter-spacing: -.03em;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere
    }

    .partner-count span {
        font-size: 14px;
        line-height: 1.5;
        color: var(--muted)
    }

.partner-card-bottom {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5
}

    .partner-card-bottom > span:first-child {
        color: var(--muted)
    }

.partners-note {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 20px 0 0;
    max-width: 760px
}

.partners-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 20px
}

.partners-status {
    grid-column: 1/-1;
    min-height: 88px;
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted)
}

@media(max-width:1100px) {
    .partner-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:700px) {
    .home-partners {
        margin-top: 40px;
        padding-top: 32px
    }

    .partners-heading {
        gap: 16px
    }

        .partners-heading h3 {
            font-size: 24px
        }

    .partners-label {
        display: none
    }

    .partner-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 16px
    }

    .partner-card.card {
        padding: 20px
    }

    .partners-controls .btn {
        width: 100%
    }
}



/* Направления — переходы в каталог с выбранным фильтром. */
.direction-links {
    align-items: center
}

.direction-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 14px;
    line-height: 1.4;
    transition: background .25s,color .25s,border-color .25s,transform .25s var(--ease)
}

    .direction-link:hover {
        background: var(--accent);
        color: var(--accent-text);
        border-color: var(--accent);
        transform: translateY(-2px)
    }

    .direction-link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px
    }

/* Бегущая строка главной страницы. */








/* Плавающая сцена с примерами профилей студента и компании. */
.hero-grid {
    grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
    gap: 40px
}

.hero h1 {
    font-size: clamp(2.5rem,3.8vw,3.4rem)
}

.profile-scene {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: center;
    min-width: 0;
    min-height: 480px;
    perspective: 1100px;
    padding: 18px 0
}

.profile-drift {
    grid-area: 1/1;
    position: relative;
    justify-self: end;
    align-self: center;
    width: min(100%,420px);
    transform-origin: 50% 60%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.99);
    transition: opacity .55s ease,transform .55s ease,visibility 0s linear .55s
}

    .profile-drift.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        animation: profile-drift 6.8s ease-in-out infinite;
        transition-delay: 0s
    }

.hero .profile {
    margin: 0;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 30px 80px -34px rgba(0,0,0,.48);
    animation: none;
    overflow: hidden
}

    .hero .profile.reveal.in {
        animation: revealIn 1.1s var(--ease2) backwards;
        animation-delay: var(--d,0s)
    }

.profile-tilt {
    transform: translate3d(var(--profile-x,0px),var(--profile-y,0px),0) rotateX(var(--profile-rx,0deg)) rotateY(var(--profile-ry,0deg));
    transition: transform .65s var(--ease2);
    transform-style: preserve-3d
}

    .profile-tilt.dragging {
        transition: transform .12s ease-out;
        user-select: none
    }

.profile-student .ph {
    margin-bottom: 18px
}

.profile-student .profile-interests {
    display: block
}

    .profile-student .profile-interests > span {
        display: block;
        text-align: left;
        margin-top: 8px
    }

    .profile-student .profile-interests .tag {
        font-style: normal
    }

.profile-company .row {
    display: block
}

    .profile-company .row span {
        display: block;
        text-align: left;
        margin-top: 3px;
        font-size: 13px
    }

.muted-cap {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px
}

.company-profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0 18px
}

    .company-profile-head > div:last-child {
        min-width: 0
    }

    .company-profile-head b, .company-profile-head small {
        display: block
    }

    .company-profile-head b {
        font-size: 16px;
        line-height: 1.3
    }

    .company-profile-head small {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.45;
        margin-top: 4px
    }

.company-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg2);
    font-weight: 800;
    font-size: 21px
}

.company-open-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg2);
    font-size: 13px;
    line-height: 1.45
}

    .company-open-role b {
        margin-left: auto;
        font-size: 18px
    }

.company-online {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #58b889;
    box-shadow: 0 0 12px #58b88988
}

@keyframes profile-drift {
    0%,100% {
        transform: translate3d(0,0,0) rotate(-.35deg)
    }

    50% {
        transform: translate3d(5px,-10px,0) rotate(.45deg)
    }
}

@media(hover:hover) and (pointer:fine) {
    .profile-tilt {
        cursor: grab
    }

        .profile-tilt.dragging {
            cursor: grabbing
        }
}

html[data-motion=off] .profile-drift {
    animation: none
}

html[data-motion=off] .profile-tilt {
    transform: none;
    will-change: auto;
    cursor: default
}

@media(max-width:1100px) {
    .hero-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 32px
    }

    .profile-scene {
        min-height: 0;
        padding: 0;
        display: grid;
        gap: 0
    }

    .profile-drift {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 540px
    }
}

@media(min-width:1101px) {
    .hero .trust {
        gap: 10px
    }
}

@media(max-width:520px) {
    .hero .profile {
        padding: 22px;
        border-radius: 20px
    }
}

html[data-os-reduce=on] .profile-drift {
    animation: none
}

html[data-os-reduce=on] .profile-tilt {
    transform: none;
    will-change: auto
}


.toast {
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 16px;
    text-align: center;
    line-height: 1.45
}

    .toast.profile-hint {
        padding: 8px 14px;
        border-radius: 14px;
        font-size: .82rem;
        line-height: 1.35
    }

@media(max-width:860px) {
    .toast {
        top: calc(72px + env(safe-area-inset-top));
        bottom: auto
    }
}

/* Support is a single chat: keep its conversation visible on phones. */
.chat.single .thread {
    display: flex;
    min-height: 0
}

@media(max-width:860px) {
    .chat.single {
        grid-template-columns: minmax(0,1fr);
        height: clamp(320px,48dvh,480px);
        min-height: 320px
    }

        .chat.single .thread {
            display: flex;
            height: 100%;
            min-height: 0
        }

        .chat.single .msgs {
            min-height: 0
        }

        .chat.single .mform {
            flex: 0 0 auto;
            align-items: flex-end
        }

            .chat.single .mform textarea {
                flex: 1;
                min-width: 0;
                font-size: 16px
            }
}

/* ===== v8: кликабельные карточки, ответы на сообщения, удаление чата ===== */
a.stat-link, a.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative
}

.stat-go {
    position: absolute;
    right: 20px;
    top: 18px;
    font-style: normal;
    opacity: .35;
    transition: opacity .25s,transform .3s var(--ease)
}

a.stat-link:hover .stat-go {
    opacity: 1;
    transform: translateX(4px)
}

a.card-link::before {
    content: "→";
    position: absolute;
    right: 22px;
    top: 20px;
    opacity: .35;
    transition: opacity .25s,transform .3s var(--ease)
}

a.card-link:hover::before {
    opacity: 1;
    transform: translateX(4px)
}

a.stat-link:focus-visible, a.card-link:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px
}

.msg {
    position: relative;
    padding-right: 36px
}

.mreply {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s,transform .2s,color .2s
}

    .msg:hover .mreply, .mreply:focus-visible {
        opacity: 1;
        transform: none
    }

    .mreply:hover {
        color: var(--text)
    }

.msg.me .mreply {
    background: color-mix(in srgb,var(--accent-text) 22%,transparent);
    color: var(--accent-text);
    border-color: transparent
}

@media(hover:none) {
    .mreply {
        opacity: .6;
        transform: none
    }
}

.mq {
    border-left: 3px solid currentColor;
    padding: 3px 10px;
    margin: 0 0 6px;
    border-radius: 4px;
    background: color-mix(in srgb,currentColor 10%,transparent);
    cursor: pointer;
    font-size: .82rem;
    max-width: 100%
}

    .mq b {
        display: block;
        font-size: .72rem;
        opacity: .75
    }

    .mq span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: .9
    }

.msg.flash {
    animation: msgflash 1.3s
}

@keyframes msgflash {
    0%,100% {
        box-shadow: none
    }

    30% {
        box-shadow: 0 0 0 3px var(--glow),0 0 26px var(--glow)
    }
}

.rbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid var(--line);
    background: var(--bg2);
    font-size: .85rem
}

    .rbar[hidden] {
        display: none
    }

    .rbar > div {
        flex: 1;
        min-width: 0;
        border-left: 3px solid var(--accent);
        padding-left: 10px
    }

    .rbar b {
        display: block;
        font-size: .72rem;
        color: var(--muted)
    }

    .rbar span {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .rbar button {
        border: 0;
        background: none;
        color: var(--muted);
        font-size: 1.1rem;
        cursor: pointer;
        padding: 4px 8px
    }

        .rbar button:hover {
            color: var(--text)
        }

.chead #cdel, .chead #adel {
    margin-left: auto;
    flex: none
}

.del-opts {
    display: grid;
    gap: 10px;
    margin: 18px 0
}

.del-opt {
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    display: grid;
    gap: 4px;
    transition: border-color .25s,background .25s
}

    .del-opt:hover {
        border-color: var(--muted);
        background: var(--bg2)
    }

    .del-opt span {
        color: var(--muted);
        font-size: .84rem;
        line-height: 1.45
    }

    .del-opt.danger {
        border-color: color-mix(in srgb,#e5484d 55%,var(--line))
    }

        .del-opt.danger b {
            color: #ff6b70
        }

.vacancy-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line)
}

.vacancy-detail-photo {
    display: block;
    width: min(100%,760px);
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    margin-top: 18px
}


.home-resources {
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 48px;
}

.message-delete-dialog {
    --delete-text: #ff9299;
    margin: auto;
    width: min(560px, calc(100% - 32px));
    color: var(--text);
}

[data-theme=light] .message-delete-dialog {
    --delete-text: #a32137;
}

.message-delete-dialog .del-opt.danger {
    border-color: color-mix(in srgb, var(--delete-text) 55%, var(--line));
}

    .message-delete-dialog .del-opt.danger b {
        color: var(--delete-text);
    }

.message-delete-dialog button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.message-delete-dialog::backdrop {
    background: rgb(0 0 0 / .55);
    backdrop-filter: blur(6px);
}

.msg:has(.mdelete) {
    padding-right: 48px;
}

    .msg:has(.mdelete) .mreply {
        top: auto;
        bottom: 4px;
    }

.mdelete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

    .mdelete:hover, .mdelete:focus-visible {
        background: color-mix(in srgb, currentColor 12%, transparent);
    }

.info-page {
    padding-top: 96px;
}

    .info-page > section {
        padding-block: clamp(32px, 6vw, 72px);
    }

    .info-page h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: 20px;
    }

@media (max-width: 700px) {
    .vacancy-photo {
        height: 84px;
    }
}


/* =====================================================================
   FLAT: без карточного стиля. Контент лежит прямо на фоне страницы,
   без заливок и теней; у бывших карточек только тонкий контрастный контур.
   Окна, меню и всплывашки не трогаем.
   ===================================================================== */
.card, .panel, .profile, .kcard, .direction-link, .react-hero-tools, .partner-card, .vacancy-card, .stat {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

    .card:hover, .panel:hover, .profile:hover, .kcard:hover, .direction-link:hover,
    .partner-card:hover, .vacancy-card:hover, .stat:hover {
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        border-color: color-mix(in srgb, var(--text) 55%, var(--line)) !important;
    }

    /* свечение под курсором — часть карточного вида */
    .card::before, .panel::before, .profile::before,
    .card::after, .panel::after, .profile::after {
        display: none !important;
    }

/* тёмная/светлая темы и мобильные правки не возвращают заливку */
[data-theme=light] .card, [data-theme=light] .panel, [data-theme=light] .kcard,
[data-theme=light] .partner-card, [data-theme=light] .vacancy-card {
    background: transparent !important;
    box-shadow: none !important;
}

/* герой главной: без плавающих карточек текст занимает всю ширину */
.hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

    .hero-grid > div {
        max-width: 860px;
    }

/* плашки состояния — тот же контур */
.partners-status, .match, .company-open-role {
    background: transparent !important;
    border: 1px solid color-mix(in srgb, var(--text) 22%, var(--line)) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

/* панель настроек: небольшой контрастный бордер (на тёмной и светлой темах) */
.sdrawer {
    border-left: 1px solid color-mix(in srgb, var(--text) 32%, var(--line)) !important;
}

.shead, .sfoot, .sgroup {
    border-color: color-mix(in srgb, var(--text) 22%, var(--line)) !important;
}

.pal, .seg {
    border: 1px solid color-mix(in srgb, var(--text) 30%, var(--line)) !important;
}

    .pal.on {
        border-color: var(--text) !important;
    }

.sfoot .btn {
    border: 1px solid color-mix(in srgb, var(--text) 32%, var(--line)) !important;
}

/* ===== HERO-X: стеклянный объект, маркерный заголовок, стикеры ===== */
.hero-x {
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    padding: 96px 0 56px;
    overflow: hidden;
}

.hero-x-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
    gap: 56px;
    align-items: center;
    width: 100%;
}

.hx-art {
    position: relative;
    color: var(--text);
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 520/440;
}

    .hx-art::before, .hx-art::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        border: 1px solid var(--line);
        pointer-events: none;
    }

    .hx-art::before {
        inset: -6%;
    }

    .hx-art::after {
        inset: 8% -14% 8% 14%;
        opacity: .6;
    }

.hx-glass {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.28));
    animation: hxbob 7s ease-in-out infinite;
}

@keyframes hxbob {
    0%,100% {
        transform: translateY(0) rotate(-1deg)
    }

    50% {
        transform: translateY(-14px) rotate(1.2deg)
    }
}

.stk {
    position: absolute;
    z-index: 2;
    padding: 10px 18px;
    border-radius: 14px;
    font: 800 15px/1.1 inherit;
    letter-spacing: -.01em;
    white-space: nowrap;
    transform: rotate(var(--r));
    animation: hxstk 6s ease-in-out infinite;
}

@keyframes hxstk {
    0%,100% {
        transform: rotate(var(--r)) translateY(0)
    }

    50% {
        transform: rotate(calc(var(--r) + 3deg)) translateY(-8px)
    }
}

.stk-a {
    top: 20%;
    left: -10%;
    background: var(--text);
    color: var(--bg);
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--text) 28%, transparent);
}

.stk-b {
    top: 10%;
    right: -7%;
    background: var(--text);
    color: var(--bg);
    font-size: 18px;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--text) 28%, transparent);
    animation-delay: -2s;
}

.stk-c {
    bottom: 21%;
    left:63%;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
    backdrop-filter: blur(6px);
    animation-delay: -4s;
}

.stk-d {
    top: 24%;
    right: -20%;
    background: var(--text);
    color: var(--bg);
    font-size: 18px;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--text) 28%, transparent);
    animation-delay: -2s;
}

.hx-title {
    font-weight: 900;
    font-size: clamp(40px, 5.6vw, 88px);
    line-height: 1.04;
    letter-spacing: -.04em;
    margin: 18px 0 22px;
}

.hx-mark {
    display: inline-block;
    padding: .02em .2em .06em;
    border-radius: .16em;
    background: var(--text);
    color: var(--bg);
    background-image: radial-gradient(color-mix(in srgb, var(--bg) 28%, transparent) 1px, transparent 1.3px);
    background-size: 4px 4px;
}

.hx-title .rot {
    background: linear-gradient(90deg, color-mix(in srgb, var(--text) 45%, transparent), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hx-trust {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0;
    margin-top: 40px;
}

    .hx-trust span {
        padding: 4px 28px;
        border-left: 1px solid var(--line);
    }

        .hx-trust span:first-child {
            padding-left: 0;
            border-left: 0;
        }

[data-motion=off] .hx-glass, [data-motion=off] .stk {
    animation: none;
}

@media (max-width: 900px) {
    .hero-x {
        padding: 72px 0 40px;
    }

    .hero-x-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hx-copy {
        order: 1;
    }

    .hx-art {
        order: 2;
        max-width: 380px;
    }

    .hx-trust {
        grid-template-columns: 1fr;
    }

        .hx-trust span {
            padding: 6px 0;
            border-left: 0;
        }
}


/* ===== Главная: новый порядок блоков и приветственный сценарий ===== */
.hero-x {
    min-height: min(88vh, 820px);
    padding: clamp(86px, 10vw, 132px) 0 76px;
    position: relative;
    isolation: isolate;
}

    .hero-x::before {
        content: "";
        position: absolute;
        z-index: -1;
        width: min(64vw, 820px);
        aspect-ratio: 1;
        left: -18%;
        top: 4%;
        border-radius: 50%;
        background: radial-gradient(circle, color-mix(in srgb, var(--text) 10%, transparent), transparent 68%);
        pointer-events: none;
    }

.hx-title {
    max-width: 780px;
    font-size: clamp(42px, 5.2vw, 76px);
    line-height: 1.02;
}

    .hx-title .rot {
        background: linear-gradient(100deg, var(--text), color-mix(in srgb, var(--text) 48%, transparent));
        -webkit-background-clip: text;
        background-clip: text;
    }

.hx-copy .lead {
    max-width: 680px;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
}

.hx-art {
    max-width: 590px;
}

.stk {
    box-shadow: 0 12px 36px color-mix(in srgb, var(--text) 12%, transparent);
}

.section-pad {
    padding: clamp(58px, 8vw, 104px) 0;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 34px;
}

    .section-intro h2, .partners-heading h2, .vacancies-heading h2 {
        font-size: clamp(30px, 4vw, 48px);
        line-height: 1.08;
        letter-spacing: -.035em;
        margin: 10px 0 12px;
        font-weight: 850;
    }

    .section-intro p, .partners-heading p, .vacancies-heading p {
        color: var(--muted);
        max-width: 620px;
        line-height: 1.7;
        margin: 0;
    }

.home-guide {
    position: relative;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.guide-step {
    position: relative;
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--text) 3%, transparent);
    overflow: hidden;
    transition: border-color .25s, transform .25s;
}

    .guide-step:hover {
        border-color: color-mix(in srgb, var(--text) 45%, var(--line));
        transform: translateY(-4px);
    }

.guide-num {
    position: absolute;
    right: 22px;
    top: 16px;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
}

.guide-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 28px;
    font-size: 25px;
    color: var(--bg);
    background: var(--text);
}

.guide-step h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 9px;
}

.guide-step p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    max-width: 330px;
}

.guide-action {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.text-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
}

    .text-link:hover {
        opacity: .7;
    }

.home-partners-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.partners-heading, .vacancies-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

    .partners-heading > div, .vacancies-heading > div {
        max-width: 760px;
    }

.partners-label {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.partner-card {
    min-height: 210px;
    padding: 22px !important;
    border-radius: 18px !important;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    transition: transform .25s, border-color .25s;
}

    .partner-card:hover {
        transform: translateY(-4px) !important;
    }

    .partner-card h4 {
        font-size: 19px;
        font-weight: 800;
        margin: 12px 0 5px;
    }

    .partner-card .partner-meta, .partner-card .partner-count span {
        color: var(--muted);
    }

.partner-count {
    margin-top: auto;
    padding-top: 18px;
}

    .partner-count b {
        font-size: 25px;
    }

.partner-card-bottom {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.partners-note {
    color: var(--muted);
    font-size: 13px;
    margin: 18px 0 0;
}

.partners-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.home-vacancies-section {
    padding-bottom: clamp(72px, 9vw, 112px);
}

.vacancies-heading .btn {
    flex: none;
}

.home-vacancy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}

.home-vacancy-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--text);
    background: color-mix(in srgb, var(--text) 3%, transparent);
    text-decoration: none;
    transition: transform .25s, border-color .25s, background .25s;
}

    .home-vacancy-card:hover {
        color: var(--text);
        transform: translateY(-4px);
        border-color: color-mix(in srgb, var(--text) 48%, var(--line));
        background: color-mix(in srgb, var(--text) 6%, transparent);
    }

.home-vacancy-kicker {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.home-vacancy-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 14px 0 8px;
}

.home-vacancy-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.home-vacancy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

    .home-vacancy-tags i {
        font-style: normal;
        font-size: 11px;
        padding: 5px 9px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
    }

.home-vacancy-link {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-weight: 750;
    font-size: 13px;
}

.num-sec {
    border-top: 1px solid var(--line);
}

    .num-sec .stats4 {
        margin-top: 28px !important;
    }

#theme {
    cursor: pointer;
}

@media (max-width: 900px) {
    .guide-grid, .partner-grid, .home-vacancy-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .partners-heading, .vacancies-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .hero-x {
        min-height: auto;
        padding: 76px 0 46px;
    }

    .hx-title {
        font-size: clamp(38px, 11vw, 54px);
    }

    .hx-art {
        max-width: 340px;
    }

    .guide-grid, .partner-grid, .home-vacancy-grid {
        grid-template-columns: 1fr;
    }

    .guide-step {
        min-height: 190px;
    }

    .guide-icon {
        margin-bottom: 20px;
    }

    .partners-heading h2, .vacancies-heading h2, .section-intro h2 {
        font-size: 32px;
    }

    .guide-action {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   FIRST STEP — unified monochrome glass design system
   Applied site-wide; preserves existing page structure.
   ========================================================= */
:root {
    --bg: #070708;
    --bg2: #0d0d10;
    --card: #111115;
    --line: rgba(226,229,238,.14);
    --text: #f5f5f7;
    --muted: #a5a6af;
    --accent: #f3f3f6;
    --accent-text: #09090b;
    --p: 224,226,238;
    --ga: .24;
    --sh: #9a9ba4,#fff,#a7a8b0;
    --r: 20px;
}

[data-theme="light"] {
    --bg: #f1f2f4;
    --bg2: #e8e9ed;
    --card: #fff;
    --line: rgba(23,25,32,.13);
    --text: #17181d;
    --muted: #626671;
    --accent: #17181d;
    --accent-text: #fff;
    --p: 70,74,88;
    --ga: .16;
    --sh: #777b85,#17181d,#777b85;
}

html {
    color-scheme: dark;
}

    html[data-theme="light"] {
        color-scheme: light;
    }

body {
    background: radial-gradient(ellipse at 8% 12%, rgba(255,255,255,.035), transparent 34%), radial-gradient(ellipse at 92% 88%, rgba(150,154,175,.045), transparent 34%), var(--bg);
    color: var(--text);
}

::selection {
    background: #d8d9df;
    color: #101014;
}

[data-theme="light"] ::selection {
    background: #25262c;
    color: #fff;
}

/* Keep all decorative layers behind real content and never intercept clicks. */
#halftone, .halftone-wordmark, body::after, main::before,
.hero-x::before, .hx-art::before, .hx-art::after {
    pointer-events: none !important;
}

#halftone {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    opacity: .82 !important;
    mix-blend-mode: screen;
    pointer-events: none !important;
}

[data-theme="light"] #halftone {
    opacity: .38 !important;
    mix-blend-mode: multiply;
}

main, footer {
    position: relative;
    z-index: 1;
}

.site-header {
    z-index: 1000 !important;
    isolation: isolate;
    background: color-mix(in srgb, var(--bg) 82%, transparent) !important;
    border-bottom: 1px solid var(--line) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    backdrop-filter: blur(22px) saturate(1.25);
}

    .site-header .wrap, .site-header nav, .site-header .links, .site-header .right,
    .site-header .logo, .site-header .links a, .site-header .nav-disclosure {
        position: relative;
        z-index: 2;
        pointer-events: auto !important;
    }

    .site-header nav {
        min-height: 68px;
    }

    .site-header .links {
        color: var(--muted);
    }

        .site-header .links a, .site-header .nav-disclosure {
            transition: color .2s ease;
        }

            .site-header .links a:hover, .site-header .nav-disclosure:hover {
                color: var(--text);
            }

    .site-header .nav-dropdown {
        z-index: 1100;
        pointer-events: auto;
    }

        .site-header .nav-dropdown a {
            position: relative;
            z-index: 1;
        }

    .site-header .right {
        flex: none;
    }

/* Hero title: explicit contrast fixes the muted/transparent inherited spans. */
.hero-x .hx-copy {
    position: relative;
    z-index: 2;
}

.hero-x .hx-title {
    color: var(--text) !important;
    text-shadow: 0 8px 36px rgba(0,0,0,.18);
}

    .hero-x .hx-title .hx-mark {
        color: #111216 !important;
        -webkit-text-fill-color: #111216 !important;
        background: linear-gradient(145deg,#fff,#d7d8df) !important;
        background-image: radial-gradient(rgba(10,10,13,.16) .8px, transparent 1px), linear-gradient(145deg,#fff,#d7d8df) !important;
        background-size: 5px 5px, auto !important;
    }

    .hero-x .hx-title > .rot,
    .hero-x .hx-title .rot .rw {
        color: var(--text) !important;
        -webkit-text-fill-color: transparent !important;
        background: linear-gradient(100deg,#fff 0%,#e4e5eb 56%,#aeb0ba 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        text-shadow: none;
    }

[data-theme="light"] .hero-x .hx-title > .rot,
[data-theme="light"] .hero-x .hx-title .rot .rw {
    background: linear-gradient(100deg,#17181d 0%,#444751 58%,#777b85 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.hero-x .hx-title .rw {
    line-height: 1.08;
}

.hero-x .hx-copy .lead {
    color: var(--muted) !important;
}

.hx-art {
    filter: drop-shadow(0 24px 50px rgba(0,0,0,.2));
}

    .hx-art::before, .hx-art::after {
        border-color: color-mix(in srgb,var(--text) 18%,transparent);
    }

.hx-glass {
    filter: drop-shadow(0 22px 42px rgba(0,0,0,.35));
}

.stk {
    border: 1px solid color-mix(in srgb,var(--text) 24%,transparent);
    box-shadow: 0 12px 34px rgba(0,0,0,.25);
}

.stk-a, .stk-b {
    background: linear-gradient(145deg,#fff,#d7d8df);
    color: #14151a;
}

.stk-c {
    background: color-mix(in srgb,var(--bg) 72%,transparent);
    color: var(--text);
}

/* Consistent glass surfaces, controls and cards throughout all routes. */
.card, .panel, .profile, .guide-step, .partner-card, .home-vacancy-card,
.auth-card, .form-card, .vacancy-card, .stat, .direction-link, .kcard,
.support-card, .faq-item, .dashboard-card {
    border-color: var(--line) !important;
    background: linear-gradient(145deg,color-mix(in srgb,var(--card) 92%,transparent),color-mix(in srgb,var(--bg2) 88%,transparent)) !important;
    box-shadow: 0 18px 48px -36px rgba(0,0,0,.55);
    backdrop-filter: blur(14px);
}

.btn, button.btn, .react-action {
    border: 1px solid color-mix(in srgb,var(--text) 20%,var(--line));
    background: color-mix(in srgb,var(--card) 88%,transparent);
    color: var(--text);
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

    .btn:hover, button.btn:hover, .react-action:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb,var(--text) 55%,var(--line));
        box-shadow: 0 12px 28px -18px rgba(0,0,0,.65);
    }

    .btn.primary, .btn.primary:hover, .react-action {
        color: #111216 !important;
        background: linear-gradient(135deg,#fff,#d5d6de) !important;
        border-color: #e4e5eb !important;
    }

[data-theme="light"] .btn.primary, [data-theme="light"] .btn.primary:hover,
[data-theme="light"] .react-action {
    color: #fff !important;
    background: linear-gradient(135deg,#202127,#484b55) !important;
    border-color: #202127 !important;
}

input, select, textarea, .field, .input {
    color: var(--text);
    background: color-mix(in srgb,var(--card) 90%,transparent);
    border-color: var(--line);
}

    input::placeholder, textarea::placeholder {
        color: color-mix(in srgb,var(--muted) 78%,transparent);
    }

    input:focus, select:focus, textarea:focus {
        border-color: color-mix(in srgb,var(--text) 55%,var(--line));
        box-shadow: 0 0 0 3px color-mix(in srgb,var(--text) 9%,transparent);
        outline: 0;
    }

.site-footer {
    border-top: 1px solid var(--line);
    background: color-mix(in srgb,var(--bg2) 74%,transparent);
}

    .site-footer a:hover {
        color: var(--text);
    }

/* The mono stair-step hero is the visual motif used across the product. */
.guide-step, .partner-card, .home-vacancy-card {
    position: relative;
    overflow: hidden;
}

    .guide-step::before, .partner-card::before, .home-vacancy-card::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .32;
        background: radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--text) 13%,transparent),transparent 42%), radial-gradient(var(--muted) .65px,transparent .8px);
        background-size: auto, 10px 10px;
        mask-image: linear-gradient(135deg,#000,transparent 72%);
    }

    .guide-step > *, .partner-card > *, .home-vacancy-card > * {
        position: relative;
        z-index: 1;
    }

.guide-num {
    font-weight: 800;
}

.partners-label {
    border-color: var(--line);
    color: var(--muted);
}

@media (max-width: 1000px) {
    .site-header .links {
        z-index: 1001;
    }
}

@media (max-width: 600px) {
    .site-header {
        background: color-mix(in srgb,var(--bg) 94%,transparent) !important;
    }

    .hero-x .hx-title {
        font-size: clamp(38px,10vw,56px);
    }

    .hero-x .hx-art {
        max-width: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Keep the halftone visible as a static texture when motion is disabled. */
    #halftone {
        opacity: .68 !important;
    }

    [data-theme="light"] #halftone {
        opacity: .30 !important;
    }
}


/* ===== Final polish: hero marker, guide numbering and reliable header hit area ===== */
[data-theme="light"] .hero-x .hx-title .hx-mark {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #111216 !important;
    background-image: radial-gradient(rgba(255,255,255,.18) .75px, transparent 1px), linear-gradient(145deg,#17181d,#09090b) !important;
    background-size: 5px 5px, auto !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

/* The shared child rule must not turn the step number back into normal flow. */
.guide-step > .guide-num {
    position: absolute !important;
    top: 20px !important;
    right: 22px !important;
    left: auto !important;
    z-index: 3 !important;
    display: block;
    line-height: 1;
    pointer-events: none;
}

/* Header is its own top interaction layer; decorative canvases stay below it. */
.site-header {
    position: fixed !important;
    isolation: isolate !important;
    z-index: 9999 !important;
}

    .site-header .wrap,
    .site-header nav,
    .site-header .right {
        position: relative !important;
        z-index: 2 !important;
    }

    .site-header .links {
        z-index: 2 !important;
        align-items: center;
        pointer-events: auto !important;
    }

        .site-header .links > a,
        .site-header .nav-disclosure,
        .site-header .right > a,
        .site-header .right > button {
            position: relative !important;
            z-index: 3 !important;
            pointer-events: auto !important;
            cursor: pointer;
            touch-action: manipulation;
        }

    .site-header .nav-dropdown {
        z-index: 10000 !important;
    }

@media (min-width: 1001px) {
    .site-header .links {
        position: relative !important;
        display: flex;
        gap: 26px;
    }
}

@media (max-width: 1000px) {
    .site-header .links:not(.open) {
        display: none;
    }

    .site-header .links.open {
        display: flex;
        position: fixed !important;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 10001 !important;
    }
}

.site-header {
    position: relative;
    z-index: 99999;
    isolation: isolate;
}

.site-header {
    pointer-events: auto;
}

.hero-x {
    position: relative;
    z-index: 0;
}