@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-var.woff2") format("woff2-variations"), url("assets/fonts/vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A0E18;
  --ink-2: #10151F;
  --ink-3: #171D2A;
  --line: #262D3C;
  --gold: #E2B13C;
  --gold-soft: rgba(226, 177, 60, .12);
  --red: #EE7A6E;
  --red-soft: rgba(238, 122, 110, .14);
  --text: #F4F1E8;
  --muted: #A9B0BE;
  --font: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.85 var(--font);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 14, 24, .97);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-left: auto; }
.brand__word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px; letter-spacing: .14em; color: var(--text); white-space: nowrap;
}
.brand__word b { font-weight: 400; color: var(--gold); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 26px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #EDC25A; }
.btn--line { border: 1px solid var(--line); color: var(--text); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { min-height: 42px; padding: 6px 16px; font-size: 15px; white-space: nowrap; }
.link {
  display: inline-block; color: var(--gold); font-weight: 700;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.link:hover { color: #EDC25A; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared type */
.eyebrow { color: var(--gold); font-size: 15px; font-weight: 700; margin-bottom: 12px; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.25; font-weight: 800; }
h1 em { font-style: normal; color: var(--gold); }
h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.35; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 20px; line-height: 1.5; font-weight: 700; }
.tag {
  display: inline-block; padding: 1px 10px; border: 1px solid rgba(226, 177, 60, .45);
  border-radius: 99px; color: var(--gold); font-size: 13px; white-space: nowrap;
}

/* Hero */
.hero { padding-block: 56px 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lead { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 34em; }
.hero .cta { margin-top: 32px; }

.ticket { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 14px; }
.ticket__chart { width: 100%; height: auto; margin-bottom: 8px; direction: ltr; }
.zone-risk { fill: var(--red-soft); }
.zone-target { fill: var(--gold-soft); }
.candles path { stroke: #667086; stroke-width: 1.5; fill: none; }
.candles .up { fill: #C8CEDA; }
.candles .dn { fill: #566075; }
.lvl { stroke-width: 1.5; }
.lvl--entry { stroke: var(--text); stroke-dasharray: 5 5; }
.lvl--stop { stroke: var(--red); }
.lvl--target { stroke: var(--gold); stroke-opacity: .6; }
.t { font: 700 14px var(--font); }
.t--entry { fill: var(--text); }
.t--stop { fill: var(--red); }
.t--target { fill: var(--gold); }
.calc div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 16px; }
.calc dt { color: var(--muted); }
.calc dd { font-weight: 500; white-space: nowrap; }
.calc__total dt { color: var(--text); font-weight: 700; }
.calc__total dd { color: var(--gold); font-weight: 800; font-size: 20px; line-height: 1.4; }
.ticket__note { color: var(--muted); font-size: 14px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 12px; }

/* Sections */
.section { padding-block: 76px; border-top: 1px solid var(--line); }
.section--alt { background: var(--ink-2); }
.section__head { max-width: 40em; margin-bottom: 36px; }
.section__head p:last-child, .split__head > p:not(.eyebrow), .about p:not(.eyebrow):not(.about__sign), .final p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split__head .link { margin-top: 18px; }
.rows { border-bottom: 1px solid var(--line); }
.rows li { padding-block: 20px; border-top: 1px solid var(--line); }
.rows p { color: var(--muted); }
.rows--plain li { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool {
  display: flex; flex-direction: column; background: var(--ink);
  border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 12px; padding: 26px;
}
.tool__platform { color: var(--gold); font-size: 14px; font-weight: 700; text-align: end; margin-bottom: 6px; }
.tool h3 { font-size: 23px; margin-bottom: 14px; }
.tool li { position: relative; padding-inline-start: 18px; padding-block: 5px; font-size: 16px; line-height: 1.75; }
.tool li::before { content: ""; position: absolute; inset-inline-start: 0; top: 16px; width: 6px; height: 6px; background: var(--gold); }
.tool__note { color: var(--muted); font-size: 15px; line-height: 1.8; margin-block: 16px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool .link { margin-top: auto; align-self: flex-start; }

.about { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center; max-width: 880px; }
.about__photo { width: 240px; height: 240px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink); }
.about__sign { color: var(--gold); font-weight: 700; margin-top: 12px; }

.final { padding-block: 64px; border-top: 1px solid var(--line); }
.final__row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.final h2 { margin-bottom: 6px; }
.final p { max-width: 34em; }
.final .cta { flex-shrink: 0; }

.foot { border-top: 1px solid var(--line); padding-block: 32px 28px; background: var(--ink-2); font-size: 15px; }
.risk { color: var(--text); line-height: 1.95; padding-inline-start: 14px; border-inline-start: 2px solid var(--red); }
.risk strong { color: var(--red); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 22px; color: var(--muted); }
.foot__links { display: flex; gap: 20px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--gold); }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-block: 48px; }
.notfound img { margin: 0 auto 24px; }
.notfound .lead { margin-inline: auto; margin-bottom: 28px; }
.notfound .cta { justify-content: center; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding-block: 36px 52px; }
  .hero__grid, .split, .tools { grid-template-columns: minmax(0, 1fr); }
  .hero__grid, .split { gap: 32px; }
  .section { padding-block: 56px; }
  .final__row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand__word { font-size: 13px; letter-spacing: .1em; }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .ticket { padding: 16px; }
  .tool { padding: 20px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .about__photo { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
