/* Эквайра: стили лендинга */

@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FBFBF8;
  --ink: #1D2433;
  --ink-2: #5B6475;
  --ink-3: #8A91A0;
  --green: #1F5C4A;
  --green-2: #3E9A7C;
  --green-bg: #E7F0EC;
  --loss: #B5452B;
  --loss-bg: #F6E6E1;
  --amber: #8A5A12;
  --amber-bg: #F5ECD9;
  --rule: #E6E3DA;
  --panel: #FFFFFF;
  --wrap: 1160px;
  --gut: clamp(20px, 4vw, 40px);
  --font: "Plex", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.16; letter-spacing: -0.014em; max-width: 22ch; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -0.003em; }
p { margin: 0; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--ink-3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
section { padding: clamp(64px, 9vw, 112px) 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }

/* Кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 6px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 16px; letter-spacing: 0.005em;
  transition: background-color .15s ease;
}
.btn:hover { background: #18493B; }
.btn--small { height: 38px; padding: 0 16px; font-size: 15px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--ink-3); }
.link:hover { text-decoration-color: var(--ink); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 248, .94); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.is-scrolled { border-bottom-color: var(--rule); }
.top__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand--small { font-weight: 400; font-size: 14px; color: var(--ink-2); gap: 8px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { background: none; border: 0; padding: 6px 2px; font: 500 15px var(--font); color: var(--ink-2); cursor: pointer; }
.lang:hover { color: var(--ink); }

/* Первый экран */
.hero { background: var(--ink); color: #C9CEDA; padding: clamp(48px, 7vw, 100px) 0 0; }
.hero h1 { color: #fff; max-width: 22ch; font-size: clamp(36px, 4.6vw, 62px); }
.lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: #C9CEDA; max-width: 40em; }
.hero__actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.link--light { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.link--light:hover { text-decoration-color: #fff; }
.hero__facts { list-style: none; margin: clamp(48px, 6.5vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.16); }
.hero__facts li { padding: 24px 28px 32px 0; }
.hero__facts li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.hero__facts b { display: block; color: #fff; font-weight: 600; font-size: 17px; }
.hero__facts span { display: block; margin-top: 6px; font-size: 15px; color: #AEB4C2; }

/* Проблема и уровни */
.problem { background: #F4F4EF; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.problem__in { display: block; }
.problem__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px clamp(32px, 6vw, 88px); align-items: start; }
.problem__text h2 { grid-row: span 2; }
.problem__text h2 + p { margin-top: 0; }
.problem__text p + p { margin-top: 14px; }
.flow { margin: clamp(40px, 5vw, 60px) 0 0; display: grid; grid-template-columns: minmax(220px, 4fr) 120px minmax(0, 7fr); grid-template-rows: auto 392px; column-gap: 0; row-gap: 14px; align-items: center; }
.flow__cap { font-size: 14px; color: var(--ink-3); }
.flow__left { grid-column: 1; grid-row: 2; align-self: start; margin-top: 52px; }
.flow__cap--now { margin-bottom: 10px; }
.flow__cap--new { grid-column: 3; color: var(--green); font-weight: 600; }
.flow__inv { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 2px; padding: 16px 18px 22px; position: relative;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x; }
.flow__invhead { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px dotted #CFCBC0; }
.flow__invhead span + span { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.flow__invline { padding: 12px 0 8px; font-size: 14px; color: var(--ink-2); }
.flow__invtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 6px; border-top: 1px solid var(--rule); font-size: 14px; }
.flow__invtotal b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.flow__lines { grid-column: 2; grid-row: 2; width: 120px; height: 392px; overflow: visible; }
.flow__l { fill: none; stroke: #A9AFBB; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.flow__l--loss { stroke: var(--loss); }
.flow__list { grid-column: 3; grid-row: 2; list-style: none; margin: 0; padding: 0; align-self: start; }
.flow__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 82px; align-items: center; gap: 12px; height: 56px; padding: 0 16px; background: var(--panel); border: 1px solid var(--rule); border-top: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.flow__row--head { height: 24px; margin-top: 10px; background: transparent; border: 0; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.flow__list .flow__row:first-child { border-top: 1px solid var(--rule); border-radius: 6px 6px 0 0; }
.flow__list { -webkit-mask-image: linear-gradient(#000 0, #000 60%, transparent 100%); mask-image: linear-gradient(#000 0, #000 60%, transparent 100%); }
.flow__list .flow__row:last-child { border-bottom: 0; }
.flow__amt, .flow__mg, .flow__row--head span:nth-child(n+2) { text-align: right; }
.flow__mg { color: var(--ink-2); font-size: 14px; }
.flow__row.is-loss .flow__name { font-weight: 500; }
.flow__row.is-loss .flow__mg { color: var(--loss); font-weight: 600; }

/* Формула */
.formula h2 { max-width: none; }
.eq { margin-top: 40px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; border-top: 2px solid var(--ink); padding: 26px 0 0; gap: 0 22px; }
.eq__term b { display: block; font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink-2); min-height: 2.6em; }
.eq__term strong { display: block; margin-top: 10px; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.eq__term span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.eq__term--res b { color: var(--green); }
.eq__term--res strong { color: var(--green); font-weight: 600; }
.eq__op { font-size: clamp(32px, 4vw, 52px); line-height: 1; color: #B3B7C2; font-weight: 300; padding-top: calc(2.6em * 16 / 52 + 22px); }
.eq__cap { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.promises { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.promise p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* Как работает */
.how { padding-top: 0; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; background: var(--paper); position: relative; z-index: 1; }
.step__img { width: 160px; height: 96px; margin-bottom: 22px; }
.step::before { content: ""; position: absolute; top: calc(96px + 22px + 18px); left: 36px; right: 0; height: 1.5px; background: var(--rule); }
.step:last-child::before { display: none; }
.step h3 { margin-top: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 24ch; }

/* Модули */
.modules { background: var(--ink); color: #E9EBF0; }
.modules h2 { color: #fff; }
.modules__head { position: sticky; top: 100px; }
.modules__head p { margin-top: 20px; color: #AEB4C2; max-width: 30em; }
.modules__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.mods { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.mod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mod h3 { color: #fff; font-size: 17px; }
.mod p { color: #AEB4C2; font-size: 15.5px; }
.mod__tag { display: inline-block; margin-top: 6px; font-size: 12.5px; color: #9FD3BF; border: 1px solid rgba(159, 211, 191, .45); border-radius: 999px; padding: 1px 9px; }
.mod--base h3 { color: #fff; }

/* Альтернативы */
.alts { margin: 40px 0 0; }
.alt { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.alt:last-child { border-bottom: 1px solid var(--rule); }
.alt dt { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.alt dd { margin: 0; color: var(--ink-2); max-width: 46em; }

/* Точность */
.trust { padding-top: 0; }
.trust__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-top: 14px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.inv { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 18px 40px -26px rgba(29, 36, 51, .3); }
.inv__head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 15px; }
.inv__cur { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.inv__scroll { overflow-x: auto; }
.inv table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.inv th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 10px 20px 8px; }
.inv th.num { text-align: right; }
.inv td { padding: 10px 20px; border-top: 1px dotted #DAD6CB; }
.inv .st { font-size: 12.5px; white-space: nowrap; text-align: left; padding-left: 8px; }
.st--ok { color: var(--green); }
.st--new { color: var(--amber); font-weight: 600; }
.inv tr.is-new td { background: var(--amber-bg); }
.inv figcaption { padding: 10px 20px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--rule); }

/* Внедрение */
.rollout { background: #F4F4EF; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rollout__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.perim { margin: 0; }
.perim svg { width: 100%; height: auto; }
.pt { font-family: var(--font); fill: var(--ink); }
.pt--cap { font-size: 13px; fill: var(--ink-2); }
.pt--b { font-size: 16px; font-weight: 600; }
.pt--s { font-size: 13px; fill: var(--ink-2); }
.pt--mpt { font-size: 19px; font-weight: 600; fill: #fff; letter-spacing: -0.01em; }
.pt--w { font-size: 13px; fill: #CFE3DB; }
.facts { margin: 28px 0 0; }
.fact { padding: 16px 0; border-top: 1px solid var(--rule); }
.fact dt { font-weight: 600; font-size: 17px; }
.fact dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }

/* Опыт */
.exp__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.exp p { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: var(--ink); max-width: 34em; }

/* Для кого */
.roles { padding-top: 0; }
.roles__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.roles__list li { border-top: 2px solid var(--ink); padding-top: 16px; }
.roles__list p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* Контакты */
.contact { background: var(--green); color: #DDEBE5; }
.contact h2 { color: #fff; max-width: none; }
.contact__in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.contact__in > div:first-child p { margin-top: 12px; font-size: 18px; }
.contact__act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact__act p { font-size: 15px; }
.contact__act a:not(.btn) { color: #fff; }

/* Форма заявки */
.req { width: min(460px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 32px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(29, 36, 51, .45); }
.req::backdrop { background: rgba(29, 36, 51, .45); }
.req h2 { font-size: 26px; max-width: none; }
.req__lead { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.req__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px; }
.req__close:hover { color: var(--ink); }
.fld { display: block; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.fld input { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 12px; border: 1px solid #CFCBC0; border-radius: 6px; background: #fff; font: 400 16px var(--font); color: var(--ink); }
.fld input:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.chk { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.chk a { color: var(--ink); }
.req__err { margin-top: 14px; font-size: 14px; color: var(--loss); }
.req__act { margin-top: 24px; display: flex; align-items: center; gap: 22px; }
.req__cancel { background: none; border: 0; font: 500 16px var(--font); cursor: pointer; padding: 0; }
.req__done p { margin-top: 10px; color: var(--ink-2); }
.req__done .btn { margin-top: 24px; border: 0; cursor: pointer; }
.req .btn { border: 0; cursor: pointer; font-family: var(--font); }
.req .btn:disabled { opacity: .6; cursor: default; }

/* Страница политики */
html[lang="ru"] .lang-en, html[lang="en"] .lang-ru { display: none; }
.docbody { padding-top: 48px; padding-bottom: 72px; max-width: 760px; }
.docbody h1 { font-size: clamp(32px, 4vw, 44px); }
.docbody h2 { font-size: 20px; margin-top: 32px; max-width: none; }
.docbody p { margin-top: 10px; color: var(--ink-2); }
.docbody .muted { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.docback { margin-top: 40px; }

/* Подвал */
.foot { padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--ink); }

/* Адаптив */
@media (max-width: 1020px) {
  .nav { display: none; }
  .problem__in, .trust__in, .modules__in, .exp__in, .rollout__in { grid-template-columns: minmax(0, 1fr); }
  .modules__head { position: static; }
  .hero h1 { max-width: 13ch; }
  .roles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rollout__text { order: -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .top__in { height: 60px; gap: 12px; }
  .btn--small { display: none; }
  .eq { grid-template-columns: 1fr; gap: 18px; padding: 20px 0 0; }
  .eq__term b { min-height: 0; }
  .eq__term strong { font-size: 40px; }
  .eq__op { display: none; }
  .eq__term[data-op] strong::before { color: #A6AAB6; font-weight: 300; }
  .eq__term[data-op="−"] strong::before { content: "\2212\00a0"; }
  .eq__term[data-op="="] strong::before { content: "=\00a0"; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
  .step__img { grid-column: 1 / -1; width: 128px; height: 77px; margin-bottom: 14px; }
  .step__n { grid-row: span 2; }
  .step h3 { margin-top: 5px; }
  .promises, .roles__list, .steps, .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .hero__facts li { padding: 18px 0; }
  .step::before { display: none; }
  .alt, .mod { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .inv table { min-width: 0; }
  .inv th:nth-child(3), .inv td:nth-child(3) { display: none; }
  .inv th, .inv td { padding-left: 14px; padding-right: 14px; }
  .hero__actions { gap: 20px; }
}

@media (max-width: 1020px) {
  .problem__text { display: block; }
  .problem__text h2 + p { margin-top: 24px; }
}

@media (max-width: 760px) {
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 10px; }
  .flow__left, .flow__cap--new, .flow__list { grid-column: 1; grid-row: auto; }
  .flow__left { order: 1; margin-top: 0; } .flow__lines { order: 2; } .flow__cap--new { order: 3; margin-top: 4px; } .flow__list { order: 4; }   .flow__lines { grid-column: 1; grid-row: auto; width: 100%; height: 44px; }
  .flow__lines path { display: none; }
  .flow__lines { background: linear-gradient(var(--ink-3), var(--ink-3)) center/1.3px 100% no-repeat; }
  .flow__row { grid-template-columns: minmax(0, 1fr) 96px 66px; padding: 0 12px; font-size: 14px; gap: 8px; }
  .flow__row--head { font-size: 11.5px; white-space: nowrap; }
  .flow__row--head { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
