/* Advantages carousel */
.adv {
  --a-bg: #00050B;        /* фон секции */
  --a-card: #121A25;      /* фон карточек */
  --a-accent: #009CFF;    /* акцент: кнопки, стрелки, фокус */
  --a-pos: #2BD67B;       /* «позитивный» цвет: рост, Confirmed */
  --a-text: #F8FCFF;
  --a-muted: rgba(248, 252, 255, .45);
  --a-soft: rgba(248, 252, 255, .72);
  --a-dots: var(--a-accent); /* цвет точечного фона */
  --a-border: #F8FCFF;    /* цвет рамок (используется с прозрачностью) */
  --a-line: color-mix(in srgb, var(--a-border) 8%, transparent);
  --a-bg-opacity: .35;    /* яркость фоновой картинки секции */
  --a-card-img-opacity: .5; /* яркость фоновой картинки карточки */
  --a-w: min(520px, 84vw); /* ширина карточки */
  position: relative;
  margin: 0;
  padding: 56px 0 40px;
  background: var(--a-bg);
  color: var(--a-text);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  isolation: isolate;
}
.adv::before { /* точечный фон */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--a-dots) 22%, transparent) 1.1px, transparent 1.3px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 80%);
  opacity: .5;
}
.adv--nodots::before { display: none; }
.adv__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: var(--a-bg-opacity); pointer-events: none; }

.adv__head { text-align: center; max-width: 760px; margin: 0 auto 36px; padding: 0 20px; }
.adv__tag {
  display: inline-block; padding: 8px 12px; border: 1px solid var(--a-line); border-radius: 8px;
  background: color-mix(in srgb, var(--a-card) 90%, transparent);
  font: 600 12px/1 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase;
}
.adv__title { margin: 14px 0 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; color: var(--a-text); }
.adv__lead { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--a-soft); }

/* --- carousel --- */
.adv__carousel { position: relative; }
.adv__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px calc(50% - var(--a-w) / 2) 8px;
  scrollbar-width: none;
  outline: none;
  cursor: grab;
}
.adv__track::-webkit-scrollbar { display: none; }
.adv__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.adv__track:focus-visible { box-shadow: inset 0 0 0 2px var(--a-accent); border-radius: 24px; }

.adv__card {
  flex: 0 0 var(--a-w);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--a-card) 100%, #fff 3%), var(--a-card));
  border: 1px solid var(--a-line);
  opacity: .42;
  transition: opacity .4s;
  user-select: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.adv__card-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: var(--a-card-img-opacity); pointer-events: none; }
.adv__card.is-active { opacity: 1; }

.adv__top { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
.adv__card-title { margin: 0; flex: 0 0 auto; max-width: 52%; font-size: 26px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; color: var(--a-text); }
.adv__card-title span { display: block; }
.adv__muted { color: var(--a-muted); }
.adv__desc { margin: 2px 0 0; max-width: 46%; font-size: 13.5px; line-height: 1.45; color: var(--a-soft); }

.adv__media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 190px; }

.adv__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adv__tags li {
  padding: 8px 11px; border-radius: 7px; background: rgba(248, 252, 255, .06);
  font: 600 11px/1 "Courier New", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--a-soft);
}

.adv__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.adv__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--a-line);
  background: color-mix(in srgb, var(--a-card) 80%, transparent); color: var(--a-text);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, opacity .2s;
}
.adv__arrow:hover { background: color-mix(in srgb, var(--a-accent) 25%, var(--a-card)); }
.adv__arrow:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.adv__arrow[disabled] { opacity: .3; cursor: default; }
.adv__arrow i { width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.adv__arrow--prev i { transform: translateX(2px) rotate(-135deg); }
.adv__arrow--next i { transform: translateX(-2px) rotate(45deg); }
.adv__dots { display: flex; gap: 6px; }
.adv__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(248, 252, 255, .2); transition: width .3s, background .3s; }
.adv__dots span.is-active { width: 20px; background: var(--a-accent); }

.adv__note { margin: 24px auto 0; padding: 0 20px; max-width: 760px; text-align: center; font: 600 11px/1.5 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); }

/* ---------- illustrations ---------- */
.m-chev { width: 7px; height: 7px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(45deg); margin-left: auto; opacity: .7; }

/* auth */
.m-auth { display: grid; gap: 10px; width: min(270px, 100%); }
.m-auth__btn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.m-auth__btn svg { width: 20px; height: 20px; flex: none; }
.m-auth__btn--light { background: #F8FCFF; color: #0B1420; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.m-auth__btn--dark { background: rgba(248, 252, 255, .06); border: 1px solid var(--a-line); color: var(--a-soft); }

/* chat */
.m-chat { display: grid; gap: 10px; width: min(300px, 100%); }
.m-chat__msg { padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; max-width: 85%; }
.m-chat__msg--user { justify-self: end; background: var(--a-accent); color: #00050B; border-bottom-right-radius: 4px; }
.m-chat__msg--agent { justify-self: start; display: flex; gap: 8px; align-items: flex-start; background: rgba(248, 252, 255, .07); color: var(--a-soft); border-bottom-left-radius: 4px; }
.m-chat__dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--a-accent); animation: m-pulse 1.6s infinite; }
.m-chat__input { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 11px 16px; border-radius: 999px; border: 1px solid var(--a-line); background: rgba(0, 0, 0, .25); font-size: 13px; color: var(--a-muted); }
.m-chat__send { width: 26px; height: 26px; border-radius: 50%; background: var(--a-accent); }

/* transactions */
.m-tx { display: grid; gap: 8px; width: min(290px, 100%); padding: 8px; border-radius: 16px; background: rgba(248, 252, 255, .04); border: 1px solid var(--a-line); }
.m-tx__row { padding: 10px 12px; border-radius: 10px; background: rgba(248, 252, 255, .05); }
.m-tx__line { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--a-muted); }
.m-tx__line + .m-tx__line { margin-top: 6px; }
.m-tx__status { color: var(--a-pos); }
.m-tx__line--main { font-size: 15px; color: var(--a-text); }
.m-token { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #26A17B; color: #fff; font-size: 10px; vertical-align: 1px; }

/* chart */
.m-chart { position: relative; width: min(300px, 100%); padding: 14px; border-radius: 16px; background: rgba(248, 252, 255, .04); border: 1px solid var(--a-line); }
.m-chart__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.m-chart__coin { display: flex; gap: 10px; align-items: center; }
.m-coin { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 15px; }
.m-chart__ticker { display: block; font-size: 15px; }
.m-chart__name, .m-chart__chg { display: block; font-size: 11px; color: var(--a-muted); }
.m-chart__price { text-align: right; font-size: 14px; }
.m-chart__chg { color: var(--a-pos); }
.m-chart__svg { display: block; width: 100%; height: 90px; overflow: visible; }
.m-chart__area { fill: color-mix(in srgb, var(--a-pos) 18%, transparent); }
.m-chart__line { fill: none; stroke: var(--a-pos); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.m-chart__dot { fill: var(--a-pos); }
.m-chart__plot { position: relative; }
.m-chart__tag { position: absolute; right: -4px; transform: translate(0, -130%); padding: 3px 7px; border-radius: 6px; background: var(--a-pos); color: #00140A; font-size: 11px; font-weight: 700; }
.m-chart__x { display: flex; justify-content: space-between; margin-top: 8px; font: 10px/1 "Courier New", monospace; color: var(--a-muted); }
.adv__card.is-active .m-chart__line { animation: m-draw 1.6s ease-out both; }

/* approve */
.m-approve { width: min(280px, 100%); padding: 16px; border-radius: 16px; background: rgba(248, 252, 255, .05); border: 1px solid var(--a-line); }
.m-approve__title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.m-approve__row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--a-line); font-size: 12.5px; color: var(--a-soft); }
.m-approve__row span:last-child { color: var(--a-text); }
.m-approve__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.m-approve__btns span { padding: 10px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 600; }
.m-approve__no { background: rgba(248, 252, 255, .07); color: var(--a-soft); }
.m-approve__yes { background: var(--a-accent); color: #00050B; }
.adv__card.is-active .m-approve__yes { animation: m-glow 2.4s ease-in-out infinite; }

/* image / video */
.m-img { display: block; max-width: 100%; max-height: 230px; border-radius: 14px; object-fit: contain; }

@keyframes m-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes m-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes m-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a-accent) 0%, transparent); } 50% { box-shadow: 0 0 22px 2px color-mix(in srgb, var(--a-accent) 45%, transparent); } }

@media (prefers-reduced-motion: reduce) {
  .adv__track { scroll-behavior: auto; }
  .adv *, .adv *::before { animation: none !important; }
}

/* --- mobile --- */
@media (max-width: 640px) {
  .adv { padding: 40px 0 28px; --a-w: 86vw; }
  .adv__track { gap: 12px; }
  .adv__card { min-height: 0; padding: 18px; border-radius: 20px; }
  .adv__top { flex-direction: column; gap: 10px; }
  .adv__card-title, .adv__desc { max-width: none; }
  .adv__card-title { font-size: 22px; }
  .adv__media { padding: 18px 0; min-height: 170px; }
  .adv__arrow { width: 36px; height: 36px; }
  .adv__controls { margin-top: 16px; }
}

/* защита от регистра заголовков темы */
.adv h1, .adv h2, .adv h3 { text-transform: none; }
