/* XTrade — специфичные стили страницы */

/* ===================== HERO ===================== */
/* tighter spacing on XTrade hero: пилюли «5 площадок / Профит / Без API»
   стоят ближе к ссылкам «Возможности · Тарифы» — ссылки фактически
   подписи под пилюлями, а не отдельный смысловой блок. */
.hero__features--xtrade {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .hero__features--xtrade {
    margin-bottom: 6px;
  }
}

/* ===================== FEATURES ===================== */
.xtrade-features {
  padding: 80px 0;
  background: #0a0a0f;
}

.xtrade-features .title h2 {
  color: #fff;
}

.xtrade-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

@media (max-width: 992px) {
  .xtrade-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: keep 2-column grid (avoid one-tall-column scrolling).
   With 5 cards left after dropping push-notifications we get a 2+2+1
   layout — last card spans full width so the row doesn't look cropped. */
@media (max-width: 576px) {
  .xtrade-features {
    padding: 56px 0;
  }
  .xtrade-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
  }
  .xtrade-features__grid > .xtrade-feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.xtrade-feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 26px;
  transition: all 0.3s ease;
}

.xtrade-feature:hover {
  border-color: rgba(0, 174, 228, 0.3);
  background: rgba(0, 174, 228, 0.04);
  transform: translateY(-3px);
}

.xtrade-feature__icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 174, 228, 0.1);
  border: 1px solid rgba(0, 174, 228, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.xtrade-feature__icon svg {
  display: block;
}

.xtrade-feature__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.xtrade-feature__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* Mobile: tighter density so two cards per row breathe. */
@media (max-width: 576px) {
  .xtrade-feature {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .xtrade-feature__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    margin-bottom: 12px;
  }
  .xtrade-feature__icon svg {
    width: 18px;
    height: 18px;
  }
  .xtrade-feature__title {
    font-size: 0.92rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .xtrade-feature__text {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

/* ===================== PRICING ===================== */
.xtrade-pricing {
  padding: 80px 0;
  background: #0d0f12;
}

.xtrade-pricing .title h2 {
  color: #fff;
}

.xtrade-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 50px auto 0;
}

@media (max-width: 992px) {
  .xtrade-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .xtrade-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

.xtrade-plan {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px 28px 28px;
  position: relative;
  transition: border-color 0.25s ease;
}

.xtrade-plan:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.xtrade-plan--popular {
  border-color: #00aee4;
  background: rgba(0, 174, 228, 0.05);
}

.xtrade-plan--popular:hover {
  border-color: #00aee4;
}

.xtrade-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #00aee4;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.xtrade-plan__header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xtrade-plan__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.xtrade-plan__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.xtrade-plan__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #00aee4;
  letter-spacing: -0.03em;
  line-height: 1;
}

.xtrade-plan__period {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

.xtrade-plan__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.xtrade-plan__features li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.xtrade-plan__features li:last-child {
  border-bottom: none;
}

.xtrade-plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300aee4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.xtrade-plan__features li.xtrade-plan__feature--disabled {
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
}

.xtrade-plan__features li.xtrade-plan__feature--disabled::before {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.xtrade-plan__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  background: #00aee4;
  color: #fff;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

.xtrade-plan__btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 228, 0.35);
}

.xtrade-plan__btn--cta {
  display: inline-block;
  width: auto;
  padding: 16px 56px;
  font-size: 1rem;
  background: #00aee4;
  color: #fff;
  border: none;
}

.xtrade-plan__btn--cta:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 228, 0.35);
}

.xtrade-pricing__shared {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.xtrade-pricing__shared-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-right: 4px;
}

.xtrade-pricing__cta {
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 576px) {
  .xtrade-pricing__shared {
    font-size: 0.76rem;
    padding: 10px 14px;
    margin-top: 20px;
  }
}

/* ===================== XBOT PROMO ===================== */
.xbot-promo {
  padding: 80px 0;
  background: #0a0a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.xbot-promo__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.xbot-promo__text {
  flex: 1;
  min-width: 280px;
}

.xbot-promo__badge {
  display: inline-block;
  background: rgba(0, 174, 228, 0.15);
  color: #00aee4;
  border: 1px solid rgba(0, 174, 228, 0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.xbot-promo__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.xbot-promo__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.xbot-promo__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.xbot-promo__features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.xbot-promo__features span svg {
  flex-shrink: 0;
}

.xbot-promo__btn {
  display: inline-block;
  background: #00aee4;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.xbot-promo__btn:hover {
  background: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 228, 0.35);
}

@media (max-width: 768px) {
  .xbot-promo__content {
    flex-direction: column;
    text-align: center;
  }

  .xbot-promo__features {
    justify-content: center;
  }
}

/* ===================== FOOTER ===================== */
.xtrade-footer {
  background: #050508;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.xtrade-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.xtrade-footer__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.xtrade-footer__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #00aee4;
  letter-spacing: -0.03em;
}

.xtrade-footer__tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

.xtrade-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.xtrade-footer__links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.xtrade-footer__links a:hover {
  color: #00aee4;
}

.xtrade-footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}
