/* WorkHub — homepage
   Tokens extracted from mockup */

:root {
  --blue: #1e5eff;
  --blue-hover: #164dd9;
  --blue-soft: #e8efff;
  --blue-soft-2: #f0f4ff;
  --navy: #0a1b3d;
  --navy-deep: #07152e;
  --stats-bg: #0d2148;
  --text: #121826;
  --text-2: #5b6475;
  --text-3: #8b93a7;
  --line: #e6e9f0;
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --green: #1a9f5b;
  --green-soft: #e8f8ef;
  --green-border: #6dcf9a;
  --red: #d64545;
  --red-soft: #fdecec;
  --red-border: #f0a0a0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);
  --container: 1160px;
  --header-h: 72px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.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;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 14px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--white {
  background: #fff;
  color: var(--blue);
}

.btn--white:hover {
  background: #f3f6ff;
}

.btn--outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  height: 48px;
  padding: 0 28px;
  border-radius: 12px;
}

.btn--outline:hover {
  background: var(--blue-soft);
}

.btn--lg {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 650;
  font-size: 14px;
  transition: gap 0.2s var(--ease);
}

.link-more:hover {
  gap: 10px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* —— Header —— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 233, 240, 0.9);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.logo__name {
  display: block;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.logo__tag {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--blue);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.loc-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.loc-btn:hover,
.icon-btn:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.login-link {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  padding: 8px 4px;
}

.login-link:hover {
  color: var(--blue);
}

.header-logout {
  display: inline;
  margin: 0;
}

.header-logout__btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--text-3);
}

.header-logout__btn:hover {
  color: #be123c;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__city {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.mobile-nav__city strong {
  font-weight: 750;
  color: var(--blue);
}

.mobile-nav .btn {
  margin-top: 8px;
  justify-content: center;
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: visible;
  background: linear-gradient(120deg, #f7f9fc 0%, #eef3ff 45%, #dfe9ff 100%);
  min-height: 520px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.hero__bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: min(58%, 720px);
  height: 100%;
  object-fit: cover;
  object-position: 30% 20%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 85% 50%, transparent 30%, rgba(247, 249, 252, 0.15) 70%),
    linear-gradient(90deg, #f7f9fc 0%, rgba(247, 249, 252, 0.88) 38%, rgba(247, 249, 252, 0.2) 62%, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 56px 0 64px;
  min-height: 520px;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 14ch;
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
}

.search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  gap: 0;
  max-width: 640px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  color: var(--text-3);
}

.search__field--loc {
  flex: 0 0 170px;
  border-left: 1px solid var(--line);
  position: relative;
  z-index: 6;
}

.search__field input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* —— Custom dropdown —— */
.dd {
  position: relative;
  width: 100%;
  min-width: 0;
}

.dd__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}

.dd__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd__trigger .ph-caret-down {
  flex-shrink: 0;
  color: var(--text-3);
  font-size: 14px;
  transition: transform 0.2s var(--ease);
}

.dd.is-open .dd__trigger .ph-caret-down {
  transform: rotate(180deg);
}

.dd__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: max(100%, 200px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  max-height: 280px;
  overflow: auto;
}

.dd__menu[hidden] {
  display: none !important;
}

.dd__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dd__option:hover,
.dd__option.is-active {
  background: var(--blue);
  color: #fff;
}

.dd__option.is-selected:not(:hover):not(.is-active) {
  background: var(--blue-soft);
  color: var(--blue);
}

.dd--panel .dd__trigger {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.dd--panel .dd__menu {
  top: calc(100% + 6px);
  min-width: 100%;
}

.dd--sort {
  width: auto;
  display: inline-flex;
  vertical-align: middle;
}

.dd--sort .dd__trigger {
  min-height: auto;
  gap: 4px;
  color: var(--text);
  font-weight: 650;
}

.dd--sort .dd__menu {
  right: 0;
  left: auto;
  min-width: 240px;
}

.search__field input::placeholder {
  color: var(--text-3);
}

.search__btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.search__btn:hover {
  background: var(--blue-hover);
}

.popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  max-width: 640px;
}

.popular__label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #eef1f6;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  transition: background 0.15s, color 0.15s;
}

.chip:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.chip.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 650;
}

/* Job cards — shared (list, favorites, recommendations, company) */
.job-list,
.fav-list,
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.job-card:hover {
  border-color: #c9d6ff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.job-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8f9fc;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.job-card__body {
  flex: 1;
  min-width: 0;
}

.job-card__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.job-card__title a:hover {
  color: var(--blue);
}

.job-card__meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-3);
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.job-card__salary {
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  text-align: right;
  color: var(--text);
}

@media (max-width: 700px) {
  .job-card {
    flex-wrap: wrap;
  }

  .job-card__side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 0;
  }
}

.hero__features {
  justify-self: end;
  width: min(100%, 300px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-top: 40px;
}

.hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.hero__features li + li {
  border-top: 1px solid var(--line);
}

.feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* —— Categories —— */
.categories {
  padding: 48px 0 40px;
  background: var(--bg);
}

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

.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.cat-card:hover {
  border-color: #c9d6ff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cat-card__body {
  flex: 1;
  min-width: 0;
}

.cat-card__title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.cat-card__count {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.cat-card__chev {
  color: var(--text-3);
  flex-shrink: 0;
}

/* —— Stats —— */
.stats {
  padding: 8px 0 48px;
}

.stats__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--stats-bg);
  border-radius: 20px;
  padding: 28px 20px;
  color: #fff;
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 16px;
}

.stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #9eb6ff;
}

.stat__value {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat__label {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  line-height: 1.35;
}

/* —— Companies —— */
.companies {
  padding: 24px 0 56px;
  background: var(--bg-muted);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.company-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px 10px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.company-card__logo {
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.company-card__logo img,
.company-card__logo svg {
  max-height: 36px;
  max-width: 88px;
}

.company-card__count {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 550;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.brand-mark--sber { color: #21a038; }
.brand-mark--yandex { color: #fc3f1d; font-size: 18px; }
.brand-mark--tinkoff { color: #ffdd2d; background: #333; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.brand-mark--vk { color: #0077ff; font-size: 20px; }
.brand-mark--ozon { color: #005bff; }
.brand-mark--alfa { color: #ef3124; }
.brand-mark--x5 { color: #1a1a1a; }
.brand-mark--gazprom { color: #0078c9; font-size: 13px; }

/* —— Vacancies —— */
.vacancies {
  padding: 56px 0;
  background: var(--bg);
}

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

.vacancies__toolbar .section-title {
  margin: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #eef1f6;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.tab:hover {
  background: #e2e7f0;
}

.tab.is-active {
  background: var(--navy);
  color: #fff;
}

.vac-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.vac-item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

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

.vac-item:hover {
  background: #fafbfe;
}

.vac-item__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8f9fc;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.vac-item__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.vac-item__meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-3);
}

.vac-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  height: 24px;
  padding: 0 10px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: #eef1f6;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 550;
}

.tag--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.vac-item__salary {
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
  text-align: right;
}

.fav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-3);
  display: grid;
  place-items: center;
  transition: color 0.15s, background 0.15s;
}

.fav-btn:hover,
.fav-btn.is-active {
  color: #e11d48;
  background: #fff1f3;
}

.vacancies__more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* —— How it works —— */
.howto {
  padding: 56px 0 64px;
  background: var(--bg-muted);
}

.howto .section-title {
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed #cfd6e6;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 10px rgba(30, 94, 255, 0.06);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.step__num {
  width: 26px;
  height: 26px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}

.step__text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* —— Articles —— */
.articles {
  padding: 56px 0 48px;
  background: var(--bg);
}

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

.article-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease);
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card__img {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #e8ecf4;
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.article-card:hover .article-card__img img {
  transform: scale(1.04);
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.article-card__date {
  font-size: 12.5px;
  color: var(--text-3);
}

.article-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.article-card__excerpt {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.45;
}

/* —— CTA banner —— */
.cta {
  padding: 24px 0 48px;
}

.cta__banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #1e5eff 0%, #3b7cff 55%, #4d8aff 100%);
  border-radius: 24px;
  padding: 44px 48px;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.cta__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.cta__text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.cta__visual {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.cta-illus {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 180px;
}

.cta-illus__laptop {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 200px;
  height: 130px;
  background: #fff;
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 12px 32px rgba(0, 20, 80, 0.25);
  padding: 12px;
  overflow: hidden;
}

.cta-illus__laptop::before {
  content: "";
  display: block;
  height: 10px;
  width: 40%;
  background: #e8efff;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cta-illus__row {
  height: 8px;
  background: #f0f3f8;
  border-radius: 4px;
  margin-bottom: 8px;
}

.cta-illus__row--short { width: 55%; }
.cta-illus__row--mid { width: 75%; background: #dce6ff; }

.cta-illus__mail {
  position: absolute;
  left: 8px;
  top: 18px;
  width: 88px;
  height: 64px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 20, 80, 0.28);
  display: grid;
  place-items: center;
  color: var(--blue);
  animation: float-y 3.5s ease-in-out infinite;
}

.cta-illus__check {
  position: absolute;
  left: 72px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: float-y 3.5s ease-in-out infinite 0.4s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* —— App —— */
.app {
  padding: 40px 0 72px;
  background: var(--bg);
}

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

.app__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.app__text {
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 16px;
  max-width: 40ch;
  line-height: 1.55;
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}

.store-btn:hover {
  background: #1f2937;
  transform: translateY(-1px);
}

.store-btn__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn__label small {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 500;
}

.store-btn__label strong {
  font-size: 15px;
  font-weight: 700;
}

.phone {
  width: 260px;
  margin: 0 auto;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px #333;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone__screen {
  background: #f5f7fb;
  border-radius: 26px;
  overflow: hidden;
  min-height: 480px;
  padding: 40px 14px 18px;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.phone__search {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone__card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.phone__card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.phone__card span {
  font-size: 11px;
  color: var(--text-3);
}

.phone__card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  color: var(--blue);
}

/* —— Footer —— */
.footer {
  background: var(--navy-deep);
  color: #c5cce0;
  padding: 56px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer .logo__name {
  color: #fff;
}

.footer .logo__tag {
  color: #8b93a7;
}

.footer .logo__mark {
  border-radius: 12px;
}

.footer__about {
  margin: 16px 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #9aa3bd;
  max-width: 28ch;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s;
}

.socials a:hover {
  background: var(--blue);
}

.footer__col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.footer__col a {
  display: block;
  font-size: 13.5px;
  color: #9aa3bd;
  padding: 5px 0;
  transition: color 0.15s;
}

.footer__col a:hover {
  color: #fff;
}

.footer__subscribe h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.footer__subscribe p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #9aa3bd;
}

.subscribe {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.subscribe input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 14px;
  height: 44px;
  font-size: 13.5px;
  min-width: 0;
}

.subscribe button {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.subscribe button:hover {
  background: var(--blue-hover);
}

.trust {
  font-size: 12px;
  color: #7a849e;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  opacity: 0.55;
}

.trust__logos span {
  font-size: 11px;
  font-weight: 700;
  color: #c5cce0;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 6px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #7a849e;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

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

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header__inner {
    gap: 12px;
  }

  .header__actions {
    gap: 8px;
    min-width: 0;
  }

  .company-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 0 48px;
    min-height: 0;
  }

  .hero__bg-img {
    width: 100%;
    opacity: 0.35;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero__bg::after {
    background: linear-gradient(180deg, #f7f9fc 30%, rgba(247, 249, 252, 0.85) 100%);
  }

  .hero__title {
    max-width: none;
  }

  .hero__features {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }

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

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

  .article-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps::before {
    display: none;
  }

  .cta__banner {
    grid-template-columns: 1fr;
    padding: 32px 28px;
  }

  .cta__visual {
    order: -1;
    min-height: 140px;
  }

  .app__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app__text {
    margin-inline: auto;
  }

  .store-btns {
    justify-content: center;
  }

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

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

  .logo__tag {
    display: none;
  }

  /* CTA перенесены в mobile-nav — иначе хедер шире 375px */
  .header__actions .btn--primary,
  .header__actions .btn--outline,
  .header__actions .login-link,
  .header__actions .loc-btn,
  .header__actions .header-logout {
    display: none;
  }

  .header__actions {
    gap: 4px;
  }

  .header__actions .icon-btn {
    padding: 8px;
  }
}

@media (max-width: 640px) {
  .search {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .search__field--loc {
    flex: none;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

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

  .cat-grid,
  .company-grid,
  .article-grid,
  .steps,
  .stats__bar,
  .footer__top {
    grid-template-columns: 1fr;
  }

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

  .vac-item {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 16px;
  }

  .vac-item__salary {
    grid-column: 2;
    text-align: left;
    font-size: 14px;
  }

  .fav-btn {
    grid-row: 1;
    grid-column: 3;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* —— Flash toasts —— */
.toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, calc(100% - 24px));
  pointer-events: none;
}

body.has-cookie-bar .toast-stack {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
  body.has-cookie-bar .toast-stack {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--green-border);
  background: var(--green-soft);
  color: #0f5132;
  box-shadow: 0 12px 36px rgba(10, 27, 61, 0.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(14px);
}

.toast--success {
  border-color: var(--green-border);
  background: var(--green-soft);
  color: #0f5132;
}

.toast--error {
  border-color: var(--red-border);
  background: var(--red-soft);
  color: #7a1f1f;
}

.toast__icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  margin-top: 1px;
  color: var(--green);
}

.toast--error .toast__icon {
  color: var(--red);
}

.toast__text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.toast__close:hover {
  opacity: 1;
  background: rgba(15, 81, 50, 0.08);
}

.toast--error .toast__close:hover {
  background: rgba(122, 31, 31, 0.08);
}

/* —— Cookie consent bar (rabota.ru style) —— */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 27, 61, 0.96);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(7, 21, 46, 0.28);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

/* Модалки выше cookie-бара — иначе «Принять» перекрывает выбор города / формы */
body.city-modal-open .cookie-bar,
body:has(.city-modal:not([hidden])) .cookie-bar,
body:has(.modal-backdrop:not([hidden])) .cookie-bar {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cookie-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.cookie-bar__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  flex: 1;
  min-width: 0;
}

.cookie-bar__text a {
  color: #9ec0ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__text a:hover {
  color: #fff;
}

.cookie-bar__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

body.has-cookie-bar {
  padding-bottom: 88px;
}

@media (max-width: 720px) {
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar__btn {
    width: 100%;
  }

  body.has-cookie-bar {
    padding-bottom: 140px;
  }
}

/* —— Legal pages —— */
.legal-page {
  padding-bottom: 48px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.legal-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}

.legal-toc__nav a {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc__nav a:hover {
  color: var(--blue);
}

.legal-toc__up {
  font-size: 13px;
}

.legal-doc__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--navy);
}

.legal-doc__lead {
  color: var(--text-2);
  margin: 0 0 24px;
  line-height: 1.55;
}

.legal-doc h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--navy);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-doc h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.legal-doc p,
.legal-doc li {
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.legal-list > li {
  margin-bottom: 10px;
}

.legal-back {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-doc__note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

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

.footer__bottom a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }
}
