@layer fonts, reset, tokens, base, layout, nav, components, pages, utils;

/* ============================================================
   ПОРОДА — ресторанная группа
   Базальт, известняк, рудная жила. Никаких коробок и теней:
   структуру держат волосяные линии, крупная типографика и воздух.
   ============================================================ */

@layer fonts {
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-normal-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/inter-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-normal-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-italic-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body { margin: 0; }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  input, textarea, select { font: inherit; color: inherit; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
  h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .01ms !important; animation-iteration-count: 1 !important;
      transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
  }
}

@layer tokens {
  :root {
    /* порода */
    --basalt:      #0f1113;
    --basalt-2:    #14171a;
    --basalt-3:    #1b1f23;
    --limestone:   #ece7dd;
    --limestone-2: #cfcabf;
    --stone:       #8b8b84;
    --stone-dim:   #6a6a64;
    --vein:        #b9793c;
    --vein-bright: #d8954f;

    --line:      rgba(236, 231, 221, .14);
    --line-soft: rgba(236, 231, 221, .07);

    /* характеры четырёх */
    --gem:    #c9761c;
    --lava:   #e8542f;
    --farina: #94a2a9;
    --dnk:    #d81f1a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', 'Times New Roman', serif;

    --step--1: clamp(.8rem, .77rem + .14vw, .875rem);
    --step-0:  clamp(.94rem, .9rem + .2vw, 1.03rem);
    --step-1:  clamp(1.1rem, 1rem + .45vw, 1.35rem);
    --step-2:  clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem);
    --step-3:  clamp(1.9rem, 1.35rem + 2.4vw, 3.4rem);
    --step-4:  clamp(2.6rem, 1.4rem + 5vw, 6rem);
    --step-5:  clamp(3.2rem, 1.1rem + 8.6vw, 9.5rem);

    --container: 1320px;
    --gutter: clamp(20px, 4.4vw, 60px);
    --section: clamp(58px, 9.5vw, 148px);

    --ease: cubic-bezier(.22, .68, 0, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);
  }
}

@layer base {
  html { background: var(--basalt); overflow-x: clip; }
  body {
    background: var(--basalt);
    color: var(--limestone-2);
    font-family: var(--font);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  ::selection { background: var(--vein); color: var(--basalt); }
  :focus-visible { outline: 2px solid var(--vein-bright); outline-offset: 3px; border-radius: 2px; }

  h1, h2, h3, h4 { color: var(--limestone); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; }

  .display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.03em;
  }
  .display em { font-style: italic; color: var(--vein-bright); }

  .eyebrow {
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--stone);
    font-weight: 500;
  }
  .eyebrow--vein { color: var(--vein); }

  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--limestone-2); letter-spacing: -.012em; }
  .muted { color: var(--stone); }
  .num {
    font-variant-numeric: tabular-nums;
    font-size: var(--step--1);
    letter-spacing: .16em;
    color: var(--stone-dim);
  }
}

@layer layout {
  .shell { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .section { padding-block: var(--section); }
  .section--tight { padding-block: clamp(38px, 5.6vw, 88px); }
  .rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

  .grid { display: grid; gap: clamp(24px, 3.4vw, 56px); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  @media (max-width: 900px) {
    .grid--2, .grid--3, .grid--split { grid-template-columns: minmax(0, 1fr); }
  }

  .stack > * + * { margin-top: var(--stack, 20px); }
  .stack--s { --stack: 12px; }
  .stack--l { --stack: 32px; }

  .skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--limestone); color: var(--basalt);
    padding: 10px 18px; border-radius: 2px; font-size: var(--step--1);
    transition: top .2s var(--ease);
  }
  .skip:focus { top: 12px; }
}

@layer nav {
  .head {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--basalt) 86%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease-soft), background .3s var(--ease-soft);
  }
  .head[data-scrolled='true'] { border-bottom-color: var(--line-soft); }
  .head__inner {
    display: flex; align-items: center; gap: clamp(18px, 3vw, 48px);
    min-height: 78px;
  }
  .brand { display: flex; align-items: center; gap: 13px; min-height: 44px; color: var(--limestone); }
  .brand__mark { width: 26px; height: 26px; flex: none; color: var(--limestone); }
  .brand__mark .facet-1 { fill: var(--vein); }
  .brand__name {
    font-size: 15px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase;
    padding-left: .34em;
  }
  .nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
  .nav__link {
    font-size: var(--step--1); letter-spacing: .04em; color: var(--limestone-2);
    padding-block: 6px; position: relative;
  }
  .nav__link::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: var(--vein); transition: right .38s var(--ease);
  }
  .nav__link:hover::after, .nav__link[aria-current='page']::after { right: 0; }
  .nav__link[aria-current='page'] { color: var(--limestone); }

  .burger { display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; position: relative; }
  .burger span {
    position: absolute; left: 5px; right: 5px; height: 1px; background: var(--limestone);
    transition: transform .34s var(--ease), opacity .2s;
  }
  .burger span:nth-child(1) { top: 18px; }
  .burger span:nth-child(2) { top: 25px; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  .drawer {
    position: fixed; inset: 78px 0 0; z-index: 55;
    background: var(--basalt); padding: clamp(28px, 7vw, 64px) var(--gutter);
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease-soft), transform .4s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
  body.menu-open { overscroll-behavior: contain; }
  .drawer a {
    font-family: var(--font-display); font-size: var(--step-2); color: var(--limestone);
    padding-block: 12px; border-bottom: 1px solid var(--line-soft);
  }
  .drawer__foot { margin-top: auto; padding-top: 32px; color: var(--stone); font-size: var(--step--1); }

  @media (max-width: 860px) {
    .nav { display: none; }
    .burger { display: block; }
  }
}

@layer components {
  /* — кнопки — */
  .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 14px 26px; border-radius: 999px;
    font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
    border: 1px solid var(--line);
    transition: background .32s var(--ease-soft), color .32s var(--ease-soft),
                border-color .32s var(--ease-soft), transform .32s var(--ease);
    will-change: transform;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn--solid { background: var(--limestone); color: var(--basalt); border-color: var(--limestone); }
  .btn--solid:hover { background: var(--vein); border-color: var(--vein); color: var(--basalt); }
  .btn--ghost { color: var(--limestone); }
  .btn--ghost:hover { border-color: var(--limestone); background: rgba(236,231,221,.06); }
  .btn--vein { background: var(--vein); border-color: var(--vein); color: var(--basalt); }
  .btn--vein:hover { background: var(--vein-bright); border-color: var(--vein-bright); }
  .btn__arrow { transition: transform .34s var(--ease); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  @media (max-width: 860px) { .head .btn { display: none; } }

  .link-line {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
    color: var(--limestone); padding-bottom: 5px; border-bottom: 1px solid var(--line);
    transition: border-color .3s var(--ease-soft), color .3s var(--ease-soft), gap .3s var(--ease);
  }
  .link-line:hover { border-color: currentColor; gap: 16px; }

  /* — герой — */
  .hero { position: relative; overflow: clip; padding-block: clamp(76px, 13vw, 168px) clamp(56px, 8vw, 108px); }
  .hero::before {
    content: ''; position: absolute; inset: -20% -10% auto 30%; height: 90vh; z-index: -1;
    background: radial-gradient(45% 50% at 60% 30%, rgba(185,121,60,.16), transparent 70%);
    pointer-events: none;
  }
  .hero__title { font-size: var(--step-5); max-width: 15ch; }
  .hero__meta {
    margin-top: clamp(34px, 5vw, 62px);
    display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 64px); align-items: flex-end;
    border-top: 1px solid var(--line-soft); padding-top: 26px;
  }
  .hero__meta p { max-width: 46ch; }

  /* — счётчики фактов — */
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
  .facts__item { background: var(--basalt); padding: clamp(22px, 3vw, 38px) clamp(16px, 2.2vw, 30px); }
  .facts__val { font-family: var(--font-display); font-size: var(--step-3); color: var(--limestone); line-height: 1; }
  .facts__key { margin-top: 10px; font-size: var(--step--1); color: var(--stone); letter-spacing: .04em; }
  @media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }

  /* — карточки ресторанов — */
  .venues { border-top: 1px solid var(--line-soft); }
  .venue {
    --tint: var(--vein);
    position: relative; display: block;
    border-bottom: 1px solid var(--line-soft);
    padding-block: clamp(30px, 4.2vw, 54px);
    transition: background .5s var(--ease-soft);
  }
  .venue::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 13%, transparent), transparent 62%);
    opacity: 0; transition: opacity .5s var(--ease-soft);
  }
  .venue:hover::before, .venue:focus-visible::before { opacity: 1; }
  .venue__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 62px minmax(0, 4fr) minmax(0, 5fr) auto;
    gap: clamp(16px, 2.6vw, 40px); align-items: center;
  }
  .venue__num { color: var(--stone-dim); font-variant-numeric: tabular-nums; font-size: var(--step--1); letter-spacing: .14em; }
  .venue__name {
    font-family: var(--font-display); font-size: var(--step-3); color: var(--limestone);
    line-height: 1; transition: color .4s var(--ease-soft);
  }
  .venue:hover .venue__name { color: var(--tint); }
  .venue__kind { margin-top: 12px; font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
  .venue__desc { color: var(--limestone-2); max-width: 52ch; }
  .venue__hours { margin-top: 12px; font-size: var(--step--1); color: var(--stone); }
  .venue__go {
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--limestone);
    transition: background .4s var(--ease-soft), border-color .4s var(--ease-soft),
                color .4s var(--ease-soft), transform .4s var(--ease);
  }
  .venue:hover .venue__go { background: var(--tint); border-color: var(--tint); color: var(--basalt); transform: rotate(-45deg); }
  @media (max-width: 900px) {
    /* Мобильная карточка: номер и стрелка в одну строку, под ними имя и текст */
    .venue { padding-block: 26px; }
    .venue__inner {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start; column-gap: 16px; row-gap: 12px;
    }
    .venue__num  { grid-area: 1 / 1; align-self: center; color: var(--tint); }
    .venue__go   { grid-area: 1 / 2; justify-self: end; width: 44px; height: 44px; }
    .venue__head { grid-area: 2 / 1 / 3 / -1; }
    .venue__body { grid-area: 3 / 1 / 4 / -1; }
    .venue__kind { margin-top: 8px; }
    .venue__desc { max-width: none; }
    /* без наведения подсветку даёт сама карточка */
    .venue::before { opacity: .5; background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 10%, transparent), transparent 55%); }
    .venue:active::before { opacity: 1; }
  }
  @media (max-width: 560px) { .venue__go { width: 40px; height: 40px; } }

  /* — текстовые блоки — */
  .manifesto p + p { margin-top: 1.2em; }
  .manifesto .display { font-size: var(--step-3); max-width: 20ch; }

  .pull {
    font-family: var(--font-display); font-style: italic;
    font-size: var(--step-2); color: var(--limestone); line-height: 1.28; letter-spacing: -.02em;
    padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--vein);
  }

  /* — список «строки» — */
  .rows { border-top: 1px solid var(--line-soft); }
  .row {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: clamp(12px, 3vw, 44px);
    padding-block: clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--line-soft);
  }
  .row__k { color: var(--stone); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; padding-top: .35em; }
  @media (max-width: 700px) { .row { grid-template-columns: minmax(0,1fr); } }

  /* — карта — */
  .map { border: 1px solid var(--line-soft); aspect-ratio: 16 / 9; width: 100%; filter: grayscale(1) contrast(.86) brightness(.78); }
  @media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

  /* — форма — */
  .field { display: block; }
  .field__label { display: block; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
  .field input, .field textarea, .field select {
    width: 100%; background: transparent; color: var(--limestone);
    border: 0; border-bottom: 1px solid var(--line); padding: 12px 0;
    transition: border-color .3s var(--ease-soft);
  }
  .field input::placeholder, .field textarea::placeholder { color: var(--stone-dim); }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--vein); }
  .field select option { background: var(--basalt-3); color: var(--limestone); }
  .field textarea { resize: vertical; min-height: 96px; }
  .field[data-invalid='true'] input, .field[data-invalid='true'] textarea { border-bottom-color: #e0563f; }
  .field__err { display: none; margin-top: 8px; font-size: var(--step--1); color: #e0563f; }
  .field[data-invalid='true'] .field__err { display: block; }

  .consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); color: var(--stone); }
  .consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--vein); }
  .form__note { font-size: var(--step--1); color: var(--stone); }
  .form__ok {
    display: none; padding: 16px 20px; border: 1px solid var(--vein);
    color: var(--limestone); font-size: var(--step--1);
  }
  form[data-sent='true'] .form__ok { display: block; }

  /* — подвал — */
  .foot { border-top: 1px solid var(--line-soft); padding-block: clamp(48px, 6vw, 84px) 36px; }
  .foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: clamp(28px, 3vw, 48px); }
  .foot__col h3 { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 18px; }
  .foot__col li + li { margin-top: 10px; }
  .foot__col a:hover { color: var(--vein-bright); }
  .foot__legal {
    margin-top: clamp(38px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-soft);
    display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between;
    font-size: var(--step--1); color: var(--stone-dim);
  }
  @media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 520px) { .foot__grid { grid-template-columns: minmax(0,1fr); } }
  /* пальцем по ссылке нужно попадать: на узких экранах растим строки списков */
  @media (max-width: 860px) {
    .foot__col li + li { margin-top: 0; }
    .foot__col li a { display: inline-flex; align-items: center; min-height: 42px; }
    .foot__col h3 { margin-bottom: 8px; }
    .link-line { padding-block: 8px; }
    .foot__legal { gap: 4px 24px; }
    .foot__legal a { display: inline-flex; align-items: center; min-height: 38px; }
    .consent { gap: 14px; }
  }

  /* — появление — */
  /* Блоки прячутся только после того, как скрипт подтвердил, что умеет их показать:
     класс reveal-ready ставит app.js. Без скрипта и при сбое наблюдателя текст виден. */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-soft), transform .9s var(--ease); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
  .reveal-ready [data-reveal][data-delay='1'] { transition-delay: .08s; }
  .reveal-ready [data-reveal][data-delay='2'] { transition-delay: .16s; }
  .reveal-ready [data-reveal][data-delay='3'] { transition-delay: .24s; }
  @media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; transform: none; } }
}

@layer pages {
  /* — страница фирменного стиля — */
  .logo-box {
    display: grid; place-items: center; min-height: 220px; padding: 36px;
    border: 1px solid var(--line-soft);
  }
  .logo-box--dark { background: var(--basalt-2); color: var(--limestone); }
  .logo-box--light { background: var(--limestone); color: var(--basalt); }
  .logo-box--vein { background: var(--vein); color: var(--basalt); }
  .logo-box svg { width: min(260px, 100%); height: auto; }
  .logo-box--mark svg { width: 96px; }
  .logo-box__cap { grid-column: 1 / -1; }

  .swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line-soft); }
  .swatch { background: var(--basalt); padding: 0; }
  .swatch__chip { height: 92px; border-bottom: 1px solid var(--line-soft); }
  .swatch__body { padding: 14px 16px 20px; }
  .swatch__name { color: var(--limestone); font-size: var(--step--1); }
  .swatch__hex { font-size: var(--step--1); color: var(--stone); font-variant-numeric: tabular-nums; letter-spacing: .06em; }

  .dont { color: var(--stone); }
  .dont li { padding-left: 24px; position: relative; }
  .dont li + li { margin-top: 10px; }
  .dont li::before { content: '✕'; position: absolute; left: 0; color: #e0563f; font-size: .9em; }
  .do li { padding-left: 24px; position: relative; }
  .do li + li { margin-top: 10px; }
  .do li::before { content: '✓'; position: absolute; left: 0; color: var(--vein); font-size: .9em; }

  /* — вакансии — */
  .job { border-bottom: 1px solid var(--line-soft); padding-block: clamp(22px, 3vw, 34px); }
  .job__top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; }
  .job__title { font-family: var(--font-display); font-size: var(--step-2); color: var(--limestone); }
  .job__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .tag {
    font-size: var(--step--1); letter-spacing: .08em; color: var(--stone);
    border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 13px;
  }

  /* — 404 — */
  .err { min-height: 68vh; display: grid; align-content: center; }
  .err__code { font-family: var(--font-display); font-size: var(--step-5); color: var(--limestone); line-height: .9; }

  /* — правовой текст — */
  .legal { max-width: 74ch; }
  .legal h2 { font-size: var(--step-2); margin-top: 2em; font-family: var(--font-display); }
  .legal h3 { font-size: var(--step-1); margin-top: 1.6em; color: var(--limestone); }
  .legal p, .legal li { margin-top: .85em; }
  .legal ul li { padding-left: 20px; position: relative; }
  .legal ul li::before { content: '—'; position: absolute; left: 0; color: var(--stone-dim); }
}

@layer utils {
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .center { text-align: center; }
  .mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: clamp(40px, 5vw, 72px); }
  .maxw-s { max-width: 46ch; } .maxw-m { max-width: 62ch; }
  .tint-gem { --tint: var(--gem); } .tint-lava { --tint: var(--lava); }
  .tint-farina { --tint: var(--farina); } .tint-dnk { --tint: var(--dnk); }
}
