/* ==========================================================================
   «Как нанимать лучших» — Нью-Йорк
   Дизайн-код снят с performia-cis.ru: шрифт Euclid Square, светло-серый фон
   #F4F4F4, белые карточки с радиусом 25px, оранжевые кнопки-пилюли #F2994A,
   серая «подложка» под словами в заголовках, тёмно-синие блоки #00153D/#2B384B.
   ========================================================================== */

@font-face { font-family: "Euclid Square"; src: url("/eventny/assets/fonts/euclid-square-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Euclid Square"; src: url("/eventny/assets/fonts/euclid-square-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Euclid Square"; src: url("/eventny/assets/fonts/euclid-square-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Euclid Square"; src: url("/eventny/assets/fonts/euclid-square-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* поверхности */
  --bg: #f4f4f4;
  --surface: #ffffff;
  --pill: #e9e9e9;            /* подложка под словом в заголовке */
  --line: #e4e4e4;

  /* текст */
  --ink: #001e3d;             /* заголовки */
  --text: #17171a;
  --text-2: #535353;
  --muted: #757575;

  /* тёмные */
  --navy: #00153d;
  --navy-2: #001e3d;
  --slate: #2b384b;
  --slate-2: #3d475b;
  --steel: #3a6485;

  /* акценты */
  --orange: #f2994a;
  --orange-hover: #e8832c;
  --orange-soft: #fff1e4;
  --orange-grad: linear-gradient(95deg, #ffc17c 0%, #ffaa4d 51%, #ed912c 100%);
  --sky: #99bdd2;
  --sky-soft: #e6eff4;
  --cyan: #01c2ff;
  --blue: #2f80ed;
  --green: #62c584;
  --red: #f95d51;

  /* форма */
  --r-sm: 10px;
  --r-md: 20px;
  --r: 25px;
  --r-lg: 30px;
  --r-pill: 999px;
  --shadow: 0 0 50px rgba(144, 144, 144, .2);
  --shadow-lift: 0 18px 50px rgba(0, 21, 61, .14);

  --container: 1320px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 64px;

  --font: "Euclid Square", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--ink); letter-spacing: -.02em; line-height: 1.12; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end; column-gap: 64px;
}
.section-head__lead { color: var(--text-2); font-size: 18px; max-width: 560px; }
.section--dark .section-head__lead { color: rgba(255, 255, 255, .72); }

/* ---------- типографика ---------- */

.h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.nowrap { white-space: nowrap; }

/* Серая подложка под словом — фирменный приём «Перформии».
   Фон обычного строчного элемента занимает всю высоту шрифта, а у Euclid Square
   она сильно больше букв (ascent 1em при заглавных .71em): подложка залезала
   на строку выше, слово в ней оседало вниз. Поэтому здесь inline-block
   со своей высотой строки .9em — базовая линия внутри на .816em от верха —
   и паддингами, которые дают подложку ровно от .84em над базовой линией
   (заглавные + .13em) до .28em под ней (выносные + .08em).
   Отрицательные поля: по вертикали — строка не раздувается, по горизонтали —
   текст стоит по колонке, а подложка выступает, как на сайте «Перформии». */
.hl {
  display: inline-block;
  line-height: .9;
  padding: .025em .18em .195em;
  margin: -.3em -.14em;
  border-radius: 999px;
  background: var(--pill);
  white-space: nowrap;
}
.hl--white { background: var(--surface); }
.hl--dark { background: rgba(255, 255, 255, .1); }
.hl--orange { background: var(--orange); color: #fff; }
.hl--sky { background: var(--cyan); color: #fff; }

/* подпись раздела в оранжевых скобках: ( Отзывы ) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 1; font-weight: 400; color: var(--text);
  letter-spacing: .01em;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 7px; height: 17px; flex: none;
  border: 2px solid var(--orange); border-radius: 17px 0 0 17px; border-right: 0;
}
.eyebrow::after { transform: scaleX(-1); }
.section--dark .eyebrow, .eyebrow--light { color: rgba(255, 255, 255, .85); }

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 34px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 17px; font-weight: 500; line-height: 1.15; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(242, 153, 74, .32); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lg { min-height: 68px; padding: 0 42px; font-size: 18px; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1px solid rgba(0, 30, 61, .22); }
.btn--ghost:hover { --btn-bg: var(--surface); box-shadow: none; border-color: var(--ink); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border: 1px solid rgba(255, 255, 255, .38); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); box-shadow: none; border-color: #fff; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white:hover { --btn-bg: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #0a2c52; box-shadow: 0 12px 28px rgba(0, 30, 61, .25); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* круглая кнопка со стрелкой рядом с основной — как на главной «Перформии» */
.btn-circle {
  display: inline-grid; place-items: center; flex: none;
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--orange); color: var(--orange);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-circle:hover { background: var(--orange); color: #fff; transform: rotate(-45deg); }
.btn-circle svg { width: 20px; height: 20px; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* маленькая серая пилюля «Подробнее ↘» */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--text); font-size: 13px; font-weight: 400;
}
.chip svg { width: 14px; height: 14px; }

/* цветная метка-пилюля */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--cyan); color: #fff; font-size: 15px; font-weight: 500; line-height: 1;
}
.tag--orange { background: var(--orange); }
.tag--line { background: transparent; color: var(--sky); border: 1.5px solid var(--sky); }
.tag--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }

/* ---------- карточки ---------- */

.card { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.6vw, 36px); }
.card--shadow { box-shadow: var(--shadow); }
.card--dark { background: var(--slate-2); color: #fff; }
.card--dark h3 { color: #fff; }

/* номер-кружок у края карточки (раздел «Подходит вам, если») */
.num-dot {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
  box-shadow: 0 0 0 5px var(--bg);
}

/* иконка в светлом круге */
.icon-bubble {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); color: var(--orange); flex: none;
}
.icon-bubble svg { width: 26px; height: 26px; }

/* ---------- формы ---------- */

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); padding-left: 22px; }
.input, .select {
  width: 100%; min-height: 58px; padding: 0 22px;
  border: 1px solid #dcdcdc; border-radius: var(--r-pill);
  background: #fff; font-size: 16px; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #9a9a9a; }
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 153, 74, .18); }
.input.is-invalid, .select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(249, 93, 81, .12); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23001e3d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 22px center; padding-right: 48px;
}
.field__error { font-size: 13px; color: var(--red); padding-left: 22px; min-height: 0; }
.consent { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent a { color: var(--orange); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }

/* ---------- черновик: подсветка того, что ещё надо заполнить ---------- */
body.is-draft .ph {
  background: #fff4a8; color: #5a4a00; border-radius: 4px; padding: 0 .2em;
  outline: 1px dashed #d9b400; outline-offset: 1px;
}
body.is-draft .ph-block { outline: 2px dashed #d9b400; outline-offset: 6px; }
/* Неподтверждённое, что нельзя показывать как факт: видно только в режиме черновика (?draft) */
body:not(.is-draft) .ph-only { display: none !important; }
body.is-draft .clean-only { display: none !important; }

/* ---------- анимации появления ----------
   Сдвиг через translate, а не transform, чтобы не спорить с hover-эффектами
   карточек. Список transition перечисляет и их свойства: иначе правило
   карточки перетёрло бы плавное появление. */
.js .reveal {
  opacity: 0; translate: 0 26px;
  transition:
    opacity .8s var(--ease) calc(var(--d, 0) * 70ms),
    translate .8s var(--ease) calc(var(--d, 0) * 70ms),
    transform .35s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease),
    box-shadow .35s var(--ease), border-radius .35s var(--ease), color .3s var(--ease);
}
.js .reveal.is-in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
