/* Сайт Revio. Цвета — из фирменной палитры (brand/revio): синий #245BFF, почти чёрный #10131A. */
:root {
  --ink: #10131a;
  --text: #2a2f3a;
  --muted: #5d6677;
  --line: #e3e6ed;
  --soft: #f4f6fa;
  --surface: #fff;
  --blue: #245bff;
  --blue-dark: #1846d6;
  --blue-soft: #eaf0ff;
  --dark: #0d111b;
  --pos: #12804a;
  --neg: #c8321f;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 2px #10131a0d, 0 14px 40px #10131a14;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; letter-spacing: -.028em; font-weight: 700; }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 34em; }
.note { font-size: 14px; color: var(--muted); }
.note.center { text-align: center; margin-top: 20px; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.large { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 11px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.plain { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.plain:hover { border-color: #c3c9d6; background: var(--soft); }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: #ffffffe6; backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand img { width: 106px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: 500; transition: background-color .2s; }
.nav a:hover { background: var(--soft); }
.top-actions { display: flex; gap: 6px; }

/* Первый экран */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); background: linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 22px; }
.hero-cta, .product-cta, .choice-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta { margin-top: 6px; }
.hero-art { position: relative; padding-bottom: 232px; }
.hero-art .report { margin-right: 48px; }

.shot, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.shot-head, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 14px; }
.report table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: 11px 10px; text-align: right; white-space: nowrap; }
.report th:first-child, .report td:first-child { text-align: left; padding-left: 18px; }
.report th:last-child, .report td:last-child { padding-right: 18px; }
.report th { font-size: 12px; font-weight: 500; color: var(--muted); }
.report tbody tr { border-top: 1px solid var(--line); }
.report td:first-child { color: var(--ink); font-weight: 500; }
.up { color: var(--pos); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.d1 { background: var(--blue); } .d2 { background: #7d9bff; } .d3 { background: var(--ink); }

.flow { position: absolute; right: 0; bottom: 0; width: min(250px, 62%); padding: 14px; display: grid; gap: 14px; }
.node { position: relative; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.node small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.node.src { background: var(--blue); border-color: var(--blue); color: #fff; }
.node.src small { color: #ffffffc7; }
.node.muted { background: var(--soft); }
.flow .node + .node::before, .canvas > .node + .node::before, .branch .node + .node::before { content: ''; position: absolute; left: 22px; top: -15px; height: 14px; border-left: 2px solid #c3c9d6; }

/* Продукты */
.product { padding: clamp(64px, 8vw, 112px) 0; }
.product.alt { background: var(--soft); border-block: 1px solid var(--line); }
.product-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.product-in.flip .product-text { order: 2; }
.product-text { display: grid; gap: 18px; }
.kicker { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.points { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; color: var(--muted); }
.points li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.points b { color: var(--ink); font-weight: 600; }

.bars { display: grid; gap: 14px; padding: 20px 18px; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr 3.4em; align-items: center; gap: 12px; font-size: 13.5px; }
.bar-row b { text-align: right; color: var(--pos); font-variant-numeric: tabular-nums; }
.bar-row.low b { color: var(--neg); }
.bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.bar-row.low .bar i { background: #c3c9d6; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.totals div { padding: 14px 18px; }
.totals div + div { border-left: 1px solid var(--line); }
.totals dt { font-size: 12px; color: var(--muted); }
.totals dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.canvas { padding: 22px; display: grid; gap: 14px; background-image: radial-gradient(#d5dae5 1px, transparent 1px); background-size: 18px 18px; background-color: var(--surface); }
.canvas > .node { max-width: 240px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.branch { display: grid; gap: 14px; }
.edge { justify-self: start; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 99px; }
.edge.ok { background: #e3f5ea; color: var(--pos); }
.edge.no { background: #fdeceA; color: var(--neg); }

/* Вместе */
.together { padding: clamp(64px, 8vw, 112px) 0; }
.together h2 { max-width: 20em; }
.path { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.path li { position: relative; padding: 22px 20px 0 0; border-top: 2px solid var(--line); }
.path li::before { content: ''; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.path p { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.step { display: inline-block; font-weight: 700; color: var(--ink); }
.step.kit, .step.revio { color: var(--blue); }

/* Выбор сервиса */
.start { padding: clamp(64px, 8vw, 104px) 0; background: var(--dark); color: #c5cbd8; }
.start h2 { color: #fff; text-align: center; }
.start .note { color: #8f98aa; }
.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 36px auto 0; }
.choice { display: grid; gap: 10px; padding: 28px; border-radius: var(--r); background: #161b28; border: 1px solid #262d3d; }
.choice h3 { color: #fff; font-size: 22px; }
.choice-cta { margin-top: 12px; }
.start .btn.plain { background: transparent; border-color: #38415480; color: #fff; }
.start .btn.plain:hover { background: #ffffff12; border-color: #556079; }

/* Подвал */
.foot { background: var(--dark); border-top: 1px solid #1f2533; color: #8f98aa; font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 26px; }
.foot nav { display: flex; gap: 20px; flex: 1; flex-wrap: wrap; }
.foot a { color: #c5cbd8; }
.foot a:hover { color: #fff; }

/* Окно входа */
dialog { border: 0; padding: 0; border-radius: 16px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 24px 70px #10131a40; color: var(--text); }
dialog::backdrop { background: #0d111b80; backdrop-filter: blur(2px); }
dialog[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-in { display: grid; gap: 10px; padding: 22px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dialog-head h2 { font-size: 21px; letter-spacing: -.02em; }
.close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.close:hover { background: var(--soft); color: var(--ink); }
.enter-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: border-color .2s, background-color .2s; }
.enter-row:hover { border-color: var(--blue); background: var(--blue-soft); }
.enter-row span { flex: 1; display: grid; }
.enter-row small { color: var(--muted); font-size: 13.5px; }
.enter-row i { font-style: normal; color: var(--blue); font-size: 18px; }
.dialog-in .note { margin-top: 6px; }

/* Узкие экраны */
@media (max-width: 900px) {
  .hero-in, .product-in { grid-template-columns: minmax(0, 1fr); }
  .product-in.flip .product-text { order: 0; }
  .path { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .path li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 22px 22px; }
  .path li:last-child { padding-bottom: 0; }
  .path li::before { top: 6px; left: -6px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .top-in { justify-content: space-between; gap: 12px; }
  .hero-cta .btn, .product-cta .btn, .choice-cta .btn { flex: 1 1 auto; }
  .choose { grid-template-columns: minmax(0, 1fr); }
  .report th:nth-child(3), .report td:nth-child(3), .report th:nth-child(2), .report td:nth-child(2) { display: none; }
  .hero-art .report { margin-right: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 7.5em 1fr 3.2em; gap: 8px; font-size: 13px; }
  .totals dd { font-size: 15px; }
  .totals div { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
