/* =========================================================
   STAKE KZ — CONTENT
========================================================= */

.front-page__content,
.page-content {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* =========================================================
   HEADINGS
========================================================= */

.front-page__content h1,
.front-page__content h2,
.front-page__content h3,
.front-page__content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text);
  line-height: 1.22;
  text-wrap: balance;
}

.front-page__content h1,
.page-content h1 {
  margin: 28px 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

.front-page__content h2,
.page-content h2 {
  margin: 32px 0 13px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.35px;
}

.front-page__content h3,
.page-content h3 {
  margin: 25px 0 10px;
  font-size: 19px;
  font-weight: 750;
}

.front-page__content h4,
.page-content h4 {
  margin: 22px 0 9px;
  font-size: 16px;
  font-weight: 750;
}

/* =========================================================
   PARAGRAPHS
========================================================= */

.front-page__content p,
.page-content p {
  margin: 0 0 16px;
}

/* =========================================================
   LINKS
========================================================= */

.front-page__content a:not([class]),
.page-content a:not([class]) {
  color: #74b8e8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .front-page__content a:not([class]):hover,
  .page-content a:not([class]):hover {
    color: #9bd4f7;
  }
}

/* =========================================================
   LISTS
========================================================= */

.front-page__content ul,
.front-page__content ol,
.page-content ul,
.page-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.front-page__content li,
.page-content li {
  padding-left: 3px;
}

.front-page__content li + li,
.page-content li + li {
  margin-top: 7px;
}

.front-page__content li::marker,
.page-content li::marker {
  color: #6eb7e8;
}

/* =========================================================
   BLOCKQUOTE
========================================================= */

.front-page__content blockquote,
.page-content blockquote {
  position: relative;
  margin: 24px 0;
  padding: 17px 20px 17px 22px;
  border: 1px solid rgba(122, 185, 222, 0.11);
  border-left: 3px solid rgba(71, 164, 226, 0.72);
  border-radius: 0 8px 8px 0;
  background: rgba(18, 49, 65, 0.62);
  color: #afc5d1;
}

.front-page__content blockquote p,
.page-content blockquote p {
  margin: 0;
}

/* =========================================================
   TABLE WRAPPER
========================================================= */
.table-responsive {
  width: 100%;
  margin: 18px 0 30px;
  padding: 0 !important;

  overflow-x: auto;
  overflow-y: hidden;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  scrollbar-width: thin;
  scrollbar-color: rgba(100, 171, 215, 0.55) rgba(7, 28, 39, 0.72);

  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   CUSTOM HORIZONTAL SCROLLBAR
========================================================= */

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(7, 28, 39, 0.72);
}

.table-responsive::-webkit-scrollbar-thumb {
  min-width: 56px;
  border: 2px solid rgba(7, 28, 39, 0.72);
  border-radius: 999px;
  background: rgba(100, 171, 215, 0.55);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(119, 193, 239, 0.72);
}

.table-responsive::-webkit-scrollbar-corner {
  background: transparent;
}

/* =========================================================
   TABLE — SINGLE OUTER BORDER
========================================================= */

.front-page__content table,
.page-content table {
  width: 100%;
  margin: 0 !important;

  border: 1px solid rgba(139, 188, 215, 0.12) !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 9px !important;

  background: linear-gradient(180deg, rgba(19, 49, 65, 0.94) 0%, rgba(15, 43, 57, 0.97) 100%) !important;

  box-shadow: 0 8px 24px rgba(2, 17, 25, 0.05) !important;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* =========================================================
   TABLE ROWS
========================================================= */

.front-page__content tr,
.page-content tr {
  background: transparent;
}

/* =========================================================
   TABLE CELLS
========================================================= */

.front-page__content th,
.front-page__content td,
.page-content th,
.page-content td {
  padding: 14px 17px;

  border: 0 !important;
  border-bottom: 1px solid rgba(143, 190, 216, 0.07) !important;

  background: transparent;

  text-align: left;
  vertical-align: middle;
}

/* =========================================================
   FIRST COLUMN
========================================================= */

.front-page__content th,
.page-content th {
  width: 31%;
  color: #eef5f8;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.014);
}

/* =========================================================
   COLUMN DIVIDER
========================================================= */

.front-page__content th + td,
.page-content th + td {
  border-left: 1px solid rgba(143, 190, 216, 0.065) !important;
}

/* =========================================================
   VALUE COLUMN
========================================================= */

.front-page__content td,
.page-content td {
  color: #abc2cf;
  font-weight: 450;
}

/* =========================================================
   LAST ROW
========================================================= */

.front-page__content tr:last-child > *,
.page-content tr:last-child > * {
  border-bottom: 0 !important;
}

/* =========================================================
   TABLE CORNERS
========================================================= */

.front-page__content tr:first-child > *:first-child,
.page-content tr:first-child > *:first-child {
  border-top-left-radius: 8px;
}

.front-page__content tr:first-child > *:last-child,
.page-content tr:first-child > *:last-child {
  border-top-right-radius: 8px;
}

.front-page__content tr:last-child > *:first-child,
.page-content tr:last-child > *:first-child {
  border-bottom-left-radius: 8px;
}

.front-page__content tr:last-child > *:last-child,
.page-content tr:last-child > *:last-child {
  border-bottom-right-radius: 8px;
}

/* =========================================================
   TABLE HOVER
========================================================= */

@media (hover: hover) and (pointer: fine) {
  .front-page__content tbody tr,
  .page-content tbody tr {
    transition: background 0.18s ease;
  }

  .front-page__content tbody tr:hover,
  .page-content tbody tr:hover {
    background: rgba(47, 137, 201, 0.035);
  }
}

/* =========================================================
   NO SCROLL TABLE
========================================================= */

.front-page__content table.no-scroll,
.page-content table.no-scroll {
  width: 100%;
  min-width: 0 !important;

  table-layout: fixed;
}

.front-page__content table.no-scroll th,
.front-page__content table.no-scroll td,
.page-content table.no-scroll th,
.page-content table.no-scroll td {
  white-space: normal;

  overflow-wrap: anywhere;
  word-break: normal;
}

.front-page__content table.no-scroll th,
.page-content table.no-scroll th {
  width: 34%;
}

/* =========================================================
   FAQ SPACING
========================================================= */

.front-page__content #faq {
  margin-top: 48px;
}

.front-page__content {
  padding-bottom: 48px;
}

.front-page__content > *:last-child {
  margin-bottom: 0 !important;
}

.front-page__content .faq {
  margin-bottom: 0 !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .front-page__content #faq {
    margin-top: 38px;
  }

  .front-page__content {
    padding-bottom: 38px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .front-page__content,
  .page-content {
    font-size: 14px;
    line-height: 1.62;
  }

  .front-page__content h2,
  .page-content h2 {
    margin-top: 28px;
    font-size: clamp(21px, 6vw, 26px);
  }

  .front-page__content h3,
  .page-content h3 {
    margin-top: 22px;
    font-size: 18px;
  }

  .table-responsive {
    width: 100%;
    margin: 16px 0 26px;
    padding-bottom: 5px !important;
  }

  .table-responsive::-webkit-scrollbar {
    height: 7px;
  }

  .front-page__content table,
  .page-content table {
    min-width: 560px;
    border-radius: 8px !important;
    font-size: 13px;
  }

  .front-page__content th,
  .front-page__content td,
  .page-content th,
  .page-content td {
    padding: 12px 14px;
  }

  .front-page__content th,
  .page-content th {
    width: 34%;
  }

  .front-page__content blockquote,
  .page-content blockquote {
    margin: 20px 0;
    padding: 15px 16px 15px 18px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .front-page__content ul,
  .front-page__content ol,
  .page-content ul,
  .page-content ol {
    padding-left: 21px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .front-page__content a,
  .page-content a,
  .front-page__content tbody tr,
  .page-content tbody tr {
    transition: none !important;
  }
}


/* =========================================================
   404 PAGE
========================================================= */

.error-page {
  width: 100%;
}

.error-404 {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 620px;

  padding: 70px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(20, 148, 215, 0.09),
      transparent 34%
    ),
    var(--bg);
}

.error-404::before,
.error-404::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  pointer-events: none;

  filter: blur(1px);
}

.error-404::before {
  top: 80px;
  left: 50%;

  width: 340px;
  height: 340px;

  transform: translateX(-50%);

  border: 1px solid rgba(61, 174, 230, 0.06);
}

.error-404::after {
  top: 135px;
  left: 50%;

  width: 230px;
  height: 230px;

  transform: translateX(-50%);

  border: 1px solid rgba(61, 174, 230, 0.05);
}


/* =========================================================
   INNER
========================================================= */

.error-404__inner {
  position: relative;
  z-index: 2;

  width: min(100%, 720px);

  margin: 0 auto;

  text-align: center;
}


/* =========================================================
   404 CODE
========================================================= */

.error-404__code {
  margin-bottom: -10px;

  color: rgba(255, 255, 255, 0.04);

  font-size: clamp(120px, 18vw, 220px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.08em;

  user-select: none;
}


/* =========================================================
   CONTENT
========================================================= */

.error-404__content {
  position: relative;

  width: min(100%, 560px);

  margin: -22px auto 0;
  padding: 30px 34px 34px;

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.015)
    );

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.error-404__eyebrow {
  display: inline-flex;

  margin-bottom: 12px;
  padding: 5px 9px;

  border: 1px solid rgba(72, 174, 230, 0.14);
  border-radius: 7px;

  background: rgba(41, 151, 213, 0.06);

  color: #6fc7f4;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.error-404__title {
  margin: 0;

  color: var(--text);

  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.error-404__text {
  max-width: 460px;

  margin: 14px auto 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}


/* =========================================================
   BUTTON
========================================================= */

.error-404__actions {
  display: flex;
  justify-content: center;

  margin-top: 24px;
}

.error-404__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 44px;

  padding: 11px 18px;

  border: 1px solid rgba(46, 170, 234, 0.24);
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      #1799df 0%,
      #117fc2 100%
    );

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;

  box-shadow:
    0 10px 28px rgba(13, 127, 194, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.error-404__button svg {
  flex: 0 0 auto;

  transition: transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .error-404__button:hover {
    color: #ffffff;

    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
      0 14px 34px rgba(13, 127, 194, 0.26);
  }

  .error-404__button:hover svg {
    transform: translateX(3px);
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .error-404 {
    min-height: 520px;

    padding: 54px 0;
  }

  .error-404__code {
    font-size: clamp(100px, 34vw, 150px);
  }

  .error-404__content {
    margin-top: -14px;
    padding: 26px 20px 28px;

    border-radius: 16px;
  }

  .error-404__title {
    font-size: 28px;
  }

  .error-404__text {
    font-size: 13px;
  }

  .error-404__button {
    width: 100%;

    min-height: 46px;
  }
}

/* =========================================================
   ANCHOR SCROLL OFFSET
========================================================= */

.front-page__content h2[id],
.front-page__content h3[id],
.front-page__content h4[id],
.page-content h2[id],
.page-content h3[id],
.page-content h4[id] {
  scroll-margin-top: calc(var(--stake-header-height) + 24px);
}
