/* Inner pages, phase 2B: vacancies and the vacancy single, contact, privacy
   and generic pages, blog, archives, search, 404. Built on components.css
   (page head, hairlist, rows, buttons, desk-cut, desk surface, form sheet).
   Prefix: .u-  Loads after components.css. */

/* ==========================================================================
   Shared: page head, body, narrow column
   ========================================================================== */
.u-head { border-bottom: 0; padding-bottom: clamp(24px, 3vw, 44px); }
.u-body { padding-bottom: var(--space-section); }
.u-narrow { max-width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.shell.u-narrow { width: min(100% - 2 * var(--gutter), 820px); }

.u-body .prose > :first-child, .u-rows .prose > :first-child { margin-top: 0; }

.u-thumb { margin: 0 0 clamp(24px, 3vw, 40px); }
.u-thumb img { width: 100%; border-radius: var(--radius-paper); }

.u-date, .u-count { margin-top: 14px; font-size: var(--t-small); color: var(--grey); font-variant-numeric: tabular-nums; }
.u-tags { margin-top: 32px; font-size: var(--t-small); color: var(--grey); }
.u-tags a { color: var(--burgundy); }

/* ==========================================================================
   Empty state: one line, then useful links as a hairline list
   ========================================================================== */
.u-empty { max-width: 560px; }
.u-empty p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.u-body:has(> .u-empty) { min-height: 34svh; }
.u-empty .hairlist { margin-top: clamp(24px, 3vw, 36px); }

/* ==========================================================================
   Posts list (blog, archives, search): hairlist rows with a quiet meta
   ========================================================================== */
.u-posts a { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 20px; }
.u-posts__m { font: 400 var(--t-small)/1.4 var(--font-body); color: var(--grey); white-space: nowrap; }
@media (max-width: 600px) {
  .u-posts a { grid-template-columns: 1fr auto; }
  .u-posts__m { grid-row: 2; grid-column: 1; }
  .u-posts a svg { grid-row: 1 / 3; grid-column: 2; }
}

/* ==========================================================================
   Search form: an underlined field, like the form sheet
   ========================================================================== */
.u-search { display: flex; gap: 12px; align-items: end; max-width: 560px; }
.page-head .u-search { margin-top: clamp(20px, 2.6vw, 32px); }
.u-search__field {
  flex: 1; min-width: 0; font: 400 17px/1.5 var(--font-body); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(38, 34, 32, .35); border-radius: 0;
  padding: 10px 2px; transition: border-color .2s, background-color .2s;
}
.u-search__field:hover { border-bottom-color: var(--ink); }
.u-search__field:focus-visible { outline: none; border-bottom-color: var(--burgundy); background: var(--greige-lift); box-shadow: 0 2px 0 0 var(--burgundy); }
.u-search__field::-webkit-search-cancel-button { filter: grayscale(1); }

/* ==========================================================================
   /vacancies/: one ruled list; title, then place and pay
   ========================================================================== */
.u-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.u-filter select {
  min-height: 44px; padding: 0 36px 0 14px; border-radius: 10px; border: 1.5px solid rgba(38, 34, 32, .35);
  background: var(--surface); font-size: 15px;
}

.u-vacs { border-top: 2px solid var(--rule); }
.u-vac { border-bottom: 1px solid var(--hair); }
.u-vac a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px) auto; align-items: center;
  gap: 8px clamp(20px, 3vw, 48px); padding: clamp(22px, 2.6vw, 34px) 0;
  text-decoration: none;
}
.u-vac__t { font-size: clamp(22px, 2.6vw, 38px); font-weight: 900; line-height: 1.05; transition: color .2s var(--ease-out); }
.u-vac__m { display: grid; gap: 2px; font-size: var(--t-small); line-height: 1.45; color: var(--grey); font-variant-numeric: tabular-nums; }
.u-vac__m span:last-child:not(:first-child) { color: var(--ink); font-weight: 600; }
.u-vac__closed { color: var(--burgundy); font-weight: 700; }
.u-vac__arrow { width: 26px; height: 26px; color: var(--burgundy); transition: transform .25s var(--ease-out); }
.u-vac a:hover .u-vac__t { color: var(--burgundy); }
.u-vac a:hover .u-vac__arrow { transform: translateX(5px); }
.u-vac.is-closed .u-vac__t { color: var(--grey); }
@media (max-width: 700px) {
  .u-vac a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 22px 0; }
  .u-vac__m { grid-row: 2; grid-column: 1; }
  .u-vac__arrow { grid-row: 1 / 3; grid-column: 2; width: 22px; height: 22px; }
}

/* ==========================================================================
   Vacancy single. Phone order: head, facts + apply, the ad.
   Wide: head and ad on the left, facts + apply sticky on the right.
   ========================================================================== */
.u-vpost__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "aside" "ad";
  padding-bottom: clamp(56px, 7vw, 104px);
}
.u-vpost__head { grid-area: head; padding-block: clamp(28px, 6vw, 88px) clamp(22px, 3vw, 36px); }
.u-vpost__head h1 { font-weight: 900; line-height: 1.02; letter-spacing: -.01em; }
.u-vpost__aside { grid-area: aside; align-self: start; }
.u-ad { grid-area: ad; margin-top: 44px; }

@media (min-width: 960px) {
  .u-vpost__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    grid-template-areas: "head head" "ad aside";
    column-gap: clamp(48px, 7vw, 120px);
  }
  .u-vpost__aside { position: sticky; top: 28px; }
  .u-ad { margin-top: 0; }
}

/* Facts: the ruled list (2px ink rule, hairline rows). */
.u-facts { margin: 0; border-top: 2px solid var(--rule); }
.u-facts > div {
  display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--hair);
}
.u-facts dt { font-size: var(--t-micro); line-height: 1.45; color: var(--grey); }
.u-facts dd { margin: 0; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums; }
.u-vpost__apply { width: 100%; justify-content: space-between; margin-top: 22px; }
.u-vpost__apply svg { width: 20px; height: 20px; }

/* The ad, as the owner wrote it: lead paragraphs, then each h2 opens a ruled list. */
.u-ad { max-width: 68ch; }
.u-ad > p:first-child { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.u-ad > * + * { margin-top: 1em; }
.u-ad h2 {
  margin-top: clamp(40px, 4.4vw, 60px); margin-bottom: 0;
  font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; line-height: 1.15;
}
.u-ad h2 + * { margin-top: 16px; }
.u-ad ul, .u-ad ol { list-style: none; padding: 0; border-top: 2px solid var(--rule); }
.u-ad li {
  position: relative; margin: 0; padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--hair); line-height: 1.55;
}
.u-ad li + li { margin-top: 0; }
.u-ad ul > li::before {
  content: ""; position: absolute; left: 2px; top: calc(12px + .78em - 4px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy);
}
.u-ad ol { counter-reset: u-step; }
.u-ad ol > li { counter-increment: u-step; }
.u-ad ol > li::before {
  content: counter(u-step); position: absolute; left: 0; top: 12px;
  font: 800 15px/1.55 var(--font-display); color: var(--burgundy);
}

/* Plugin notice (closed vacancy): a quiet ruled note, no coloured side bar. */
.u-vpost .matchup-closed-notice {
  margin: 0 0 24px; padding: 18px 0 20px; background: none; border: 0; border-radius: 0;
  border-top: 2px solid var(--burgundy);
}
.u-vpost .matchup-closed-notice__title { font: 800 var(--t-h3)/1.2 var(--font-display); margin: 0 0 8px; }
.u-vpost .matchup-closed-notice__text { font-size: var(--t-small); color: var(--grey); margin: 0 0 16px; }

/* ---------- The application form: the plugin's block as a sheet on the desk
   (the generic plugin-form and Bitrix rules are in components.css) ---------- */
.u-apply { padding: clamp(40px, 7vw, 104px) 16px; scroll-margin-top: 0; }
.u-apply > .matchup-form {
  max-width: 720px; margin: 0 auto; scroll-margin-top: 16px;
  background: var(--surface); border: 0; border-radius: var(--radius-paper);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-paper);
}
.u-apply .matchup-form--fallback { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
.u-apply .matchup-form--fallback .matchup-form__title { font-size: 20px; }

@media (max-width: 600px) {
  .u-apply { padding: 28px 10px; }
  .u-apply > .matchup-form { padding: 24px 18px; }
}

.u-others { padding-top: clamp(56px, 7vw, 104px); }

/* ==========================================================================
   /contact/: the head carries the direct routes, then the FAQ and the desk
   ========================================================================== */
.u-head--contact .crumbs { margin-bottom: clamp(18px, 2.2vw, 28px); }
.u-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px clamp(40px, 6vw, 96px); align-items: start; }
.u-reach { margin: 0; border-top: 2px solid var(--rule); }
.u-reach > div {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
}
.u-reach dt { font-size: var(--t-micro); color: var(--grey); }
.u-reach dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.u-reach a {
  font: 800 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); text-decoration: none; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.u-reach a:hover { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1.5px; }
.u-reach span { line-height: 1.5; }
.u-head--contact + #faq,
.u-head--contact + .u-body + #faq { padding-top: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) {
  .u-contact { grid-template-columns: minmax(0, 1fr); }
  .u-reach > div { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Generic page (privacy): lead visible, each h2 section a disclosure row
   ========================================================================== */
.u-lead { font-size: clamp(17px, 1.35vw, 19px); }
.u-lead + .u-rows { margin-top: clamp(32px, 4vw, 48px); }
.u-rows .row > summary { padding: 18px 0; }
.u-rows h2.row__t { margin: 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; line-height: 1.3; }
.u-rows .row__body { color: var(--ink); max-width: 64ch; }
.u-rows .row__body > * + * { margin-top: .8em; }

/* ==========================================================================
   404: heading cut from the desk, a sheet of routes on it
   ========================================================================== */
.u-nf { padding-top: clamp(48px, 7vw, 104px); }
.u-nf .desk-cut { font-size: clamp(40px, 9.5vw, 116px); }
.u-nf__sheet { max-width: 560px; }
.u-nf__sheet .u-search { margin-top: clamp(28px, 3vw, 40px); }
.u-nf__sheet .u-search__field { background: transparent; }

/* ==========================================================================
   /contact/ (feedback round, 2026-11-02): actions beside the paper map,
   then every route on a paper slip. Prefix: ct-.
   ========================================================================== */
.ct-head { padding-bottom: clamp(36px, 5vw, 72px); }
.ct-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: clamp(28px, 3vw, 40px); }
.ct-actions__btn { gap: 10px; font-variant-numeric: tabular-nums; }
.ct-actions__btn svg { width: 19px; height: 19px; }

.ct-map { position: relative; margin: 0; }
.ct-map img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-paper); box-shadow: var(--shadow-paper); transform: rotate(-.8deg);
}
.ct-map--empty {
  display: grid; place-items: center; aspect-ratio: 3 / 2;
  background: var(--greige-lift); border-radius: var(--radius-paper); box-shadow: var(--shadow-card);
}
.ct-map__pin { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--burgundy); color: var(--surface); box-shadow: var(--shadow-card); }
.ct-map__pin svg { width: 40px; height: 40px; }
.ct-map__tag {
  position: absolute; right: clamp(-10px, -1vw, -4px); bottom: clamp(-26px, -2vw, -16px);
  display: grid; gap: 4px; max-width: min(86%, 360px);
  padding: 14px 20px; background: var(--surface); border-radius: var(--radius-paper);
  box-shadow: var(--shadow-card); transform: rotate(1.6deg);
}
.ct-map__addr { font: 800 clamp(15px, 1.2vw, 17px)/1.35 var(--font-display); }
.ct-map__tag a { font-size: var(--t-small); font-weight: 600; color: var(--burgundy); text-decoration: underline; }

.ct-slips { padding-block: clamp(40px, 5vw, 72px) 0; }
.ct-slips__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ct-slip {
  position: relative; display: grid; align-content: start; gap: 6px;
  padding: 26px 24px 28px; background: var(--surface);
  border-radius: var(--radius-paper); box-shadow: var(--shadow-card);
}
.ct-slip::before { content: ""; position: absolute; top: -8px; left: 24px; width: 56px; height: 12px; background: var(--burgundy); border-radius: 3px 3px 0 0; }
.ct-slip__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--greige); color: var(--burgundy); }
.ct-slip__icon svg { width: 21px; height: 21px; }
.ct-slip__k { font: 800 13px/1.3 var(--font-display); letter-spacing: .08em; color: var(--grey); margin-bottom: 4px; }
.ct-slip__v a { font: 800 clamp(18px, 1.5vw, 22px)/1.35 var(--font-display); text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ct-slip__v a:hover { color: var(--burgundy); text-decoration: underline; text-decoration-thickness: 1.5px; }
.ct-slip__v--text { font: 700 17px/1.45 var(--font-display); }
.ct-slip__more { margin-top: 8px; font-size: var(--t-small); }
.ct-socials { display: grid; gap: 2px; }
.ct-socials a { display: flex; align-items: center; gap: 12px; padding: 7px 0; text-decoration: none; font-weight: 600; }
.ct-socials a:hover { color: var(--burgundy); }
.ct-socials svg { width: 20px; height: 20px; color: var(--burgundy); flex: none; }
.ct-slips + #faq, .ct-slips + .u-body + #faq { padding-top: var(--space-section); }

@media (max-width: 1080px) {
  .ct-slips__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 900px) {
  .ct-hero { grid-template-columns: minmax(0, 1fr); }
  .ct-map { margin-bottom: 26px; }
}
@media (max-width: 560px) {
  .ct-slips__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-actions__btn { width: 100%; }
}
