/* Услуги: «Как мы отчитываемся по Директу» (#otchetnost, .us-dr) и тизер на других страницах (.us-drt). Поверх uslugi.css (переменные --bl-*) */

.us-dr { overflow: hidden; }
.us-dr .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- итоги месяца ---------- */
.dr-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.dr-kpis li { padding: 18px 16px 16px; border: 1px solid var(--bl-line); border-radius: 16px; background: #fff; }
.dr-kpis li:first-child { border-color: transparent; background: linear-gradient(160deg, #fff3f3 0%, #fff 75%); box-shadow: inset 0 0 0 1px rgba(200, 0, 0, .16); }
.dr-kpis b { display: block; color: var(--bl-ink); font-size: clamp(24px, 1.4vw + 16px, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dr-kpis li:first-child b { color: var(--bl-red); }
.dr-kpis span { display: block; margin-top: 8px; color: var(--bl-text); font-size: 13.5px; line-height: 1.45; }

/* ---------- карточка отчёта: периоды + таблица ---------- */
.dr-card { position: relative; padding: 14px 0 0; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(23, 24, 29, .03), 0 14px 40px rgba(23, 24, 29, .06); }
.dr-r { position: absolute; top: 14px; left: 14px; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

.dr-tabs { display: flex; align-items: center; gap: 6px; padding: 0 14px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.dr-tabs::-webkit-scrollbar { display: none; }
.dr-tabs__k { flex: none; margin: 0 2px 0 8px; color: var(--bl-muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dr-tabs__k:first-child { margin-left: 0; }
.dr-tabs label {
    flex: none;
    margin: 0;
    padding: 7px 13px;
    border: 1px solid var(--bl-line);
    border-radius: 999px;
    background: #fff;
    color: var(--bl-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.dr-tabs label:hover { border-color: rgba(200, 0, 0, .4); color: var(--bl-red); }
.dr-hint { margin: 0; padding: 0 14px 10px; color: var(--bl-muted); font-size: 12px; text-align: right; }

.dr-p { display: none; border-top: 1px solid var(--bl-line); }
.dr-p__head { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; }
.dr-p__head > b { color: var(--bl-ink); font-size: 15px; font-weight: 800; }
.dr-p__sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.dr-p__sum li { color: var(--bl-muted); font-size: 12.5px; line-height: 1.4; }
.dr-p__sum b { margin-left: 5px; color: var(--bl-ink); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dr-scroll { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-top: 1px solid var(--bl-line); }
.dr-scroll:focus-visible { outline: 2px solid var(--bl-red); outline-offset: -2px; }

.dr-t { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; color: var(--bl-text); font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.dr-t th,
.dr-t td { padding: 9px 10px; border-bottom: 1px solid #eef0f3; text-align: right; white-space: nowrap; vertical-align: middle; }
.dr-t thead th { position: relative; background: #f7f8fa; color: var(--bl-muted); font-size: 11.5px; font-weight: 700; line-height: 1.25; white-space: normal; vertical-align: bottom; }
.dr-t thead th.is-real { color: var(--bl-red); }
.dr-t .dr-t__g th { padding-top: 10px; padding-bottom: 6px; border-bottom-color: #e6e8ec; color: var(--bl-ink); font-size: 11px; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.dr-t .dr-t__gh + .dr-t__gh { border-left: 1px solid #e6e8ec; }
.dr-t .dr-t__gh.is-real { background: #fdf1f1; color: var(--bl-red); }
.dr-t td.is-real { background: rgba(200, 0, 0, .028); }
.dr-t td:nth-of-type(6),
.dr-t td:nth-of-type(11),
.dr-t thead tr:last-child th:nth-of-type(6),
.dr-t thead tr:last-child th:nth-of-type(11) { border-left: 1px solid #e6e8ec; }
.dr-t td.is-empty { color: #c3c6ce; }

.dr-t .dr-t__c {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 132px;
    max-width: 132px;
    background: #fff;
    text-align: left;
    white-space: normal;
    box-shadow: 1px 0 0 #e6e8ec, 8px 0 14px -10px rgba(23, 24, 29, .25);
}
.dr-t thead .dr-t__c { z-index: 3; background: #f7f8fa; color: var(--bl-ink); vertical-align: middle; }
.dr-t tbody .dr-t__c b { display: block; color: var(--bl-ink); font-size: 13.5px; font-weight: 700; }
.dr-t tbody .dr-t__c code,
.dr-t tbody .dr-t__c small { display: block; margin-top: 2px; padding: 0; background: none; color: var(--bl-muted); font: 400 10.5px/1.3 Consolas, 'Courier New', monospace; }
.dr-t tbody .dr-t__c small { font-family: inherit; font-size: 11px; word-break: normal; }
.dr-t__mark { margin-left: 2px; color: var(--bl-red); font-size: 10px; font-weight: 800; cursor: help; }
.dr-t tbody tr:hover td,
.dr-t tbody tr:hover .dr-t__c { background-color: #fafbfc; }

.dr-t .dr-t__u td,
.dr-t .dr-t__u .dr-t__c { background: #eef4fb; }
.dr-t .dr-t__sum td,
.dr-t .dr-t__sum .dr-t__c { border-bottom: 0; background: #fff6dc; color: var(--bl-ink); font-weight: 800; }
.dr-t .dr-t__sum td { font-size: 13.5px; }
.dr-t .dr-t__sum td.is-real { background: #ffeec2; }
.dr-t .dr-t__sum td.is-empty { color: #d6c79d; }

.dr-notes { margin: 0; padding: 10px 14px 0 32px; color: var(--bl-muted); font-size: 12.5px; line-height: 1.5; }
.dr-card__note { margin: 0; padding: 12px 14px 16px; border-top: 1px solid var(--bl-line); color: var(--bl-muted); font-size: 12.5px; line-height: 1.55; }

/* ---------- график + выводы ---------- */
.dr-two { display: grid; gap: 18px; margin-top: 22px; }
.dr-ch,
.dr-find,
.dr-legend,
.dr-gets { margin: 0; padding: 22px 18px 18px; border: 1px solid var(--bl-line); border-radius: 18px; background: #fff; }
.dr-ch figcaption { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.dr-ch figcaption > b { color: var(--bl-ink); font-size: 17px; font-weight: 800; line-height: 1.3; }
.dr-ch__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--bl-muted); font-size: 12.5px; }
.dr-ch__legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.dr-ch__legend i + i,
.dr-ch__legend i.is-line { margin-left: 8px; }
.dr-ch__legend .is-bar { background: var(--bl-red); }
.dr-ch__legend .is-line { height: 3px; border-radius: 2px; background: var(--bl-ink); }
.dr-ch__svg { display: block; width: 100%; height: auto; overflow: visible; font-family: 'Open Sans', Arial, sans-serif; }
.dr-ch__bar { fill: var(--bl-red); }
.dr-ch__base { stroke: #d9dce2; stroke-width: 1.5; }
.dr-ch__sep { stroke: #eef0f3; stroke-width: 1; stroke-dasharray: 4 6; }
.dr-ch__line { fill: none; stroke: var(--bl-ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dr-ch__dot { fill: #fff; stroke: var(--bl-ink); stroke-width: 3; }
.dr-ch__v { fill: var(--bl-red); font-size: 22px; font-weight: 800; text-anchor: middle; }
.dr-ch__c { fill: var(--bl-ink); font-size: 18px; font-weight: 700; text-anchor: middle; }
.dr-ch__x { fill: var(--bl-muted); font-size: 16px; font-weight: 600; text-anchor: middle; }
.dr-ch__note { margin: 10px 0 0; color: var(--bl-muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 599px) {
    .dr-ch__v { font-size: 30px; }
    .dr-ch__c { font-size: 25px; }
    .dr-ch__x { font-size: 23px; }
}

.dr-find { background: linear-gradient(160deg, #f7f8fa 0%, #fff 80%); }
.us-main .dr-find .us-ticks li { font-size: 15px; }

.dr-legend dl { margin: 0; }
.dr-legend dt { margin-top: 12px; color: var(--bl-ink); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.dr-legend dt:first-child { margin-top: 0; }
.dr-legend dd { margin: 3px 0 0; color: var(--bl-text); font-size: 14px; line-height: 1.55; }

.dr-gets ol { margin: 0; padding: 0; list-style: none; counter-reset: drg; }
.dr-gets li { position: relative; margin: 0 0 14px; padding-left: 44px; counter-increment: drg; }
.dr-gets li:last-child { margin-bottom: 0; }
.dr-gets li::before { content: counter(drg, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 10px; background: #17181d; color: #fff; font-size: 12px; font-weight: 800; line-height: 32px; text-align: center; }
.dr-gets b { display: block; color: var(--bl-ink); font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.dr-gets p { margin: 3px 0 0; color: var(--bl-text); font-size: 14px; line-height: 1.55; }

@media (min-width: 600px) {
    .dr-p__head { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .dr-t .dr-t__c { min-width: 180px; max-width: 180px; }
}
@media (min-width: 768px) {
    .dr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dr-tabs,
    .dr-p__head { padding-left: 20px; padding-right: 20px; }
    .dr-card { padding-top: 18px; }
    .dr-card__note { padding-left: 20px; padding-right: 20px; }
    .dr-ch, .dr-find, .dr-legend, .dr-gets { padding: 26px 26px 22px; }
}
@media (min-width: 992px) {
    .us-dr .us-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .dr-hint { display: none; }
    .dr-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
    .dr-two--info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dr-t { font-size: 13.5px; }
    .dr-t th, .dr-t td { padding: 10px 11px; }
}

/* ---------- тизер на других страницах ---------- */
.us-drt { padding: 36px 0; }
.us-drt__card {
    display: grid;
    gap: 14px;
    padding: 22px 20px;
    border: 1px solid var(--bl-line);
    border-radius: 18px;
    background: linear-gradient(120deg, #fff 0%, #fff 55%, #fff4f4 100%);
    color: var(--bl-text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.us-drt__card:hover,
.us-drt__card:focus-visible { border-color: rgba(200, 0, 0, .35); box-shadow: 0 16px 40px rgba(23, 24, 29, .08); color: var(--bl-text); text-decoration: none; transform: translateY(-2px); }
.us-drt__spark { width: 74px; height: 48px; fill: var(--bl-red); }
.us-drt__spark rect:last-child { fill: #17181d; }
.us-drt__b .bl-kicker { margin-bottom: 6px; }
.us-drt__t { display: block; color: var(--bl-ink); font-size: 20px; font-weight: 800; line-height: 1.25; }
.us-drt__x { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
.us-drt__figs { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.us-drt__figs > span { display: flex; flex-direction: column; color: var(--bl-muted); font-size: 12.5px; line-height: 1.35; }
.us-drt__figs b { color: var(--bl-ink); font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.us-drt__go { color: var(--bl-red); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.us-drt__go i { display: inline-block; font-style: normal; transition: transform .2s; }
.us-drt__card:hover .us-drt__go i { transform: translateX(4px); }
@media (min-width: 992px) {
    .us-drt__card { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 28px; padding: 24px 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .us-drt__card, .us-drt__go i, .dr-tabs label { transition: none; }
    .us-drt__card:hover { transform: none; }
}
