:root {
  --color-navy: #0b1626;
  --color-turquoise: #14c3ae;
  --color-turquoise-dark: #0a8f9e;
  --color-amber: #ffb547;
  --color-light: #e9f2f7;
  --color-white: #ffffff;
  --color-text: #11243a;
  --color-muted: #526578;
  --color-border: #c9d7df;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-card: 0 12px 30px rgb(5 22 38 / 0.12);
  --glow-turquoise: 0 0 80px rgb(20 195 174 / 0.22);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5.5rem;
  --container: 72rem;
  --font-body: Manrope, ui-sans-serif, system-ui, sans-serif;
  --transition: 180ms ease;
}

/* Desktop scale (PET-181): rem-based sizes, gaps and the container grow with the
   viewport so wide screens are not rendered as a narrow tablet column.
   Mobile and tablet (< 1200px) keep the 16px base. */
@media (min-width: 1200px) {
  :root {
    font-size: 106.25%;
    --container: 76rem;
    --space-6: 4rem;
    --space-7: 6.5rem;
  }
}
@media (min-width: 1600px) {
  :root {
    font-size: 112.5%;
    --container: 88rem;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--color-light);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}
header,
main,
footer {
  max-width: var(--container);
  margin: auto;
  padding: var(--space-4);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
}
header a {
  color: var(--color-white);
}
a {
  color: var(--color-turquoise-dark);
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.3rem;
}
nav {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
[aria-current="page"] {
  text-decoration-thickness: 3px;
}
h1 {
  line-height: 1.2;
  font-size: clamp(1.8rem, 5vw, 3rem);
  overflow-wrap: anywhere;
}
section {
  margin-block: var(--space-5);
}
p {
  max-width: 75ch;
  overflow-wrap: anywhere;
}
.notice,
.vacancies li {
  background: var(--color-white);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.vacancies {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--space-3);
  z-index: 10;
  background: var(--color-white);
  padding: var(--space-2);
}
.skip-link:focus {
  top: var(--space-2);
}
footer {
  border-top: 1px solid var(--color-border);
}

/* PET-251: city hub `/jobs/{geo}/`. Brand tokens only (tokens.css); text uses --font-body. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.crumbs li {
  display: flex;
  align-items: center;
}
/* The separator belongs to the item before it, so a wrapped line never starts with it. */
.crumbs li:not(:last-child)::after {
  content: "\203A";
  margin-left: var(--space-1);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
}
.crumbs [aria-current="page"] {
  color: var(--color-navy);
  overflow-wrap: anywhere;
}

/* PET-315: way back from a combination page (city hub, home, job seekers, Telegram). */
.back-nav {
  display: block;
  margin-block: var(--space-4);
}
.back-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem var(--space-3);
  background: var(--color-white);
  border: 2px solid var(--color-navy);
  border-radius: 999px;
  color: var(--color-navy);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.back-link--primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.back-link--telegram {
  background: var(--color-amber);
  border-color: var(--color-amber);
}
.crumbs a:focus-visible,
.back-nav a:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
@media (max-width: 40rem) {
  .back-nav li {
    flex: 1 1 100%;
  }
  .back-link {
    width: 100%;
  }
}
.hub-hero {
  margin-block: var(--space-4) var(--space-5);
}
.hub-hero h1 {
  margin-bottom: var(--space-2);
  letter-spacing: -0.03em;
}
.hub .lede {
  max-width: 43rem;
  color: var(--color-muted);
  font-size: 1.15rem;
}
.hub-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}
.hub-stat {
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--color-turquoise);
}
.hub-stat dt {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.hub-stat dd {
  margin: 0;
  color: var(--color-navy);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hub-stat .hub-date {
  font-size: 1.4rem;
}
.hub-section h2,
.hub-cta h2 {
  margin-top: 0;
  color: var(--color-navy);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.03em;
}
.hub-cards,
.hub-chips {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hub-cards {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  min-height: 4.5rem;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  text-decoration: none;
}
.hub-card strong {
  font-size: 1.15rem;
}
.hub-card span {
  color: var(--color-muted);
  font-size: 0.95rem;
}
a.hub-card:hover {
  border-color: var(--color-turquoise);
  box-shadow: var(--shadow-card);
}
.hub-card--empty {
  background: transparent;
  border-style: dashed;
}
.hub-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}
a.hub-chip:hover {
  border-color: var(--color-turquoise);
}
.hub-cta {
  margin-block: var(--space-6);
  padding: var(--space-5) var(--space-4);
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-turquoise);
  color: var(--color-light);
}
.hub-cta h2 {
  color: var(--color-white);
}
.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  background: var(--color-amber);
  border-radius: 999px;
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: none;
}
.hub-faq details {
  margin-bottom: var(--space-2);
  padding: 0 var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.hub-faq summary {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 700;
  cursor: pointer;
}
.hub-faq details p {
  margin-top: 0;
  color: var(--color-muted);
}
.hub-sticky {
  display: none;
}
.hub-search {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.hub-search label {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.hub-search__row {
  display: flex;
  gap: var(--space-2);
}
.hub-search input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.6rem 0.9rem;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
}
.hub-search button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.hub-search__status {
  margin: 0 0 var(--space-3);
  color: var(--color-navy);
  font-weight: 700;
}
/* Amber rings are unreadable on light surfaces; hub controls use navy there, white on navy. */
.hub a:focus-visible,
.hub input:focus-visible,
.hub button:focus-visible,
.hub summary:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.hub-cta a:focus-visible {
  outline-color: var(--color-white);
}
@media (max-width: 40rem) {
  .hub-cta {
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-md);
  }
  .hub-button {
    width: 100%;
  }
  .hub-search__row {
    flex-direction: column;
  }
  /* Sticks to the viewport bottom while the page is long; sits in the flow at the end of <main>. */
  .hub-sticky {
    display: block;
    position: sticky;
    bottom: 0;
    margin: var(--space-4) calc(var(--space-4) * -1) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }
  html {
    scroll-padding-bottom: 6rem;
  }
}
.hub-section h2 {
  margin-bottom: var(--space-2);
}
.hub .vacancies h3 {
  margin: 0 0 var(--space-1);
  font-size: 1.1rem;
}
.hub .vacancies a {
  color: var(--color-navy);
  font-weight: 700;
}
