:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-soft: #eef3fb;
    --text: #172033;
    --muted: #667085;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #eaf1ff;
    --border: #e3e9f3;
    --success: #0f766e;
    --success-soft: #e8f7f3;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
    --shadow-hover: 0 18px 44px rgba(16, 24, 40, 0.12);
    --container: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-dark);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4.8vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.08rem;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
}

ul,
ol {
    margin: 0;
    padding-left: 1.2em;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(246, 248, 252, 0.88);
    backdrop-filter: blur(16px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 74px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.logo-text {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-text span {
    color: var(--muted);
    font-weight: 500;
}

.logo-text b {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    padding: 9px 13px;
    border-radius: 10px;
    color: #344054;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.header-cta:hover {
    background: var(--accent-dark);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Buttons and forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--accent-dark);
    box-shadow: 0 10px 26px rgba(9, 30, 66, 0.16);
}

.btn-light:hover {
    background: #f2f6ff;
    color: var(--accent-dark);
}

.btn-block {
    width: 100%;
}

.text-link {
    color: var(--accent);
    font-weight: 600;
}

.text-link:hover {
    text-decoration: underline;
}

/* Typography helpers */
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 44px;
    background:
        radial-gradient(900px 500px at 84% 10%, rgba(37, 99, 235, 0.14), transparent 60%),
        radial-gradient(700px 420px at 6% 90%, rgba(14, 165, 233, 0.08), transparent 60%),
        var(--bg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: 54px;
}

.hero-copy h1 span {
    display: block;
    color: var(--accent);
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 26px;
    color: #475467;
    font-size: 1.08rem;
    line-height: 1.65;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    max-width: 820px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 320px;
    min-width: 0;
    gap: 10px;
    padding: 0 14px;
    color: var(--muted);
}

.search-field input {
    width: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.search-field input::placeholder {
    color: #98a2b3;
}

.select-field {
    display: flex;
    align-items: center;
    flex: 0 1 210px;
    min-width: 0;
    border-left: 1px solid var(--border);
}

.select-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 34px 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344054;
    font-size: 0.95rem;
    cursor: pointer;
}

.search-form .btn {
    flex: 0 0 auto;
    min-height: 48px;
}

.search-form--compact {
    max-width: 100%;
}

.suggest-list {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 30;
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-hover);
}

.suggest-item {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid #f0f3f9;
    color: var(--text);
}

.suggest-item:last-child {
    border-bottom: 0;
}

.suggest-item:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.suggest-item__title {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
}

.suggest-item__subtitle {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 28px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-soft);
}

.hero-stat strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
}

.hero-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 255, 0.9));
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.16);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 24px;
    background: rgba(37, 99, 235, 0.08);
}

.hero-panel::before {
    inset: 18px -18px -16px 34px;
    transform: rotate(2deg);
}

.hero-panel::after {
    inset: 34px 20px -28px -18px;
    background: rgba(14, 165, 233, 0.06);
    transform: rotate(-3deg);
}

.hero-panel__head,
.hero-panel__note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-panel__head {
    padding: 4px 4px 14px;
}

.hero-panel__count {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.72rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}

.hero-mini {
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.04);
}

.hero-mini:last-of-type {
    margin-bottom: 16px;
}

.hero-mini__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hero-mini__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-mini__salary {
    flex: 0 0 auto;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-mini__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-panel__note {
    justify-content: space-between;
    padding: 12px 4px 2px;
    border-top: 1px solid var(--border);
}

/* Sections */
.site-main {
    min-height: 60vh;
}

.section {
    padding: 66px 0;
}

.section--soft {
    background: #fff;
}

.section--tight {
    padding: 42px 0 56px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.section-head p {
    max-width: 700px;
    margin-top: 8px;
    color: var(--muted);
}

.section-head--small {
    margin-top: 42px;
    margin-bottom: 20px;
}

.link-all {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 650;
    white-space: nowrap;
}

.link-all span {
    display: inline-block;
    transition: transform 0.15s ease;
}

.link-all:hover span {
    transform: translateX(3px);
}

/* Vacancy cards */
.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.vacancy-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.035);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vacancy-card:hover {
    border-color: #c9d8f5;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.vacancy-card--daily {
    border-color: #c7d8ff;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.vacancy-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.company-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe7ff;
    border-radius: 13px;
    background: linear-gradient(135deg, #eef4ff, #e0ebff);
    color: var(--accent-dark);
    font-size: 1.06rem;
    font-weight: 800;
}

.company-mark--large {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.3rem;
}

.fav-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: #98a2b3;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fav-btn:hover,
.fav-btn.is-active,
.icon-action.is-active {
    border-color: #f7c8c4;
    background: var(--danger-soft);
    color: var(--danger);
}

.fav-btn.is-active svg {
    fill: currentColor;
}

.vacancy-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #475467;
    font-size: 0.71rem;
    font-weight: 650;
    white-space: nowrap;
}

.badge--accent {
    background: var(--accent);
    color: #fff;
}

.badge--soft {
    background: #f4f7fb;
    color: #667085;
}

.vacancy-card__title {
    margin-bottom: 6px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.vacancy-card__title a {
    color: var(--text);
}

.vacancy-card__title a:hover {
    color: var(--accent);
}

.vacancy-card__company {
    margin-bottom: 4px;
    color: #475467;
    font-size: 0.88rem;
}

.vacancy-card__city {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

.vacancy-card__city a {
    color: var(--muted);
}

.vacancy-card__city a:hover {
    color: var(--accent);
}

.vacancy-card__salary {
    margin: 0 0 13px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.vacancy-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.vacancy-card__tags span {
    padding: 4px 8px;
    border-radius: 7px;
    background: #f5f7fb;
    color: var(--muted);
    font-size: 0.71rem;
}

.vacancy-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #eef2f8;
    color: var(--muted);
    font-size: 0.75rem;
}

.vacancy-card__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* City cards */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 10px;
}

.city-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 92px;
    padding: 15px 40px 15px 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.city-card:hover {
    border-color: #bed0f2;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    transform: translateY(-2px);
}

.city-card__name {
    font-size: 0.96rem;
    font-weight: 650;
}

.city-card__count {
    color: var(--muted);
    font-size: 0.75rem;
}

.city-card__arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    color: #98a2b3;
    transform: translateY(-50%);
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-card:hover {
    border-color: #bed0f2;
    color: var(--text);
    transform: translateY(-2px);
}

.category-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.category-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-card__name {
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.3;
}

.category-card__count {
    color: var(--muted);
    font-size: 0.74rem;
}

/* About / benefits */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.about-grid > div > p {
    color: #475467;
}

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

.benefit-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.benefit-card__number {
    display: block;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.benefit-card h3 {
    font-size: 0.98rem;
}

.benefit-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.cta-band {
    padding: 46px 0;
    background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #3b82f6);
    color: #fff;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-band h2 {
    margin-bottom: 8px;
    color: #fff;
}

.cta-band p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

/* Page hero */
.page-hero {
    padding: 34px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(800px 320px at 90% 0%, rgba(37, 99, 235, 0.11), transparent 70%),
        var(--bg);
}

.page-hero--compact {
    padding-bottom: 24px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.8rem;
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.page-hero__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.page-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: #475467;
}

.page-hero__stat {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 160px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

.page-hero__stat strong {
    font-size: 1.8rem;
    line-height: 1.1;
}

.page-hero__stat span {
    color: var(--muted);
    font-size: 0.78rem;
}

.page-hero__search {
    margin-top: 24px;
}

/* Catalog */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: 96px;
}

.filters {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.035);
}

.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.filters__head h2 {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.filters__head a {
    font-size: 0.76rem;
}

.filter-group {
    margin-bottom: 14px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: #475467;
    font-size: 0.76rem;
    font-weight: 650;
}

.filter-group input,
.filter-group select,
.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5deec;
    border-radius: 11px;
    background: #fbfcff;
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.filter-group input:focus,
.filter-group select:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

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

.filter-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0;
    color: #475467;
    font-size: 0.82rem;
    cursor: pointer;
}

.filter-check input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.filters .btn {
    margin-top: 14px;
}

.filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-bottom: 16px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
}

.catalog-results {
    min-width: 0;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.84rem;
}

.results-head p {
    margin: 0;
}

.results-head strong {
    color: var(--text);
}

.vacancy-grid--catalog {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: #475467;
    font-size: 0.85rem;
    font-weight: 600;
}

.page-link:hover {
    border-color: #b9cdf2;
    color: var(--accent);
}

.page-link.is-current {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.page-dots {
    padding: 0 3px;
    color: var(--muted);
}

/* Prose */
.prose-block {
    max-width: 860px;
}

.prose-block h2 {
    margin-bottom: 16px;
}

.prose-block p {
    color: #475467;
}

/* Vacancy page */
.vacancy-page {
    padding-top: 30px;
}

.vacancy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.vacancy-detail {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.035);
}

.vacancy-detail__head {
    padding-bottom: 24px;
    border-bottom: 1px solid #eef2f8;
}

.vacancy-detail h1 {
    margin-bottom: 8px;
    font-size: clamp(1.85rem, 3.4vw, 2.8rem);
}

.vacancy-detail__company {
    margin-bottom: 14px;
    color: #475467;
    font-size: 1.02rem;
    font-weight: 600;
}

.vacancy-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.82rem;
}

.vacancy-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vacancy-detail__meta a {
    color: var(--muted);
}

.vacancy-detail__meta a:hover {
    color: var(--accent);
}

.vacancy-detail__salary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.vacancy-detail__salary {
    margin-bottom: 0;
    color: var(--text);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vacancy-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: #475467;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.icon-action:hover {
    border-color: #b9cdf2;
    color: var(--accent);
}

.vacancy-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.vacancy-detail__tags span {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f4f7fb;
    color: #475467;
    font-size: 0.75rem;
}

.detail-block {
    padding: 24px 0;
    border-bottom: 1px solid #eef2f8;
}

.detail-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-block h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.detail-block p:last-child {
    margin-bottom: 0;
}

.detail-block ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    color: #475467;
}

.detail-block li::marker {
    color: var(--accent);
}

.detail-block--note {
    padding-top: 24px;
}

.detail-block--note p {
    color: #475467;
}

.vacancy-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.apply-card,
.company-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.apply-card {
    position: sticky;
    top: 96px;
}

.apply-card h2,
.company-card h2 {
    margin-bottom: 7px;
    font-size: 1.25rem;
}

.apply-card__lead {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.86rem;
}

.apply-form .form-field {
    margin-bottom: 13px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    color: #344054;
    font-size: 0.8rem;
    font-weight: 650;
}

.field-error {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.76rem;
}

.filter-group input.is-invalid,
.form-field input.is-invalid,
.form-field textarea.is-invalid,
.filter-check input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

.icon-action.is-copied {
    border-color: #bceae0;
    background: var(--success-soft);
    color: var(--success);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.filter-check--consent {
    margin: 4px 0 14px;
    line-height: 1.45;
}

.form-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.form-note a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.alert--success {
    border: 1px solid #bceae0;
    background: var(--success-soft);
    color: var(--success);
}

.alert--error {
    border: 1px solid #f5c6c2;
    background: var(--danger-soft);
    color: var(--danger);
}

.company-card {
    box-shadow: none;
}

.company-card .company-mark {
    margin-bottom: 12px;
}

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

.company-card dl {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #eef2f8;
}

.company-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.81rem;
}

.company-card dt {
    color: var(--muted);
}

.company-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.related-section {
    margin-top: 18px;
}

/* Search start */
.search-start {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.search-start h2 {
    margin-bottom: 8px;
}

.search-start p {
    margin-bottom: 16px;
    color: var(--muted);
}

.search-start__all {
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 650;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip-list--center {
    justify-content: center;
    margin-top: 24px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: #475467;
    font-size: 0.8rem;
    font-weight: 550;
}

.chip:hover {
    border-color: #b9cdf2;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Not found */
.not-found {
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 0 50px;
    text-align: center;
}

.not-found__code {
    display: block;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(4.5rem, 14vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
}

.not-found h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.not-found p {
    color: var(--muted);
}

.not-found__search {
    margin: 26px auto 0;
    max-width: 760px;
    text-align: initial;
}

/* Cookie consent */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(100% - 32px, 980px);
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18);
    transform: translateX(-50%);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cookie-banner__text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie-banner__actions .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.85rem;
}

.cookie-banner__actions .btn-light {
    border-color: var(--border);
    box-shadow: none;
}

/* Legal pages */
.legal-page {
    padding: 34px 0 64px;
}

.legal-layout {
    max-width: 880px;
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 26px;
}

.legal-header h1 {
    margin: 8px 0 6px;
}

.legal-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.legal-content {
    padding: 34px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.legal-content h2 {
    margin: 30px 0 10px;
    font-size: 1.22rem;
    line-height: 1.3;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 12px;
    color: #344054;
    line-height: 1.72;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: #344054;
}

.legal-content li {
    margin-bottom: 7px;
    line-height: 1.65;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content strong {
    color: var(--text);
}

.legal-note {
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid #cfe0ff;
    border-radius: 14px;
    background: var(--accent-soft);
}

.legal-note p {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.92rem;
}

/* Footer */
.site-footer {
    padding: 54px 0 24px;
    background: #101828;
    color: #cbd5e1;
}

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

.logo--footer {
    margin-bottom: 14px;
    color: #fff;
}

.logo--footer:hover {
    color: #fff;
}

.logo--footer .logo-text span {
    color: #98a2b3;
}

.footer-about p {
    max-width: 420px;
    color: #98a2b3;
    font-size: 0.86rem;
}

.footer-col h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.footer-col a {
    display: block;
    width: fit-content;
    margin-bottom: 7px;
    color: #98a2b3;
    font-size: 0.84rem;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #667085;
    font-size: 0.76rem;
}

.footer-counter {
    display: flex;
    justify-content: center;
    padding: 12px 0 0;
}

.footer-counter img {
    display: block;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-to-top:hover {
    border-color: #b9cdf2;
    color: var(--accent);
}

/* Empty state */
.empty-state {
    padding: 44px 24px;
    border: 1px dashed #cdd9ec;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 18px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        gap: 34px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 26px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        gap: 14px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        z-index: 110;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow-hover);
    }

    body.nav-open .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .header-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual {
        max-width: 520px;
    }

    .page-hero__row {
        align-items: flex-start;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: static;
    }

    .filters-toggle {
        display: flex;
    }

    .js .filters-panel {
        display: none;
    }

    .js .filters-panel.is-open {
        display: block;
        margin-bottom: 18px;
    }

    .vacancy-layout {
        grid-template-columns: 1fr;
    }

    .apply-card {
        position: static;
    }

    .vacancy-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .search-start {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 46px 0;
    }

    .section--tight {
        padding: 30px 0 42px;
    }

    .hero {
        padding: 36px 0 32px;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .search-field {
        flex-basis: auto;
        padding: 0 10px;
    }

    .select-field {
        flex-basis: auto;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .search-form .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat {
        padding-left: 12px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-head .link-all {
        margin-top: 2px;
    }

    .page-hero__row {
        flex-direction: column;
        gap: 16px;
    }

    .page-hero__stat {
        min-width: 0;
        width: 100%;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .page-hero__stat strong {
        font-size: 1.4rem;
    }

    .vacancy-grid {
        grid-template-columns: 1fr;
    }

    .city-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .vacancy-detail {
        padding: 22px 18px;
    }

    .vacancy-detail__salary-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .vacancy-sidebar {
        grid-template-columns: 1fr;
    }

    .cta-band__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-band .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

    .results-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .search-start {
        padding: 20px;
    }

    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        bottom: 14px;
        padding: 16px;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }

    .legal-page {
        padding: 22px 0 46px;
    }

    .legal-content {
        padding: 22px 18px;
    }

    .legal-content h2 {
        font-size: 1.12rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .city-card {
        min-height: 76px;
    }

    .hero-panel {
        padding: 14px;
    }

    .hero-mini {
        padding: 12px;
    }

    .hero-mini__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .vacancy-detail__actions {
        width: 100%;
    }

    .icon-action {
        flex: 1 1 auto;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
