/* Шаблон лендинга: стили из prototype/index.html. Цвета и шрифт клиента —
   переменные :root, их ставит страница (App\Support\Sites\Theme). */
  /* Цвета клиента ставит applyClient() из двух цветов в CLIENTS: остальные
     оттенки считаются сами. Здесь — запасные значения.
     --brand-strong — цвет текста и иконок на светлом фоне (читается),
     --btn-bg / --btn-ink — залитые кнопки и метки (на светлом бренде текст тёмный). */
  :root {
    --brand: #008F32;
    --brand-strong: #00862F;
    --btn-bg: #00862F;
    --btn-ink: #FFFFFF;
    --brand-soft: #DBF0E2;
    --brand-hl: rgba(0, 143, 50, .28);
    --accent: #EB2316;
    --wordmark: #EB2316;
    --font: Manrope;
    --ink: #17191C;
    --ink-2: #474B52;
    --muted: #6B7079;
    --line: #E1E4E6;
    --bg: #F4F5F4;
    --field: #F8F8F8;
    --card: #FFFFFF;
    --danger: #C62828;
    --r-l: 28px;
    --r-m: 20px;
    --r-s: 14px;
    --shadow: 0 1px 2px rgba(22, 25, 15, .04), 0 10px 30px rgba(22, 25, 15, .06);
    color-scheme: light;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 500 16px/1.5 var(--font), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
  p { margin: 0; }
  svg { flex-shrink: 0; }
  :focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


  /* Шапка */
  .top {
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--wordmark); }
  .logo img { height: 34px; width: auto; display: block; }
  .logo-plate { display: inline-flex; padding: 6px 10px; border-radius: 8px; }
  .logo-plate img { height: 26px; }
  .call {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
    border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
    color: var(--brand-strong); font-weight: 700; font-size: 15px; text-decoration: none;
  }
  @media (max-width: 420px) {
    .call { width: 44px; padding: 0; justify-content: center; }
    .call span { display: none; }
  }

  /* Кнопки */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 24px; border-radius: 16px; border: 2px solid transparent;
    font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .15s, filter .15s;
  }
  .btn:active { transform: scale(.98); }
  .btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 20px -8px var(--btn-bg); }
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost { background: transparent; color: var(--brand-strong); border-color: var(--brand-strong); }
  .btn[disabled] { opacity: .7; cursor: progress; }

  /* Общие блоки */
  main { padding-bottom: 8px; }
  .section { margin-top: 40px; }
  .section > h2 { font-size: 26px; margin-bottom: 16px; }
  .card { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 24px 20px; }
  .card h3 { font-size: 20px; }
  .back { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 12px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
  .back:hover { color: var(--ink); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 13px;
  }
  .lead { margin-top: 10px; color: var(--ink-2); font-size: 17px; }

  /* Первый экран */
  .hero { background: var(--card); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 24px 20px 20px; display: grid; gap: 24px; }
  .hero > div { min-width: 0; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 54px); margin: 14px 0 12px; }
  .salary { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
  .salary mark { background: linear-gradient(transparent 58%, var(--brand-hl) 58%); color: inherit; padding: 0 2px; }
  .salary small { font-size: 17px; font-weight: 700; color: var(--muted); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
  .chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; }
  .chips svg { color: var(--brand-strong); }
  .cta { display: grid; gap: 10px; margin-top: 22px; }

  /* Картинка первого экрана: фото, а пока его нет — заглушка в цветах бренда */
  .visual {
    position: relative; min-height: 250px; border-radius: var(--r-m); overflow: hidden;
    background:
      radial-gradient(120% 90% at 85% 10%, var(--brand-hl), transparent 60%),
      linear-gradient(160deg, var(--brand-soft), #FCFCFC 70%);
  }
  .visual::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(22, 25, 15, .09) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
    mask-image: linear-gradient(180deg, #000, transparent 85%);
  }
  .vis-orb {
    position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px;
    border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); display: grid; place-items: center;
    box-shadow: 0 0 0 14px rgba(255, 255, 255, .55), 0 0 0 28px rgba(255, 255, 255, .3), 0 20px 40px -12px var(--btn-bg);
  }
  .vis-badge {
    position: absolute; display: grid; gap: 1px; padding: 10px 14px; border-radius: 16px; background: #fff;
    box-shadow: 0 10px 30px -10px rgba(22, 25, 15, .25); font-size: 12px; color: var(--muted); font-weight: 600; max-width: 62%;
  }
  .vis-badge b { color: var(--ink); font-size: 15px; font-weight: 800; }
  .vis-badge.b1 { left: 14px; top: 16px; }
  .vis-badge.b2 { right: 14px; bottom: 40px; text-align: right; }
  .vis-note { position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .visual.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .visual.photo.cut img { object-fit: contain; object-position: bottom center; } /* человек без фона */

  .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
  .fact { background: var(--card); border-radius: var(--r-m); padding: 14px 12px; box-shadow: var(--shadow); }
  .fact b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
  .fact span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.3; }

  /* Города и вакансии */
  .intro { margin-bottom: 20px; }
  .intro h1 { font-size: clamp(30px, 7vw, 48px); margin: 12px 0 8px; }
  .search { position: relative; display: block; margin-bottom: 12px; }
  .search input {
    width: 100%; height: 54px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--card);
    padding: 0 16px 0 46px; font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
  }
  .search input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 4px var(--brand-hl); }
  .search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .rows { display: grid; gap: 10px; }
  .row, .vcard {
    background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); text-decoration: none;
    border: 1.5px solid transparent; transition: border-color .15s;
  }
  .row:hover, .vcard:hover { border-color: var(--brand); }
  .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 14px 16px 14px 20px; }
  .row b { display: block; font-size: 18px; font-weight: 700; }
  .row small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
  .go { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex-shrink: 0; }
  .empty { padding: 20px; text-align: center; color: var(--muted); }
  .vcard { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding: 18px; }
  .tile { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
  .vcard h3 { font-size: 18px; letter-spacing: -.015em; }
  .pay { font-weight: 800; font-size: 17px; margin-top: 4px; }
  .pay small { color: var(--muted); font-weight: 700; font-size: 14px; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
  .tags li { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }

  /* Вакансия */
  .vlayout { display: grid; grid-template-areas: "a" "f" "b"; }
  .va { grid-area: a; min-width: 0; }
  .vf { grid-area: f; margin-top: 40px; }
  .vb { grid-area: b; min-width: 0; }
  .benefits { display: grid; gap: 10px; }
  .benefit { background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
  .benefit .tile { width: 48px; height: 48px; border-radius: 14px; }
  .benefit h3 { font-size: 17px; letter-spacing: -.01em; margin-top: 2px; }
  .benefit p { color: var(--ink-2); font-size: 15px; margin-top: 4px; line-height: 1.45; }
  .lists { display: grid; gap: 10px; }
  .checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
  .checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
  .checks svg { color: var(--brand-strong); margin-top: 1px; }

  .steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
  .steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 22px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before {
    counter-increment: step; content: counter(step); position: relative; z-index: 1;
    width: 44px; height: 44px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink);
    display: grid; place-items: center; font-weight: 800; font-size: 18px;
  }
  .steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
  .steps li:last-child::after { display: none; }
  .steps b { display: block; font-size: 17px; margin-top: 2px; }
  .steps span { display: block; color: var(--ink-2); font-size: 15px; }

  .faq { display: grid; gap: 10px; }
  .faq details { background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 0 18px; }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 700; font-size: 17px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary svg { color: var(--brand-strong); transition: transform .2s; }
  .faq details[open] summary svg { transform: rotate(45deg); }
  .faq details p { padding: 0 0 18px; color: var(--ink-2); }

  /* Анкета */
  .apply h2 { font-size: 26px; }
  .apply .sub { color: var(--ink-2); margin-top: 6px; }
  .apply form { display: grid; gap: 14px; margin-top: 20px; }
  .field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
  .label { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 0; }
  legend.label { margin-bottom: 6px; }
  .input {
    width: 100%; height: 54px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--field);
    padding: 0 16px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
  }
  .input::placeholder { color: #9A9EA6; font-weight: 500; }
  .input:focus { outline: none; border-color: var(--brand-strong); background: #fff; box-shadow: 0 0 0 4px var(--brand-hl); }
  select.input {
    -webkit-appearance: none; appearance: none; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
  }
  select.input:has(option[value=""]:checked) { color: #9A9EA6; font-weight: 500; }
  select.input option { color: var(--ink); }
  .input[aria-invalid="true"] { border-color: var(--danger); background: #FFF7F6; }
  .err { color: var(--danger); font-size: 13.5px; font-weight: 600; }
  .seg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .seg-row label { position: relative; }
  .seg-row input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .seg-row span {
    display: flex; align-items: center; justify-content: center; height: 52px; border-radius: var(--r-s);
    background: var(--field); border: 1.5px solid var(--line); font-weight: 700; transition: background-color .15s, border-color .15s, color .15s;
  }
  .seg-row input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
  .seg-row input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-hl); }
  [data-invalid] .seg-row span { border-color: var(--danger); }
  .consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
  .consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--btn-bg); }
  .consent a { color: var(--brand-strong); font-weight: 700; }
  .promise { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

  /* Кнопка «Откликнуться» внизу экрана: видна, пока не видно ни кнопки первого экрана, ни анкеты */
  .sticky {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25;
    transform: translateY(160%); transition: transform .25s ease;
  }
  .sticky.show { transform: none; }
  .sticky .btn { width: 100%; box-shadow: 0 12px 30px -8px rgba(22, 25, 15, .45); }
  main.has-sticky { padding-bottom: 88px; }

  .foot { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
  .foot .wrap { display: grid; gap: 4px; }
  .foot a { color: var(--ink-2); font-weight: 700; }

  /* Окно «спасибо» */
  .modal { position: fixed; inset: 0; z-index: 50; background: rgba(22, 25, 15, .55); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
  .dialog { background: #fff; border-radius: var(--r-l); padding: 32px 24px 24px; max-width: 400px; width: 100%; text-align: center; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
  .ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
  .dialog h2 { font-size: 26px; }
  .dialog p { color: var(--ink-2); margin: 10px 0 22px; }
  .dialog .btn { width: 100%; }
  @keyframes fade { from { opacity: 0; } }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

  @media (min-width: 640px) {
    .hero { padding: 32px; }
    .cta { grid-template-columns: auto auto; justify-content: start; }
    .rows.cities, .rows.vacancies, .benefits, .lists { grid-template-columns: 1fr 1fr; }
  }
  @media (min-width: 960px) {
    .hero { grid-template-columns: 1.1fr .9fr; padding: 44px; gap: 40px; }
    .visual { min-height: 380px; }
    .rows.cities { grid-template-columns: repeat(3, 1fr); }
    .section > h2 { font-size: 32px; }
    /* Анкета — во всю ширину после условий, перед вопросами (владелец, 04.10.2026):
       закреплённая справа, она не помещалась по высоте даже на большом мониторе.
       Поля — в две колонки, чтобы анкета была невысокой и заполнялась без прокрутки */
    .benefits { grid-template-columns: repeat(4, 1fr); }
    .apply { padding: 36px 40px; }
    .apply form { grid-template-columns: 1fr 1fr; column-gap: 20px; }
    .apply form > * { grid-column: 1 / -1; }
    .apply form > .field:not(fieldset) { grid-column: auto; }
    .apply form > .btn[type="submit"] { justify-self: start; min-width: 320px; }
    .apply .promise { justify-content: flex-start; }
    .faq { max-width: 860px; }
    .sticky { left: auto; right: 24px; bottom: 24px; }
    .sticky .btn { width: auto; padding: 0 28px; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .steps li { grid-template-columns: 1fr; gap: 12px; padding: 0; }
    .steps li::after { left: 56px; right: -8px; top: 21px; bottom: auto; width: auto; height: 2px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }
