:root { --dark:#13213B; --light:#F7F4EE; --paper:#EFEAE0; --ink:#16202E; --muted:#4A5568; --red:#A8281F; --gold:#E2B35C; --line:#DED6C6; }
* { box-sizing: border-box; margin: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", Arial, sans-serif; color: var(--ink); background: var(--light); line-height: 1.6; font-size: 16px; }
html[lang="ru"] body, html[lang="en"] body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; }
a { color: inherit; }
section[id], #grid { scroll-margin-top: 76px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(19,33,59,.97); color: var(--light); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand small { display: block; font-size: 12px; color: #AEBBD0; }
.logo { width: 36px; height: 36px; border-radius: 8px; background: var(--red); display: grid; place-items: center; font-weight: 900; }
nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
nav a { text-decoration: none; color: #D7DFEA; }
.langs { display: flex; gap: 2px; border: 1px solid #2E4370; border-radius: 6px; overflow: hidden; }
.langs a { padding: 4px 8px; font-size: 13px; color: #AEBBD0; }
.langs a.on { background: #2E4370; color: #fff; }
.contact-in .mail { color: var(--gold); }
.btn-s { background: var(--red); color: #fff !important; padding: 6px 16px; border-radius: 6px; }
.hero { background: var(--dark); color: var(--light); padding: 56px 0; }
.hero-in { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 14px; }
h1 { font-size: 42px; line-height: 1.25; margin: 10px 0 16px; }
.lead { color: #BFCBDD; font-size: 17px; max-width: 640px; }
.stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.stats b { display: block; font-size: 30px; color: #fff; }
.stats span { font-size: 13px; color: #AEBBD0; }
.rate { background: #1C2D4C; border: 1px solid #2E4370; border-radius: 14px; padding: 24px; }
.rate-t { color: var(--gold); font-weight: 700; font-size: 14px; }
.rate-v { font-size: 18px; margin: 6px 0; }
.rate-v b { font-size: 40px; color: #fff; }
.rate-r { color: #D7DFEA; }
.rate-s { font-size: 12px; color: #AEBBD0; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 28px 0 12px; }
.filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.filters select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--light); min-width: 140px; }
.filters .chk { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; padding-bottom: 8px; }
.found { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; padding-bottom: 48px; }
.card { background: #FFFDF8; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ph { position: relative; margin: -20px -20px 4px; aspect-ratio: 750 / 470; background: #E4DED2; border-radius: 14px 14px 0 0; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.none { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.ph .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(19,33,59,.7); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; margin: 0; }
.ph .prev { left: 10px; } .ph .next { right: 10px; }
.ph .cnt, .ph .src { position: absolute; bottom: 8px; font-size: 12px; background: rgba(19,33,59,.75); color: #fff; padding: 1px 8px; border-radius: 10px; }
.ph .cnt { right: 10px; } .ph .src { left: 10px; }
.card .code { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.card .new { background: var(--red); color: #fff; border-radius: 4px; padding: 0 6px; }
.card h3 { font-size: 18px; line-height: 1.35; }
.card .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card .price b { font-size: 26px; color: var(--red); }
.card .price span { color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; border-bottom: 1px dashed #E6E0D4; padding: 3px 0; }
.kv dt { color: var(--muted); }
.yield { background: #E6EBF3; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.yield b { color: var(--dark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; background: var(--paper); border-radius: 20px; padding: 2px 10px; color: var(--muted); }
.card button { margin-top: auto; font: inherit; background: var(--dark); color: #fff; border: 0; border-radius: 8px; padding: 10px; cursor: pointer; }
.card button:hover { background: var(--red); }
.trend { padding: 40px 20px 8px; }
.trend h2 { margin-bottom: 6px; }
.trend-sum { color: var(--ink); font-size: 17px; margin-bottom: 14px; }
.chart { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .gl { stroke: #E6E0D4; stroke-width: 1; }
.chart .gl.base { stroke: #B9B0A0; stroke-dasharray: 4 4; }
.chart .yl { font-size: 12px; fill: var(--muted); text-anchor: end; }
.chart .xl { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.chart .ln { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; background: var(--dark); color: #fff; font-size: 13px; line-height: 1.5; padding: 6px 10px; border-radius: 8px; pointer-events: none; min-width: 150px; }
.trend-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.wk { margin-top: 24px; }
.wk h3 { font-size: 20px; margin-bottom: 10px; }
.wk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wk-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.wk-card h4 { font-size: 15px; color: var(--muted); font-weight: 600; }
.wk-v { font-size: 15px; color: var(--muted); margin-top: 4px; }
.wk-v b { font-size: 28px; color: var(--ink); }
.wk-s { font-size: 13px; color: var(--muted); }
.wk-card svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.wk-card .gl { stroke: #E6E0D4; stroke-width: 1; }
.wk-card .yl { font-size: 11px; fill: var(--muted); text-anchor: end; }
.wk-card .xl { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.wk-card .ln { fill: none; stroke: var(--dark); stroke-width: 2.5; stroke-linejoin: round; }
.wk-card .band { fill: #C9D3E3; opacity: .55; }
.wk-card .bandbar { stroke: #C9D3E3; stroke-width: 10; stroke-linecap: round; }
.wk-card .dot { fill: var(--dark); stroke: #fff; stroke-width: 2; }
@media (max-width: 860px) { .wk-grid { grid-template-columns: 1fr; } }
.mk-wrap { overflow-x: auto; margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mk { border-collapse: collapse; width: 100%; font-size: 14px; }
.mk th { text-align: left; background: var(--paper); padding: 8px 12px; font-weight: 600; color: var(--muted); }
.mk td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.mk td:nth-child(2), .mk td:nth-child(4), .mk th:nth-child(2), .mk th:nth-child(4) { white-space: nowrap; }
.mk tr.sub td:first-child { padding-left: 28px; color: var(--muted); }
.trend-sale { background: #E6EBF3; border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14px; }
.trend details { margin-top: 10px; font-size: 14px; }
.trend summary { cursor: pointer; color: var(--muted); }
.trend table { border-collapse: collapse; margin-top: 8px; min-width: 320px; }
.trend th, .trend td { border-bottom: 1px solid var(--line); padding: 4px 12px; text-align: left; }
.band { background: var(--paper); padding: 48px 0; }
.band.dark { background: var(--dark); color: var(--light); }
h2 { font-size: 28px; margin-bottom: 20px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: var(--light); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps span { color: var(--muted); font-size: 14px; }
.faq { padding: 48px 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin-top: 8px; }
.contact-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.contact-in img { border-radius: 12px; background: #fff; padding: 8px; }
.small { font-size: 13px; color: #AEBBD0; margin-top: 8px; }
.foot { padding: 28px 20px 48px; font-size: 13px; color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(10,15,25,.6); display: grid; place-items: center; z-index: 20; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 14px; padding: 28px; text-align: center; position: relative; max-width: 340px; }
.modal-box .small { color: var(--muted); }
.modal-box img { margin: 12px auto; display: block; }
.x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 26px; cursor: pointer; }
.empty { color: var(--muted); padding: 40px 0; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  h1 { font-size: 30px; }
  nav > a:not(.btn-s) { display: none; }
  .brand small { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-in { flex-direction: column; text-align: center; }
}
