/* Dala Sport — вёрстка по docs/design/*.dc.html.
   Прототип написан инлайновыми стилями; здесь те же значения, но классами:
   воспроизводится вёрстка, а не внутренняя структура макета. */

:root {
  --accent: #d81e23;
  --ink: #18181b;
  --ink-2: #27272a;
  --muted: #52525b;
  --muted-2: #71717a;
  --grey: #a1a1ab;
  --grey-2: #9a9aa2;
  --line: #ececf0;
  --line-2: #e7e7ec;
  --panel: #f1f1f4;
  --bg: #f4f4f6;
  --green: #0e8a6a;
  --blue: #1257b8;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --narrow: 'PT Sans Narrow', 'Arial Narrow', sans-serif;
  --sans: 'PT Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.dl { text-decoration: none; color: inherit; display: block; }
.dl:hover .dh { color: var(--accent); }
.dh { transition: color .12s; }

@keyframes dpulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 30, 35, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(216, 30, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 30, 35, 0); }
}
@keyframes dpulseW {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- шапка ------------------------------------------------------------- */

.hdr { background: #fff; box-shadow: 0 1px 0 var(--line-2); }

.hdr-in {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 1200px; margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  display: flex; align-items: baseline;
  background: var(--accent); color: #fff;
  padding: 6px 12px 8px; border-radius: 3px;
  font-family: var(--narrow); font-weight: 700; font-size: 30px;
  letter-spacing: .05em; line-height: .9;
}

.logo-word {
  font-family: var(--narrow); font-weight: 700; font-size: 26px;
  letter-spacing: .12em; color: var(--ink); line-height: 1.05;
}

.logo-tag { font-size: 11px; color: var(--grey-2); letter-spacing: .03em; }

.hdr-right { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.lang a { text-decoration: none; color: var(--grey); font-weight: 400; }
.lang a.on { color: var(--accent); font-weight: 700; }
.lang .sep { color: #d6d6dd; }

/* --- навигация --------------------------------------------------------- */

.nav { background: var(--accent); }

.nav-in {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: stretch; padding: 0 8px;
  overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { height: 0; }

.nav-live {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px 0 6px; margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, .22); flex: none;
}
.nav-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: dpulseW 1.6s infinite;
}
.nav-live span:last-child {
  font-family: var(--narrow); font-weight: 700; font-size: 14px;
  letter-spacing: .1em; color: #fff;
}

.nav-in a {
  display: flex; align-items: center; padding: 12px 13px;
  font-family: var(--narrow); font-weight: 700; font-size: 15px;
  letter-spacing: .02em; text-transform: uppercase;
  color: rgba(255, 255, 255, .86); text-decoration: none;
  white-space: nowrap; flex: none;
}
.nav-in a:hover { background: rgba(0, 0, 0, .12); }
.nav-in a.on {
  color: #fff; background: rgba(0, 0, 0, .17);
  box-shadow: inset 0 -3px 0 #fff;
}

/* --- хлебные крошки ---------------------------------------------------- */

.crumb { background: #fff; border-bottom: 1px solid var(--line); }
.crumb-in {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--grey);
}
.crumb-in a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* --- основная сетка ---------------------------------------------------- */

.main { max-width: 1200px; margin: 0 auto; padding: 22px 16px 10px; }

.grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }

.sec-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sec-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: dpulse 1.6s infinite;
}
.sec-title h2 {
  margin: 0; font-family: var(--narrow); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .04em;
}

/* --- лайв-карточки ----------------------------------------------------- */

.live-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 26px;
}

.live-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 13px 14px;
}
.live-card .top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
}
.live-card .comp { font-family: var(--mono); font-size: 10.5px; color: var(--grey); }
.live-card .min {
  display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; color: var(--accent);
}
.live-card .min .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: dpulse 1.6s infinite;
}
.live-card .row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.live-card .row:last-child { margin-bottom: 0; }
.live-card .team {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px;
}
.live-card .score { font-family: var(--narrow); font-weight: 700; font-size: 18px; }

.badge {
  width: 20px; height: 20px; border-radius: 50%;
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* --- главный материал -------------------------------------------------- */

.hero-media {
  position: relative; width: 100%; aspect-ratio: 16 / 8.5;
  background: repeating-linear-gradient(135deg, #eaeaee, #eaeaee 12px, #e3e3e9 12px, #e3e3e9 24px);
  border-radius: 4px; overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-cat {
  position: absolute; left: 11px; top: 11px;
  background: var(--accent); color: #fff;
  font-family: var(--narrow); font-weight: 700; font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.hero h1 {
  margin: 14px 0 8px; font-family: var(--narrow); font-weight: 700;
  font-size: 33px; line-height: 1.08;
}
.hero p { margin: 0 0 7px; font-size: 16.5px; line-height: 1.45; color: var(--muted); }
.hero time {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--accent); font-weight: 700;
}

.feed {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line);
}
.feed-item { display: flex; gap: 14px; }
.feed-thumb {
  flex: none; width: 120px; height: 80px; position: relative;
  background: repeating-linear-gradient(135deg, #eaeaee, #eaeaee 10px, #e3e3e9 10px, #e3e3e9 20px);
  border-radius: 3px; overflow: hidden;
}
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-cat {
  display: block; font-family: var(--narrow); font-weight: 700;
  font-size: 11px; text-transform: uppercase; margin-bottom: 3px;
}
.feed-item h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.25; font-weight: 700; }
.feed-item time { font-family: var(--mono); font-size: 11px; color: var(--grey); }

/* --- боковая колонка --------------------------------------------------- */

.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.card:last-child { margin-bottom: 0; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; padding: 10px 14px;
  font-family: var(--narrow); font-weight: 700; font-size: 16px;
  text-transform: uppercase;
}
.card-head a { font-size: 11px; color: rgba(255, 255, 255, .7); text-decoration: none; }
.card-head-light {
  background: var(--panel); color: var(--ink-2); padding: 10px 14px;
  font-family: var(--narrow); font-weight: 700; font-size: 15px;
  text-transform: uppercase;
}
.card-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-bottom: 1px solid var(--panel); font-size: 14px;
}
.card-row:last-child { border-bottom: 0; }
.card-empty { padding: 14px; font-size: 13.5px; color: var(--muted-2); background: #fff; }

.tbl-pos { width: 24px; font-family: var(--narrow); font-weight: 700; color: var(--accent); }
.tbl-team { flex: 1; font-weight: 700; }
.tbl-num { width: 30px; text-align: center; }
.tbl-num.muted { color: var(--grey); font-size: 12px; }

.predict {
  background: var(--green); border-radius: 6px; padding: 15px 16px;
  margin-bottom: 22px; color: #fff;
}
.predict-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px;
  font-family: var(--narrow); font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: .03em;
}
.predict-box {
  background: rgba(255, 255, 255, .12); border-radius: 5px;
  padding: 11px 12px; margin-bottom: 11px; font-size: 13px;
}
.predict-cta {
  display: block; text-align: center; background: #fff; color: var(--green);
  font-family: var(--narrow); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 0; border-radius: 5px; text-decoration: none;
}

/* --- статья ------------------------------------------------------------ */

.art { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px 34px; }
.art-kicker {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--narrow); font-weight: 700; font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px; margin-bottom: 14px;
}
.art h1 {
  margin: 0 0 12px; font-family: var(--narrow); font-weight: 700;
  font-size: 38px; line-height: 1.06;
}
.art-lede { font-size: 18px; line-height: 1.45; color: var(--muted); margin: 0 0 18px; }
.art-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted-2); margin-bottom: 22px;
}
.art-meta .mono { font-family: var(--mono); }
.art-body { font-size: 17px; line-height: 1.62; color: var(--ink-2); }

.b-para { margin: 0 0 18px; }
.b-h2 {
  margin: 30px 0 12px; font-family: var(--narrow); font-weight: 700;
  font-size: 25px; line-height: 1.15;
}
.b-h3 { margin: 24px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.b-list { margin: 0 0 18px; padding-left: 22px; }
.b-list li { margin-bottom: 7px; }

.b-quote {
  margin: 24px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
}
.b-quote blockquote { margin: 0; font-size: 19px; line-height: 1.45; font-style: italic; }
.b-quote figcaption { margin-top: 8px; font-size: 13px; color: var(--muted-2); font-style: normal; }

.b-table { margin: 26px 0; }
.b-table-scroll { overflow-x: auto; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.b-table th {
  text-align: left; background: var(--ink); color: #fff;
  font-family: var(--narrow); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .02em; padding: 9px 12px;
  white-space: nowrap;
}
.b-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.b-table tr:nth-child(even) td { background: #fafafb; }

.b-cap { font-family: var(--narrow); font-weight: 700; font-size: 15px; text-transform: uppercase; margin-bottom: 8px; }
.b-src { font-family: var(--mono); font-size: 11.5px; color: var(--grey); margin-top: 8px; }

.b-timeline { margin: 26px 0; }
.b-timeline ol { margin: 0; padding: 0; list-style: none; }
.b-timeline li {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.b-tl-at { flex: none; width: 62px; font-family: var(--narrow); font-weight: 700; font-size: 16px; }

.b-prob { margin: 26px 0; padding: 16px 18px; background: var(--panel); border-radius: 6px; }
.b-prob-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.b-prob-label { width: 28px; font-family: var(--narrow); font-weight: 700; font-size: 15px; }
.b-prob-track { flex: 1; height: 10px; background: #fff; border-radius: 5px; overflow: hidden; }
.b-prob-fill { display: block; height: 100%; background: var(--green); }
.b-prob-value { width: 44px; text-align: right; font-weight: 700; font-size: 14px; }
.b-prob-by { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.b-calc { margin: 26px 0; }
.b-calc-formula {
  display: block; font-family: var(--mono); font-size: 14px;
  background: var(--panel); padding: 12px 14px; border-radius: 5px;
}

.b-faq { margin: 28px 0; border-top: 1px solid var(--line); }
.b-faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.b-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 17px; list-style: none;
}
.b-faq-item summary::-webkit-details-marker { display: none; }
.b-faq-item summary::before { content: '+ '; color: var(--accent); font-family: var(--narrow); }
.b-faq-item[open] summary::before { content: '– '; }
.b-faq-item div { margin-top: 9px; color: var(--muted); }

.b-image { margin: 26px 0; }
.b-image img { border-radius: 4px; display: block; }

/* --- страница матча ---------------------------------------------------- */

.mc-head {
  background: var(--ink); border-radius: 8px;
  padding: 22px 24px 20px; margin-bottom: 18px; color: #fff;
}
.mc-comp { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.mc-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.mc-side { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mc-crest {
  width: 56px; height: 56px; border-radius: 50%; color: #fff;
  font-family: var(--narrow); font-weight: 700; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
}
.mc-name { font-family: var(--narrow); font-weight: 700; font-size: 20px; text-transform: uppercase; text-align: center; }
.mc-score { font-family: var(--narrow); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: .04em; text-align: center; }
.mc-status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  background: var(--accent); padding: 4px 11px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.mc-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dpulseW 1.4s infinite; }
.mc-status.pending { background: rgba(255, 255, 255, .16); }

/* --- пустое состояние -------------------------------------------------- */

.empty {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 32px;
}
.empty h2 {
  margin: 0 0 12px; font-family: var(--narrow); font-weight: 700;
  font-size: 24px; text-transform: uppercase; letter-spacing: .02em;
}
.empty p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.empty ul { margin: 0; padding-left: 20px; color: var(--muted); }
.empty li { margin-bottom: 6px; }
.empty code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--panel); padding: 2px 6px; border-radius: 3px;
}

/* --- статические страницы ---------------------------------------------- */

.page { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 30px 34px 36px; }
.page h1 {
  margin: 0 0 18px; font-family: var(--narrow); font-weight: 700;
  font-size: 36px; line-height: 1.08;
}
.page h2 {
  margin: 28px 0 10px; font-family: var(--narrow); font-weight: 700;
  font-size: 23px;
}
.page p, .page li { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.page ul { padding-left: 22px; }

/* --- подвал ------------------------------------------------------------ */

.ftr { background: var(--ink); color: rgba(255, 255, 255, .7); margin-top: 30px; }
.ftr-in { max-width: 1200px; margin: 0 auto; padding: 30px 16px; }
.ftr-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ftr-mark {
  display: flex; align-items: baseline; background: var(--accent); color: #fff;
  padding: 5px 11px 7px; border-radius: 3px;
  font-family: var(--narrow); font-weight: 700; font-size: 24px; letter-spacing: .05em;
}
.ftr-word { font-family: var(--narrow); font-weight: 700; font-size: 22px; letter-spacing: .12em; color: #fff; }
.ftr-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13.5px; }
.ftr-links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.ftr-links a:hover { color: #fff; }
.ftr-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.ftr-chip {
  font-family: var(--mono); background: rgba(255, 255, 255, .1);
  padding: 3px 9px; border-radius: 4px;
}
.ftr-dim { color: rgba(255, 255, 255, .45); }

/* --- адаптив ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .live-grid { grid-template-columns: 1fr; }
  .feed { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .art { padding: 20px 18px 26px; }
  .art h1 { font-size: 29px; }
  .art-body { font-size: 16.5px; }
  .page { padding: 22px 18px 28px; }
  .page h1 { font-size: 28px; }
  .mc-score { font-size: 40px; }
  .mc-crest { width: 44px; height: 44px; font-size: 22px; }
  .hdr-in { padding: 12px 16px; }
  .logo-mark { font-size: 24px; padding: 5px 10px 7px; }
  .logo-word { font-size: 21px; }
}

/* --- страница редакции --------------------------------------------------- */

.editor-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px;
  align-items: start; margin: 22px 0 30px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.editor-photo { width: 190px; height: 190px; object-fit: cover; border-radius: 4px; display: block; }
.editor-role {
  font-family: var(--narrow); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
  margin: 0 0 12px;
}
.page-warn {
  background: #fdf3f3; border-left: 3px solid var(--accent);
  padding: 10px 14px; font-size: 15px; color: var(--muted);
}

@media (max-width: 600px) {
  .editor-card { grid-template-columns: 1fr; gap: 16px; }
  .editor-photo { width: 140px; height: 140px; }
}
.editor-alt { font-size: 14px; color: var(--muted-2); margin: -6px 0 8px; }

/* --- подпись под фото: условие лицензии CC-BY, а не оформление --------- */

.art-hero { margin: 0 0 22px; }
.art-credit {
  margin-top: 8px; font-size: 12.5px; line-height: 1.45;
  color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 6px;
}
.art-credit-what { color: var(--muted); }
.art-credit-legal { font-family: var(--mono); font-size: 11.5px; }
.art-credit a { color: var(--muted-2); text-decoration: underline; }
.art-credit a:hover { color: var(--accent); }

/* --- страница автора ----------------------------------------------------- */

.author-topics { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.author-topic {
  font-family: var(--narrow); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 14px;
  background: var(--panel); color: var(--muted);
}
.author-list { display: grid; gap: 0; }
.author-item {
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.author-item:last-child { border-bottom: 0; }
.author-item-cat {
  display: block; font-family: var(--narrow); font-weight: 700;
  font-size: 11px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 4px;
}
.author-item h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.author-item time { font-family: var(--mono); font-size: 11.5px; color: var(--grey); }

/* Страница автора и статические — без боковой колонки. */
.page-narrow { max-width: 760px; }
