:root {
  --bg: #ebe9e4; --bg-2: #e2dfd8; --surface: #f6f5f1; --line: rgba(21, 21, 21, 0.12);
  --fg: #151515; --muted: #6b6b66;
  --accent: #ffc400; --accent-2: #151515; --accent-3: #ff8a00; --on-accent: #151515; --curtain: #ffc400;
  --font-display: 'Montserrat', sans-serif; --radius: 8px; --radius-sm: 6px;
  color-scheme: light;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.h-lg { font-size: clamp(34px, 4.6vw, 70px); }
.eyebrow::before { border-radius: 0; box-shadow: none; }
.btn { border-radius: 6px; }
.btn--ghost { border-color: var(--fg); }
.btn:hover { color: var(--accent); }
.btn::before { background: var(--fg); }
.field input { background: #fff; }
.d-logo i { border-radius: 6px; }

.rm-hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 70px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 60px 60px; }
.rm-hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rm-kicker { display: inline-block; padding: 6px 12px; background: var(--fg); color: var(--accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 22px; }
.rm-title { font-size: clamp(40px, 5.2vw, 82px); line-height: 0.98; display: grid; gap: 6px; margin-bottom: 24px; }
.rm-title > span:last-child { font-size: 0.55em; line-height: 1.1; }
.rm-title u { text-decoration: none; background: linear-gradient(transparent 55%, var(--accent) 55%); }
.rm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.rm-facts { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.rm-facts b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 30px; }
.rm-facts span { color: var(--muted); font-size: 14px; }

.rm-ba { position: relative; aspect-ratio: 4 / 4.4; border-radius: 10px; overflow: hidden; box-shadow: 20px 20px 0 var(--accent); --pos: 50%; }
.rm-ba__img { position: absolute; inset: 0; border-radius: 0; }
.rm-ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rm-ba__before img { filter: grayscale(1) invert(1) contrast(1.4) brightness(1.1); mix-blend-mode: normal; }
.rm-ba__before::after { content: ''; position: absolute; inset: 0; background: #1d4ed8; mix-blend-mode: multiply; opacity: 0.85; }
.rm-ba__grid { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 24px 24px; }
.rm-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); pointer-events: none; z-index: 3; }
.rm-ba__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.rm-ba__tag { position: absolute; top: 16px; z-index: 3; font-style: normal; font-weight: 800; font-size: 12px; text-transform: uppercase; padding: 6px 10px; background: rgba(0, 0, 0, 0.6); color: #fff; }
.rm-ba__tag--l { left: 16px; } .rm-ba__tag--r { right: 16px; }
.rm-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
@media (max-width: 900px) { .rm-hero__in { grid-template-columns: 1fr; } .rm-ba { box-shadow: 10px 10px 0 var(--accent); } }

.rm-calc { background: var(--fg); color: #f3f2ee; --muted: #a3a29c; --line: rgba(255, 255, 255, 0.12); --surface: #1f1f1f; }
.rm-calc__box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.rm-calc__form, .rm-calc__res { padding: clamp(24px, 3vw, 40px); border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 30px; align-content: start; }
.rm-field { display: grid; gap: 14px; }
.rm-field > span { font-weight: 700; }
.rm-field b { color: var(--accent); font-size: 22px; }
.rm-area { width: 100%; accent-color: var(--accent); height: 30px; cursor: pointer; }
.rm-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rm-seg label, .rm-checks label { position: relative; cursor: pointer; }
.rm-seg input, .rm-checks input { position: absolute; opacity: 0; }
.rm-seg span { display: block; padding: 16px 10px; text-align: center; border: 1.5px solid var(--line); border-radius: 6px; font-weight: 700; font-size: 14px; transition: 0.25s; }
.rm-seg input:checked + span { background: var(--accent); color: var(--fg); border-color: var(--accent); }
.rm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rm-checks span { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 600; transition: 0.25s; }
.rm-checks span::before { content: ''; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--muted); flex: none; transition: 0.25s; }
.rm-checks input:checked + span { border-color: var(--accent); }
.rm-checks input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.rm-seg input:focus-visible + span, .rm-checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-calc__res small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.rm-sum { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); color: var(--accent); line-height: 1; margin-top: -16px; }
.rm-term { color: var(--muted); margin-top: -14px; }
.rm-term b { color: #fff; }
.rm-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rm-bar i { display: block; height: 100%; width: 30%; background: var(--accent); transition: width 0.6s var(--ease); }
.rm-calc .field input { background: #2a2a2a; color: #fff; }
@media (max-width: 900px) { .rm-calc__box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rm-seg, .rm-checks { grid-template-columns: 1fr; } }

.rm-works { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.rm-work { margin: 0; position: relative; }
.rm-work--big { grid-row: span 2; }
.rm-work .d-img { height: 100%; min-height: 260px; border-radius: 8px; }
.rm-work figcaption { position: absolute; left: 14px; bottom: 14px; padding: 12px 16px; background: var(--bg); border-radius: 6px; display: grid; }
.rm-work figcaption span { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .rm-works { grid-template-columns: 1fr; } .rm-work--big { grid-row: auto; } }

.rm-admin { width: min(100%, 560px); position: relative; z-index: 2; }
.rm-admin__body { display: grid; grid-template-columns: 130px 1fr; min-height: 320px; font-family: var(--font-body); }
.rm-admin__body aside { background: #151515; color: #bbb; padding: 16px 10px; display: grid; gap: 4px; align-content: start; font-size: 13px; }
.rm-admin__body aside b { color: var(--accent); margin-bottom: 10px; font-family: var(--font-display); }
.rm-admin__body aside span { padding: 8px 10px; border-radius: 6px; }
.rm-admin__body aside span.on { background: #2a2a2a; color: #fff; }
.rm-admin__body aside em { font-style: normal; background: var(--accent); color: #151515; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.rm-admin__main { padding: 18px; display: grid; gap: 10px; align-content: start; background: #fafafa; }
.rm-admin__title { font-weight: 800; margin-bottom: 4px; }
.rm-admin__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rm-admin__row input { width: 110px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font: inherit; font-weight: 700; text-align: right; background: #fff; }
.rm-admin__main button { justify-self: start; margin-top: 6px; padding: 10px 18px; border-radius: 6px; background: var(--accent); font-weight: 800; }
.rm-chat { position: absolute; right: -10px; bottom: 0; width: 270px; z-index: 3; }
@media (max-width: 560px) { .rm-admin__body { grid-template-columns: 1fr; } .rm-admin__body aside { display: none; } .rm-chat { position: relative; margin-top: 16px; } .d-system__visual { display: grid; } }
.demo-bar { background: rgba(21, 21, 21, 0.9); }
