/* ==========================================================================
   Линия записи — дизайн «Салон»
   Светлая жемчужно-сиреневая база, градиент орхидея → роза,
   белые карточки, сливовая полоса в середине страницы.
   Шрифт Onest (локально, лицензия SIL OFL — см. fonts/LICENSES.md).
   ========================================================================== */

/* ============ Шрифт ============ */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-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;
}

/* ============ Токены ============ */
:root {
  /* цвета */
  --bg: #f8f4fb;
  --surface: #ffffff;
  --surface-soft: #faf7fd;
  --card: rgba(255, 255, 255, .8);
  --text: #2a1736;
  --muted: #65557a;
  --subtle: #7a6a89;
  --accent: #7c3aed;
  --accent-strong: #6429cf;
  --rose: #c8448c;
  --plum: #2a1736;
  --plum-2: #45215f;
  --on-plum: #ffffff;
  --on-plum-muted: #dccbe8;
  --error: #c0304f;

  --grad: linear-gradient(120deg, #7c3aed 0%, #a43fc6 52%, #c8448c 100%);
  --grad-hover: linear-gradient(120deg, #6d2fe0 0%, #9637b9 52%, #b83b7f 100%);
  --grad-soft: linear-gradient(150deg, #f3ebfd 0%, #fbeff6 100%);
  --tint: rgba(124, 58, 237, .08);
  --tint-strong: rgba(124, 58, 237, .14);

  --line: rgba(42, 23, 54, .09);
  --line-strong: rgba(42, 23, 54, .16);
  --line-accent: rgba(124, 58, 237, .16);

  --shadow: 0 24px 48px -30px rgba(76, 32, 110, .42);
  --shadow-sm: 0 12px 26px -18px rgba(76, 32, 110, .45);
  --shadow-btn: 0 14px 28px -14px rgba(124, 58, 237, .7);

  /* форма */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* сетка */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Мягкое сияние на всю высоту страницы */
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(820px 620px at 92% -4%, rgba(124, 58, 237, .2), transparent 70%),
    radial-gradient(680px 560px at -8% 16%, rgba(200, 68, 140, .16), transparent 70%),
    radial-gradient(900px 640px at 50% 58%, rgba(255, 190, 150, .14), transparent 70%),
    radial-gradient(900px 700px at 100% 100%, rgba(124, 58, 237, .14), transparent 70%),
    linear-gradient(180deg, #fbf8fd 0%, #f6f0fa 100%);
  background-repeat: no-repeat;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; flex: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
main#top { scroll-margin-top: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-title--sm { font-size: clamp(24px, 2.6vw, 30px); }
.how__lead { margin-top: 14px; max-width: 62ch; color: var(--muted); text-wrap: pretty; }
.how__card-text, .case__solution, .path__text, .service__text, .start__text, .job__desc { text-wrap: pretty; }

/* Общая белая карточка */
.card {
  border: 1px solid var(--line-accent);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* Значок в градиентном круге */
.icon-badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.icon-badge svg { width: 22px; height: 22px; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn--accent {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--accent:hover { background: var(--grad-hover); box-shadow: 0 16px 32px -14px rgba(124, 58, 237, .8); }
.btn--accent:active { transform: translateY(1px); box-shadow: 0 8px 18px -12px rgba(124, 58, 237, .8); }
.btn--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .75);
  color: var(--text);
}
.btn--outline:hover { border-color: rgba(124, 58, 237, .45); background: #fff; color: var(--accent-strong); }
.btn--outline:active { transform: translateY(1px); }
.btn__icon { transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ============ Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .header { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.header.is-scrolled { background: rgba(250, 246, 252, .86); border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.logo {
  padding: 8px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.nav { margin-left: auto; margin-right: clamp(20px, 8vw, 180px); }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--accent-strong); background: var(--tint); }
.nav__link[aria-current="page"] { color: var(--accent-strong); background: var(--tint); }
.header__cta { min-height: 44px; padding: 0 22px; font-size: 15px; }

/* ============ Первый экран ============ */
.hero { padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 7vw, 88px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
}
.hero__title {
  max-width: 12ch;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__lead {
  margin-top: 22px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__btn { min-height: 54px; padding: 0 24px; white-space: nowrap; }
.hero__stats { max-width: 520px; margin-top: 28px; }

/* Схема этапов */
.flow__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: stretch;
}
.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 26px 10px 24px;
  border: 1px solid var(--line-accent);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
@supports (backdrop-filter: blur(8px)) {
  .flow__step { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
/* средний шаг — «ответ» */
.flow__step:nth-child(3) {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 26px 48px -26px rgba(124, 58, 237, .7);
}
.flow__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.flow__icon svg { width: 24px; height: 24px; }
.flow__step:nth-child(3) .flow__icon { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.flow__title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}
.flow__caption {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.flow__step:nth-child(3) .flow__caption { color: rgba(255, 255, 255, .88); }
.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b28fe6;
}
.flow__note {
  position: relative;
  margin: 24px 8% 0;
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
/* скобка под схемой */
.flow__note::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  border: 1px solid rgba(124, 58, 237, .28);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

/* ============ Пример переписки ============ */
.example { padding: 0 0 var(--section-y); }
.example .section-title { text-align: center; }
.example--vacancy { padding: clamp(48px, 6vw, 72px) 0 0; }
.chat {
  max-width: 620px;
  margin: clamp(24px, 3.5vw, 36px) auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}
.chat__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}
.chat__name { font-size: 16px; font-weight: 700; }
.chat__list { display: grid; gap: 14px; padding: 22px; }
.chat__msg { display: flex; flex-direction: column; max-width: 82%; }
.chat__msg--client { justify-self: start; align-items: flex-start; }
.chat__msg--admin { justify-self: end; align-items: flex-end; }
.chat__who { margin: 0 6px 4px; font-size: 12px; font-weight: 600; color: var(--subtle); }
.chat__text {
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
}
.chat__msg--client .chat__text {
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 6px;
  background: var(--surface-soft);
  color: var(--text);
}
.chat__msg--admin .chat__text {
  border-radius: 20px 20px 6px 20px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.chat__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 22px 22px;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
}

/* ============ Вопросы и ответы ============ */
.faq { padding: var(--section-y) 0 0; }
.faq__list { display: grid; gap: 12px; max-width: 820px; margin-top: clamp(24px, 3.5vw, 32px); }
.faq__item { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.faq__q {
  position: relative;
  display: block;
  padding: 20px 64px 20px 24px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-lg);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  top: 50%; right: 20px;
  width: 32px; height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27m5 7.5 5 5 5-5%27 fill=%27none%27 stroke=%27%236429CF%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 16px no-repeat,
    var(--tint);
  transition: transform .25s var(--ease), background-color .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__q:hover { color: var(--accent-strong); }
.faq__a { padding: 0 24px 22px; color: var(--muted); text-wrap: pretty; }

/* ============ Услуги ============ */
.services { padding: 0 0 var(--section-y); }
.services__list {
  margin-top: clamp(24px, 3.5vw, 36px);
  padding: 6px clamp(20px, 3vw, 36px);
}
.service {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service__num {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 48px;
  border-right: 1px solid var(--line-accent);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.service__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.service__text { max-width: 34ch; color: var(--muted); }

/* ============ Как работает ============ */
.how { padding: 0 0 var(--section-y); }
.how__panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 36px);
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-xl);
}
.how__panel--full { grid-template-columns: minmax(0, 1fr); }
.how__price { min-width: 0; padding: 8px clamp(4px, 1.5vw, 14px); }
.how__price-value {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.how__price-label { margin-top: 10px; max-width: 22ch; font-size: 15px; color: var(--muted); }
.how__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.how__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 84px;
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--grad-soft);
  text-align: center;
}
.how__stat-value { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--accent-strong); }
.how__stat-label { font-size: 13px; line-height: 1.35; color: var(--muted); }
.how__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.how__card { min-width: 0; padding: 26px 24px 28px; }
.how__card-title { margin-top: 18px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.how__card-text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ============ Сливовая полоса ============ */
.band {
  position: relative;
  color: var(--on-plum);
  background:
    radial-gradient(760px 480px at 100% 0, rgba(200, 68, 140, .38), transparent 70%),
    radial-gradient(700px 460px at 0 100%, rgba(124, 58, 237, .5), transparent 70%),
    linear-gradient(135deg, var(--plum) 0%, var(--plum-2) 100%);
}
.band :focus-visible { outline-color: #fff; }

/* Направления */
.segments { padding: var(--section-y) 0 0; }
.segments__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.segment {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.segment:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.segment__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .6);
}
.segment__icon svg { width: 24px; height: 24px; }
.segment__name { min-width: 0; overflow-wrap: normal; hyphens: manual; font-size: 17px; font-weight: 600; line-height: 1.3; }

/* Подключение и стоимость */
.start { padding: clamp(40px, 5vw, 56px) 0 var(--section-y); }
.start__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.start__col { min-width: 0; }
.start__col:first-child { padding-right: clamp(24px, 5vw, 64px); }
.start__col--price {
  padding-left: clamp(24px, 5vw, 64px);
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.steps { display: grid; gap: 14px; margin-top: 24px; }
.steps__item { display: flex; align-items: center; gap: 16px; color: #f3e9f9; }
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}
.start__text { margin-top: 24px; max-width: 42ch; color: var(--on-plum-muted); }

/* ============ Ситуации ============ */
.cases { padding: var(--section-y) 0 0; }
.cases__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 36px);
}
.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px 28px;
}
.case__stars {
  align-self: flex-start;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 3px;
}
.case__label {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.case__problem { margin-top: 6px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.case__label--solution {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--accent-strong);
}
.case__solution { margin-top: 6px; font-size: 16px; color: var(--muted); }

/* ============ Заявка ============ */
.contact { padding: var(--section-y) 0 clamp(56px, 7vw, 80px); }
.contact__lead { margin-top: 12px; color: var(--muted); }

.paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(28px, 4vw, 36px);
}
.path {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-xl);
}
.path--main {
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
}
.path__badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
}
.path .icon-badge { margin-top: 20px; }
.path__title { margin-top: 16px; font-size: clamp(24px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.path__text { margin-top: 8px; color: var(--muted); }
.path__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 22px 0 28px; }
.path__list li { position: relative; min-width: 0; padding-left: 22px; }
.path__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .56em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.path__btn { width: 100%; min-height: 54px; margin-top: auto; }

.form { display: grid; gap: 12px; margin-top: 24px; }
.path .form { flex: 1 1 auto; align-content: end; }
.field { min-width: 0; }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface-soft);
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field__input::placeholder { color: var(--subtle); opacity: 1; }
.field__input:hover { border-color: rgba(124, 58, 237, .4); background: #fff; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--tint-strong);
}
.form__submit { width: 100%; min-height: 54px; }

/* ============ Страница вакансии ============ */
.vacancy-page { padding: clamp(16px, 3vw, 32px) 0 clamp(56px, 7vw, 88px); }
.vacancy-page .container { max-width: calc(820px + var(--gutter) * 2); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  margin-left: -12px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.back-link:hover { color: var(--accent-strong); background: var(--tint); }
.frame {
  margin-top: 12px;
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid var(--line-accent);
  border-radius: 34px;
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(8px)) {
  .frame { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

.job {
  margin-top: clamp(24px, 4vw, 32px);
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 100% 0, rgba(200, 68, 140, .12), transparent 70%),
    var(--grad-soft);
}
.job__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}
.job__title { margin-top: 18px; font-size: clamp(24px, 2.8vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.job__desc { margin-top: 8px; color: var(--muted); }
.job__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.job__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.job__stat-num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.job__stat-label { font-size: 14px; color: var(--muted); }
.job__terms { margin-top: 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.job__terms strong { font-weight: 700; color: var(--text); }

/* Анкета */
.survey { display: grid; gap: 12px; margin-top: 16px; }
.q {
  min-width: 0;
  margin: 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s ease;
}
.q__label { display: block; float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 700; }
.q > :not(.q__label) { clear: both; }
.q__req { color: var(--rose); }
.q__input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.q__input::placeholder { color: var(--subtle); opacity: 1; }
.q__input:hover { border-color: rgba(124, 58, 237, .4); background: #fff; }
.q__input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--tint-strong); }
.q__textarea { min-height: 104px; padding: 13px 16px; resize: vertical; line-height: 1.5; }
.q__select {
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27m5 7.5 5 5 5-5%27 fill=%27none%27 stroke=%27%237C3AED%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
.q__select option { background: #fff; color: var(--text); }
.q__hint { margin-top: 10px; font-size: 13px; color: var(--subtle); }

.choice { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.choice__item { position: relative; min-width: 0; cursor: pointer; }
.choice__item input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.choice__item:hover span { border-color: rgba(124, 58, 237, .4); background: #fff; }
.choice__item input:checked + span {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.choice__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.q--invalid { border-color: rgba(192, 48, 79, .55); }
.q--invalid .q__input { border-color: var(--error); }
.q__error { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--error); }
.q__error:empty { display: none; }

.survey__submit { width: 100%; min-height: 56px; margin-top: 8px; font-size: 17px; }
.survey__status {
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--tint);
  font-size: 15px;
  color: var(--accent-strong);
  text-align: center;
}
.survey__status:empty { display: none; }
.survey__consent { font-size: 13px; color: var(--subtle); text-align: center; }
.survey__policy {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.survey__policy:hover { color: var(--accent-strong); }

/* ============ Подвал ============ */
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 32px;
  text-align: center;
}
.footer__inner::before {
  content: "";
  display: block;
  align-self: stretch;
  height: 1px;
  margin-bottom: 16px;
  background: var(--line);
}
.footer__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.footer__link:hover { color: var(--accent-strong); background: var(--tint); }
.footer__copy { font-size: 13px; color: var(--subtle); }

/* ============ Модальное окно ============ */
.dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-accent);
  border-radius: 28px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(42, 23, 54, .55);
}
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: rgba(42, 23, 54, .45); backdrop-filter: blur(4px); }
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0 28px;
}
.dialog__title { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: -0.025em; }
.dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: -8px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-strong);
  cursor: pointer;
  transition: background-color .2s ease;
}
.dialog__close:hover { background: var(--tint-strong); }
.dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
  padding: 4px 28px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.dialog__foot { padding: 16px 28px 22px; }
.doc h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.doc__list { display: grid; gap: 4px; }
.doc__list li { position: relative; padding-left: 18px; }
.doc__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.doc__note { margin-top: 20px; font-size: 14px; color: var(--subtle); }

/* ============ Анимации появления ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============ Адаптив ============ */
@media (max-width: 1100px) {
  .nav { margin-right: 16px; }
  .nav__list { gap: 0; }
  .nav__link { padding: 0 11px; font-size: 14px; }
}

/* На планшетах и телефонах в шапке остаются название и «Связаться» */
@media (max-width: 860px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 14ch; }

  .flow { max-width: 560px; }
  .flow__list { grid-template-columns: minmax(0, 1fr); }
  .flow__step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    align-items: center;
    padding: 16px 20px;
    text-align: left;
  }
  .flow__icon { grid-row: span 2; }
  .flow__title { margin-top: 0; }
  .flow__caption { margin-top: 2px; }
  .flow__arrow { height: 30px; }
  .flow__arrow svg { transform: rotate(90deg); }
  .flow__note { margin: 16px 0 0; padding-top: 0; text-align: left; }
  .flow__note::before { display: none; }

  .service { grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; row-gap: 6px; }
  .service__num { grid-row: span 2; font-size: 22px; }
  .service__text { max-width: none; }

  .how__panel { grid-template-columns: minmax(0, 1fr); }
  .how__price { padding: 4px 4px 0; }
  .how__price-label { max-width: none; }
  .how__cards { grid-template-columns: minmax(0, 1fr); }

  .start__grid { grid-template-columns: minmax(0, 1fr); }
  .start__col:first-child { padding-right: 0; }
  .start__col--price {
    margin-top: 36px;
    padding-top: 36px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .segments__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases__list { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path .form { align-content: start; }
}

@media (max-width: 640px) {
  .chat__list { padding: 18px 14px; }
  .chat__msg { max-width: 90%; }
  .chat__head { padding: 14px 16px; }
  .chat__status { margin: 0 14px 16px; }
  .faq__q { padding: 18px 58px 18px 18px; font-size: 16px; }
  .faq__q::after { right: 14px; }
  .faq__a { padding: 0 18px 18px; }
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .logo { font-size: 20px; }
  .header__cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
  .hero__actions { flex-direction: column; }
  .hero__btn { width: 100%; }
  .service__title { font-size: 18px; }
  .segments__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .segment { flex-direction: column; gap: 10px; padding: 18px 8px 16px; text-align: center; }
  .segment__name { font-size: 15px; }

  .service { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 20px 0; }
  .service__num { grid-row: auto; min-height: 0; padding-right: 0; border-right: 0; font-size: 20px; }
  .service__text { grid-column: 1 / -1; }

  .how__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .how__stat { align-items: flex-start; gap: 2px; min-height: 0; padding: 12px 18px; text-align: left; }
  .job__stat { padding: 14px; }
  .job__stat-num { font-size: 22px; }
  .job__stat-label { overflow-wrap: normal; }
  .frame { padding: 14px; border-radius: 26px; }
  .frame > .section-title { padding: 8px 6px 0; }
  .job { padding: 22px 18px; }
  .q { padding: 16px 16px 18px; }
}

/* Узкие телефоны */
@media (max-width: 480px) {
  .job__stats.hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .hero__stats .job__stat { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 12px; }
  .hero__stats .job__stat-num { font-size: 22px; }
  .hero__stats .job__stat-label { font-size: 13px; }
  .choice { gap: 6px; }
  .choice__item span { padding: 0 4px; font-size: 14px; }
  .job__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .job__stat { flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 16px; }
}

@media (max-width: 360px) {
  .job__stats.hero__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__stats .job__stat { flex-direction: row; align-items: baseline; gap: 10px; }
  .choice__item span { font-size: 13px; }
  .segments__list { grid-template-columns: minmax(0, 1fr); }
  .segment { flex-direction: row; padding: 12px 16px; text-align: left; }
  .segment__icon { width: 44px; height: 44px; }
  .header__inner { gap: 12px; }
  .logo { font-size: 18px; }
  .header__cta { padding: 0 14px; }
}
