/* ============================================================
   КП — design tokens & base styles (Cyberia brand)
   Design width: 1920px. Everything is authored at 1:1 and the
   whole page is scaled to the viewport width by app.jsx.
   ============================================================ */

:root {
  /* palette */
  --ink:        rgb(11, 13, 32);     /* primary text / dark hero bg */
  --ink-2:      rgb(40, 40, 40);
  --blue:       rgb(41, 76, 255);    /* brand blue #294CFF */
  --blue-deep:  rgb(9, 20, 119);
  --blue-bright:rgb(0, 122, 255);    /* case tag pill */
  --white:      #ffffff;
  --paper:      rgb(243, 243, 248);  /* light inner card */
  --paper-2:    rgb(245, 246, 255);  /* faint blue tint */
  --paper-3:    rgb(249, 249, 252);
  --line:       rgb(208, 208, 208);
  --line-soft:  rgb(234, 240, 255);
  --muted:      rgb(180, 183, 197);  /* wordmark grey */
  --muted-2:    rgb(158, 159, 164);  /* chip border */

  /* type */
  --head: "Unbounded", system-ui, sans-serif;
  --body: "Wix Madefor Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* rhythm */
  --pad-x: 100px;          /* slide left/right margin */
  --card-radius: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0b16;     /* letterbox behind the scaled page */
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- scaling rig --------------------------------------------------- */
#stage-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
#stage {
  width: 1920px;
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
}

/* ---- generic section ---------------------------------------------- */
.kp-section {
  position: relative;
  width: 1920px;
  overflow: hidden;
}
.kp-section--screen { min-height: 1080px; }          /* brand "slides" */
.kp-section--flow   { padding: 117px 0; }             /* content cards */
.kp-section--white  { background: var(--white); }
.kp-section--blue   { background: var(--blue); }
.kp-section--ink    { background: var(--ink); }

/* ---- logo (brand asterisk + КИБЕРИЯ wordmark) --------------------- */
.kp-logo {
  display: inline-flex;
  align-items: center;
  gap: .42em;
  font-size: 22px;          /* drives both star and word; override per context */
  color: var(--ink);
  line-height: 1;
}
.kp-logo__star { width: 1.04em; height: 1.04em; display: block; flex: none; }
.kp-logo__word {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: currentColor;
}
.kp-logo--light { color: var(--white); }
.kp-logo--ink   { color: var(--ink); }
.kp-logo--grey  { color: var(--muted); }

/* ---- sticky site header (rendered OUTSIDE the scaled stage) ------- */
.kp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .28s ease, box-shadow .28s ease;
}
.kp-header__inner {
  max-width: 1920px;
  margin: 0 auto;
  height: 84px;
  padding: 0 clamp(20px, 5.2vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kp-header.is-solid {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 1px 0 rgba(11, 13, 32, .08);
}
.kp-header__brand { text-decoration: none; display: inline-flex; }
.kp-header .kp-logo { font-size: 23px; }
.kp-header__right { display: flex; align-items: center; gap: 28px; }
.kp-header__tag {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  transition: color .28s ease;
}
.kp-header.is-solid .kp-header__tag { color: rgba(11, 13, 32, .5); }
.kp-header__cta {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 26px;
  border-radius: 100px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .55);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.kp-header.is-solid .kp-header__cta { background: var(--blue); border-color: var(--blue); }
.kp-header__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.kp-header.is-solid .kp-header__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (max-width: 720px) { .kp-header__tag { display: none; } }

/* shared heading helpers */
.kp-h-divider {
  font-family: var(--head);
  font-weight: 700;
  font-size: 100px;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
  white-space: pre-line;
  max-width: 1500px;
}
.kp-h-section {
  font-family: var(--head);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* ====================================================================
   HERO
   ==================================================================== */
.kp-hero {
  background: var(--ink);
}
.kp-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.kp-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.kp-hero__star {
  position: absolute;
  color: var(--blue-deep);
  opacity: .9;
  filter: blur(2px);
}
.kp-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.kp-hero__kicker {
  font-family: var(--head);
  font-weight: 600;
  font-size: 28px;
  color: var(--white);
  opacity: .7;
  margin: 0 0 28px;
}
.kp-hero__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 88px;
  line-height: 1.18;
  color: var(--white);
  margin: 0;
  max-width: 1500px;
  white-space: pre-line;
  text-wrap: balance;
}
.kp-hero__subtitle {
  font-family: var(--body);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
  margin: 36px 0 0;
  max-width: 1280px;
}
.kp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 64px;
}
.kp-chip {
  font-family: var(--body);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 100px;
  padding: 24px 44px;
  white-space: nowrap;
}
.kp-chip--solid {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

/* ====================================================================
   DIVIDER (blue full-bleed section header)
   ==================================================================== */
.kp-divider__inner {
  position: relative;
  z-index: 2;
  min-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
}
.kp-divider__sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  margin: 40px 0 0;
  max-width: 1400px;
  white-space: pre-line;
}
.kp-divider__star {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 760px;
  height: 760px;
  color: rgba(255,255,255,.10);
  z-index: 1;
}

/* ====================================================================
   TABLE OF CONTENTS
   ==================================================================== */
.kp-toc__inner { padding: 197px var(--pad-x) 0; }
.kp-toc__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 56px;
  max-width: 1200px;
}
.kp-toc__item { display: flex; flex-direction: column; gap: 8px; }
.kp-toc__item-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
}
.kp-toc__item-sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  opacity: .7;
}

/* ====================================================================
   TEAM
   ==================================================================== */
.kp-team__inner { padding: 197px var(--pad-x) 0; }
.kp-team__title {
  font-family: var(--head);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  white-space: pre-line;
}
.kp-team__sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  color: var(--ink);
  margin: 20px 0 0;
}
.kp-team__body {
  display: flex;
  gap: 70px;
  margin-top: 80px;
  align-items: flex-start;
}
.kp-team__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 36px;
  flex: 1;
  max-width: 1040px;
}
.kp-stat__value {
  font-family: var(--head);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  color: var(--blue);
}
.kp-stat__label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 16px;
  max-width: 480px;
}
.kp-team__card {
  width: 579px;
  flex: none;
  background: var(--paper);
  border-radius: 24px;
  padding: 32px 40px 40px;
}
.kp-team__card-link {
  font-family: var(--body);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  text-decoration: underline;
  display: block;
}
.kp-team__card-note {
  font-family: var(--body);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 20px 0 24px;
}
.kp-team__qr {
  width: 250px;
  height: 250px;
  border-radius: 16px;
  background: var(--white);
  object-fit: cover;
  display: block;
}

/* ====================================================================
   RATINGS
   ==================================================================== */
.kp-ratings__inner { padding: 197px var(--pad-x) 0; }
.kp-ratings__label, .kp-awards__label {
  font-family: var(--head);
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  margin: 0;
}
.kp-ratings__row {
  display: flex;
  gap: 140px;
  margin-top: 30px;
}
.kp-rating { max-width: 420px; }
.kp-rating__src {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.kp-rating__src img { width: 24px; height: 24px; object-fit: contain; }
.kp-rating__src span {
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-2);
}
.kp-rating__place {
  font-family: var(--head);
  font-weight: 600;
  font-size: 60px;
  line-height: 1.2;
  color: var(--blue);
}
.kp-rating__desc {
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 8px;
  white-space: pre-line;
}
.kp-ratings__rule {
  height: 1px;
  background: var(--line);
  margin: 60px 0 44px;
}
.kp-awards {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.kp-award {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.kp-award__badge {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--paper-3);
  display: flex; align-items: center; justify-content: center;
}
.kp-award__badge img { width: 48px; height: 48px; object-fit: contain; }
.kp-award__star { width: 38px; height: 38px; color: var(--blue); }
.kp-award__caption {
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  white-space: pre-line;
}

/* ====================================================================
   CONTENT CARD (+ inner elements)
   ==================================================================== */
.kp-cards-row {
  display: flex;
  gap: 16px;
  padding: 0 var(--pad-x);
  align-items: stretch;
}
.kp-cards-row > .kp-card { flex: 1; }

.kp-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 52px;
  margin: 0 var(--pad-x);
  box-shadow: 0 24px 60px -40px rgba(11,13,32,.25);
}
.kp-card__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.3;
  color: var(--blue);
  margin: 0;
}
.kp-card__title--sm { font-size: 40px; }
.kp-card__rule {
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}
.kp-card__content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* element: text */
.kp-el-text {
  font-family: var(--body);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  white-space: pre-line;
}
.kp-el-text--bold { font-weight: 700; }

/* element: list (blue dot bullets) */
.kp-el-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.kp-el-list li {
  position: relative;
  font-family: var(--body);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  color: var(--ink);
  padding-left: 36px;
}
.kp-el-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.kp-el-list--sm li { font-size: 24px; }

/* element: highlight (blue filled box) */
.kp-el-highlight {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-radius: 24px;
  padding: 40px 48px;
}
.kp-el-highlight p {
  position: relative; z-index: 2;
  font-family: var(--body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.35;
  color: var(--white);
  margin: 0;
  white-space: pre-line;
}
.kp-el-highlight__star {
  position: absolute;
  right: -60px; top: -80px;
  width: 360px; height: 360px;
  color: rgba(12,24,250,.55);
  z-index: 1;
}

/* element: outline (blue-bordered box) */
.kp-el-outline {
  border: 2px solid var(--blue);
  border-radius: 24px;
  padding: 40px 48px;
}
.kp-el-outline .kp-el-text,
.kp-el-outline .kp-el-list li { font-size: 32px; }

/* element: columns */
.kp-el-columns { display: flex; gap: 20px; }
.kp-el-col {
  flex: 1;
  background: var(--paper-3);
  border-radius: 20px;
  padding: 36px 40px;
}
.kp-el-col__head {
  font-family: var(--head);
  font-weight: 600;
  font-size: 28px;
  color: var(--blue);
  margin: 0 0 20px;
}
.kp-el-col__text {
  font-family: var(--body);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  white-space: pre-line;
}

/* element: code */
.kp-el-code {
  background: var(--ink);
  border-radius: 20px;
  padding: 36px 40px;
  overflow-x: auto;
}
.kp-el-code__lang {
  font-family: var(--mono);
  font-size: 18px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
  display: block;
}
.kp-el-code pre {
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.55;
  color: rgb(180, 194, 224);
  margin: 0;
  white-space: pre;
}

/* element: table */
.kp-el-table { width: 100%; border-collapse: collapse; }
.kp-el-table th, .kp-el-table td {
  font-family: var(--body);
  font-size: 28px;
  line-height: 1.3;
  text-align: left;
  padding: 26px 28px;
  border: 1px solid var(--line);
}
.kp-el-table th {
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper-3);
}
.kp-el-table td { font-weight: 500; color: var(--ink); }
.kp-el-table td:first-child { font-weight: 600; }
.kp-el-table tr:last-child td {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

/* element: numbered */
.kp-el-numbered { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.kp-el-numbered li {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.35;
  color: var(--ink);
}
.kp-el-num {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head);
  font-weight: 600;
  font-size: 26px;
}

/* ====================================================================
   EVALUATION (Оценка разработки)
   ==================================================================== */
.kp-eval { background: var(--white); }
.kp-eval__inner {
  position: relative; z-index: 2;
  padding: 220px var(--pad-x);
  min-height: 1080px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kp-eval__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 90px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 90px;
}
.kp-eval__cols { display: flex; gap: 120px; flex-wrap: wrap; }
.kp-eval__col { min-width: 360px; }
.kp-eval__label {
  font-family: var(--head);
  font-weight: 700;
  font-size: 32px;
  color: var(--blue);
  margin: 0 0 18px;
}
.kp-eval__price {
  font-family: var(--head);
  font-weight: 700;
  font-size: 80px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.kp-eval__term-label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  opacity: .55;
  margin: 48px 0 6px;
}
.kp-eval__term {
  font-family: var(--head);
  font-weight: 600;
  font-size: 40px;
  color: var(--ink);
  margin: 0;
}

/* ====================================================================
   CASE
   ==================================================================== */
.kp-case { background: var(--white); }
.kp-case__star {
  position: absolute;
  right: 360px; top: -180px;
  width: 1050px; height: 1000px;
  color: var(--paper-2);
  z-index: 1;
}
.kp-case__inner {
  position: relative; z-index: 2;
  min-height: 1080px;
  display: grid;
  grid-template-columns: 760px 1fr;
  gap: 60px;
  align-items: center;
  padding: 220px var(--pad-x) 120px;
}
.kp-case__tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--blue-bright);
  color: var(--white);
  border-radius: 100px;
  padding: 12px 28px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 36px;
}
.kp-case__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 36px;
}
.kp-case__p {
  font-family: var(--body);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 28px;
  white-space: pre-line;
}
.kp-case__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kp-case__shot {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 50px 90px -50px rgba(11,13,32,.5);
  display: block;
}
.kp-case__shot--phone {
  width: auto;
  max-height: 820px;
  border-radius: 44px;
}

/* ====================================================================
   CONTACTS
   ==================================================================== */
.kp-contacts { background: var(--white); }
.kp-contacts__title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 100px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  position: absolute;
  top: 197px;
  left: var(--pad-x);
  z-index: 3;
}
.kp-contacts__grid {
  position: absolute;
  top: 389px;
  left: var(--pad-x);
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  gap: 24px 60px;
}
.kp-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}
.kp-contact__icon { width: 36px; height: 36px; color: var(--muted); flex: none; }
.kp-contact__icon svg { width: 100%; height: 100%; display: block; }
.kp-contact a, .kp-contact span {
  font-family: var(--body);
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  text-decoration: underline;
}
.kp-contacts__panel {
  position: absolute;
  right: 0; top: 0;
  width: 840px;
  height: 100%;
  background: var(--blue);
  overflow: hidden;
}
.kp-contacts__panel-star {
  position: absolute;
  left: -240px; top: -200px;
  width: 1100px; height: 1050px;
  color: rgba(0,17,176,.4);
}
.kp-contacts__tagline {
  position: absolute;
  left: 91px; top: 197px;
  width: 660px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.35;
  color: var(--white);
  white-space: pre-line;
  z-index: 2;
}
.kp-contacts__phone {
  position: absolute;
  left: 120px; bottom: -40px;
  width: 560px;
  border-radius: 44px 44px 0 0;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  z-index: 2;
}

/* error / loader */
.kp-loader, .kp-error {
  font-family: var(--body);
  color: var(--white);
  padding: 80px;
  font-size: 22px;
}
.kp-error { color: #ff8a8a; white-space: pre-wrap; }
