/* Отчёт разбора. */

.rep { padding-top: 24px; }
.rep-head { margin-bottom: 24px; }
.rep-title { font-size: clamp(28px, 3.6vw, 40px); }

.rep-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; padding: 24px; }
.rep-photo { position: relative; border-radius: 14px; overflow: hidden; background: #0e0f12; align-self: start; }
.rep-photo canvas { display: block; }
.rep-nophoto { position: absolute; inset: auto 0 0 0; padding: 12px; text-align: center; color: #cfcfd2; }
.rep-sum { display: flex; flex-direction: column; gap: 22px; padding: 8px 4px; }
.rep-tier { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.rep-views { display: flex; gap: 28px; }
.rep-views div { display: flex; flex-direction: column; }
.rep-views b { font-size: 24px; font-weight: 700; }
.rep-blocks { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.rep-block { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; grid-template-rows: auto auto; column-gap: 14px;
  align-items: center; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.rep-block:hover { background: var(--surface-2); }
.rb-name { font-weight: 600; font-size: 15px; }
.rep-block .bar { grid-column: 2; }
.rep-block b { text-align: right; font-size: 17px; }
.rb-w { grid-column: 1 / -1; }

.rep-tabs { margin-top: 36px; position: sticky; top: 64px; background: var(--bg); z-index: 5; }
.rep-body { padding-top: 28px; }
.rep-tab-head { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.rep-tab-head h2 { font-size: 28px; margin-top: 4px; }
.rep-tab-score { text-align: right; }
.rep-tab-score b { font-size: 44px; letter-spacing: -0.04em; font-weight: 700; display: block; line-height: 1; }

.mhead, .mrow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(70px, 1fr) minmax(90px, 1.1fr) minmax(60px, 1fr) 44px;
  gap: 16px; align-items: center; }
.mhead { padding: 0 14px 8px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  font-size: 10.5px; }
.mhead span:last-child { text-align: right; }
.msec { margin-top: 18px; }
.msec-title { font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 6px; }
.mrow { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 13px 14px;
  cursor: pointer; font-size: 15px; }
.mrow:hover { background: var(--surface-2); }
.mrow-score { text-align: right; font-size: 16px; }
.mrow-ideal { font-size: 14px; }

.ov-h { margin-bottom: 10px; font-size: 17px; }
.ov-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 11px 2px; cursor: pointer; text-align: left; font-size: 15px; }
.ov-row:last-child { border-bottom: 0; }
.ov-row:hover span { text-decoration: underline; }
.marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 14px; }

.drawer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 80; display: flex; justify-content: flex-end; }
.drawer { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--surface); padding: 20px 24px 40px;
  box-shadow: var(--shadow); animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer-top { gap: 8px; margin-bottom: 14px; }
.drawer-photo { border-radius: 14px; overflow: hidden; background: #0e0f12; }
.drawer-photo canvas { display: block; }
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.dstats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dstats span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dstats b { font-size: 18px; display: block; margin-top: 4px; }
.dstats small { font-size: 12px; color: var(--muted); font-weight: 500; }
.dhint { color: var(--ink-2); line-height: 1.65; }

.rep-fb { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 40px; flex-wrap: wrap; }
.fb-seg button { min-width: 40px; height: 40px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .rep-hero { grid-template-columns: minmax(0, 1fr); }
  .mhead { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-rows: auto auto; row-gap: 6px; }
  .mrow-name { grid-column: 1 / 3; }
  .mrow-score { grid-row: 1; grid-column: 3; }
  .mrow-val { grid-column: 1; font-size: 13.5px; }
  .mrow-ideal { grid-column: 2 / 4; text-align: right; font-size: 13px; }
  .mrow-bar { display: none; }
  .marks { grid-template-columns: minmax(0, 1fr); }
  .drawer { width: 100%; }
  .dstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
