:root {
  --ink: #2b2a29;
  --muted: #6f6d6b;
  --accent: #54bbe6;
  --accent-dark: #3aa6d4;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --line: #e6eaee;
  --dark: #151515;
  --radius: 24px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.5 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { display: flex; justify-content: center; margin-top: 40px; }
.muted { color: var(--muted); font-size: 14px; }
.sub { color: var(--muted); margin-top: 12px; font-size: 18px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 32px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; line-height: 1;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn--sm { padding: 14px 22px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #eaf6fc; }
.btn--block { width: 100%; }
.link { color: var(--accent-dark); font-weight: 600; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; }
.logo img { width: 142px; height: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav a:hover { color: var(--accent-dark); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px; }
.burger i { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger i + i { margin-top: 6px; }

/* Первый экран */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(84, 187, 230, .28), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(84, 187, 230, .14), transparent 70%),
    linear-gradient(180deg, #f5fbfe 0%, #fff 100%);
}
.eyebrow {
  display: inline-block; padding: 8px 16px; margin-bottom: 24px;
  border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: var(--accent-dark);
}
.hero h1 { max-width: 980px; }
.lead { max-width: 680px; margin-top: 24px; font-size: 18px; color: #4a4846; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 48px; margin: 64px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: 36px; font-weight: 500; color: var(--accent); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* Логотипы клиентов */
.clients { padding: 40px 0 24px; }
.marquee { overflow: hidden; margin-top: 20px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track img { height: 40px; width: auto; opacity: .55; filter: grayscale(1); }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* Секции */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .sub { color: rgba(255, 255, 255, .6); }

/* Направления */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.dir {
  display: flex; flex-direction: column; gap: 20px;
  padding: 40px; border-radius: var(--radius); background: var(--soft);
}
.dir--accent { background: linear-gradient(140deg, #54bbe6 0%, #3a9fd0 100%); color: #fff; }
.dir h3 { font-size: 28px; }
.dir__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; padding-top: 8px; }
.chip {
  align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; color: var(--accent-dark);
}
.chip--light { background: rgba(255, 255, 255, .2); color: #fff; }
.dash { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dash li { position: relative; padding-left: 24px; }
.dash li::before { content: "—"; position: absolute; left: 0; opacity: .6; }

/* Боли */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.pain { padding: 32px; border-radius: var(--radius); background: #fff; }
.pain b { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }

/* Что внедряем */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.sol { padding: 32px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.sol:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-2px); }
.sol__ic {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px;
  border-radius: 14px; background: #eaf6fc; color: var(--accent-dark); font-size: 14px; font-weight: 600;
}
.sol p { margin-top: 12px; color: var(--muted); }

/* Без подписок */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.compare__col { padding: 40px; border-radius: var(--radius); background: #222; }
.compare__col--m8 { background: var(--accent); }
.compare ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.compare li { position: relative; padding-left: 32px; }
.compare li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .15) center / 10px no-repeat;
}
.compare__col:not(.compare__col--m8) li { color: rgba(255, 255, 255, .7); }
.compare__col:not(.compare__col--m8) li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.compare__col--m8 li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.3 2.3 4.7-5' fill='none' stroke='%2354bbe6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.proof { margin-top: 32px; max-width: 760px; color: rgba(255, 255, 255, .75); font-size: 18px; }

/* Кейсы */
.cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-top: 48px; }
.case { position: relative; grid-column: span 2; aspect-ratio: 4 / 3; overflow: hidden; background: var(--dark); color: #fff; }
.case--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover img { transform: scale(1.04); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 35%, transparent 50%, rgba(0, 0, 0, .65) 100%); }
.case__body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: 28px; }
.case__kind { font-size: 14px; opacity: .8; }
.case h3 { font-size: 28px; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags span {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; line-height: 1.2;
  background: rgba(40, 40, 40, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tags .tag--ai { background: var(--accent); }

/* Этапы */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 32px; border-radius: var(--radius); background: #fff; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 20px; font-size: 40px; font-weight: 300; color: var(--accent); line-height: 1; }
.steps b { font-size: 20px; font-weight: 600; }
.steps p { margin-top: 10px; color: var(--muted); }

/* ЕБРР */
.ebrd {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; border-radius: var(--radius);
  background: radial-gradient(80% 120% at 100% 0%, rgba(84, 187, 230, .25), transparent 60%), var(--soft);
}
.ebrd h2 { font-size: clamp(24px, 2.6vw, 34px); }
.ebrd p { margin-top: 12px; max-width: 640px; color: var(--muted); }

/* Вопросы */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 32px; }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-size: 19px; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-size: 28px; font-weight: 300; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* Заявка */
.section--cta { background: linear-gradient(180deg, #fff 0%, #eef8fd 100%); }
.cta { display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.messengers a { padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.messengers a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.form { display: grid; gap: 12px; }
.section--cta .form { padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px rgba(84, 187, 230, .15); }
.form input, .form textarea {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--soft); font: inherit; font-size: 15px; color: var(--ink); resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form .is-invalid { border-color: #e5484d; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; }
.form__note a { color: var(--accent-dark); }
.form__status { font-size: 14px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1f8f4e; }
.form__status.is-err { color: #c4282d; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--soft); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 8px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 30, 40, .45); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 32px; border-radius: var(--radius); background: #fff; }
.modal__box h3 { font-size: 26px; }
.modal__box .muted { margin: 10px 0 20px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: var(--muted); }
.modal__close:hover { background: var(--soft); }

/* Подвал */
.footer { padding: 64px 0 32px; background: var(--dark); color: #fff; }
.footer__in { display: flex; justify-content: space-between; gap: 48px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer__cols a { color: rgba(255, 255, 255, .75); }
.footer__cols a:hover { color: #fff; }
.footer__copy { margin-top: 48px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Адаптив */
@media (max-width: 1100px) {
  .pains, .steps { grid-template-columns: 1fr 1fr; }
  .solutions { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line);
    font-size: 18px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open { transform: none; }
  .burger { display: block; }
  .header .btn--sm { margin-left: auto; }
  .directions, .compare { grid-template-columns: 1fr; }
  .case, .case--wide { grid-column: span 3; aspect-ratio: 4 / 3; }
  .ebrd { flex-direction: column; align-items: flex-start; }
  .footer__in { flex-direction: column; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --radius: 20px; }
  .header__in { gap: 12px; height: 64px; }
  .nav { top: 64px; }
  .logo img { width: 118px; }
  .header .btn--sm { padding: 12px 16px; font-size: 13px; }
  .hero { padding: 56px 0 48px; }
  .lead, .sub { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .facts { gap: 28px; margin-top: 44px; }
  .facts b { font-size: 28px; }
  .section { padding: 64px 0; }
  .pains, .steps, .solutions { grid-template-columns: 1fr; }
  .dir, .compare__col, .ebrd { padding: 28px; }
  .dir h3 { font-size: 24px; }
  .cases { grid-template-columns: 1fr; }
  .case, .case--wide { grid-column: auto; }
  .case__body { padding: 20px; }
  .case h3 { font-size: 24px; }
  .marquee__track { gap: 48px; }
  .marquee__track img { height: 32px; }
  .section--cta .form { padding: 20px; }
  .footer__cols { flex-direction: column; gap: 24px; }
  .modal__box { padding: 24px 20px; }
}

/* Экран благодарности после заявки */
.modal__box.is-sent > :not(.modal__close):not(.success), .form.is-sent { display: none; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; outline: none; }
.section--cta .success { padding: 40px 32px; border-radius: var(--radius); background: #fff; box-shadow: 0 20px 60px rgba(84, 187, 230, .15); }
.success h3 { margin-top: 24px; font-size: 28px; }
.success p { margin-top: 10px; max-width: 340px; color: var(--muted); }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.success__art { position: relative; width: 120px; height: 120px; }
.success__art svg { position: relative; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success__art circle { fill: #eaf6fc; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 340; stroke-dashoffset: 340; transform: rotate(-90deg); transform-origin: center; animation: draw .7s ease-out forwards; }
.success__art path { stroke: var(--accent); stroke-width: 7; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .4s .6s ease-out forwards; }
.success__art i {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  animation: burst .9s calc(.75s + var(--d)) cubic-bezier(.2, .7, .3, 1) forwards;
}
.success__art i:nth-child(3n + 2) { background: #a9dcf2; width: 7px; height: 7px; margin: -3.5px; }
.success__art i:nth-child(3n) { background: var(--ink); width: 5px; height: 5px; margin: -2.5px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-92px) scale(1); }
}
.success .btn { padding: 16px 24px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .success__art circle, .success__art path { animation: none; stroke-dashoffset: 0; }
  .success__art i { display: none; }
}
@media (max-width: 640px) {
  .success__actions .btn { width: 100%; }
}
