/* =========================================================================
   /medialni-analyzy — izolované styly (namespace ma__).
   Tokeny, typografie, tlačítka a mřížka (obsah 1140 px) shodné s homepage
   a /eu-strategicke-reporty. Sdílené soubory nepřepisuje; sdílené
   .mm-phoneframe jen doplňuje vnořeným selektorem pod .ma.
   ========================================================================= */

.ma {
  --nv: #021128;
  --bl: #27348b;
  --bl-dark: #202a70;
  --bl-pale: #eef2fc;
  --bl-pale2: #f6f8fd;
  --gy: #5a6478;
  --bd: #e6e9f2;
  --wrap: 1140px;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0b1830;
}
.ma * { box-sizing: border-box; }
:where(.ma) img { display: block; max-width: 100%; height: auto; }
:where(.ma) figure { margin: 0; }
:where(.ma) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.ma) :where(h1, h2, h3, p) { margin: 0; }
.ma [id] { scroll-margin-top: 72px; }

/* ---------- sekce a mřížka ---------- */
.ma__section { padding: 56px 20px; }
.ma__section--white { background: #fff; }
.ma__section--pale { background: var(--bl-pale2); }
.ma__section--hero { background: var(--bl-pale2); padding-top: 40px; }
.ma__section--navy { background: var(--nv); color: #fff; }
.ma__wrap { max-width: var(--wrap); margin: 0 auto; }

/* ---------- typografie ---------- */
.ma h1 { font-size: 31px; line-height: 1.14; font-weight: 800; color: var(--nv); margin-bottom: 20px; letter-spacing: -.01em; }
.ma h2 { font-size: 25px; line-height: 1.22; font-weight: 800; color: var(--nv); margin-bottom: 16px; max-width: 34ch; }
.ma h3 { font-size: 13px; line-height: 1.35; font-weight: 800; color: var(--nv); letter-spacing: .06em; }
.ma__kicker { color: var(--bl); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.ma__kicker--light { color: #aab8f0; }
.ma__lead { font-size: 16px; line-height: 1.6; color: var(--gy); max-width: 56ch; }
.ma__hero-strong { margin-top: 18px; font-size: 17px; font-weight: 800; color: var(--nv); }
.ma__body { font-size: 15.5px; line-height: 1.65; color: var(--gy); max-width: 64ch; }
.ma__intro { max-width: 760px; margin-bottom: 32px; }
.ma__strong {
  margin-top: 32px; max-width: 62ch;
  font-size: 18px; line-height: 1.45; font-weight: 800; color: var(--nv);
  border-left: 3px solid var(--bl); padding-left: 18px;
}
.ma__caption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--gy); }
.ma__caption strong { display: block; color: var(--nv); font-size: 13.5px; }
.ma__more { margin-top: 18px; font-size: 14.5px; font-weight: 700; }
.ma__more a { color: var(--bl); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- tlačítka ---------- */
.ma__btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14px;
  line-height: 1.3; text-decoration: none; border: 2px solid transparent; text-align: center;
}
.ma__btn--primary { background: var(--bl); color: #fff; }
.ma__btn--primary:hover { background: var(--bl-dark); }
.ma__btn--light { background: #fff; color: var(--bl); }
.ma__btn--light:hover { background: var(--bl-pale); }
.ma a:focus-visible { outline: 3px solid var(--bl); outline-offset: 3px; }
.ma__section--navy a:focus-visible { outline-color: #fff; }
.ma__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* =========================== 1 · HERO =========================== */
.ma__hero { display: flex; flex-direction: column; gap: 36px; }
.ma__chain { display: flex; flex-direction: column; gap: 20px; max-width: 380px; }
.ma__chain li {
  position: relative; text-align: center; padding: 11px 14px; border-radius: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; color: var(--nv);
  background: #fff; border: 1px solid #d3d9ee;
}
.ma__chain li:not(:last-child)::after {
  content: '↓'; content: '↓' / ''; position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%);
  color: #8a94c4; font-weight: 700; font-size: 14px;
}
.ma__chain li.is-main { background: var(--bl); border-color: var(--bl); color: #fff; }

/* =========================== 2 · SROVNÁNÍ =========================== */
.ma__compare { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ma__compare-col { border: 1px dashed #c3c9da; border-radius: 14px; padding: 22px 20px; }
.ma__compare-col h3 { color: var(--gy); margin-bottom: 6px; }
.ma__compare-q { font-size: 18px; font-weight: 800; color: var(--nv); margin-bottom: 12px; }
.ma__compare-col li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--bd); font-size: 15px; line-height: 1.5; color: var(--gy); }
.ma__compare-col li::before { content: '–'; content: '–' / ''; position: absolute; left: 4px; color: #a3aac0; }
.ma__compare-col--accent { border: 2px solid var(--bl); background: var(--bl-pale2); }
.ma__compare-col--accent h3 { color: var(--bl); }
.ma__compare-col--accent li { color: var(--nv); font-weight: 600; }
.ma__compare-col--accent li::before { content: '✓'; content: '✓' / ''; color: var(--bl); font-weight: 800; }

/* =========================== 3 / 6 · MŘÍŽKA POLOŽEK =========================== */
.ma__grid { display: grid; grid-template-columns: 1fr; gap: 22px 32px; }
.ma__item { border-top: 1px solid #dde2f0; padding-top: 14px; }
.ma__section--white .ma__item { border-top-color: var(--bd); }
.ma__item h3 { margin-bottom: 6px; }
.ma__item p { font-size: 14.5px; line-height: 1.6; color: var(--gy); }

/* =========================== 4 · DASHBOARD =========================== */
.ma__browser, .ma__frame {
  background: #fff; border: 1px solid var(--bd); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 17, 40, .12);
}
.ma__frame { box-shadow: 0 10px 26px rgba(2, 17, 40, .09); }
.ma__browser-bar { height: 26px; background: #eef0f6; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.ma__browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #ccd0e0; }
.ma__details { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }

/* =========================== 5 · REPORTY =========================== */
.ma__split { display: flex; flex-direction: column; gap: 36px; }
.ma__list { margin-top: 26px; border-top: 1px solid #dde2f0; }
.ma__list-item { padding: 14px 0; border-bottom: 1px solid #dde2f0; }
.ma__list-item h3 { margin-bottom: 4px; }
.ma__list-item p { font-size: 14.5px; line-height: 1.55; color: var(--gy); }
.ma .ma__phone { width: 200px; margin: 0 auto; }

/* =========================== 7 · PRO KOHO =========================== */
.ma__audiences { border-top: 1px solid #dde2f0; }
.ma__audience { padding: 16px 0; border-bottom: 1px solid #dde2f0; display: flex; flex-direction: column; gap: 6px; }
.ma__audience p { font-size: 15px; line-height: 1.55; color: var(--gy); }

/* =========================== 8 · PROCES =========================== */
.ma__timeline { position: relative; display: flex; flex-direction: column; gap: 24px; }
.ma__timeline-step { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.ma__timeline-step:not(:last-child)::before {
  content: ''; position: absolute; left: 21px; top: 44px; bottom: -24px; width: 2px; background: #dde2f0;
}
.ma__timeline-num {
  position: relative; z-index: 1; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--bl); color: var(--bl); font-weight: 800; font-size: 13.5px;
}
.ma__timeline-step h3 { margin: 4px 0 6px; }
.ma__timeline-step p { font-size: 14.5px; line-height: 1.6; color: var(--gy); }

/* =========================== 9 · FINAL CTA =========================== */
.ma__final h2 { color: #fff; max-width: 30ch; }
.ma__final > p:not(.ma__kicker) { color: rgba(255, 255, 255, .8); font-size: 15.5px; line-height: 1.65; max-width: 60ch; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 640px) {
  .ma__grid { grid-template-columns: 1fr 1fr; }
  .ma__details { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .ma__section { padding: 72px 32px; }
  .ma__section--hero { padding-top: 48px; }
  .ma h1 { font-size: 40px; }
  .ma h2 { font-size: 28px; }
  .ma__strong { font-size: 19px; }
  .ma__compare { grid-template-columns: 1fr 1fr; }
  .ma__audience { flex-direction: row; align-items: baseline; gap: 24px; }
  .ma__audience h3 { flex: 0 0 300px; }
}

@media (min-width: 1024px) {
  .ma__section { padding-top: 80px; padding-bottom: 80px; }
  .ma__section--hero { padding-top: 56px; padding-bottom: 72px; }
  .ma h1 { font-size: 42px; }
  .ma h2 { font-size: 31px; }
  .ma__lead { font-size: 17px; }
  .ma__body { font-size: 16px; }

  .ma__hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .ma__hero-text { flex: 1 1 0; max-width: 700px; }
  .ma__chain { flex: 0 0 320px; }

  .ma__grid { grid-template-columns: repeat(3, 1fr); }
  .ma__grid--four { grid-template-columns: repeat(4, 1fr); }

  .ma__split { flex-direction: row; align-items: center; gap: 72px; }
  .ma__split-text { flex: 1 1 0; }
  .ma .ma__phone { flex: 0 0 220px; width: 220px; margin: 0 40px 0 0; }

  .ma__timeline { flex-direction: row; gap: 24px; }
  .ma__timeline::before {
    content: ''; position: absolute; background: #dde2f0; height: 2px; top: 21px;
    left: 22px; right: calc((100% - 72px) / 4 - 22px);
  }
  .ma__timeline-step:not(:last-child)::before { display: none; }
  .ma__timeline-step { flex: 1 1 0; flex-direction: column; gap: 16px; }
}
