@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amatic SC";
  src: url("../fonts/AmaticSC-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amatic SC";
  src: url("../fonts/AmaticSC-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-border: #d6d6d6;
  --color-dark: #54595f;
  --color-bg: #ffffff;
  --color-search-bg: #f1f2f3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
}

.header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  min-height: 162px;
}

.article__accent {
  color: #4054B2;
  font-family: Roboto;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 42px;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 46px 17px 74px;
}

.header__logo {
  display: block;
  width: 374px;
  height: 130px;
}

.header__logo-img {
  display: block;
  width: 100%;
  height: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__menu-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.header__search {
  position: relative;
  width: 191.84px;
  height: 40px;
  border: 1px solid var(--color-dark);
  border-radius: 24px;
  background-color: var(--color-search-bg);
  overflow: hidden;
}

.header__search-icon {
  position: absolute;
  left: 13.33px;
  top: 11.38px;
  width: 15px;
  height: 15px;
}

.header__search-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 6.4px 32.34px 6.4px 42px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 22px;
  line-height: 25px;
  color: #000000;
}

.header__search-input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.header__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

ul {
  margin: 0px;
}

.article__app {
  width: 300px !important;
}

.article__subtitle {
  color: #4054B2;
  font-family: "Amatic SC";
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.3px;
}

.article__section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.article__section .article__text {
  width: 100%;
  max-width: 100%;
  padding-bottom: 11px;
}

.article__content {
  display: flex;
  width: 100%;
}

.article__toc {
  width: 100%;
  max-width: 632px;
  background-color: #4054b2;
  border: 1px solid #6993e1;
  border-radius: 5px;
  overflow: hidden;
}

.article__toc-header {
  display: flex;
  align-items: center;
  height: 81px;
  padding: 0 20px;
  border-bottom: 1px solid #6993e1;
}

.article__toc-title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 40px;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.article__toc-body {
  min-height: 267px;
  overflow: auto;
  padding: 20px;
}

.article__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.article__toc-item {
  position: relative;
  min-height: 28.8px;
  padding-left: 16px;
}

.article__toc-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10.5px;
  width: 7.75px;
  height: 7.75px;
  background-color: #000000;
  border-radius: 50%;
}

.article__toc-link {
  display: inline-block;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: #b3caf3;
  text-decoration: none;
}

.comments {
  padding: 24px 10px 80px;
}

.comments__container {
  align-items: stretch;
}

.comments__title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  color: #333333;
  font-weight: 400;
}

.comments__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.comments__item {
  width: 100%;
  border-bottom: 1px solid #cccccc;
  padding: 30px 0;
  position: relative;
}

.comments__item-inner {
  max-width: 1060px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comments__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.comments__author {
  font-size: 14.4px;
  line-height: 14.4px;
  color: #333333;
}

.comments__date {
  font-size: 11px;
  line-height: 11px;
  color: #0000ee;
  flex-shrink: 0;
}

.comments__text {
  margin: 0;
  font-size: 14.4px;
  line-height: 21.6px;
  color: #333333;
}

.comments__reply {
  font-size: 11px;
  line-height: 11px;
  color: #0000ee;
  text-decoration: none;
}

.comments__item--reply {
  padding-left: 30px;
}

.comments__item--reply .comments__item-inner {
  max-width: 1030px;
}

.comments__reply-icon {
  position: absolute;
  left: 0;
  top: 45px;
  width: 14.4px;
  height: 14.4px;
}

.footer {
  background-color: #000000;
  color: #ffffff;
  border-top: 5px solid #e93f33;
  padding: 60px 10px 60px;
}

.footer__container {
  align-items: stretch;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 83px;
  font-family: "Amatic SC";
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0.6px;
  margin-bottom: 30px;
}

.footer__link {
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.footer__content {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 28px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
  line-height: 20.8px;
}

.footer__text {
  margin: 0;
}

.footer__text-link {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

@media (max-width: 1024px) {
  .header__container {
    padding: 15px 74px 17px;
  }

  .footer__nav {
    justify-content: flex-start;
    gap: 83px;
  }

  .footer__content {
    padding-left: 21px;
    padding-right: 21px;
  }
}

@media (max-width: 460px) {
  .article__app {
    width: 200px !important;
  }

  .header {
    min-height: 86px;
  }

  .header__container {
    padding: 15px 24px 15px 30px;
  }

  .header__logo {
    width: 160px;
    height: 56px;
  }

  .header__search {
    width: 112px;
  }

  .comments__item-inner {
    max-width: 296px;
  }

  .comments__item--reply {
    padding-left: 24px;
  }

  .comments__item--reply .comments__item-inner {
    max-width: 290px;
  }

  .footer {
    padding: 40px 10px 40px;
  }

  .footer__nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-bottom: 20px;
  }

  .footer__content {
    padding-left: 21px;
    padding-right: 21px;
  }
}

.article {
  padding: 36px 70px 110px 70px;
}

@media (max-width: 768px) {
  .article {
    padding: 36px 10px 50px 10px;
  }
}

.article img {
  width: 100%;
  max-width: 100%;
}

.article__title {
  color: #4054B2;
  text-align: center;
  font-family: "Amatic SC";
  font-size: 56px;
  font-style: normal;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0.6px;
  max-width: 710px;
  padding-bottom: 22px;
  margin: 0px;
}

.article__text {
  color: #000;
  font-family: Roboto;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  padding-bottom: 22px;
  max-width: 710px;
  margin: 0px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.comments .container {
  align-items: stretch;
}

.article-demo {
  width: 100%;
  max-width: 1040px;
}

.article-demo__mount {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 22px 22px 18px;
  border-radius: 28px;
  color: #f4f7fb;
  background:
    radial-gradient(circle at top left, rgba(57, 163, 255, 0.22), transparent 32%),
    linear-gradient(145deg, #101826 0%, #17253a 52%, #101826 100%);
  box-shadow: 0 24px 60px rgba(8, 18, 34, 0.28);
}

.article-demo__mount::before,
.article-demo__mount::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.article-demo__mount::before {
  top: -140px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.18), transparent 70%);
}

.article-demo__mount::after {
  left: -110px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(33, 211, 146, 0.12), transparent 70%);
}

.demo-widget {
  position: relative;
  z-index: 1;
}

.demo-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.demo-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #f0b90b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-widget__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ebd85;
  box-shadow: 0 0 0 6px rgba(46, 189, 133, 0.16);
}

.demo-widget__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  color: #ffffff;
}

.demo-widget__text {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(244, 247, 251, 0.78);
  font-size: 16px;
  line-height: 1.5;
}

.demo-balance {
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  text-align: right;
  backdrop-filter: blur(10px);
}

.demo-balance__label {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 247, 251, 0.72);
  font-size: 13px;
  line-height: 1.3;
}

.demo-balance__value {
  display: block;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.demo-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(6, 12, 22, 0.34);
}

.demo-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
  font-weight: 700;
}

.demo-table th,
.demo-table td {
  padding: 12px 8px;
  border: 1px solid rgba(112, 122, 138, 0.32);
  text-align: left;
}

.demo-table th {
  color: rgba(255, 255, 255, 0.92);
}

.demo-table td {
  color: rgba(244, 247, 251, 0.82);
}

.demo-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-flag {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.demo-heatmap-cell {
  background: transparent;
  opacity: 0;
  transition: background 0.8s, opacity 0.8s;
}

.demo-heatmap-cell.is-green,
.demo-heatmap-cell.is-red {
  opacity: 1;
}

.demo-heatmap-cell.is-green {
  background: rgba(64, 228, 151, 0.77);
}

.demo-heatmap-cell.is-red {
  background: rgba(238, 86, 102, 0.77);
}

.demo-widget__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(244, 247, 251, 0.8);
  font-size: 15px;
}

.demo-status__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.14);
  color: #f0b90b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-status__time {
  color: #ffffff;
  font-weight: 700;
}

.demo-status__hint {
  color: rgba(244, 247, 251, 0.62);
  font-size: 14px;
}

.demo-popup-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.demo-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92%, 420px);
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(95, 103, 114, 0.22);
  box-shadow: 0 0 20px rgba(21, 22, 27, 0.65);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -54%) scale(0.97);
  transition: opacity 0.2s, transform 0.21s;
}

.demo-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-popup__title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.demo-popup__title.is-profit {
  color: #2ebd85;
}

.demo-popup__title.is-loss {
  color: #ff7076;
}

.demo-popup__balance {
  color: #ffffff;
  font-size: 18px;
  text-align: center;
}

@media (max-width: 768px) {
  .article-demo__mount {
    padding: 16px 14px 14px;
    border-radius: 22px;
  }

  .demo-widget__header,
  .demo-widget__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-widget__title {
    font-size: 24px;
  }

  .demo-widget__text {
    font-size: 14px;
  }

  .demo-balance {
    min-width: 0;
    text-align: left;
  }

  .demo-balance__value {
    font-size: 20px;
  }

  .demo-status {
    flex-wrap: wrap;
  }

  .demo-popup__title {
    font-size: 20px;
  }
}