/* Страница «Примеры отчётов» (/examples). Токены и базовые компоненты — из site.css. */

.ex-page { --wrap: 1160px; --mint: #7ff0e0; }
@media (min-width: 1280px) { .ex-page { --wrap: 1296px; --gutter: 32px; } }
@media (min-width: 1440px) { .ex-page { --wrap: 1440px; --gutter: 40px; } }
.ex-page section[id] { scroll-margin-top: 80px; }

/* ── Шапка страницы ─────────────────────── */
.ex-hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.ex-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(13, 138, 126, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 138, 126, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(60% 80% at 80% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(60% 80% at 80% 20%, #000 10%, transparent 70%);
}
.ex-hero .wrap { position: relative; }
.ex-hero .h1 { max-width: 820px; }
.ex-hero .lead { max-width: 720px; }
.ex-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ex-jump a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.ex-jump a:hover { text-decoration: none; border-color: var(--t300); color: var(--t700); }
.ex-dot { width: 10px; height: 10px; border-radius: 3px; }
.ex-dot.x, .ex-badge.x { background: #17a673; }
.ex-dot.p, .ex-badge.p { background: #f06b58; }
.ex-dot.g, .ex-badge.g { background: #0d8a7e; }

/* ── Карточки двух примеров ─────────────── */
.ex-reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ex-rep { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); min-width: 0; }
.ex-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--t700); background: var(--t50); border: 1px solid var(--t100); padding: 4px 10px; border-radius: 999px; }
.ex-kind svg.i { width: 14px; height: 14px; }
.ex-rep-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -0.02em; line-height: 1.22; margin: 14px 0 8px; }
.ex-rep-d { margin: 0; color: var(--ink-2); font-size: 15px; }
.ex-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ex-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ex-facts div { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); min-width: 0; }
.ex-facts dt { font-size: 12px; color: var(--muted); }
.ex-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.6vw, 21px); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-dl { display: flex; flex-wrap: wrap; gap: 10px; }
.ex-rep .ex-dl { margin-top: auto; }

/* ── Секции форматов ─────────────────────── */
.ex-sec.tint { background: linear-gradient(180deg, #e8f4f2, #f2f8f7); }
.ex-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.ex-split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.ex-split.flip .ex-fig { order: -1; }
.ex-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: #fff; padding: 4px 10px; border-radius: 7px; margin-bottom: 14px; }
.ex-copy .lead { margin-bottom: 0; }
.ex-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ex-ticks li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.ex-ticks svg.i { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: #fff; background: var(--t500); margin-top: 1px; }
.ex-fig { margin: 0; min-width: 0; }
.ex-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ex-win { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ex-win-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: linear-gradient(180deg, #f7fbfa, #eef5f4); border-bottom: 1px solid var(--line); }
.ex-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.ex-win-bar i:nth-child(2) { background: #ffbd2e; } .ex-win-bar i:nth-child(3) { background: #28c941; }

/* Листы Excel */
.sheets { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 56px; align-items: start; }
.sheet-card { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow); min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sheet-n { font-size: 13px; color: var(--muted); font-weight: 600; }
.sheet-list { list-style: none; margin: 0; padding: 0; counter-reset: sh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.sheet-card:last-child .sheet-list { grid-template-columns: minmax(0, 1fr); }
.sheet-list li { counter-increment: sh; position: relative; padding: 10px 12px 10px 44px; border-radius: 12px; background: var(--bg); min-width: 0; }
.sheet-list li::before { content: counter(sh); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #e3f7ee; color: #0e7a53; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.sheet-list b { display: block; font-size: 14.5px; color: var(--ink); }
.sheet-list span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; margin-top: 1px; }
.sheet-tabs { display: flex; gap: 2px; margin-top: 16px; padding: 4px 4px 0; border-bottom: 2px solid #17a673; overflow: hidden; }
.sheet-tabs span { font-size: 11.5px; padding: 6px 10px; border-radius: 6px 6px 0 0; background: var(--bg); color: var(--muted); white-space: nowrap; }
.sheet-tabs span.on { background: #17a673; color: #fff; font-weight: 600; }

/* PDF */
.pdf-parts { list-style: none; margin: 24px 0 26px; padding: 0; display: grid; gap: 14px; }
.pdf-parts li { display: flex; gap: 14px; align-items: flex-start; }
.pdf-parts li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; background: var(--coral); }
.pdf-parts b { display: block; font-size: 16px; color: var(--ink); }
.pdf-parts p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pdf-mock { position: relative; max-width: 440px; margin: 0 auto; padding: 18px 26px 0 0; }
.pdf-page { position: relative; background: #fff; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px 24px 28px; aspect-ratio: 210 / 270; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pdf-page.back { position: absolute; inset: 0 0 18px 26px; transform: rotate(4deg); background: #fbfdfd; box-shadow: var(--shadow); padding: 0; }
.pm-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--t500); }
.pm-logo { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(145deg, #7ff0e0, #2fc4b2); }
.pm-date { margin-left: auto; color: var(--muted); }
.pm-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 2px; }
.pm-sec { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--t700); margin-top: 4px; }
.pm-n { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 9.5px; }
.pm-lines { display: grid; gap: 6px; }
.pm-lines i { display: block; height: 6px; width: var(--w); border-radius: 99px; background: #e9f3f1; }
.pm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pm-kpis div { padding: 7px 9px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-soft); min-width: 0; }
.pm-kpis span { display: block; font-size: 9.5px; color: var(--muted); }
.pm-kpis b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-table { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 3px; }
.pm-table i { display: block; height: 12px; border-radius: 3px; background: #f2f8f7; }
.pm-table i.h { background: #dcebe8; height: 8px; }
.pm-table .l1 { background: #d3f6f0; } .pm-table .l2 { background: #a7ece1; } .pm-table .l3 { background: #6fdccd; } .pm-table .l4 { background: #2fc4b2; }

/* Google */
.gs-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 48px; border-radius: 28px; background: var(--dark-grad); color: #d4f1ec; box-shadow: 0 40px 80px -40px rgba(6, 46, 44, .6); position: relative; overflow: hidden; }
.gs-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(127, 240, 224, .14) 1px, transparent 1.3px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.gs-card > * { position: relative; }
.gs-card .h2 { color: #fff; }
.gs-card .lead { color: #bfe3dd; }
.gs-status { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: rgba(127, 240, 224, .08); border: 1px dashed rgba(127, 240, 224, .4); }
.gs-status[hidden] { display: none; }
.gs-status b { color: #fff; font-size: 15.5px; }
.gs-status p { margin: 2px 0 0; font-size: 14px; color: #bfe3dd; }
.gs-pulse { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(127, 240, 224, .6); animation: gs-ping 1.8s ease-out infinite; }
@keyframes gs-ping { 70% { box-shadow: 0 0 0 8px rgba(127, 240, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 240, 224, 0); } }
.gs-how { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.gs-how li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.gs-how li > svg.i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(127, 240, 224, .12); color: var(--mint); }
.gs-how b { display: block; color: #fff; font-size: 14.5px; line-height: 1.3; }
.gs-how p { margin: 3px 0 0; font-size: 13.5px; color: #bfe3dd; line-height: 1.45; }
.ex-win.dark { border-color: rgba(255, 255, 255, .12); background: #0b3d3a; }
.ex-win.dark .ex-win-bar { background: rgba(255, 255, 255, .06); border-bottom-color: rgba(255, 255, 255, .08); }
.gs-fig figcaption { color: #9fd0c8; }

/* Призыв */
.ex-final { margin-top: 24px; }
.ex-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 48px 56px; border-radius: 28px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); }
.ex-cta .lead { margin-bottom: 0; }
.ex-cta-actions { display: flex; flex-direction: column; gap: 10px; }
.ex-cta .btn.on-dark { background: var(--t50); color: var(--t800); border-color: var(--t100); }

/* ── Адаптив ─────────────────────────────── */
@media (max-width: 1080px) {
  .ex-split, .ex-split.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ex-split.flip .ex-fig { order: 0; }
  .sheets { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .gs-card { grid-template-columns: minmax(0, 1fr); padding: 36px; }
}
@media (max-width: 900px) {
  .ex-hero { padding: 36px 0 28px; }
  .ex-reports { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ex-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
  .ex-cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .ex-rep { padding: 20px 16px; border-radius: 20px; }
  .ex-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ex-facts div:last-child { grid-column: span 2; }
  .ex-dl .btn { flex: 1 1 140px; }
  .sheet-card { padding: 18px 14px; }
  .sheet-list { grid-template-columns: minmax(0, 1fr); }
  .gs-card { padding: 28px 18px; border-radius: 22px; }
  .gs-how { grid-template-columns: minmax(0, 1fr); }
  .pdf-mock { padding-right: 16px; }
  .pdf-page { padding: 18px 16px 20px; }
  .ex-cta { padding: 28px 18px; border-radius: 22px; }
  .ex-cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gs-pulse { animation: none; } }
