/* Match UP components: the reusable parts of the desk-letters design.
   Every page loads this. Inner-page builders compose pages from these
   classes; see output/site-build/PHASE1.md for the catalogue. */

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-btn);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  border: 1.5px solid var(--burgundy);
  background: var(--burgundy); color: var(--surface);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--line, .btn--ghost { background: transparent; color: var(--burgundy); }
.btn--line:hover, .btn--ghost:hover { background: var(--burgundy); color: var(--surface); }
.btn--light { background: var(--surface); border-color: var(--surface); color: var(--burgundy); }
.btn--light:hover { background: var(--greige-lift); border-color: var(--greige-lift); color: var(--burgundy-deep); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn__label { display: inline-flex; align-items: center; gap: .55em; }
.btn__arrow { font-size: 1.2em; line-height: 1; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--burgundy); font-weight: 600; text-decoration: underline; text-underline-offset: .22em;
}
.text-link:hover { color: var(--burgundy-deep); text-decoration-thickness: 2px; }
.text-link svg { width: 1em; height: 1em; flex: none; }

/* ==========================================================================
   Wordmark: M symbol + MATCH UP / consulting
   ========================================================================== */
/* The logo (version 03): the MU monogram, then "MATCH UP / CONSULTING". */
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark svg { display: block; flex: none; }
.mark .mu { height: 46px; width: auto; aspect-ratio: 123.2 / 115.6; }
.mark__type { height: 31px; width: auto; aspect-ratio: 121.5 / 31.8; }
.mark--custom img { max-width: 210px; max-height: 56px; width: auto; height: auto; }

/* ==========================================================================
   Header
   In flow on inner pages; laid over the stage on the front page (home.css).
   ========================================================================== */
.site-header { position: relative; z-index: 30; padding-block: 18px; }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  font: 500 15px/1 var(--font-body); text-decoration: none; padding: 8px 0;
  background: linear-gradient(var(--burgundy), var(--burgundy)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease-out), color .2s var(--ease-out);
}
.nav__links a:hover { background-size: 100% 1.5px; }
.nav__links a[aria-current="page"] { color: var(--burgundy); background-size: 100% 1.5px; }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Mobile menu: native <details>, works with no JavaScript. */
.menu { display: none; }
.menu > summary {
  list-style: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; color: var(--burgundy); border: 1.5px solid var(--burgundy);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu[open] > summary { background: var(--burgundy); color: var(--surface); }
.menu__panel {
  position: absolute; right: var(--gutter); top: calc(100% - 4px); width: min(82vw, 320px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px; padding: 10px 18px 18px;
  box-shadow: var(--shadow-menu);
}
.menu__panel a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-weight: 500; }
.menu__panel a[aria-current="page"] { color: var(--burgundy); }
.menu__panel .btn { width: 100%; margin-top: 16px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .mark .mu { height: 38px; }
  .mark__type { height: 26px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--greige-deep); padding-block: 48px 40px; font-size: 15px; }

.site-footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; color: var(--burgundy); }
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--burgundy); transition: background-color .2s var(--ease-out); }
.social a:hover { background: var(--greige); }
.social svg { width: 20px; height: 20px; }
/* The quiet second row: blog, partners, contact. */
.site-footer__more { flex-basis: 100%; padding-top: 22px; border-top: 1px solid var(--hair); }
.site-footer__more ul { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: var(--t-small); color: var(--ink); } /* grey fails AA on the footer ground (4.4:1); the small size keeps it quiet */
.site-footer__more a { display: inline-block; padding-block: 4px; }
.site-footer__more a:hover, .site-footer__more a[aria-current="page"] { color: var(--burgundy); text-decoration: underline; }
@media (max-width: 700px) {
  .site-footer .shell { flex-direction: column; align-items: flex-start; }
  .site-footer__more { align-self: stretch; }
}

/* ==========================================================================
   Section headings
   One weight step per level; never a kicker or eyebrow above a heading.
   ========================================================================== */
.h-section { font-size: var(--t-h2); font-weight: 900; line-height: 1; }
.h-sub { font-size: clamp(26px, 3vw, 44px); font-weight: 900; line-height: 1.05; }
.h-sub + *, .h-section + * { margin-top: clamp(24px, 3vw, 40px); }
.h-sub a, .h-section a { text-decoration: none; display: inline-flex; align-items: center; gap: .3em; }
.h-sub a svg, .h-section a svg { width: .55em; height: .55em; flex: none; transition: transform .25s var(--ease-out); }
.h-sub a:hover, .h-section a:hover { color: var(--burgundy); }
.h-sub a:hover svg, .h-section a:hover svg { transform: translateX(4px); }
.lede { font: 800 clamp(20px, 2vw, 28px)/1.25 var(--font-display); }

/* ==========================================================================
   Page head (inner pages)
   ========================================================================== */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 56px); border-bottom: 0; }
.page-head h1 { font-size: var(--t-h1); font-weight: 900; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
/* Fitted head (matchup_fit() prints the class and --chars, the length of the
   longest word): it shrinks until that word fits its column, so a long
   Mtavruli word never breaks mid-word. FiraGO MT 900 Mtavruli runs .59 to
   .70em per glyph; .74 leaves a margin. cqi reads the h1's own column (its
   parent is the size container); without container units the head keeps
   --t-h1. */
:where(:has(> h1.fit)) { container-type: inline-size; }
h1.fit { font-size: min(var(--t-h1), calc(100cqi / (var(--chars, 10) * .74))); }
.page-head__sub { margin-top: 20px; max-width: 60ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--ink); }

.crumbs { margin-bottom: clamp(18px, 2.2vw, 28px); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--t-micro); line-height: 1.6; color: var(--grey); }
.crumbs li { display: flex; align-items: center; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; opacity: .55; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Prose (editor content)
   ========================================================================== */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: clamp(20px, 1.8vw, 24px); margin-top: 1.6em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--burgundy); }
.prose a { color: var(--burgundy); font-weight: 600; text-decoration: underline; }
.prose blockquote { padding-left: 20px; border-left: 1px solid var(--burgundy); font: 500 clamp(19px, 1.8vw, 24px)/1.4 var(--font-body); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin-block: 2em; }
.prose img, .prose figure { border-radius: var(--radius-paper); }
.prose figcaption { font-size: var(--t-micro); color: var(--grey); margin-top: 8px; }
.prose table { width: 100%; font-size: var(--t-small); }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
.prose :is(code, kbd) { font-size: .9em; background: var(--greige-lift); border-radius: 4px; padding: 1px 5px; }
.prose pre { overflow-x: auto; background: var(--greige-lift); border-radius: var(--radius-paper); padding: 16px 18px; font-size: var(--t-small); line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
/* Editor alignment classes (classic and block content). */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--t-micro); color: var(--grey); line-height: 1.6; margin-top: 8px; }

/* ==========================================================================
   Pagination (matchup_pagination(), wp_link_pages)
   ========================================================================== */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager .page-numbers {
  min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px;
  border-radius: 10px; text-decoration: none; font-weight: 600;
}
.pager a.page-numbers:hover { background: var(--greige-lift); color: var(--burgundy); }
.pager .current { background: var(--burgundy); color: var(--surface); }

/* ==========================================================================
   Disclosure rows: native <details>, ruled by hairlines
   <div class="rows"><details class="row"><summary><span class="row__t">…</span>
   <span class="plus">…</span></summary><div class="row__body">…</div></details></div>
   ========================================================================== */
.plus {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: var(--burgundy); border: 1.5px solid currentColor;
  transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.plus svg { width: 12px; height: 12px; }
details[open] > summary .plus { transform: rotate(45deg); background: var(--burgundy); color: var(--surface); border-color: var(--burgundy); }

.rows > li, .rows > details { border-bottom: 1px solid var(--hair); }
.rows--ruled { border-top: 2px solid var(--rule); }
.row > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 0;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary:hover .row__t { color: var(--burgundy); }
.row__t { font: 700 var(--t-row)/1.3 var(--font-display); transition: color .2s var(--ease-out); }
.rows--questions .row__t { font: 500 clamp(16px, 1.3vw, 18px)/1.4 var(--font-body); }
.row--open .row__t { display: block; padding: 15px 0 6px; }
.row__body { padding: 0 44px 20px 0; color: var(--grey); max-width: var(--measure); }
.row__body p + p { margin-top: .7em; }
.row__body strong { color: var(--ink); }
.row__body a { color: var(--burgundy); font-weight: 600; }

/* ==========================================================================
   Hairline list of links (vacancies, siblings, related pages)
   <ul class="hairlist"><li><a>Title <svg/></a></li></ul>
   ========================================================================== */
.hairlist { border-top: 2px solid var(--rule); }
.hairlist li { border-bottom: 1px solid var(--hair); }
.hairlist a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0;
  text-decoration: none; font: 700 clamp(15px, 1.3vw, 18px)/1.3 var(--font-display);
}
.hairlist a svg { flex: none; width: 18px; height: 18px; color: var(--burgundy); transition: transform .25s var(--ease-out); }
.hairlist a:hover { color: var(--burgundy); }
.hairlist a:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Logo band: white partner marks on one burgundy field, no frames
   ========================================================================== */
.logo-band { background: var(--burgundy); color: var(--on-burgundy); padding-block: clamp(56px, 7vw, 96px); --focus: var(--surface); }
/* The three figures, large: number over label, split by hairlines. */
.logo-band__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin-inline: auto; }
.logo-band__facts li { display: grid; justify-items: center; gap: 10px; padding: 4px clamp(12px, 2vw, 32px); text-align: center; }
.logo-band__facts li + li { border-left: 1px solid rgba(250, 248, 247, .28); }
.logo-band__facts b { font: 900 clamp(64px, 9.2vw, 148px)/.9 var(--font-display); letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.logo-band__facts span { font: 700 clamp(13px, 1.25vw, 18px)/1.35 var(--font-display); letter-spacing: .06em; opacity: .92; text-wrap: balance; }
.logo-band__label { margin: clamp(52px, 6vw, 88px) 0 0; display: flex; align-items: center; gap: 18px; font: 700 13px/1.4 var(--font-display); letter-spacing: .08em; opacity: .85; }
.logo-band__label::before, .logo-band__label::after { content: ""; flex: 1; height: 1px; background: rgba(250, 248, 247, .28); }
.logo-band__label + .logo-band__link { margin-top: clamp(28px, 3.4vw, 44px); }
@media (max-width: 600px) {
  .logo-band__facts li { padding-inline: 4px; min-width: 0; }
  .logo-band__facts b { font-size: 10.6vw; letter-spacing: -.04em; }
  .logo-band__facts span { font-size: 11px; letter-spacing: .02em; }
}
.logo-band__link { display: block; margin-top: clamp(36px, 5vw, 60px); text-decoration: none; border-radius: 8px; }
.logo-band__link:first-child { margin-top: 0; }
.logo-band__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(26px, 3.4vw, 54px) clamp(30px, 4vw, 64px); }
.logo-band__list img { height: var(--h, 40px); width: auto; max-width: 200px; object-fit: contain; opacity: .92; transition: opacity .2s; }
.logo-band__link:hover img { opacity: 1; }
@media (max-width: 700px) {
  .logo-band__list { gap: 22px 30px; }
  .logo-band__list img { height: calc(var(--h, 40px) * .8); max-width: 140px; }
}

/* ==========================================================================
   ID badge: a person as a lanyard card (real portrait, name, role, LinkedIn)
   ========================================================================== */
.id-badges { display: flex; gap: clamp(16px, 3vw, 36px); justify-content: center; flex-wrap: wrap; }
.id-badge {
  position: relative; width: clamp(150px, 40vw, 224px);
  background: var(--surface); border-radius: var(--radius-card);
  padding: 26px 12px 14px;
  box-shadow: var(--shadow-card);
}
.id-badge::before { /* lanyard slot */
  content: ""; position: absolute; top: 9px; left: 50%; width: 44px; height: 8px; margin-left: -22px;
  border-radius: 4px; background: var(--greige-deep); box-shadow: inset 0 1px 2px rgba(38, 34, 32, .35);
}
.id-badge__photo { position: relative; border-radius: 6px; overflow: hidden; background: var(--greige-deep); aspect-ratio: 4 / 5; }
.id-badge__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.id-badge__photo svg { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; --mu-m: var(--surface); --mu-u: var(--surface); filter: drop-shadow(0 1px 2px rgba(38, 34, 32, .5)); }
.id-badge__photo--empty { display: grid; place-items: center; font: 900 40px/1 var(--font-display); color: var(--grey); }
/* The name is an h2 where the badges head a page (/team/), h3 elsewhere. */
.id-badge :is(h2, h3) { margin-top: 12px; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.2; }
.id-badge :is(h2, h3) a { text-decoration: none; }
.id-badge :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.id-badge :is(h2, h3) a:hover { color: var(--burgundy); }
.id-badge p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--grey); }
.id-badge__li {
  position: relative; z-index: 2; display: inline-grid; place-items: center;
  width: 34px; height: 34px; margin-top: 8px; border-radius: 8px; color: var(--burgundy);
}
.id-badge__li:hover { background: var(--greige-lift); }
.id-badge__li svg { width: 18px; height: 18px; }
.id-badge__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--burgundy); border-radius: 0 0 var(--radius-card) var(--radius-card); }

/* ==========================================================================
   Desk cut-out display heading and the clear desk surface
   ========================================================================== */
.desk-cut {
  font-size: var(--t-display); font-weight: 900; line-height: .95; letter-spacing: -.025em;
  text-align: center; color: var(--ink);
  margin-bottom: clamp(28px, 4vw, 48px);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .desk-cut {
    background: url("../images/paper/desk/base.webp") center 50% / cover no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
/* Narrower heads crop the plate less, and its phone (centre) and cup (left)
   would land inside a letter as a black blob. Every object sits in the top
   half of the plate, so below the wide layout the letters read its bottom. */
@media (max-width: 1100px) {
  .desk-cut { background-position: 50% 50%; }
}
.cta { padding-bottom: 0; } /* the desk runs straight into the footer, on every page */
/* The paper desk (owner's choice, style E), cleared: what is left after the
   stage has taken the clutter away. A pen cup, the coffee and glasses at the edge on
   wide screens, where the sheet leaves room for them. */
.desk-surface {
  background: url("../images/paper/desk/base.webp") center 40% / cover no-repeat var(--greige-deep);
  padding: clamp(40px, 7vw, 112px) 16px;
}
@media (min-width: 1180px) {
  .desk-surface {
    background:
      url("../images/paper/desk/pencup.webp") left 6% top 10% / min(10vw, 150px) auto no-repeat,
      url("../images/paper/desk/coffee.webp") left 9% bottom 14% / min(13vw, 200px) auto no-repeat,
      url("../images/paper/desk/glasses.webp") right 4% top 22% / min(17vw, 260px) auto no-repeat,
      url("../images/paper/desk/base.webp") center 40% / cover no-repeat var(--greige-deep);
  }
}

/* ==========================================================================
   Form sheet: a sheet of paper on the clear desk
   ========================================================================== */
.form-sheet {
  max-width: 820px; margin-inline: auto; background: var(--surface); border-radius: var(--radius-paper);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-paper);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form__head { grid-column: 1 / -1; display: grid; gap: 6px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--hair); }
.form__head h3 { font-size: var(--t-h3); font-weight: 900; color: var(--ink); }
.form__head p { color: var(--grey); font-size: var(--t-small); }
.form__req-note { white-space: nowrap; }
.form__req-note .req { color: var(--burgundy); font-weight: 700; }
.form .staging-note { grid-column: 1 / -1; margin: 0; }
.form > :is(input[type="hidden"], .matchup-trap) { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.form__row { display: contents; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); font-weight: 600; }
.field label .req { color: var(--burgundy); }
.field input, .field textarea, .field select {
  font: 400 16px/1.5 var(--font-body); color: var(--ink); width: 100%;
  background: var(--surface); 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, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--burgundy); background: var(--greige-lift); box-shadow: 0 2px 0 0 var(--burgundy); }
.field :is(input, textarea):user-invalid,
.field [aria-invalid="true"] { border-bottom-color: var(--burgundy); background: rgba(115, 47, 62, .07); }
.field__err { margin: 0; font-size: var(--t-micro); font-weight: 600; line-height: 1.45; color: var(--burgundy-deep); }
.field__err:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.form__foot .btn { min-width: 240px; }
.form__consent { flex: 1 1 280px; font-size: var(--t-micro); line-height: 1.55; color: var(--grey); }
.form__consent a { text-decoration: underline; }
.form__consent a:hover { color: var(--burgundy); }
.form__ok { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; border-radius: 8px; }
.form__ok[data-state="idle"] { margin-top: -20px; } /* stays in the tree as a live region; cancels the grid gap while empty */
.form__ok[data-state="error"] { padding: 14px 16px; border: 1px solid var(--burgundy); background: rgba(115, 47, 62, .07); color: var(--burgundy-deep); }
.form__ok[data-state="ok"] { padding: 14px 16px; border: 1px solid var(--hair); background: var(--greige-lift); }
.form__ok-ico svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.form__ok-ico:empty { display: none; }
.matchup-trap { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form--offline { display: grid; gap: 14px; }
.form--offline h3 { font-size: clamp(22px, 2.4vw, 30px); }
.form--offline p { color: var(--grey); max-width: 46ch; }
.form__direct { display: flex; flex-wrap: wrap; gap: 12px; }
.consultation-embed .matchup-form { border: 0; padding: 0; background: none; }
@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; min-width: 0; }
}

/* ==========================================================================
   matchup-core forms: the Bitrix24 embed (vacancy application, and the
   consultation route in cta.php when a CRM form is set), its loading,
   fallback and no-JS states, and the plugin's buttons. The plugin's own
   vacancy.css loads only on vacancy pages and loads first.
   ========================================================================== */
.matchup-form__title { font: 900 var(--t-h3)/1.1 var(--font-display); color: var(--ink); margin: 0 0 clamp(16px, 2vw, 24px); }
.matchup-form__intro { color: var(--grey); margin: 0 0 16px; max-width: 46ch; }
.matchup-form__embed:not([data-matchup-state="nojs"]) { min-height: 160px; }
.matchup-form__placeholder { border: 0; border-top: 2px solid var(--rule); border-radius: 0; background: none; padding: 18px 0 0; }
.matchup-form__loading { color: var(--grey); font-size: var(--t-small); margin: 0; }
.matchup-form__trigger {
  min-height: 44px; margin-top: 12px; padding: 0 20px; border-radius: var(--radius-btn); font: 600 15px/1.2 var(--font-body);
  background: transparent; color: var(--burgundy); border: 1.5px solid var(--burgundy);
}
.matchup-form__trigger:hover { background: var(--burgundy); color: var(--surface); }
.matchup-form__actions { margin: 0; }
.matchup-form__direct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; }
.matchup-form__direct a { color: var(--burgundy); font-weight: 600; }
.matchup-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--burgundy); border-radius: var(--radius-btn);
  background: var(--burgundy); color: var(--surface); font: 600 15px/1.2 var(--font-body); text-decoration: none;
}
.matchup-button:hover, .matchup-button:focus-visible { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--surface); }

/* Bitrix24 draws its own frame (side bars, greige fill, a repeat of the
   title). On the sheet it sits flat; fields and logic are untouched. */
.matchup-form .b24-form-wrapper { border: 0 !important; background: none !important; box-shadow: none !important; max-width: none !important; }
.matchup-form .b24-form-header { display: none !important; }
.matchup-form .b24-form-padding-side { padding-left: 0 !important; padding-right: 0 !important; }
.matchup-form .b24-form-content { padding-top: 0 !important; }
.matchup-form .b24-form,
.matchup-form .b24-form :is(input, select, textarea, button, label, .b24-form-control, .b24-form-control-label, .b24-form-field-agreement-link, .b24-form-btn) { font-family: var(--font-body) !important; }
.matchup-form .b24-form-sign { padding-left: 0 !important; padding-right: 0 !important; }
/* Its fields drawn like the consultation form: no fill, no radius, one
   bottom hairline, ink labels. Bitrix injects its stylesheet at runtime,
   after ours, so the properties it sets need !important. */
.matchup-form .b24-form-control:not(.b24-form-control-file-button) {
  background: transparent !important; border: 0 !important; border-bottom: 1.5px solid rgba(38, 34, 32, .35) !important;
  border-radius: 0 !important; box-shadow: none !important; color: var(--ink) !important; padding-left: 2px !important;
}
.matchup-form .b24-form-control:not(.b24-form-control-file-button):hover { border-bottom-color: var(--ink) !important; }
.matchup-form .b24-form-control:not(.b24-form-control-file-button):focus { outline: none; border-bottom-color: var(--burgundy) !important; background: var(--greige-lift) !important; box-shadow: 0 2px 0 0 var(--burgundy) !important; }
.matchup-form .b24-form-control-label { color: var(--grey) !important; opacity: 1 !important; padding-left: 2px !important; } /* Bitrix idles it at .5 (3.3:1) */
.matchup-form .b24-form-control-required { color: var(--burgundy) !important; }
.matchup-form :is(.b24-form-field-file, .b24-form-control-filelist, .b24-form-control-file .b24-form-control-container) { background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.matchup-form .b24-form-field-file { padding-inline: 0 !important; }
.matchup-form .b24-form-control-file .b24-form-control-container { border-bottom: 1.5px solid rgba(38, 34, 32, .35) !important; padding: 6px 0 12px !important; }
.matchup-form .b24-form-control-file-button {
  background: transparent !important; color: var(--burgundy) !important; border: 1.5px solid var(--burgundy) !important;
  border-radius: 10px !important; box-shadow: none !important;
}
.matchup-form .b24-form-control-file-button:hover { background: var(--burgundy) !important; color: var(--surface) !important; }
.matchup-form :is(.b24-form-control-desc, .b24-form-field-agreement-link) { color: var(--ink) !important; }
.matchup-form .b24-form-control-alert-message { background: var(--burgundy-deep) !important; color: var(--surface) !important; }
.matchup-form .b24-form-control-alert-message::before { display: none !important; } /* Bitrix's orange pointer */
.matchup-form .b24-form-btn { border-radius: var(--radius-btn) !important; }

/* ==========================================================================
   Line arrow used in links (inline SVG from matchup_arrow())
   ========================================================================== */
.arrow { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   FAQ: heading and a way out on the left, the questions on the right.
   The open question is lifted onto paper with a burgundy edge; closed ones
   stay plain rows.
   ========================================================================== */
.faq-sec__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.faq-sec__aside { position: sticky; top: 32px; display: grid; gap: 18px; justify-items: start; }
.faq-sec__aside .h-section + * { margin-top: 4px; }
.faq-sec__aside p { color: var(--grey); max-width: 34ch; }
.faq__list { display: grid; gap: 6px; }
.faq__q { border-radius: var(--radius-paper); border-bottom: 1px solid var(--hair); transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.faq__q > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; }
.faq__q > summary::-webkit-details-marker { display: none; }
.faq__t { font: 500 clamp(16px, 1.3vw, 19px)/1.4 var(--font-body); color: var(--ink); transition: color .2s var(--ease-out); }
.faq__q > summary:hover .faq__t { color: var(--burgundy); }
.faq__a { padding: 0 64px 24px 4px; color: var(--ink); max-width: var(--measure); }
.faq__a p + p { margin-top: .7em; }
.faq__a a { color: var(--burgundy); font-weight: 600; }
.faq__q[open] {
  border-bottom-color: transparent; background: var(--surface);
  box-shadow: inset 4px 0 0 var(--burgundy), var(--shadow-card);
}
.faq__q[open] > summary { padding: 22px 24px 12px 28px; }
.faq__q[open] .faq__t { font-family: var(--font-display); font-weight: 800; color: var(--burgundy); }
.faq__q[open] .faq__a { padding: 0 64px 26px 28px; }
@media (max-width: 900px) {
  .faq-sec__grid { grid-template-columns: 1fr; }
  .faq-sec__aside { position: static; }
  .faq__a, .faq__q[open] .faq__a { padding-right: 20px; }
  .faq__q[open] > summary { padding: 18px 16px 10px 20px; }
  .faq__q[open] .faq__a { padding-left: 20px; }
}

/* ==========================================================================
   Vacancy card: a picture (her paper-cut scene, or a cut-paper placeholder),
   title, place and pay, deadline. Front page (.vac-grid) and /vacancies/.
   ========================================================================== */
.vac-grid, .u-body .u-vacs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.6vw, 36px); border-top: 0; }
.u-body .u-vacs { margin-top: clamp(8px, 2vw, 24px); }
.vac-card { min-width: 0; border: 0; }
.vac-card > a {
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.vac-card > a:hover { transform: translateY(-4px); box-shadow: 0 26px 36px -20px rgba(38, 34, 32, .55), 0 2px 4px rgba(38, 34, 32, .16); }
.vac-card__pic { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--greige-deep); overflow: hidden; }
.vac-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.vac-card > a:hover .vac-card__pic img { transform: scale(1.035); }
.vac-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--greige-deep); }
.vac-card__ph::before, .vac-card__ph::after { content: ""; position: absolute; border-radius: var(--radius-paper); box-shadow: 0 10px 16px -10px rgba(36, 20, 8, .45); }
.vac-card__ph::before { width: 54%; height: 62%; background: var(--greige-lift); transform: rotate(-4deg); }
.vac-card__ph::after { width: 50%; height: 58%; background: var(--surface); transform: rotate(2deg); }
.vac-card__ph img { position: relative; z-index: 1; width: 56px; height: auto; transform: none !important; }
.vac-card__text { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); }
.vac-card__t { font-size: clamp(19px, 1.6vw, 23px); font-weight: 900; line-height: 1.12; transition: color .2s var(--ease-out); }
.vac-card > a:hover .vac-card__t { color: var(--burgundy); }
.vac-card__m { display: grid; gap: 2px; font-size: var(--t-small); line-height: 1.5; color: var(--grey); }
.vac-card__pay { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.vac-card__bonus { color: var(--burgundy); font-weight: 600; }
.vac-card__pic--square { aspect-ratio: 1 / 1; }
.vac-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: var(--t-micro); }
.vac-card__until { color: var(--grey); }
.vac-card__go { display: inline-flex; align-items: center; gap: .4em; margin-left: auto; color: var(--burgundy); font-weight: 600; font-size: var(--t-small); }
.vac-card__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.vac-card > a:hover .vac-card__go svg { transform: translateX(4px); }
.vac-card__closed { align-self: flex-start; font-size: var(--t-micro); font-weight: 700; color: var(--burgundy); }
.vac-card.is-closed .vac-card__pic { filter: grayscale(1); opacity: .7; }
.vac-card.is-closed .vac-card__t { color: var(--grey); }
@media (prefers-reduced-motion: reduce) {
  .vac-card > a:hover, .vac-card > a:hover .vac-card__pic img { transform: none; }
}
