:root {
    /* ИТ.МОСКВА brand colors */
    --brand-blue: #5582FF;
    --brand-deep: #2B40CC;

    --bg: #0D0E10;
    --bg-soft: #141618;
    --surface: rgba(20, 22, 26, 0.92);
    --surface-strong: #1A1C20;
    --surface-tint: linear-gradient(180deg, rgba(26,28,34,0.97), rgba(18,20,24,0.97));
    --text: #F0F2F5;
    --muted: #8A9099;
    --border: rgba(85, 130, 255, 0.18);
    --border-strong: rgba(85, 130, 255, 0.30);
    --accent: #5582FF;
    --accent-2: #2B40CC;
    --accent-3: #1ABBE0;
    --accent-soft: rgba(85, 130, 255, 0.14);
    --success: #22a36b;
    --warning: #f0b54d;
    --danger: #ef6a79;
    --shadow: 0 20px 54px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.45);
    --radius: 16px;
    --radius-sm: 10px;
    --header-height: 72px;
    --page-background: #0D0E10;
    --page-overlay: none;
    --header-bg: rgba(10, 11, 14, 0.92);
    --header-border: rgba(85, 130, 255, 0.15);
    --nav-panel-bg: rgba(13, 14, 16, 0.98);
    --nav-item-bg: rgba(255, 255, 255, 0.04);
    --nav-item-hover-bg: rgba(85, 130, 255, 0.12);
    --control-bg: rgba(20, 22, 26, 0.96);
    --ghost-bg: rgba(255, 255, 255, 0.04);
    --card-alt-bg: rgba(20, 22, 26, 0.90);
    --pill-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(16, 18, 22, 0.98);
    --faq-bg: rgba(20, 22, 26, 0.94);
    --cta-bg: linear-gradient(135deg, rgba(43,64,204,0.95), rgba(25,38,120,0.98));
    --table-bg: rgba(18, 20, 24, 0.94);
    --footer-bg: linear-gradient(180deg, rgba(13,14,16,0.96), rgba(8,9,11,0.99));
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--page-background);
    line-height: 1.6;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--page-overlay);
    opacity: 0.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.narrow { width: min(820px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 8px 24px rgba(85,130,255,0.08);
}
.nav-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
        "brand spacer actions controls"
        "nav nav nav nav";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0;
}
.header-controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    flex: 0 0 auto;
}
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(85,130,255,0.22);
    border-radius: 16px;
    background: var(--control-bg);
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0,0,0,0.12);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    text-decoration: none;
}
.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}
.brand-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-left: 12px;
    border-left: 1px solid var(--border-strong);
}
.brand-footer .brand-logo {
    height: 28px;
    /* SVG logo is white+blue, invert ИТ to brand blue on dark bg — already correct */
}
.main-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-panel {
    grid-area: nav;
    display: flex;
    align-items: center;
    min-width: 0;
}
.main-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.main-nav::-webkit-scrollbar {
    display: none;
}
.nav-link {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--nav-item-hover-bg);
}
.nav-link.active {
    color: var(--accent);
}
.nav-actions {
    grid-area: actions;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    justify-self: end;
}
.nav-action-btn {
    min-width: 112px;
    white-space: nowrap;
}
.nav-action-btn.active {
    border-color: rgba(85,130,255,0.24);
    box-shadow: 0 10px 22px rgba(85,130,255,0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text);
    background: var(--control-bg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.btn-primary {
    border: none;
    color: #fff;
    background: var(--brand-blue);
}
.btn-primary:hover {
    background: #4470f0;
    box-shadow: 0 14px 28px rgba(85, 130, 255, 0.35);
}
.btn-secondary {
    background: var(--input-bg);
    border-color: rgba(85, 130, 255, 0.22);
}
.btn-ghost {
    background: var(--ghost-bg);
    border-color: rgba(85,130,255,0.18);
}
.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    box-shadow: none;
}
.btn-link.danger { color: var(--danger); }
.full-width { width: 100%; }

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}
.hero {
    padding: 48px 0 34px;
}
.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none;
}
.page-hero {
    padding: 42px 0 14px;
}
.hero-grid,
.detail-grid,
.layout-grid,
.admin-layout {
    display: grid;
    gap: 26px;
}
.hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.94fr);
    align-items: center;
    gap: 30px;
}
.detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}
.layout-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}
.admin-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
}
.hero-copy,
.page-hero-copy {
    position: relative;
    z-index: 1;
}
.hero h1,
.page-hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 760px;
    text-wrap: balance;
}
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    max-width: 900px;
}
.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(85, 130, 255, 0.10);
    border: 1px solid rgba(85, 130, 255, 0.22);
}
.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.hero-actions,
.card-actions,
.stack-actions,
.page-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.hero-actions {
    margin-top: 24px;
}
.page-tools {
    justify-content: space-between;
    margin-bottom: 18px;
}
.hero-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}
.hero-note strong {
    color: var(--text);
}
.stats,
.logo-grid,
.metrics-strip,
.hero-mini-grid {
    display: grid;
    gap: 16px;
}
.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}
.metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}
.hero-panel {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-panel::before {
    content: "";
    position: absolute;
    inset: 12% 4% 2% 10%;
    background: radial-gradient(circle, rgba(85,130,255,0.16), transparent 60%);
    filter: blur(14px);
}
.hero-stack {
    position: relative;
    width: min(100%, 510px);
    display: grid;
    gap: 16px;
}
.hero-card-main,
.hero-card-mini,
.glass-card {
    background: var(--surface-tint);
    border: 1px solid rgba(85, 130, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
}
.hero-card-main {
    padding: 26px;
}
.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.hero-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-card-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(85,130,255,0.1);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}
.hero-score strong {
    color: var(--accent);
}
.hero-card-main h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}
.hero-card-main p {
    margin: 0;
    color: var(--muted);
}
.hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.hero-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid rgba(85,130,255,0.18);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}
.hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-card-mini {
    padding: 18px 18px 20px;
}
.hero-card-mini strong {
    display: block;
    font-size: 1.45rem;
    margin-bottom: 6px;
}
.hero-card-mini span {
    color: var(--muted);
    font-size: 0.92rem;
}
.hero-side-note {
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--card-alt-bg);
    border: 1px solid rgba(85,130,255,0.2);
    box-shadow: var(--shadow-soft);
}
.hero-side-note h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.hero-side-note p {
    margin: 0;
    color: var(--muted);
}

.section {
    padding: 28px 0 38px;
}
.section.muted {
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(244,247,255,0.7));
    border-top: 1px solid rgba(181, 193, 231, 0.22);
    border-bottom: 1px solid rgba(181, 193, 231, 0.22);
}
.section-header {
    margin-bottom: 22px;
    max-width: 720px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 12px 0 10px;
}
.section-header p {
    color: var(--muted);
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 20px;
}
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.content-card,
.feature-card,
.form-card,
.filter-panel,
.admin-sidebar,
.admin-content > .content-card,
.glass-card,
.stat-card,
.logo-card,
.empty-state {
    position: relative;
    overflow: hidden;
    background: var(--surface-tint);
    border: 1px solid rgba(85,130,255,0.24);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 24px;
}
.content-card::before,
.feature-card::before,
.form-card::before,
.filter-panel::before,
.stat-card::before,
.logo-card::before,
.empty-state::before,
.admin-sidebar::before,
.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.54), transparent 46%);
}
.content-card h3,
.feature-card h3,
.form-card h3,
.filter-panel h3,
.glass-card h3 {
    position: relative;
    margin-top: 0;
}
.feature-card,
.content-card,
.logo-card,
.stat-card,
.hero-card-main,
.hero-card-mini,
.faq-item,
.cta-banner {
    transition: transform 0.26s ease, border-color 0.26s ease, background 0.26s ease, box-shadow 0.26s ease;
}
.feature-card:hover,
.content-card:hover,
.logo-card:hover,
.stat-card:hover,
.hero-card-main:hover,
.hero-card-mini:hover,
.faq-item:hover,
.cta-banner:hover {
    transform: translateY(-4px);
    border-color: rgba(85,130,255,0.28);
    box-shadow: 0 26px 52px rgba(100, 119, 190, 0.18);
}
.feature-card h3,
.content-card h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
}
.feature-card p,
.content-card p,
.logo-card p,
.form-card p,
.filter-panel p,
.glass-card p,
.empty-state p {
    color: var(--muted);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(85,130,255,0.16), rgba(85,130,255,0.18));
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 800;
}

.steps {
    padding-left: 0;
    margin: 14px 0 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
}
.steps li::before {
    content: counter(step);
    counter-increment: step;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 20px rgba(85,130,255,0.18);
}
.glass-card .steps { counter-reset: step; }

.stat-card strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.stat-card span {
    color: var(--muted);
    font-size: 0.95rem;
}
.logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.logo-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    color: var(--text);
}
.logo-card {
    flex-direction: column;
    gap: 12px;
    min-height: 138px;
}
/* ---- Истории успеха ---- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.story-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 32px 28px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    overflow: hidden;
}
.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85,130,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(85,130,255,0.3);
    border-left-color: var(--accent);
}
.story-quote-mark {
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
    opacity: 0.5;
    margin-bottom: -16px;
    margin-top: -8px;
    user-select: none;
}
.story-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    flex: 1;
}
.story-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.story-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.story-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.story-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.story-track {
    font-size: 0.84rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Marquee партнёры ---- */
.partners-section {
    overflow: hidden;
}
.marquee-outer {
    position: relative;
    /* clip только по горизонтали — вертикаль свободна для hover-подъёма и тени */
    overflow-x: clip;
    overflow-y: visible;
    margin-top: 40px;
    padding: 10px 0 18px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.marquee-outer:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 192px;
    height: 88px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    cursor: default;
}
.marquee-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 12px 28px rgba(85,130,255,0.18);
    transform: translateY(-3px);
}
.marquee-logo {
    max-width: 140px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    /* PNG-логотипы с непрозрачным белым фоном — показываем как есть,
       SVG и прозрачные — отлично смотрятся на тёмном */
}
.marquee-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
}
/* ---- Страница работодателей ---- */
.employers-metrics {
    padding-top: 0;
    margin-top: -8px;
}
.employers-metrics .metrics-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
}
.employers-format-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.employers-format-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(85,130,255,0.12);
    border: 1px solid rgba(85,130,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.employers-cta-section {
    background: linear-gradient(135deg, rgba(85,130,255,0.06) 0%, rgba(26,187,224,0.04) 100%);
    border-top: 1px solid var(--border);
}
.employers-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 48px;
    align-items: start;
}
.employers-cta-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 14px 0 16px;
}
.employers-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.employers-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--muted);
}
.employers-checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(85,130,255,0.15);
    border: 1px solid rgba(85,130,255,0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235582FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.employers-form-card {
    position: sticky;
    top: 90px;
}
.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin: 4px 0 0;
}

/* Старые стили логотипов (оставляем для других страниц) */
.partner-logo {
    width: min(100%, 220px);
    height: 56px;
    object-fit: contain;
    display: block;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}
.partner-name {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--muted);
    font-weight: 700;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(85,130,255,0.08);
    border: 1px solid rgba(85,130,255,0.15);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 700;
}
.meta { color: var(--muted); }

.stack-form,
.inline-form,
.search-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.inline-form { flex-direction: row; align-items: center; }
.search-inline {
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 22px;
}
input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(85,130,255,0.22);
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(85,130,255,0.44);
    box-shadow: 0 0 0 4px rgba(85,130,255,0.1);
}
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }

.flash-stack { margin-top: 18px; position: relative; z-index: 2; }
.flash {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    background: var(--surface);
}
.flash-success { background: rgba(34, 163, 107, 0.12); }
.flash-danger { background: rgba(239, 106, 121, 0.12); }
.flash-warning { background: rgba(240, 181, 77, 0.14); }

.faq-list { display: grid; gap: 14px; }
.faq-item {
    background: var(--faq-bg);
    border: 1px solid rgba(85,130,255,0.22);
    border-radius: 22px;
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(85,130,255,0.1);
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item div {
    margin-top: 12px;
    color: var(--muted);
}

.cta-banner {
    margin-top: 28px;
    padding: 28px;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid rgba(85,130,255,0.22);
    background: var(--cta-bg);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    box-shadow: 0 22px 50px rgba(102, 123, 196, 0.14);
}
.cta-banner h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}
.cta-banner p {
    margin: 0;
    color: var(--muted);
}
.text-link {
    color: var(--accent);
    font-weight: 700;
}
.simple-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(85,130,255,0.18);
}
.simple-row:last-child { border-bottom: none; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(85,130,255,0.2);
    border-radius: 24px;
    background: var(--table-bg);
    box-shadow: var(--shadow-soft);
}
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: transparent;
}
.table th,
.table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(85,130,255,0.16);
    text-align: left;
    vertical-align: top;
}
.table th {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 700;
}
.actions-cell {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-sidebar {
    position: sticky;
    top: 102px;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-nav a {
    padding: 11px 13px;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 700;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.admin-nav a:hover {
    background: rgba(85,130,255,0.08);
    color: var(--text);
    transform: translateX(2px);
}
.admin-content > h1 { margin-top: 0; }
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.auth-card {
    max-width: 540px;
    margin: 0 auto;
}
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.site-footer {
    margin-top: 34px;
    border-top: 1px solid rgba(175, 188, 228, 0.28);
    background: var(--footer-bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 24px;
    padding: 34px 0 42px;
}
.footer-grid h4 {
    margin: 0 0 12px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li + li { margin-top: 8px; }
.brand-footer { margin-bottom: 12px; }

.list-header,
.mt-32 { margin-top: 32px; }
.mt-32 { display: block; }
.rich-text p + p { margin-top: 14px; }

.animate-float {
    animation: floatCard 4.6s ease-in-out infinite;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.reveal-on-load,
.hero > .container > *,
.page-hero > .container > *,
.section > .container > *,
.layout-grid > *,
.detail-grid > *,
.content-card,
.feature-card,
.form-card,
.filter-panel,
.glass-card,
.stat-card,
.logo-card,
.faq-item,
.cta-banner,
.table-wrap,
.simple-row,
.empty-state,
.admin-content > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
    will-change: transform, opacity;
}
.reveal-on-load.is-visible,
.hero > .container > *.is-visible,
.page-hero > .container > *.is-visible,
.section > .container > *.is-visible,
.layout-grid > *.is-visible,
.detail-grid > *.is-visible,
.content-card.is-visible,
.feature-card.is-visible,
.form-card.is-visible,
.filter-panel.is-visible,
.glass-card.is-visible,
.stat-card.is-visible,
.logo-card.is-visible,
.faq-item.is-visible,
.cta-banner.is-visible,
.table-wrap.is-visible,
.simple-row.is-visible,
.empty-state.is-visible,
.admin-content > *.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open { overflow: hidden; }

body {
    color-scheme: dark;
}
.site-header,
.nav-toggle,
.theme-menu,
.nav-panel,
.flash,
.faq-item,
.table-wrap,
.hero-side-note {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}
.site-header {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.nav-toggle span {
    background: var(--text);
}
.nav-link,
.btn,
.theme-option,
input,
select,
textarea,
.faq-item summary::after,
.hero-pill {
    border-color: rgba(126, 150, 230, 0.22);
}
.section.muted {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border-top-color: rgba(106, 127, 194, 0.2);
    border-bottom-color: rgba(106, 127, 194, 0.2);
}
.hero-card-main,
.hero-card-mini,
.glass-card,
.content-card,
.feature-card,
.form-card,
.filter-panel,
.admin-sidebar,
.admin-content > .content-card,
.stat-card,
.logo-card,
.empty-state {
    border-color: rgba(85,130,255,0.24);
}
.hero-card-main::before,
.hero-card-mini::before,
.content-card::before,
.feature-card::before,
.form-card::before,
.filter-panel::before,
.stat-card::before,
.logo-card::before,
.empty-state::before,
.admin-sidebar::before,
.glass-card::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 46%);
}
.site-footer {
    border-top-color: rgba(85, 104, 164, 0.28);
}
.simple-row,
.table th,
.table td {
    border-color: rgba(85,130,255,0.16);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-on-load,
    .hero > .container > *,
    .page-hero > .container > *,
    .section > .container > *,
    .layout-grid > *,
    .detail-grid > *,
    .content-card,
    .feature-card,
    .form-card,
    .filter-panel,
    .glass-card,
    .stat-card,
    .logo-card,
    .faq-item,
    .cta-banner,
    .table-wrap,
    .simple-row,
    .empty-state,
    .admin-content > * {
        opacity: 1;
        transform: none;
    }
}


@media (max-width: 1380px) {
    .nav-link { padding: 8px 11px; font-size: 0.82rem; }
    .nav-action-btn { min-width: 104px; }
}

@media (max-width: 1280px) {
    .container { width: min(1180px, calc(100% - 24px)); }
    .nav-link { padding: 9px 12px; font-size: 0.84rem; }
    .nav-action-btn { min-width: 114px; }
    .hero-grid { grid-template-columns: 1fr 0.92fr; }
}

@media (max-width: 1220px) {
    .nav-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .header-controls {
        margin-left: auto;
        justify-self: auto;
    }
    .theme-toggle {
        min-width: 0;
        padding-inline: 12px;
    }
    .theme-toggle-text {
        display: none;
    }
    .theme-menu {
        width: min(240px, calc(100vw - 24px));
    }
    .nav-panel {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 8px;
        padding: 14px;
        border-radius: 24px;
        border: 1px solid rgba(175, 188, 228, 0.4);
        background: var(--input-bg);
        box-shadow: 0 18px 36px rgba(118, 136, 195, 0.14);
        backdrop-filter: blur(18px);
    }
    .site-header.menu-open .nav-panel {
        display: flex;
    }
    .main-nav,
    .nav-actions {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow: visible;
        padding-bottom: 0;
    }
    .nav-link,
    .nav-action-btn {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    .nav-link {
        font-size: 0.96rem;
        white-space: normal;
        line-height: 1.3;
    }
}

@media (max-width: 1100px) {
    .hero-grid,
    .detail-grid,
    .layout-grid,
    .admin-layout,
    .footer-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .stats,
    .logo-grid,
    .metrics-strip,
    .hero-mini-grid {
        grid-template-columns: 1fr;
    }
    .cta-banner { flex-direction: column; align-items: flex-start; }
    .employers-cta-grid { grid-template-columns: 1fr; gap: 32px; }
    .employers-form-card { position: static; }
    .employers-metrics .metrics-strip { grid-template-columns: repeat(2, 1fr); }
    .employers-format-card { flex-direction: column; gap: 14px; }
}

@media (max-width: 820px) {
    .hero h1 { font-size: clamp(2.1rem, 9vw, 3.25rem); }
    .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero,
    .page-hero { padding-top: 30px; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 20px); }
    .site-header {
        backdrop-filter: blur(14px);
    }
    .nav-wrap {
        padding: 8px 0;
    }
    .brand {
        font-size: 1rem;
        max-width: calc(100% - 64px);
    }
    .brand::before {
        width: 12px;
        height: 12px;
        box-shadow: 0 0 0 6px rgba(85,130,255,0.08);
    }
    .nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .theme-menu {
        right: -6px;
    }
    .nav-panel {
        padding: 12px;
        border-radius: 20px;
    }
    .nav-link,
    .nav-action-btn,
    .btn {
        width: 100%;
    }
    .hero-actions,
    .card-actions,
    .stack-actions,
    .search-inline,
    .page-tools,
    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }
    .content-card,
    .feature-card,
    .form-card,
    .filter-panel,
    .admin-sidebar,
    .admin-content > .content-card,
    .glass-card,
    .stat-card,
    .logo-card,
    .empty-state,
    .hero-card-main,
    .hero-card-mini,
    .cta-banner {
        padding: 20px;
        border-radius: 24px;
    }
}


/* HH integration */

.jobs-layout {
    align-items: start;
}

.jobs-main-stack {
    display: grid;
    gap: 28px;
}

.vacancy-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.salary-line {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.hh-jobs-section {
    display: grid;
    gap: 18px;
}

.hh-card {
    border: 1px solid rgba(85,130,255,0.18);
    background: var(--surface-tint);
}

.hh-card-topline {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.source-badge,
.jobs-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--pill-bg);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.source-badge {
    color: var(--accent);
    border-color: rgba(85,130,255,0.18);
}

.job-footnote {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-actions-inline {
    flex-wrap: wrap;
}

.job-action-btn {
    min-width: 168px;
    justify-content: center;
}

.inline-specs {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.inline-specs li + li {
    margin-top: 8px;
}

.hh-embed-note {
    margin-top: 18px;
    padding: 20px;
}

.full-span-card {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .jobs-main-stack {
        gap: 22px;
    }

    .hh-card-topline {
        flex-direction: column;
    }

    .jobs-counter-pill {
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .job-action-btn {
        width: 100%;
        min-width: 0;
    }
}


.jobs-filter-panel {
    position: sticky;
    top: 104px;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.chip-accent {
    color: var(--accent);
    border-color: rgba(85,130,255,0.28);
    background: rgba(85,130,255,0.08);
}

.compact-note {
    margin-top: 12px;
    padding: 18px;
}

.inline-specs-compact {
    margin-top: 10px;
}

.jobs-list-header {
    align-items: center;
    gap: 16px;
}

.job-footnote-wrap {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .jobs-filter-panel {
        position: static;
        top: auto;
    }
}

@media (max-width: 680px) {
    .filter-actions {
        grid-template-columns: 1fr;
    }
}


.jobs-header-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.jobs-page-caption {
    color: var(--muted);
    font-size: 0.94rem;
    text-align: right;
}

.pagination-book {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.page-number-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-arrow,
.page-number {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-elevated, var(--surface));
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.page-arrow:hover,
.page-number:hover {
    transform: translateY(-1px);
    border-color: rgba(85,130,255,0.34);
    color: var(--accent);
}

.page-number.is-current {
    background: linear-gradient(135deg, rgba(85,130,255,.16), rgba(85,130,255,.16));
    border-color: rgba(85,130,255,.34);
    color: var(--accent);
}

.page-arrow.is-disabled {
    opacity: .42;
    pointer-events: none;
}

.page-status {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .jobs-header-meta {
        justify-items: start;
    }

    .jobs-page-caption {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .pagination-book {
        gap: 10px;
        padding: 12px;
    }

    .page-status {
        width: 100%;
        text-align: center;
        order: 3;
    }
}


.staff-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
.staff-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px 0;
    border-top: 1px solid rgba(85,130,255,0.18);
}
.staff-item:first-child {
    border-top: 0;
    padding-top: 6px;
}
.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(85,130,255,0.32), rgba(43,64,204,0.65));
    color: #f4f7ff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.22);
}
.staff-body {
    min-width: 0;
}
.staff-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.staff-role {
    color: var(--muted);
    line-height: 1.45;
    margin-bottom: 6px;
}
.staff-link {
    display: block;
    color: #8fc4ff;
    text-decoration: none;
    margin-top: 2px;
    word-break: break-word;
}
.staff-link:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .staff-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }
    .staff-avatar {
        width: 48px;
        height: 48px;
        font-size: 0.9rem;
    }
}
