:root {
  --ink: #15171C;
  --panel: #1C1F26;
  --bone: #EDEAE2;
  --brass: #C7A135;
  --clay: #B8503F;
  --green: #3FA66B;
  --wire: rgba(255, 255, 255, 0.08);
  --tg-blue: #2AABEE;

  --radius: 6px;
  --gap-desktop: 112px;
  --gap-mobile: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Archivo', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 800;
  margin: 0 0 16px 0;
}

h1 {
  font-size: 48px;
  line-height: 1.15;
}

h2 {
  font-size: 30px;
  margin-bottom: 40px;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  max-width: 62ch;
  color: rgba(237, 234, 226, 0.8);
}

a {
  color: inherit;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--gap-desktop) 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--wire);
  z-index: 100;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}

.wordmark {
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  color: var(--bone);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(237, 234, 226, 0.85);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: var(--bone);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tg-channel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--tg-blue);
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--tg-blue);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.5);
  animation: tg-glow 2.6s ease-in-out infinite;
}

.tg-channel-btn:hover {
  background: #1e95d6;
  transform: translateY(-1px);
}

@keyframes tg-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(42, 171, 238, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tg-channel-btn { animation: none; }
}

.tg-icon {
  width: 15px;
  height: 15px;
  fill: #ffffff;
  flex-shrink: 0;
}

.nav-buy {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--bone);
  display: block;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.plan-buy.btn-ghost {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}

.plan-buy.btn-ghost:hover {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
  opacity: 0.88;
}

.plan-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== Hero ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-text h1 {
  letter-spacing: -0.01em;
}

.hero-text p {
  font-size: 17px;
}

.hero-visuals {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-panel {
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  transition: border-color 0.2s ease;
}

.hero-panel:hover {
  border-color: rgba(199, 161, 53, 0.3);
}

.panel-label {
  font-size: 13px;
  color: rgba(237, 234, 226, 0.6);
  margin-bottom: 12px;
}

/* ===== Key features ===== */
.hero-features {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--wire);
}

.hero-features h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(237, 234, 226, 0.8);
  max-width: 62ch;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--brass);
}

/* ===== Trade chart ===== */
.trade-chart {
  width: 100%;
  height: auto;
  display: block;
}

.grid-line {
  stroke: var(--wire);
  stroke-width: 1;
}

.trade-line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
}

.axis-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  fill: rgba(237, 234, 226, 0.45);
}

.price-label {
  text-anchor: end;
}

.marker-buy {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.marker-sell {
  fill: var(--clay);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.marker-tag {
  fill-opacity: 0.15;
}

.marker-tag-buy {
  fill: var(--green);
}

.marker-tag-sell {
  fill: var(--clay);
}

.marker-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  text-anchor: middle;
}

.marker-text-buy {
  fill: var(--green);
}

.marker-text-sell {
  fill: var(--clay);
}

/* ===== Radar chart ===== */
.radar-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1;
}

.radar-axis {
  stroke: var(--wire);
  stroke-width: 1;
}

.radar-data {
  fill: rgba(199, 161, 53, 0.18);
  stroke: var(--brass);
  stroke-width: 2;
}

.radar-dot {
  fill: var(--brass);
}

.radar-label {
  font-size: 11px;
  fill: rgba(237, 234, 226, 0.75);
  font-weight: 500;
}

.radar-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  fill: var(--brass);
}

/* ===== How it works ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--wire);
  transition: padding-left 0.2s ease;
}

.step:first-child {
  border-top: none;
}

.step:hover {
  padding-left: 6px;
}

.step-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--brass);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ===== Specification ===== */
.spec-sheet {
  border-top: 1px solid var(--wire);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--wire);
  transition: padding-left 0.2s ease;
}

.spec-row:hover {
  padding-left: 6px;
}

.spec-label {
  color: rgba(237, 234, 226, 0.7);
  font-size: 15px;
}

.spec-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  text-align: right;
  color: var(--brass);
}

/* ===== Exhibits ===== */
.exhibits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.exhibit {
  margin: 0;
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.exhibit:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 161, 53, 0.3);
}

.exhibit img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.exhibit figcaption {
  font-size: 13px;
  color: rgba(237, 234, 226, 0.6);
  margin-top: 12px;
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 161, 53, 0.3);
}

.plan-name {
  font-size: 14px;
  color: rgba(237, 234, 226, 0.65);
  margin-bottom: 14px;
}

.plan-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 34px;
  margin-bottom: 10px;
}

.plan-desc {
  font-size: 14px;
  color: rgba(237, 234, 226, 0.65);
  margin-bottom: 24px;
}

/* ===== FAQ ===== */
.faq-list {
  border-top: 1px solid var(--wire);
}

.faq-item {
  border-bottom: 1px solid var(--wire);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--bone);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--brass);
}

.faq-toggle {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--brass);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 22px 0;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--wire);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.footer-copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(237, 234, 226, 0.45);
  margin: 0;
  max-width: 100ch;
}

.tg-text-short {
  display: none;
}

/* ===== Tablets and below: hide Support button ===== */
@media (max-width: 920px) {
  .header-actions .tg-support-btn {
    display: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .section-inner {
    padding: var(--gap-mobile) 20px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .nav-inner {
    gap: 10px;
    padding: 12px 20px;
  }

  .wordmark {
    margin-right: auto;
  }

  .header-actions { order: 2; }
  .nav-buy { order: 3; }
  .menu-toggle { order: 4; }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--wire);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .tg-text-full {
    display: none;
  }

  .tg-text-short {
    display: inline;
  }

  .tg-icon {
    width: 14px;
    height: 14px;
  }

  .tg-channel-btn {
    height: 40px;
    padding: 0 12px;
    gap: 6px;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-buy {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .exhibits-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 8px;
  }

  .spec-row {
    flex-direction: column;
    gap: 6px;
  }

  .spec-value {
    text-align: left;
  }

  .radar-label {
    font-size: 12px;
  }

  .radar-value {
    font-size: 12px;
  }
}

/* ===== Small phones ===== */
@media (max-width: 380px) {
  .nav-inner {
    gap: 8px;
    padding: 12px 16px;
  }

  .wordmark {
    font-size: 17px;
  }

  .tg-channel-btn {
    padding: 0 10px;
    gap: 5px;
  }

  .tg-icon {
    width: 12px;
    height: 12px;
  }

  .nav-buy {
    padding: 0 12px;
  }

  .menu-toggle {
    padding: 6px;
  }
}

/* Совсем узкие экраны: иконку убираем, чтобы шапка не ломалась */
@media (max-width: 330px) {
  .tg-icon {
    display: none;
  }
}
.footer-contact {
  margin-top: 16px;
}

.footer-email {
  display: inline-block; /* нужно, чтобы работал transform */
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--brass, #C7A135);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 161, 53, 0.4);
  transform-origin: left center;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    text-shadow 0.18s ease;
}

.footer-email:hover {
  transform: scale(1.06);
  border-color: var(--brass, #C7A135);
  text-shadow: 0 0 12px rgba(199, 161, 53, 0.35);
}

/* увеличение при нажатии */
.footer-email:active {
  transform: scale(1.15);
  text-shadow: 0 0 16px rgba(199, 161, 53, 0.5);
}

.footer-email:focus-visible {
  outline: 2px solid var(--brass, #C7A135);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .footer-email { transition: none; }
  .footer-email:hover,
  .footer-email:active { transform: none; }
}