/* © ТОО «System-X KAZAKHSTAN». Проприетарный код, см. LICENSE. */

:root {
  --ink: #0b0e14;
  --ink-2: #131824;
  --paper: #ffffff;
  --paper-2: #f3f5fa;

  --on-ink: #ffffff;
  --on-ink-dim: #97a3c0;
  --on-paper: #101625;
  --on-paper-dim: #59637a;
  --accent: #4f46e5;
  --accent-hi: #6f66ff;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --wa: #25d366;
  --wa-bubble: #d9fdd3;

  --line: #e3e8f1;
  --line-ink: rgba(255, 255, 255, 0.11);

  --page: 1180px;
  --pad: 24px;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;

  --shadow: 0 18px 50px rgba(11, 14, 20, 0.10), 0 2px 6px rgba(11, 14, 20, 0.05);
  --shadow-ink: 0 24px 70px rgba(0, 0, 0, 0.45);
  --display: 'Exo 2', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-paper);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-s);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-ink);
  color: var(--on-ink);
}

.top-in { display: flex; align-items: center; gap: 16px; min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 100%;
}

.foot .brand-logo { height: 34px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 0;
}

.lang {
  font-size: 14px;
  color: var(--on-ink-dim);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--r-s);
}
.lang:hover { color: var(--on-ink); }

.solid, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  min-height: 44px;
}

.solid { background: var(--accent); color: #fff; }
.solid:hover { background: var(--accent-hi); transform: translateY(-1px); }

.ghost { border-color: var(--line-ink); color: var(--on-ink); }
.ghost:hover { border-color: var(--on-ink-dim); }
.on-paper .ghost { border-color: var(--line); color: var(--on-paper); }
.on-paper .ghost:hover { border-color: var(--on-paper-dim); }

.solid.big {
  font-size: 17px;
  padding: 15px 26px;
  border-radius: 12px;
}

.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: 72px 0 88px;
  background-image: radial-gradient(60% 55% at 78% 18%, rgba(79, 70, 229, 0.22), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink-dim);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18);
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-hi); }

.lead {
  font-size: 18px;
  line-height: 1.62;
  color: var(--on-ink-dim);
  max-width: min(46ch, 100%);
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note {
  font-size: 14px;
  color: var(--on-paper-dim);
  margin-top: 16px;
}
.hero .note, .foot .note, .on-ink .note { color: var(--on-ink-dim); }

.chat {
  background: #0f1a17;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-l);
  padding: 18px 16px 22px;
  box-shadow: var(--shadow-ink);
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-ink);
}

.chat-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wa);
  object-fit: cover;
  flex: 0 0 auto;
}

.chat-who { font-size: 14px; font-weight: 600; color: var(--on-ink); }
.chat-when { font-size: 12px; color: var(--on-ink-dim); }

.bubble {
  position: relative;
  max-width: 92%;
  background: var(--wa-bubble);
  color: #0b1f14;
  border-radius: 12px 12px 12px 3px;
  padding: 11px 13px 8px;
  font-size: 15.5px;
  line-height: 1.55;
  white-space: pre-line;
  margin-bottom: 10px;
}

.bubble b { font-weight: 700; }
.bubble-time {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #4e6b57;
  margin-top: 4px;
}
.chat-day {
  text-align: center;
  font-size: 12px;
  color: var(--on-ink-dim);
  background: var(--ink-2);
  border-radius: 999px;
  padding: 4px 12px;
  width: fit-content;
  margin: 0 auto 14px;
}

section { padding: 84px 0; }

.on-paper { background: var(--paper); color: var(--on-paper); }
.on-paper-2 { background: var(--paper-2); color: var(--on-paper); }
.on-ink { background: var(--ink); color: var(--on-ink); }

.sec-head { max-width: min(34ch, 100%); margin-bottom: 44px; }

h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

.sec-note {
  font-size: 16px;
  color: var(--on-paper-dim);
  margin-top: 14px;
  max-width: min(60ch, 100%);
}

.on-ink .sec-note { color: var(--on-ink-dim); }

.pains { display: grid; gap: 0; }
.pain + .pain {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.pain {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.pain[data-side='right'] .pain-word { order: 2; }

.pain-label {
  font-family: var(--display);
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.pain-fix { color: var(--on-paper-dim); font-size: 16.5px; max-width: min(52ch, 100%); }
.shot {
  margin: 0 auto;
  width: 100%;
  max-width: 248px;
  aspect-ratio: 39 / 64;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-report {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-m);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.shot-report pre {
  margin: 0;
  overflow-x: auto;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  counter-reset: step;
}

.step-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--accent); }

.step-no {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-hi);
  margin-bottom: 10px;
}

.step-list b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-list p { color: var(--on-ink-dim); font-size: 15.5px; }
.esign-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.esign-list li { padding-top: 18px; border-top: 2px solid var(--accent); min-width: 0; }
.esign-list b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.esign-list p { font-size: 15.5px; overflow-wrap: break-word; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 22px;
}

.case {
  display: block;
  text-decoration: none;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .18s ease, box-shadow .18s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case img { width: 100%; height: auto; }
.case span {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
}

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.pricing-head .sec-head { margin-bottom: 0; }

.switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px; }
.switch button {
  border: 0;
  background: transparent;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-paper-dim);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.switch button.on { background: var(--ink); color: #fff; }
.switch i { font-style: normal; color: var(--wa); font-size: 12px; font-weight: 600; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(238px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 26px 22px;
}
.plan.best {
  background: var(--ink);
  color: var(--on-ink);
  border-color: transparent;
  transform: translateY(-10px);
  box-shadow: var(--shadow-ink);
}
.plan.best .plan-price small,
.plan.best li { color: var(--on-ink-dim); }

.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.plan.best .plan-badge { color: var(--accent-hi); background: rgba(111, 102, 255, 0.18); }

.plan h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 10px; }

.plan-price { margin-bottom: 18px; }

.plan-price .price {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-price .cur { font-size: 14px; color: var(--on-paper-dim); margin-left: 6px; }
.plan-price .total {
  display: block;
  font-size: 13px;
  color: var(--on-paper-dim);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.plan.best .plan-price .cur,
.plan.best .plan-price .total { color: var(--on-ink-dim); }
.plan:not(.best) .plan-badge { visibility: hidden; }

.plan ul { display: grid; gap: 9px; margin-bottom: 22px; font-size: 15px; color: var(--on-paper-dim); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan li::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.plan.best li::before { background: var(--wa); }

.plan .solid, .plan .ghost { margin-top: auto; width: 100%; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  margin-right: 3px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p { padding-bottom: 22px; color: var(--on-paper-dim); max-width: min(72ch, 100%); }
.legal { padding: 32px 0 64px; }
.legal h2 { margin-bottom: 20px; }
.legal h3 { font-size: 19px; margin: 28px 0 10px; }
.legal p { max-width: min(72ch, 100%); margin-bottom: 12px; color: var(--on-paper-dim); }
.legal .faq { margin-top: 28px; }

.foot { background: var(--ink); color: var(--on-ink); padding: 72px 0 40px; }

.foot-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  justify-items: center;
  text-align: center;
  padding-bottom: 56px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line-ink);
}

.foot-strip h2 { max-width: min(18ch, 100%); }
.foot-strip p { color: var(--on-ink-dim); max-width: min(52ch, 100%); }

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--on-ink-dim);
}
.foot-legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal .brand-logo { margin-bottom: 10px; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { color: var(--on-ink); }

@media (max-width: 900px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }

  .hero { padding: 48px 0 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .chat { margin: 0 auto; max-width: 100%; }
  .pain { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pain[data-side='right'] .pain-word { order: 0; }
  .shot { max-width: 260px; }
  .case-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad) 10px;
    -webkit-overflow-scrolling: touch;
  }
  .case { flex: 0 0 232px; scroll-snap-align: start; }

  .plan.best { transform: none; }
  .plans { gap: 14px; }

  .foot-legal { justify-content: flex-start; }
}

@media (max-width: 520px) {
  :root { --pad: 18px; }
  .solid.big { width: 100%; }
}
@media (max-width: 640px) {
  .top-nav .ghost { display: none; }
  html.signed-in .top-nav .solid.start { display: none; }
  .top-nav .solid[data-short] { font-size: 0; }
  .top-nav .solid[data-short]::after {
    content: attr(data-short);
    font-size: 15px;
    font-weight: 600;
  }
}

@media (max-width: 380px) {
  .brand-logo { height: 24px; }
  .top-in { gap: 10px; }
  .solid, .ghost { padding-left: 14px; padding-right: 14px; }
}
[data-scroll-cue='x'].cue-end {
  mask-image: linear-gradient(to left, transparent 0, #000 28px);
}
[data-scroll-cue='x'].cue-start {
  mask-image: linear-gradient(to right, transparent 0, #000 28px);
}
[data-scroll-cue='x'].cue-start.cue-end {
  mask-image: linear-gradient(to right,
              transparent 0, #000 28px,
              #000 calc(100% - 28px), transparent 100%);
}
h1, h2, h3, p, li, dd, dt, .card, .plan, .case, .pain {
  overflow-wrap: anywhere;
}
.price, .plan-price, .num, time { overflow-wrap: normal; }
