:root{
  --ink:#14181C;
  --ink-2:#1D2329;
  --ink-line: rgba(255,255,255,0.12);
  --paper:#F2F1ED;
  --paper-2:#E9E7E0;
  --text:#1B1F23;
  --muted:#6B6F76;
  --muted-on-ink: #9CA3AC;
  --line: rgba(27,31,35,0.12);
  --amber:#E8A33D;
  --amber-ink:#5C3E12;
  --green:#3FA772;
  --red:#D2543F;
  --blue:#4C7FD6;
  --radius: 10px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', sans-serif;
  color:var(--text);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{ font-family:'Space Grotesk', sans-serif; }
.mono{ font-family:'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1160px; margin:0 auto; padding:0 32px; }
@media(max-width:480px){ .wrap{ padding:0 20px; } }
img{max-width:100%; display:block;}
::selection{ background:var(--amber); color:var(--ink); }
:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(242,241,237,0.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo{ display:flex; align-items:center; gap:9px; font-family:'Space Grotesk'; font-weight:700; font-size:1.2rem; letter-spacing:-0.01em; }
.logo-mark{
  width:26px; height:26px; border-radius:6px;
  background: repeating-linear-gradient(115deg, var(--ink) 0 4px, transparent 4px 8px);
  background-color: var(--amber);
  flex-shrink:0;
}
.logo .dim{ color:var(--muted); font-weight:500; }
nav.links{ display:flex; gap:36px; }
nav.links a{ font-size:0.92rem; color:var(--muted); font-weight:500; transition:color .15s; }
nav.links a:hover{ color:var(--text); }
.nav-actions{ display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Inter'; font-weight:600; font-size:0.92rem;
  padding:11px 20px; border-radius:7px; cursor:pointer;
  border:1px solid transparent; transition: all .15s ease;
  white-space:nowrap;
}
.btn-amber{ background:var(--amber); color:var(--ink); }
.btn-amber:hover{ background:#f0b055; transform:translateY(-1px); }
.btn-ghost-ink{ color:var(--text); }
.btn-ghost-ink:hover{ color:var(--amber-ink); }
.btn-outline-paper{ border-color:var(--ink-line); color:var(--paper); }
.btn-outline-paper:hover{ background:var(--ink-2); }
/* ---------- MOBILE BURGER MENU ---------- */
.nav-burger{
  display:none; width:40px; height:40px; padding:0;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  background:transparent; border:1px solid var(--line); border-radius:8px;
  cursor:pointer; flex-shrink:0;
}
.nav-burger:hover{ background:var(--paper-2); }
.nav-burger span{
  display:block; width:18px; height:2px; background:var(--text); border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Overlays the page instead of sitting in the flow — in the flow it pushed
   everything below down by the menu's height when opened. The header is
   position:sticky, so it is the containing block for this absolute box. */
.mobile-menu{
  display:none;
  position:absolute; top:100%; left:0; right:0;
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  box-shadow:0 12px 24px -18px rgba(20,24,28,0.45);
  padding:6px 0 12px;
}
.mobile-menu a{
  display:block; padding:13px 0; font-size:0.98rem; font-weight:500;
  color:var(--text); border-bottom:1px solid var(--line);
}
.mobile-menu a:last-child{ border-bottom:none; }
.mobile-menu a:hover{ color:var(--amber-ink); }
.mobile-menu .mobile-menu-login{ font-weight:600; color:var(--amber-ink); }

/* Burger replaces the inline nav at exactly the width where that nav hides. */
@media(max-width:860px){
  nav.links{ display:none; }
  .nav-burger{ display:flex; }
  .mobile-menu.is-open{ display:block; }
  /* "Войти" lives in the menu below, so drop the duplicate from the bar. */
  .nav-actions .btn-ghost-ink{ display:none; }
  /* Keep the CTA and the burger on one row: wrapping pushed the burger onto
     a second line, under the button and outside the 72px header. */
  .nav-actions{ flex-wrap:nowrap; }
}
@media(max-width:480px){
  .nav-actions{ gap:10px; }
  /* Below ~390px the wordmark, the CTA and the burger stop fitting on one
     line. Dropping the wordmark frees ~140px — far more than shrinking the
     button would — and the logo square still carries the brand. Hidden
     visually rather than with display:none so screen readers keep the name. */
  header .logo-text{
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip:rect(0 0 0 0); white-space:nowrap;
  }
}

/* ---------- HERO / BOARD ---------- */
.board-section{
  background: var(--ink);
  color:var(--paper);
  position:relative;
  overflow:hidden;
}
.board-section::before{
  content:'';
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 100% 34px;
  pointer-events:none;
}
/* Vertical padding only — the horizontal padding must come from .wrap (this
   element is <div class="hero wrap">). A `padding: 96px 0 64px` shorthand here
   silently zeroed .wrap's side padding, leaving the hero flush against the
   screen edge while every other section kept its gutter. */
.hero{ padding-top:96px; padding-bottom:64px; position:relative; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono'; font-size:0.72rem; letter-spacing:0.14em;
  color:var(--amber); text-transform:uppercase; margin-bottom:22px;
}
.eyebrow::before{
  content:''; width:7px; height:7px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 0 4px rgba(232,163,61,0.18);
  animation: pulse-dot 1.8s infinite ease-in-out;
}
@keyframes pulse-dot{ 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.hero h1{
  font-size:clamp(2.4rem, 4.2vw + 1rem, 4.1rem);
  font-weight:700; line-height:1.05; letter-spacing:-0.02em;
  max-width:820px; margin-bottom:26px;
}
.hero h1 em{ font-style:normal; color:var(--amber); }
.hero p.lead{
  max-width:560px; font-size:1.08rem; line-height:1.6;
  color:var(--muted-on-ink); margin-bottom:36px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:72px; }

/* Split-flap board */
.board{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--ink-line);
  border:1px solid var(--ink-line);
  border-radius:12px; overflow:hidden;
}
.board-cell{
  background:var(--ink-2); padding:22px 20px 20px;
}
.board-cell .label{
  font-family:'IBM Plex Mono'; font-size:0.68rem; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--muted-on-ink); margin-bottom:14px; display:block;
}
.flip-value{
  font-family:'IBM Plex Mono'; font-weight:700; font-size:clamp(1.5rem,2.2vw,2.05rem);
  color:var(--paper); letter-spacing:-0.01em; display:flex;
}
.flip-value .flip-char{
  display:inline-block; min-width:0.62em; text-align:center;
}
.board-cell .delta{ font-family:'IBM Plex Mono'; font-size:0.78rem; margin-top:8px; }
.delta.up{ color:var(--green); } .delta.warn{ color:var(--amber); } .delta.down{color:var(--red);}
@media(max-width:760px){ .board{ grid-template-columns:repeat(2,1fr); } }

/* ---------- TICKER ---------- */
.ticker{
  background:var(--ink-2); border-top:1px solid var(--ink-line);
  overflow:hidden; position:relative;
}
.ticker::after, .ticker::before{
  content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none;
}
.ticker::before{ left:0; background:linear-gradient(90deg, var(--ink-2), transparent); }
.ticker::after{ right:0; background:linear-gradient(270deg, var(--ink-2), transparent); }
.ticker-track{ display:flex; width:max-content; animation:scrollTicker 34s linear infinite; }
.ticker:hover .ticker-track{ animation-play-state:paused; }
@keyframes scrollTicker{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.tick-item{
  display:flex; align-items:center; gap:10px;
  padding:16px 28px; border-right:1px solid var(--ink-line);
  font-family:'IBM Plex Mono'; font-size:0.84rem; white-space:nowrap; color:var(--muted-on-ink);
}
.tick-item .tname{ color:var(--paper); }
.tick-item .tup{ color:var(--green); } .tick-item .tdown{ color:var(--red); }

/* ---------- SECTIONS GENERIC ---------- */
section.pad{ padding:104px 0; }
.section-head{ max-width:600px; margin-bottom:56px; }
.section-head .eyebrow-dark{
  font-family:'IBM Plex Mono'; font-size:0.72rem; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--amber-ink); margin-bottom:14px; display:block;
  background: color-mix(in srgb, var(--amber) 22%, transparent);
  width:fit-content; padding:5px 10px; border-radius:5px;
}
.section-head h2{ font-size:clamp(1.7rem,2.4vw,2.4rem); font-weight:700; letter-spacing:-0.015em; line-height:1.15; margin-bottom:14px;}
.section-head p{ color:var(--muted); font-size:1.02rem; line-height:1.55; }

/* ---------- FEATURES ---------- */
.wrap-flush{ padding:0; }
.features{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.feature{
  border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:30px 26px;
  display:flex; flex-direction:column; height:100%;
}
.feature .ficon{ width:34px; height:34px; margin-bottom:20px; display:flex; align-items:center; justify-content:center; border-radius:7px; background:var(--paper-2); }
.feature h3{ font-size:1.02rem; font-weight:600; margin-bottom:10px; letter-spacing:-0.005em; }
.feature p{ font-size:0.9rem; color:var(--muted); line-height:1.55; margin-bottom:18px; min-height:72px; }
.feature .fstat{ font-family:'IBM Plex Mono'; font-size:0.82rem; font-weight:600; line-height:1.4; padding-top:14px; border-top:1px dashed var(--line); color:var(--text); margin-top:auto; min-height:1.4em; display:flex; align-items:center; }
.feature .fstat .old{ color:var(--muted); text-decoration:line-through; font-weight:500; margin-right:8px; }
@media(max-width:900px){ .features{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){
  .features{ grid-template-columns:1fr; }
  .wrap-flush{ padding:0 20px; }
}

/* ---------- LIVE EXAMPLE TABLE ---------- */
.table-wrap{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
table{ width:100%; border-collapse:collapse; }
th{
  text-align:left; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.06em;
  color:var(--muted); font-weight:600; padding:16px 20px; background:var(--paper-2);
  border-bottom:1px solid var(--line);
}
td{ padding:18px 20px; border-bottom:1px solid var(--line); vertical-align:middle; }
tr:last-child td{ border-bottom:none; }
td.mono{ white-space:nowrap; }
td .pname{ font-weight:600; font-size:0.94rem; }
td .pbrand{ font-size:0.78rem; color:var(--muted); margin-top:2px; }
.badge{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-size:0.78rem; font-weight:600; line-height:1; padding:7px 12px; border-radius:100px;
  white-space:nowrap;
}
.badge::before{ content:''; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.badge.above{ background:rgba(210,84,63,0.1); color:var(--red); } .badge.above::before{background:var(--red);}
.badge.inmarket{ background:rgba(63,167,114,0.1); color:var(--green); } .badge.inmarket::before{background:var(--green);}
.badge.below{ background:rgba(76,127,214,0.1); color:var(--blue); } .badge.below::before{background:var(--blue);}

@media(max-width:768px){
  .table-wrap{ border:none; background:transparent; overflow-x:visible; }
  table{ min-width:0; }
  thead{ display:none; }
  table, tbody, tr, td{ display:block; width:100%; }
  tr{
    background:#fff; border:1px solid var(--line); border-radius:12px;
    padding:18px 20px; margin-bottom:14px;
  }
  tr:last-child{ margin-bottom:0; }
  td{ border-bottom:none; padding:7px 0; }
  td:first-child{ padding:0 0 12px; margin-bottom:10px; border-bottom:1px dashed var(--line); }
  td:not(:first-child){ display:flex; align-items:center; justify-content:space-between; gap:12px; }
  td:not(:first-child)::before{
    content:attr(data-label);
    font-family:'Inter'; font-size:0.74rem; font-weight:600; color:var(--muted);
    text-transform:uppercase; letter-spacing:0.03em;
  }
  td.mono{ white-space:normal; }
}

/* ---------- MONITOR WIDGET ---------- */
.monitor-layout{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.monitor-copy ul{ margin-top:24px; }
.monitor-copy li{ display:flex; gap:12px; font-size:0.94rem; color:var(--text); padding:11px 0; border-top:1px solid var(--line); }
.monitor-copy li:first-child{ border-top:none; }
.monitor-copy li strong{ font-weight:600; }
.monitor-copy li .dot{ color:var(--amber-ink); }

.mcard{
  background:var(--ink); color:var(--paper); border-radius:16px; padding:26px 26px 22px;
  box-shadow: 0 24px 60px -20px rgba(20,24,28,0.45);
}
.mcard-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.live-tag{ display:flex; align-items:center; gap:7px; font-family:'IBM Plex Mono'; font-size:0.7rem; letter-spacing:0.09em; text-transform:uppercase; color:var(--green); }
.live-tag::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(63,167,114,0.2); }
.city-pill{ font-family:'IBM Plex Mono'; font-size:0.7rem; background:var(--ink-2); border:1px solid var(--ink-line); padding:4px 10px; border-radius:100px; color:var(--muted-on-ink); }
.tabs{ display:flex; gap:4px; background:var(--ink-2); padding:4px; border-radius:8px; margin-bottom:20px; width:fit-content; }
.tab-btn{ font-family:'Inter'; font-size:0.82rem; font-weight:600; padding:8px 16px; border-radius:6px; color:var(--muted-on-ink); cursor:pointer; border:none; background:transparent; }
.tab-btn.active{ background:var(--paper); color:var(--ink); }
.mcard-body{ min-height:265px; transition:opacity .22s ease; }
.mcard-body.is-swapping{ opacity:0; }
.m-meta{ font-family:'IBM Plex Mono'; font-size:0.72rem; color:var(--muted-on-ink); margin-bottom:2px; }
.m-name{ display:block; font-size:1.02rem; font-weight:600; line-height:1.35; margin-bottom:16px; min-height:44px; }
.price-view{ display:flex; align-items:flex-end; justify-content:space-between; }
.price-block .price{ font-family:'IBM Plex Mono'; font-size:2rem; font-weight:700; }
.price-block .old-price{ font-family:'IBM Plex Mono'; font-size:0.95rem; color:var(--muted-on-ink); text-decoration:line-through; margin-left:8px; }
.stock-status{ font-size:0.82rem; margin-top:8px; display:flex; align-items:center; gap:6px; color:var(--green); }
.stock-status.low{ color:var(--amber); }
.stock-status::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.updated-at{ font-family:'IBM Plex Mono'; font-size:0.72rem; color:var(--muted-on-ink); text-align:right; }
.visit-link{ display:inline-flex; align-items:center; gap:6px; font-size:0.84rem; font-weight:600; color:var(--amber); margin-top:20px; }
.visit-link:hover{ text-decoration:underline; }
.dyn-price{ font-family:'IBM Plex Mono'; font-size:1.5rem; font-weight:700; margin-bottom:14px; }
.dyn-stats{ display:flex; justify-content:space-between; margin-top:10px; font-family:'IBM Plex Mono'; font-size:0.76rem; color:var(--muted-on-ink); }
.mcard-nav{ display:flex; align-items:center; justify-content:space-between; margin-top:22px; padding-top:18px; border-top:1px solid var(--ink-line); }
.nav-arrow{ width:32px; height:32px; border-radius:50%; border:1px solid var(--ink-line); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--paper); background:transparent; }
.nav-arrow:hover{ background:var(--ink-2); }
.dots{ display:flex; gap:6px; }
.dot-i{ width:6px; height:6px; border-radius:50%; background:var(--ink-line); cursor:pointer; transition:.15s; }
.dot-i.active{ background:var(--amber); width:16px; border-radius:4px; }
.foot-note{ text-align:center; font-size:0.78rem; color:var(--muted-on-ink); margin-top:16px; }
@media(max-width:880px){ .monitor-layout{ grid-template-columns:1fr; gap:40px; } }

/* ---------- PRICING ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.price-card{
  border:1px solid var(--line); border-radius:14px; padding:32px 28px; background:#fff;
  display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover{ transform:translateY(-4px); box-shadow:0 20px 44px -24px rgba(20,24,28,0.35); border-color:var(--amber); }
.price-card.popular{ border-color:var(--ink); position:relative; box-shadow:0 20px 44px -24px rgba(20,24,28,0.3); }
.price-card.popular:hover{ border-color:var(--ink); box-shadow:0 28px 56px -24px rgba(20,24,28,0.42); }
@media(max-width:860px){ .pricing-grid{ grid-template-columns:1fr; } }
.pop-tag{ position:absolute; top:-13px; left:28px; background:var(--amber); color:var(--ink); font-family:'IBM Plex Mono'; font-size:0.68rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:5px 10px; border-radius:100px; }
.price-card h3{ font-size:1.1rem; font-weight:600; margin-bottom:6px; }
.price-card .pdesc{ font-size:0.86rem; color:var(--muted); margin-bottom:22px; }
.price-card .pnum{ font-family:'IBM Plex Mono'; font-size:2.1rem; font-weight:700; margin-bottom:2px; }
.price-card .pnum span{ font-size:0.95rem; font-weight:600; color:var(--muted); }
.price-card .pcap{ font-size:0.8rem; color:var(--muted); margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.price-card ul{ flex:1; margin-bottom:26px; }
.price-card li{ display:flex; gap:10px; font-size:0.88rem; padding:8px 0; align-items:flex-start; }
.check{ color:var(--green); flex-shrink:0; margin-top:1px; }
.price-card .btn{ width:100%; }

/* ---------- CTA ---------- */
.cta-board{ padding:88px 0; }
.cta-inner{ display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap; }
.cta-inner h2{ font-size:clamp(1.6rem,2.6vw,2.2rem); max-width:480px; line-height:1.2; margin-bottom:10px;}
.cta-inner p{ color:var(--muted-on-ink); max-width:440px; }
.cta-form{ display:flex; gap:10px; flex-wrap:wrap; }
.cta-form input{
  background:var(--ink-2); border:1px solid var(--ink-line); color:var(--paper);
  padding:13px 16px; border-radius:7px; font-family:'Inter'; font-size:0.92rem; width:260px; max-width:100%;
}
.cta-form input::placeholder{ color:var(--muted-on-ink); }

/* ---------- FOOTER ---------- */
footer{ padding:36px 0; border-top:1px solid var(--line); }
.foot-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.foot-tag{ font-size:0.84rem; color:var(--muted); }
