/* LidStaff — публичные страницы */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* Шапка: белая плашка, на первом экране лендинга — прозрачная */
.site-header { position: sticky; top: 0; z-index: 30; padding: 12px 1.25rem 0; height: 92px; }
.site-header__row { max-width: 1240px; margin: 0 auto; min-height: 72px; padding: 0 .9rem 0 1.5rem; display: flex; align-items: center; gap: 2.2rem;
  background: var(--surface); border-radius: 22px; box-shadow: 0 16px 36px -24px rgba(27, 55, 124, .6);
  transition: background-color .2s ease, box-shadow .2s ease; }
.site-nav { display: flex; gap: 1.8rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--navy); }
.site-header__actions { margin-left: auto; display: flex; gap: .7rem; }
.site-header.is-top .site-header__row { background: transparent; box-shadow: none; }
.site-header.is-top .logo, .site-header.is-top .logo__accent, .site-header.is-top .site-nav a { color: #fff; }
.site-header.is-top .logo__bg { fill: #fff; }
.site-header.is-top .logo__bar { fill: var(--navy); }
.site-header.is-top .btn--ghost { display: none; }

/* Первый экран */
.hero { position: relative; margin-top: -92px; padding: calc(92px + 6.5rem) 0 8rem; color: #fff; text-align: center; overflow: hidden;
  background:
    radial-gradient(38% 46% at 17% 46%, rgba(86, 170, 240, .6), transparent 72%),
    radial-gradient(34% 44% at 84% 52%, rgba(86, 170, 240, .5), transparent 72%),
    linear-gradient(180deg, #3A86DA 0%, #2C66C8 42%, #20479C 78%, #1B3C88 100%); }
.hero__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
.hero__title { font: 700 clamp(1.55rem, 4.6vw, 3.4rem)/1.12 var(--font-display); letter-spacing: -.01em; }
.hero__lead { margin: 2rem auto 0; max-width: 33em; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.35; font-weight: 500; }
.hero__actions { margin-top: 2.8rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.hero__facts { margin: 2.4rem auto 0; max-width: 620px; display: grid; gap: .55rem; justify-content: center; text-align: left; font-weight: 500; color: #E3EEFC; }
.hero__facts li { display: flex; align-items: center; gap: .7rem; }
.tick { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--mint); fill: none; stroke: var(--on-mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* Каждый элемент плавно покачивается вдоль своей линии на 16–22 пикселя и обратно, у всех разный темп */
.float { position: absolute; --dx: 0px; --dy: 0px; --dur: 7s;
  animation: float-in .8s ease both, float-drift var(--dur) ease-in-out infinite alternate; }
.hero__floats.is-paused .float { animation-play-state: paused; }
.float--chip { padding: .72rem 1.35rem; border-radius: 999px; background: rgba(255, 255, 255, .13); color: #BEDBFA; font-weight: 500; white-space: nowrap; }
.float--tile { display: grid; place-items: center; border-radius: 30%; background: linear-gradient(180deg, #F6FBFF 0%, #B1D6FB 100%);
  box-shadow: 0 0 70px 26px rgba(120, 186, 250, .32); }
/* Плитки с фотографиями кандидатов: фото заполняет плитку целиком */
.float--photo { overflow: hidden; }
.float--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.float--tile svg { width: 62%; height: 62%; fill: #3F7FE0; }
/* Слева и справа зеркально: по четыре плитки и по четыре плашки */
.float--t1 { width: 118px; height: 118px; left: 9%; top: 13%; animation-delay: .05s; }
.float--t2 { width: 92px; height: 92px; left: 2%; top: 52%; animation-delay: .2s; }
.float--t3 { width: 104px; height: 104px; left: 12%; top: 56%; animation-delay: .3s; }
.float--t4 { width: 104px; height: 104px; left: 2.5%; top: 66%; animation-delay: .4s; }
.float--t5 { width: 118px; height: 118px; right: 9%; top: 13%; animation-delay: .1s; }
.float--t6 { width: 92px; height: 92px; right: 2%; top: 52%; animation-delay: .25s; }
.float--t7 { width: 104px; height: 104px; right: 12%; top: 56%; animation-delay: .35s; }
.float--t8 { width: 104px; height: 104px; right: 2.5%; top: 66%; animation-delay: .45s; }
.float--c1 { left: 1.5%; top: 29%; animation-delay: .15s; }
.float--c2 { left: 3%; top: 40%; animation-delay: .25s; }
.float--c3 { left: 13%; top: 80%; animation-delay: .45s; }
.float--c4 { left: 8%; top: 90%; animation-delay: .5s; }
.float--c5 { right: 1.5%; top: 29%; animation-delay: .2s; }
.float--c6 { right: 3%; top: 40%; animation-delay: .3s; }
.float--c7 { right: 13%; top: 80%; animation-delay: .4s; }
.float--c8 { right: 8%; top: 90%; animation-delay: .5s; }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float-drift {
  from { translate: calc(var(--dx) * -.5) calc(var(--dy) * -.5); }
  to { translate: calc(var(--dx) * .5) calc(var(--dy) * .5); }
}
.float--t1 { --dy: -22px; --dur: 4.4s; }
.float--t2 { --dx: 20px; --dur: 5.4s; }
.float--t3 { --dx: -16px; --dy: 16px; --dur: 4.9s; }
.float--t4 { --dy: 22px; --dur: 3.9s; }
.float--t5 { --dx: -20px; --dur: 5.2s; }
.float--t6 { --dy: -20px; --dur: 4.2s; }
.float--t7 { --dx: 17px; --dy: -17px; --dur: 5.7s; }
.float--t8 { --dx: 22px; --dur: 4.6s; }
.float--c1 { --dx: 20px; --dur: 5s; }
.float--c2 { --dy: -18px; --dur: 4.1s; }
.float--c3 { --dx: -20px; --dur: 5.8s; }
.float--c4 { --dy: 20px; --dur: 4.5s; }
.float--c5 { --dy: 20px; --dur: 4.8s; }
.float--c6 { --dy: -18px; --dur: 5.6s; }
.float--c7 { --dx: 18px; --dur: 3.8s; }
.float--c8 { --dx: -18px; --dur: 5.3s; }

/* Разделы */
.section { padding: 5.5rem 0 0; }
.section:last-of-type { padding-bottom: 5.5rem; }
.section--tight { padding-top: 3rem; }
.section__title { text-align: center; font: 700 clamp(1.8rem, 4.3vw, 3.5rem)/1.1 var(--font-head); letter-spacing: -.025em; color: var(--ink); margin-bottom: 3rem; }
.section__title--second { margin-top: 5.5rem; }

/* Объёмные иконки: два наложенных скруглённых квадрата */
.gicon { position: relative; display: block; width: 104px; height: 104px; }
.gicon::before { content: ""; position: absolute; left: 30px; top: 22px; width: 76px; height: 76px; border-radius: 26%;
  background: linear-gradient(160deg, rgba(120, 232, 168, .9), rgba(124, 196, 248, .65)); transform: rotate(14deg); }
.gicon__face { position: absolute; left: 0; top: 0; width: 82px; height: 82px; border-radius: 26%; display: grid; place-items: center; transform: rotate(-8deg);
  background: linear-gradient(150deg, #7CC4F8 0%, #3A86DA 45%, #2456C8 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -8px 16px rgba(20, 50, 140, .35), 0 16px 26px -14px rgba(36, 86, 200, .8); }
.gicon svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gicon--sky::before { background: linear-gradient(160deg, rgba(190, 222, 252, .95), rgba(124, 196, 248, .55)); }
.gicon--glass::before { background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .25)); }
.gicon--glass .gicon__face { background: linear-gradient(150deg, #5FA9F2 0%, #2A62D4 55%, #1D48B4 100%); }

.fcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.fcard { background: var(--surface); border-radius: var(--r-lg); padding: 2.4rem 1.5rem 2.2rem; text-align: center; box-shadow: var(--glow); }
.fcard .gicon { margin: 0 auto 1.8rem; }
.fcard h3 { font: 700 1.3rem/1.2 var(--font-head); letter-spacing: -.01em; margin-bottom: .5rem; }
.fcard p { color: var(--muted); }

/* Тёмный баннер с кабинетом */
.banner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 2.5rem; align-items: center; padding: 3.2rem; color: #fff; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(60% 90% at 88% 30%, rgba(108, 222, 214, .55), transparent 70%), linear-gradient(105deg, #14246A 0%, #1C3F9E 52%, #3C8FE0 100%); }
.banner h2 { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.18 var(--font-head); letter-spacing: -.015em; }
.banner p { margin: 1rem 0 1.8rem; color: #D5E4FA; font-size: 1.12rem; line-height: 1.45; }
.banner__caption { margin: .7rem 0 0; font-size: .8rem; color: #CFE2FA; text-align: right; }
.banner .banner__caption { margin: .7rem 0 0; font-size: .8rem; }
.preview { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 20px; padding: 1rem; box-shadow: 0 30px 60px -30px rgba(10, 25, 80, .8); }
.preview__bar { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .9rem; }
.preview__title { font: 700 1.1rem/1 var(--font-head); }
.preview__filter { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .7rem; }
.preview__board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.preview__col { background: #E3EDF9; border-radius: 12px; padding: .55rem; min-height: 205px; display: flex; flex-direction: column; gap: .45rem; }
.preview__head { display: flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; line-height: 1.2; min-height: 2.4em; }
.preview__card { background: var(--surface); border-radius: 9px; padding: .5rem .55rem; display: grid; gap: .1rem; min-width: 0; }
.preview__card strong, .preview__card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__card strong { font-size: .78rem; }
.preview__card span { font-size: .7rem; color: var(--muted); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--r-lg); padding: 1.8rem 1.6rem 2rem; box-shadow: var(--glow); }
@supports (grid-template-rows: subgrid) {
  .steps li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; }
  .steps li::before { align-self: start; }
}
.steps li::before { content: counter(step); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px;
  background: var(--navy); color: #fff; font: 700 1.3rem/1 var(--font-head); margin-bottom: 1.3rem; }
.steps h3 { font: 700 1.2rem/1.25 var(--font-head); letter-spacing: -.01em; margin-bottom: .6rem; }
.steps p { color: var(--muted); }

/* Синие карточки с условиями */
.rcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rcard { position: relative; min-height: 290px; padding: 2.4rem 2.4rem 2rem; border-radius: var(--r-lg); color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #2A4B9B 0%, #3058B2 38%, #5B9BE2 78%, #7CC4F8 100%); }
.rcard h3 { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--font-head); letter-spacing: -.015em; }
.rcard p { margin-top: .8rem; max-width: 24em; font-size: 1.12rem; line-height: 1.4; color: #DCE9FB; }
.rcard .gicon { position: absolute; right: 2.2rem; bottom: 1.8rem; transform: scale(1.15); transform-origin: right bottom; }

/* Форматы работы: синяя панель с мягкими бликами и карточками из «жидкого стекла» */
.plansbox { position: relative; isolation: isolate; overflow: hidden; margin-top: 5.5rem; padding: 3.6rem 3rem 2.6rem; border-radius: 36px; color: #fff;
  background: linear-gradient(135deg, #18357E 0%, #2A5FC2 50%, #3A86DA 100%); }
.plansbox .section__title { margin-bottom: 2.4rem; color: #fff; }
.plansbox__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.plansbox__glow--1 { width: 420px; height: 420px; left: -120px; top: -160px; background: #7CC4F8; opacity: .7; }
.plansbox__glow--2 { width: 380px; height: 380px; right: 6%; bottom: -220px; background: #78E8A8; opacity: .6; }
.plansbox__glow--3 { width: 300px; height: 300px; right: -110px; top: -60px; background: #9FD4FF; opacity: .55; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.plan { position: relative; padding: 1.9rem 1.7rem 2rem; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(140deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -22px 34px -26px rgba(255, 255, 255, .45), 0 28px 54px -30px rgba(8, 22, 70, .75);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -22px 34px -26px rgba(255, 255, 255, .5), 0 36px 60px -30px rgba(8, 22, 70, .85); }
.plan .gicon::before { background: linear-gradient(160deg, rgba(120, 232, 168, .95), rgba(124, 196, 248, .7)); }
.plan h3 { margin: 1.3rem 0 .9rem; font: 800 clamp(1.4rem, 2.2vw, 1.75rem)/1.15 var(--font-head); letter-spacing: -.02em; color: #fff; }
.plan h3::after { content: ""; display: block; width: 46px; height: 4px; margin-top: .75rem; border-radius: 4px; background: var(--mint); }
.plan p { color: #E6F0FD; font-size: 1.05rem; line-height: 1.5; }
.plans__note { margin-top: 1.8rem; text-align: center; color: #D5E4FA; }

/* Вопросы и ответы: заголовок слева, раскрывающиеся карточки справа */
.faq { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 3rem; align-items: start; }
.faq__side { position: sticky; top: 116px; }
.faq__title { font: 700 clamp(2rem, 4.6vw, 3.8rem)/1.08 var(--font-head); letter-spacing: -.025em; color: var(--ink); max-width: 9em; margin-bottom: 2rem; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--surface); color: var(--ink); }
.faq__list { display: grid; gap: 1rem; }

.qa { background: var(--surface); border-radius: 20px; box-shadow: var(--glow); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.6rem; cursor: pointer; list-style: none;
  border-radius: 20px; font: 500 1.25rem/1.3 var(--font-head); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(120, 232, 168, .75); }
.qa__plus { position: relative; flex: none; width: 22px; height: 22px; transition: transform .3s ease; }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--muted); border-radius: 2px; }
.qa__plus::before { width: 20px; height: 2px; margin: -1px 0 0 -10px; }
.qa__plus::after { width: 2px; height: 20px; margin: -10px 0 0 -1px; }
.qa__body { display: grid; grid-template-rows: 1fr; }
.qa__body > div { overflow: hidden; min-height: 0; }
.qa__body p { padding: 0 1.6rem 1.6rem; max-width: 62ch; color: var(--muted); font-size: 1.05rem; }
/* Без скриптов работает обычное раскрытие; со скриптами — плавное */
.qa:not(.qa--js)[open] .qa__plus, .qa--js.is-open .qa__plus { transform: rotate(45deg); }
.qa--js .qa__body { grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.qa--js.is-open .qa__body { grid-template-rows: 1fr; }

/* Иллюстрация под заголовком: вопрос и ответ */
.qart { position: relative; height: 250px; max-width: 430px; margin-top: 2.8rem; }
.qart__bubble { position: absolute; max-width: 250px; padding: .9rem 1.1rem; border-radius: 20px; font-weight: 600; line-height: 1.3; box-shadow: 0 22px 40px -24px rgba(27, 55, 124, .6); }
.qart__bubble--q { left: 0; top: 0; background: var(--surface); color: var(--ink); border-bottom-left-radius: 6px; transform: rotate(-3deg); }
.qart__bubble--a { right: 0; top: 96px; background: linear-gradient(120deg, #2A4B9B 0%, #3A86DA 100%); color: #fff; border-bottom-right-radius: 6px; transform: rotate(2deg); }
.qart .gicon { position: absolute; left: 34px; bottom: 0; }

/* Заявка */
.connect { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 3rem; align-items: start; background: var(--surface); border-radius: var(--r-lg); padding: 3.2rem; box-shadow: var(--glow); }
.connect__text h2 { font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.12 var(--font-head); letter-spacing: -.02em; }
.connect__text p { margin-top: 1rem; font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.contacts { margin-top: 1.5rem; display: grid; gap: .5rem; }

/* Иллюстрация в блоке заявки: карточки кандидатов на синем фоне */
.connect { align-items: stretch; }
.connect__text { display: flex; flex-direction: column; }
.art { position: relative; flex: 1; min-height: 300px; margin-top: 2.2rem; border-radius: 24px; overflow: hidden;
  background: radial-gradient(70% 80% at 85% 90%, rgba(120, 232, 168, .5), transparent 70%), linear-gradient(180deg, #2A4B9B 0%, #3058B2 40%, #5B9BE2 80%, #7CC4F8 100%); }
.art__card { position: absolute; left: 9%; right: 16%; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: 0 22px 40px -22px rgba(10, 25, 80, .75); }
.art__card--1 { top: 16%; transform: rotate(-3deg); }
.art__card--2 { top: 43%; left: 15%; right: 8%; transform: rotate(2deg); }
.art__card--3 { top: 70%; left: 7%; right: 22%; transform: rotate(-1.5deg); opacity: .82; }
.art__avatar { flex: none; width: 46px; height: 46px; border-radius: 30%; display: grid; place-items: center; background: linear-gradient(180deg, #EAF4FF 0%, #B1D6FB 100%); }
.art__avatar svg { width: 62%; height: 62%; fill: #3F7FE0; }
.art__who { display: grid; min-width: 0; margin-right: auto; line-height: 1.25; }
.art__who strong { font-size: 1rem; }
.art__who span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art__badge { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 8px; background: #E3EDF9; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.art .gicon { position: absolute; right: 5%; bottom: 7%; }

/* Подвал */
.site-footer { margin-top: 1rem; padding: 3.5rem 0 2rem; color: #C9DBF7; background: linear-gradient(180deg, #2A4B9B 0%, #24418C 55%, #1F3880 100%); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.site-footer .logo, .site-footer .logo__accent { color: #fff; }
.site-footer .logo__bg { fill: #fff; }
.site-footer .logo__bar { fill: var(--navy); }
.site-footer .logo__text { font-size: 1.7rem; }
.site-footer__brand p { margin-top: 1rem; max-width: 22em; font-size: 1.1rem; line-height: 1.35; }
.site-footer h2 { margin-bottom: 1rem; color: #fff; font: 600 1.15rem/1.3 var(--font-head); }
.site-footer nav { display: grid; gap: .75rem; align-content: start; }
.site-footer nav h2 { margin-bottom: .25rem; }
.site-footer a { color: #C9DBF7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a.site-footer__mail + a.site-footer__mail { margin-top: .6rem; }
.site-footer a.site-footer__mail { display: block; width: fit-content; color: #fff; font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a.site-footer__mail:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .92rem; }

/* Страницы состояния: «Спасибо» и ошибки */
.statepage { max-width: 760px; margin: 0 auto; padding: 4.5rem 1.25rem 5rem; text-align: center; }
.statepage__art { display: grid; place-items: center; min-height: 120px; margin-bottom: 1.6rem; }
.statepage__art .gicon { transform: scale(1.25); }
.statepage__art .gicon__face { background: linear-gradient(150deg, #9FF0C2 0%, #4FD08A 55%, #2FB873 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -8px 16px rgba(15, 100, 60, .3), 0 16px 26px -14px rgba(47, 184, 115, .8); }
.statepage__art .gicon::before { background: linear-gradient(160deg, rgba(124, 196, 248, .9), rgba(58, 134, 218, .5)); }
.statepage__code { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--font-display); letter-spacing: -.02em; color: transparent;
  background: linear-gradient(180deg, #3A86DA 0%, #2A4B9B 100%); -webkit-background-clip: text; background-clip: text; }
.statepage__title { font: 700 clamp(1.8rem, 4vw, 2.8rem)/1.12 var(--font-head); letter-spacing: -.02em; }
.statepage__text { margin: 1rem auto 0; max-width: 34em; font-size: 1.15rem; color: var(--muted); }
.statepage__steps { margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: left; counter-reset: st; }
.statepage__steps li { counter-increment: st; background: var(--surface); border-radius: 20px; padding: 1.3rem 1.3rem 1.4rem; box-shadow: var(--glow); color: var(--muted); }
.statepage__steps li::before { content: counter(st); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: 11px; background: var(--navy); color: #fff; font: 700 1.05rem/1 var(--font-head); }
.statepage__steps strong { display: block; color: var(--ink); margin-bottom: .2rem; }
.statepage__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* Окно с предложением расчёта при уходе со страницы */
.exit { width: min(900px, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); padding: 0; border: 0; border-radius: 28px; overflow-y: auto;
  background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(20, 36, 106, .7); }
.exit::backdrop { background: rgba(20, 36, 106, .55); }
.exit[open] { animation: exit-in .42s cubic-bezier(.2, .8, .3, 1) both; }
.exit[open]::backdrop { animation: exit-fade .42s ease both; }
.exit.is-closing { animation: exit-out .22s ease both; }
.exit.is-closing::backdrop { animation: exit-fade .22s ease reverse both; }
@keyframes exit-in { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes exit-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes exit-fade { from { opacity: 0; } to { opacity: 1; } }
.exit__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); min-height: 100%; }
.exit__body { padding: 2.6rem 2.2rem 2.2rem; }
.exit__close { position: absolute; right: 1rem; top: 1rem; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 12px; background: #E3EDF9; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.exit__close:hover { background: #CFE0F6; }
.exit__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.exit__title { padding-right: 2.6rem; font: 700 clamp(1.4rem, 2.6vw, 1.75rem)/1.16 var(--font-head); letter-spacing: -.02em; }
.exit__text { margin: .8rem 0 1.3rem; color: var(--muted); }

/* Иллюстрация в окне: лист расчёта по вакансиям */
.exit__art { position: relative; display: grid; align-content: center; padding: 2.2rem 1.8rem; border-radius: 28px 0 0 28px; overflow: hidden;
  background: radial-gradient(70% 60% at 90% 95%, rgba(120, 232, 168, .5), transparent 70%), linear-gradient(180deg, #2A4B9B 0%, #3058B2 40%, #5B9BE2 82%, #7CC4F8 100%); }
.exit__sheet { display: grid; gap: .85rem; padding: 1.3rem 1.2rem 1.2rem; border-radius: 20px; background: var(--surface); transform: rotate(-3deg);
  box-shadow: 0 26px 44px -24px rgba(10, 25, 80, .8); }
.exit__sheet strong { font: 700 1.05rem/1.2 var(--font-head); }
.exit__row { display: grid; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--muted); }
.exit__bar { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #3A86DA 0%, #7CC4F8 100%); }
.exit__bar--1 { width: 86%; }
.exit__bar--2 { width: 58%; }
.exit__bar--3 { width: 72%; }
.exit__total { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .2rem; padding-top: .85rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; }
.exit__total b { padding: .25rem .6rem; border-radius: 8px; background: var(--mint); color: var(--on-mint); font-size: .8rem; }
.exit__art .gicon { position: absolute; right: 1.2rem; bottom: 1.4rem; }

/* Иллюстрация в окне заявки: карточки кандидатов с фото */
.exit__art--people { align-content: center; justify-items: center; gap: .9rem; }
.pcard { display: flex; align-items: center; gap: .8rem; width: min(100%, 270px); padding: .65rem .9rem .65rem .65rem; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: 0 22px 40px -22px rgba(10, 25, 80, .8); }
.pcard img { flex: none; width: 54px; height: 54px; border-radius: 30%; object-fit: cover; }
.pcard span { display: grid; min-width: 0; line-height: 1.25; }
.pcard b { font-weight: 800; }
.pcard small { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pcard--1 { transform: rotate(-3deg) translateX(-6px); }
.pcard--2 { transform: rotate(2deg) translateX(10px); }
.pcard--3 { transform: rotate(-1.5deg); opacity: .94; }
.pcard__tag { margin-top: .4rem; padding: .4rem .9rem; border-radius: 10px; background: var(--mint); color: var(--on-mint); font-style: normal; font-weight: 700; font-size: .9rem; }

@media (max-width: 760px) {
  .exit { width: min(520px, calc(100% - 1.5rem)); }
  .exit__grid { grid-template-columns: minmax(0, 1fr); }
  .exit__art { display: none; }
  .exit__body { padding: 2.2rem 1.3rem 1.5rem; }
}

/* Согласие на файлы cookie: узкая строка внизу экрана. Справа оставлено место под кнопку связи */
.cookie { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 70; width: fit-content; max-width: min(980px, calc(100% - 200px)); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; padding: .55rem .6rem .55rem 1.2rem; border-radius: 16px;
  background: var(--surface); color: var(--muted); box-shadow: 0 20px 50px -22px rgba(20, 36, 106, .6); font-size: .9rem; line-height: 1.35;
  animation: exit-in .4s cubic-bezier(.2, .8, .3, 1) both; }
.cookie[hidden] { display: none; }
.cookie p { flex: 0 1 auto; min-width: 0; }
.cookie__actions { flex: none; display: flex; gap: .4rem; }
.site-footer__btn { padding: 0; border: 0; background: none; color: #C9DBF7; font: inherit; cursor: pointer; }
.site-footer__btn:hover { color: #fff; text-decoration: underline; }

/* Текстовые страницы */
.doc { max-width: 800px; padding-top: 3rem; padding-bottom: 4rem; }
.doc h1 { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.12 var(--font-head); letter-spacing: -.02em; margin-bottom: .6rem; }
.doc h2 { font: 700 1.2rem/1.25 var(--font-head); margin: 2rem 0 .5rem; }
.doc p { margin-bottom: .8rem; }
.doc h3 { font: 700 1.05rem/1.3 var(--font-head); margin: 1.6rem 0 .5rem; }
.doc .code { margin: .6rem 0 1rem; padding: 1rem 1.2rem; border-radius: var(--r-md); background: #1B2F6B; color: #E6EEFB; overflow-x: auto;
  font: 400 .88rem/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre; }
.doc .plain { margin: 0 0 1rem; padding-left: 1.2rem; list-style: disc; display: grid; gap: .4rem; }
.doc .tablewrap { margin: .6rem 0 1rem; overflow-x: auto; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--glow); }
.doc .table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc .table th { text-align: left; padding: .7rem 1rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.doc .table td { padding: .7rem 1rem; border-bottom: 1px solid #E3EDF9; vertical-align: top; }
.doc .table tr:last-child td { border-bottom: 0; }
.narrow--wide { max-width: 540px; }

@media (max-width: 1240px) {
  .float--chip, .float--t2, .float--t4, .float--t6, .float--t8 { display: none; }
  .float--t1 { left: 3%; top: 16%; width: 88px; height: 88px; }
  .float--t3 { left: 5%; top: 62%; width: 80px; height: 80px; }
  .float--t5 { right: 3%; top: 16%; width: 88px; height: 88px; }
  .float--t7 { right: 5%; top: 62%; width: 80px; height: 80px; }
  .hero__inner { max-width: 760px; }
}
@media (max-width: 1180px) {
  .fcards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero__floats { display: none; }
  .hero { padding: calc(92px + 3.5rem) 0 4.5rem; }
  .site-nav { display: none; }
  .fcards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner, .connect { grid-template-columns: minmax(0, 1fr); padding: 2rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .faq__side { position: static; }
  .faq__title { max-width: none; margin-bottom: 1.4rem; }
  .qart { display: none; }
  .art { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plansbox { margin-top: 3.5rem; padding: 2.4rem 1.4rem 2rem; border-radius: 28px; }
  .section { padding-top: 3.5rem; }
  .section__title { margin-bottom: 2rem; }
  .section__title--second { margin-top: 3.5rem; }
}
@media (max-width: 640px) {
  .site-header { padding: 8px .75rem 0; height: 80px; }
  .site-header__row { min-height: 64px; padding: 0 .6rem 0 1rem; gap: .75rem; border-radius: 18px; }
  .site-header__actions .btn--primary { display: none; }
  .site-header.is-top .btn--ghost { display: inline-flex; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
  .hero { margin-top: -80px; padding: calc(80px + 2.5rem) 0 3.5rem; }
  .hero__actions { flex-direction: column; padding: 0 .5rem; }
  .fcards, .steps, .rcards { grid-template-columns: minmax(0, 1fr); }
  .rcard { min-height: 250px; padding: 1.8rem 1.6rem; }
  .rcard .gicon { right: 1.4rem; bottom: 1.2rem; transform: none; }
  .banner, .connect { padding: 1.5rem; }
  .preview__board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview__col { min-height: 0; }
  .logo__text { font-size: 1.2rem; }
  .cookie { width: calc(100% - 20px); max-width: none; bottom: 10px; flex-wrap: wrap; gap: .5rem .8rem; padding: .7rem .8rem; font-size: .85rem; }
  .cookie p { flex-basis: 100%; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; }
  .statepage { padding-top: 2.5rem; }
  .statepage__steps { grid-template-columns: minmax(0, 1fr); }
  .statepage__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { padding-top: 2.5rem; }
  .qa summary { padding: 1.2rem 1.2rem; font-size: 1.1rem; }
  .qa__body p { padding: 0 1.2rem 1.3rem; font-size: 1rem; }
  .hero__facts { font-size: .95rem; padding: 0 .5rem; }
}


/* Индикатор прокрутки страницы */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 50; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--mint) 0%, var(--sky) 100%); transform: scaleX(0); transform-origin: 0 50%; }

/* Виджет связи */
.cw { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cw__toggle { width: 60px; height: 60px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 20px; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 16px 30px -12px rgba(27, 55, 124, .85); transition: background-color .15s ease; }
.cw__toggle:hover { background: var(--navy-deep); }
.cw__toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cw__panel { width: min(360px, calc(100vw - 24px)); max-height: min(580px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 22px; box-shadow: 0 30px 70px -24px rgba(20, 36, 106, .65); }
.cw__head { display: flex; align-items: center; justify-content: space-between; padding: .9rem .8rem .9rem 1.2rem; color: #fff; background: linear-gradient(105deg, #1C3F9E 0%, #3A86DA 100%); }
.cw__head strong { font: 700 1.05rem/1.2 var(--font-head); }
.cw__close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.cw__close:hover { background: rgba(255, 255, 255, .16); }
.cw__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cw__menu { display: grid; gap: .6rem; padding: 1rem; }
.cw__menu p { font-size: .92rem; color: var(--muted); }
.cw__menu .cw__lead { color: var(--ink); font-weight: 600; }
.cw__menu .cw__online { display: flex; align-items: center; gap: .5rem; margin-top: -.35rem; color: #1E8E5A; font-weight: 700; }
.cw__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2FB873; }
.cw__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2FB873; animation: cw-pulse 1.8s ease-out infinite; }
@keyframes cw-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
/* Кнопка связи появляется плавно после загрузки страницы, окно — плавно при открытии и закрытии */
.cw__toggle { animation: cw-in .6s cubic-bezier(.2, .8, .3, 1) .7s both; }
@keyframes cw-in { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
.cw__panel { opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .26s ease, transform .26s cubic-bezier(.2, .8, .3, 1); }
.cw__panel.is-open { opacity: 1; transform: none; }
.cw__item { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.cw__item:hover { border-color: var(--navy); color: var(--ink); }
.cw__item > span:last-child { display: grid; line-height: 1.3; }
.cw__item > span:last-child span { font-size: .84rem; color: var(--muted); }
.cw__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, #7CC4F8 0%, #2456C8 100%); }
.cw__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cw__ico--text { font: 800 1.15rem/1 var(--font-head); }
.cw__chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cw__back { border: 0; background: none; padding: .7rem 1.2rem .2rem; color: var(--navy); font: 600 .88rem/1.2 var(--font-body); text-align: left; cursor: pointer; }
.cw__back:hover { color: var(--navy-deep); }
.cw__msgs { flex: 1; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .7rem 1rem; }
.cw__msg { max-width: 86%; padding: .55rem .75rem; border-radius: 14px; font-size: .93rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.cw__msg time { display: block; margin-top: .15rem; font-size: .7rem; opacity: .7; }
.cw__msg--admin { align-self: flex-start; background: #E3EDF9; border-bottom-left-radius: 4px; }
.cw__msg--visitor { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.cw__form { display: grid; gap: .5rem; padding: .7rem 1rem 1rem; border-top: 1px solid var(--line); }
.cw__form textarea.input { min-height: 3.4rem; }
.cw__form .input { font-size: .95rem; }
.cw__note { font-size: .74rem; line-height: 1.35; color: var(--muted); }
.cw__error { font-size: .85rem; font-weight: 600; color: var(--coral-deep); }

@media (max-width: 640px) {
  .cw { right: 12px; bottom: 12px; }
  .cw__toggle { width: 54px; height: 54px; border-radius: 18px; }
}

/* Кнопка виджета связи слегка пульсирует, от неё расходятся две мягкие волны. Пока окно открыто, движение останавливается */
.cw__toggle { position: relative; animation: cw-in .6s cubic-bezier(.2, .8, .3, 1) .7s both, cw-beat 2.8s ease-in-out 1.5s infinite; }
.cw__toggle::before, .cw__toggle::after { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  pointer-events: none; animation: cw-wave 2.8s ease-out 1.5s infinite; }
.cw__toggle::after { animation-delay: 2.2s; }
.cw__toggle[aria-expanded="true"] { animation: none; }
.cw__toggle[aria-expanded="true"]::before, .cw__toggle[aria-expanded="true"]::after { animation: none; }
@keyframes cw-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 26% { transform: scale(1); } }
/* Волна — кольцо вокруг кнопки: растёт наружу и гаснет, саму кнопку не перекрывает */
@keyframes cw-wave { 0% { box-shadow: 0 0 0 0 rgba(58, 134, 218, .5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(58, 134, 218, 0); } }
@media (prefers-reduced-motion: reduce) {
  .cw__toggle { animation: none; }
  .cw__toggle::before, .cw__toggle::after { animation: none; }
}
