/* Hash Hedge — hashhedge.com.ru — design system */

:root {
  --bg: #101012;
  --bg-2: #17171b;
  --bg-3: #1f1f24;
  --surface: #17171b;
  --border: #2a2a31;
  --text: #e8e8e9;
  --muted: #9f9ea2;
  --accent: #ffdd2d;
  --accent-hover: #ffd600;
  --on-accent: #13111c;
  --radius: 30px;
  --radius-card: 16px;
  --maxw: 1140px;
  --font: "Montserrat", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ok: #37c978;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 5.2vw, 3.6rem); text-transform: uppercase; overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 30px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
  text-align: center; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: #000; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn--lg { padding: 17px 44px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,16,18,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; display: block; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: #fff; }
.brand__sub { display: block; font-size: .62rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; line-height: 1.2; }
.header-menu { display: contents; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { color: #fff; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-cta .btn { padding: 10px 22px; font-size: .9rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .2s; }

@media (max-width: 960px) {
  .burger { display: block; }
  .site-header__inner { gap: 12px; }
  .header-menu { display: none; }
  .site-header.nav--open .header-menu {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2);
    padding: 22px 20px; border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.nav--open .nav { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
  .site-header.nav--open .header-cta { flex-direction: column; align-items: stretch; gap: 12px; margin: 0; }
  .site-header.nav--open .header-cta .btn { width: 100%; padding: 13px; font-size: 1rem; }
  .burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--radius-card); overflow: hidden; margin: 28px 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,18,.55), rgba(16,16,18,.9)); }
.hero__inner { position: relative; z-index: 2; padding: 72px 28px; text-align: center; max-width: 900px; margin: 0 auto; }
.hero__inner p { color: var(--text); font-size: 1.1rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero__accent { color: var(--accent); }

/* ---------- Rating badge ---------- */
.rating { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 22px; color: var(--muted); font-size: .9rem; }
.rating__stars { color: var(--accent); letter-spacing: 2px; font-size: 1.05rem; }
.rating strong { color: #fff; }

/* ---------- Challenge selector ---------- */
.challenge { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.tier-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tier-tabs button {
  flex: 1 1 auto; min-width: 92px; padding: 12px 10px; border-radius: 12px; cursor: pointer;
  background: var(--bg-3); color: var(--muted); border: 1px solid var(--border); font-weight: 700; font-family: var(--font);
  transition: .15s;
}
.tier-tabs button:hover { color: #fff; }
.tier-tabs button.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tier-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.stage-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stage-table th, .stage-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.stage-table thead th { color: var(--accent); font-size: .82rem; text-transform: uppercase; }
.stage-table tbody th { text-align: left; color: var(--muted); font-weight: 600; }
.tier-summary { background: var(--bg-3); border-radius: 12px; padding: 20px; }
.tier-summary .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.tier-summary .row:last-of-type { border-bottom: 0; }
.tier-summary .row strong { color: #fff; }
.tier-summary .big { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,221,45,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.3rem; }
.lead { font-size: 1.12rem; color: var(--text); }

/* ---------- TOC ---------- */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px 28px; }
.toc h2 { font-size: 1.2rem; margin-bottom: .6em; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 6px 0; break-inside: avoid; }
.toc a { color: var(--text); font-size: .93rem; }
.toc a:hover { color: var(--accent); }

.article h2 { margin-top: 1.6em; scroll-margin-top: 90px; }
.article ul { padding-left: 22px; }
.article ul li { margin: 6px 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 24px 22px 68px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 34px; height: 34px; background: var(--accent); color: var(--on-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: #fff; font-family: var(--font); font-weight: 600; font-size: 1rem; padding: 18px 52px 18px 20px; cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); transition: .2s; }
.faq__item--open .faq__q::after { content: "\2212"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; color: var(--muted); }
.faq__item--open .faq__a { max-height: 600px; padding: 0 20px 18px; }

/* ---------- Comparison / price table ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.price-table thead th { color: var(--accent); text-transform: uppercase; font-size: .82rem; }
.price-table tbody td:first-child { text-align: left; font-weight: 700; color: #fff; }
.table-scroll { overflow-x: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, rgba(255,221,45,.14), rgba(255,221,45,.04)); border: 1px solid rgba(255,221,45,.3); border-radius: var(--radius-card); padding: 40px 28px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #0b0b0d; border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin: 7px 0; }
.footer__disclaimer { border-top: 1px solid var(--border); padding-top: 20px; font-size: .8rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 52px 18px; }
  .challenge { padding: 18px; }
  .btn--lg { padding: 15px 30px; }
}
