/* ROSTIC'S — вакансии, mobile-first */
:root {
  --red: #e4002b;
  --red-dark: #b7001f;
  --black: #1a1a1a;
  --ink: #222;
  --muted: #6b7280;
  --bg: #ffffff;
  --soft: #fff7f1;
  --accent: #fff1e6;
  --border: #ececec;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gap: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.3) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 18px; min-height: 64px; flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--black); }
.logo img { border-radius: 10px; width: 60px; height: 60px; object-fit: cover; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; font-size: 14px; }
.logo__text b { font-weight: 800; letter-spacing: .02em; color: var(--red); }
.logo__text i { font-style: normal; font-size: 12px; color: var(--muted); }
/* На мобильных меню — горизонтальная прокрутка под логотипом. */
.nav {
  display: flex; gap: 4px; order: 3; width: 100%;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border); padding-top: 8px; margin-top: 2px;
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  color: var(--black); padding: 8px 12px; border-radius: 10px; font-weight: 500;
  white-space: nowrap; font-size: 15px;
}
.nav__link:hover { background: var(--accent); text-decoration: none; }
.nav__link.is-active { color: var(--red); background: var(--soft); }
.header__cta { display: none; }
@media (min-width: 820px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav { width: auto; order: 0; overflow: visible; border-top: 0; padding-top: 0; margin-top: 0; }
  .header__cta { display: inline-flex; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(228,0,43,.25); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: #fff; color: var(--black); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--black); }
.btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.btn--block { width: 100%; }

/* HERO */
.hero { padding: 28px 0 20px; background:
  radial-gradient(1200px 400px at 90% -10%, #ffe2d1 0%, rgba(255,226,209,0) 60%),
  radial-gradient(800px 300px at -10% 0%, #ffd8dc 0%, rgba(255,216,220,0) 60%),
  #fff; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.hero__kicker {
  display: inline-block; padding: 6px 12px; font-weight: 700; font-size: 12px;
  color: var(--red); background: #fff; border: 1px solid #ffd1d8; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 10px;
}
.hero__title { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -0.01em; }
.hero__lead { font-size: clamp(16px, 2.2vw, 19px); color: #333; max-width: 56ch; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 12px; }
.hero__bullets { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; color: #333; font-size: 14px; }
.hero__bullets li::before { content: "✓"; color: var(--red); font-weight: 900; margin-right: 6px; }
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius-lg); aspect-ratio: 1/1; width: 100%; object-fit: cover;
  box-shadow: var(--shadow);
}
.hero__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: #fff; color: var(--black); padding: 10px 14px; border-radius: 999px; font-weight: 700;
  box-shadow: var(--shadow);
}
@media (min-width: 820px) {
  .hero { padding: 56px 0 40px; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 48px; }
}

/* Hero without media (courier pages) */
.hero--no-media .hero__inner { grid-template-columns: 1fr; }
.hero--no-media .hero__text { width: 100%; }
.hero--no-media .hero__lead { max-width: 72ch; }

/* SECTIONS */
.section { padding: 40px 0; }
.section--soft { background: var(--soft); }
.section--accent { background: var(--accent); }
.section__kicker { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin: 0 0 8px; }
.section__title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; }
.section__lead { color: #444; max-width: 70ch; margin: -4px 0 20px; font-size: 17px; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; } }
.grid-2--reverse > :first-child { order: 2; }
@media (min-width: 820px) { .grid-2--reverse > :first-child { order: 0; } }

.figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.figure figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* PROS */
.pros { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .pros { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pros { grid-template-columns: repeat(4, 1fr); } }
.pros__card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  transition: transform .1s, box-shadow .15s;
}
.pros__card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pros__card p { margin: 0; font-weight: 600; color: var(--black); }
.pros__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--red); font-weight: 900;
}

/* LISTS */
.list-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.list-num { padding-left: 1.2em; }
.list-num li { margin-bottom: 6px; }

/* SALARY TABLE */
.salary__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.salary__table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
.salary__table th, .salary__table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.salary__table thead th { background: var(--soft); color: var(--black); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.salary__table tbody tr:hover { background: #fafafa; }
.salary__table tr.is-current { background: var(--accent); }
.salary__table td:nth-child(2) { font-weight: 700; color: var(--red); white-space: nowrap; }
@media (max-width: 560px) {
  .salary__table, .salary__table thead, .salary__table tbody, .salary__table tr, .salary__table th, .salary__table td { display: block; }
  .salary__table { min-width: 0; }
  .salary__table thead { display: none; }
  .salary__table tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 10px; }
  .salary__table td { border: 0; padding: 8px 4px; display: flex; justify-content: space-between; gap: 12px; }
  .salary__table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}

/* CITIES */
.cities { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .cities { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .cities { grid-template-columns: repeat(4, 1fr); } }
.cities__link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  color: var(--black); font-weight: 600;
  transition: border-color .1s, box-shadow .15s, transform .08s;
}
.cities__link:hover { border-color: var(--red); text-decoration: none; box-shadow: 0 6px 18px rgba(228,0,43,.08); transform: translateY(-1px); }
.cities__salary { color: var(--red); font-weight: 800; font-size: 13px; }
.cities__item.is-current .cities__link { border-color: var(--red); background: var(--soft); }

/* REGION BLOCKS — группировка городов по регионам */
.region-block { margin-top: 28px; scroll-margin-top: 90px; }
.region-block:first-of-type { margin-top: 16px; }
.region-block__title {
  font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.region-block__count {
  font-size: 12px; font-weight: 700; color: var(--red); background: var(--soft);
  border-radius: 999px; padding: 2px 9px;
}

/* Kurer cities — плотная сетка ссылок без зарплат */
.kurer-cities { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (min-width: 520px) { .kurer-cities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .kurer-cities { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .kurer-cities { grid-template-columns: repeat(5, 1fr); } }
.kurer-cities__link {
  display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--black); font-weight: 600; text-align: left;
  transition: border-color .1s, box-shadow .15s, transform .08s, color .1s;
}
.kurer-cities__link:hover { border-color: var(--red); color: var(--red); text-decoration: none; box-shadow: 0 6px 18px rgba(228,0,43,.08); transform: translateY(-1px); }

/* CARDS */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 820px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.card__title { font-size: 20px; }
.card__meta { color: var(--muted); font-size: 14px; margin: 12px 0 16px; }

/* STEPS */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps__item {
  display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.steps__num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps__title { margin: 0 0 4px; font-size: 17px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--black); font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--red); font-weight: 900; font-size: 22px; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 14px; color: #333; }

/* CTA band */
.cta-band { background: linear-gradient(100deg, var(--red) 0%, #ff3452 100%); color: #fff; }
.cta-band__inner { display: grid; gap: 18px; padding: 40px 18px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band__title { color: #fff; font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; margin: 0; }
.cta-band__lead { color: rgba(255,255,255,.9); margin: 8px 0 0; }
.cta-band .btn--primary { background: #fff; color: var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.cta-band .btn--primary:hover { background: #f6f6f6; }

/* FOOTER */
.site-footer { background: #111; color: #d1d5db; padding: 40px 0 20px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd1d8; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr 2fr; } }
.footer__title { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer__text { color: #e5e7eb; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer__cities { list-style: none; padding: 0; display: grid; gap: 4px 12px; grid-template-columns: 1fr 1fr; font-size: 14px; }
@media (min-width: 620px) { .footer__cities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .footer__cities { grid-template-columns: repeat(4, 1fr); } }
.footer__title--sub { margin-top: 22px; font-size: 14px; }
.footer__list--inline { grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; }
@media (min-width: 620px) { .footer__list--inline { grid-template-columns: repeat(3, 1fr); } }
.footer__bottom {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid #2a2a2a;
  display: flex; justify-content: space-between; gap: 12px; color: #8b8f98; font-size: 13px; flex-wrap: wrap;
}

/* Breadcrumbs */
.breadcrumbs { padding: 10px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; color: #cfcfcf; }
.breadcrumbs li:last-child span { color: var(--black); font-weight: 600; }

/* Privacy */
.privacy h2 { font-size: 20px; margin-top: 28px; }
.privacy p { color: #333; }
.privacy__dash { padding-left: 24px; }

/* Error page */
.error-page { text-align: center; padding: 40px 0; }
.error-page__icon { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.error-page__title { font-size: clamp(72px, 12vw, 140px); font-weight: 900; color: var(--red); margin: 0 0 8px; line-height: 1; letter-spacing: -0.03em; }
.error-page__lead { font-size: clamp(18px, 2.5vw, 22px); color: var(--black); font-weight: 700; margin-bottom: 12px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 32px; }
.error-page__subtitle { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.error-page__city-list { font-size: 14px; line-height: 1.8; color: var(--muted); }
.error-page__city-list a { color: var(--ink); }
.error-page__city-list a:hover { color: var(--red); }

/* Form */
.form { display: grid; gap: 14px; background: #fff; padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.form__row { display: grid; gap: 6px; }
.form__label { font-weight: 700; color: var(--black); font-size: 14px; }
.form__label em { color: var(--red); font-style: normal; }
.form__input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form__input:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(228,0,43,.12);
}
.form__input:invalid:not(:placeholder-shown) { border-color: #f5a0a8; }
.form__textarea { resize: vertical; min-height: 120px; }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #444; }
.form__consent input { margin-top: 3px; }
.form__honeypot { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }
.form__status { margin: 4px 0 0; font-weight: 600; min-height: 1.2em; }
.form__status.is-ok { color: #0a7d2d; }
.form__status.is-err { color: #b7001f; }

/* Contacts sidebar */
.contacts-side { display: grid; gap: 14px; align-content: start; }
.contacts-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.contacts-card__title { margin: 0 0 6px; font-size: 16px; color: var(--black); }
.contacts-card p { margin: 0; color: #444; }

/* Utility */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
