/* 7k354.buzz — шаблон "track": беговые дорожки стадиона. Префикс классов cnd- */

:root {
  --cnd-tartan: #b1341f;
  --cnd-tartan-dim: #8a2717;
  --cnd-line: #f2f0eb;
  --cnd-graphite: #22242a;
  --cnd-graphite-soft: #2c2f37;
  --cnd-graphite-deep: #17181d;
  --cnd-ash: #9aa0aa;
  --cnd-lane-gap: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--cnd-graphite) 0 60px,
      var(--cnd-graphite-soft) 60px 61px
    ),
    var(--cnd-graphite);
  color: var(--cnd-line);
  font-family: "Merriweather Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
}

.cnd-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px 70px;
}

/* ---------- стартовая прямая ---------- */

.cnd-straight {
  position: relative;
  margin: 0 -22px 34px;
  padding: 46px 22px 40px;
  background:
    repeating-linear-gradient(
      180deg,
      var(--cnd-tartan) 0 86px,
      var(--cnd-tartan-dim) 86px 90px
    );
  border-bottom: 6px solid var(--cnd-line);
}

.cnd-straight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--cnd-line) 0 26px,
    transparent 26px 48px
  );
  opacity: .8;
}

.cnd-bib {
  display: inline-block;
  padding: 5px 14px;
  background: var(--cnd-line);
  color: var(--cnd-graphite-deep);
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.16;
  margin: 18px 0 16px;
  color: var(--cnd-line);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}

.cnd-lead {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: 18px;
  color: #fdf6f3;
}

/* ---------- KPI: табло стадиона ---------- */

.cnd-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--cnd-lane-gap);
  margin: 0 0 28px;
}

.cnd-board-cell {
  background: var(--cnd-graphite-deep);
  border-top: 5px solid var(--cnd-line);
  padding: 14px 13px 15px;
}

.cnd-board-cell span {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cnd-ash);
}

.cnd-board-num {
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-size: 25px;
  line-height: 1.1;
  margin: 7px 0 4px;
  color: var(--cnd-line);
}

.cnd-board-foot {
  font-size: 13px;
  color: #d8cdc8;
}

/* ---------- кнопки ---------- */

.cnd-go,
.cnd-go-alt {
  display: inline-block;
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-size: 19px;
  letter-spacing: .05em;
  text-decoration: none;
  padding: 15px 34px;
  border: 0;
}

.cnd-go {
  background: var(--cnd-graphite-deep);
  color: var(--cnd-line);
  border-left: 9px solid var(--cnd-line);
}

.cnd-go:hover { background: #000; }

.cnd-go-alt {
  background: var(--cnd-tartan);
  color: var(--cnd-line);
  border-left: 9px solid var(--cnd-graphite-deep);
}

.cnd-go-alt:hover { background: var(--cnd-tartan-dim); }

/* ---------- секции-дорожки ---------- */

.cnd-track { counter-reset: cndlane; }

.cnd-lane {
  counter-increment: cndlane;
  position: relative;
  padding: 26px 0 26px 78px;
  border-top: 2px dashed rgba(242, 240, 235, .32);
}

.cnd-lane::before {
  content: counter(cndlane, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 28px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cnd-tartan);
  color: var(--cnd-line);
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-size: 20px;
}

.cnd-lane::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 96px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    rgba(242, 240, 235, .45) 0 10px,
    transparent 10px 22px
  );
}

h2 {
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.24;
  margin: 0 0 14px;
  color: var(--cnd-line);
}

h3 {
  font-family: "Merriweather Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 24px 0 9px;
  color: #f6b3a4;
  letter-spacing: .01em;
}

p { margin: 0 0 14px; }

a { color: #f4a494; }

.cnd-hi {
  color: #f6c9bd;
  font-weight: 700;
}

.cnd-flag {
  background: var(--cnd-line);
  color: var(--cnd-graphite-deep);
  padding: 0 6px;
  font-weight: 700;
}

/* ---------- стартовый протокол (таблицы) ---------- */

.cnd-protocol {
  overflow-x: auto;
  margin: 18px 0 20px;
  border-left: 5px solid var(--cnd-tartan);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  background: var(--cnd-graphite-deep);
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--cnd-ash);
}

th {
  background: var(--cnd-line);
  color: var(--cnd-graphite-deep);
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  border-top: 1px solid rgba(242, 240, 235, .14);
  vertical-align: top;
}

tbody tr:nth-child(even) td { background: rgba(177, 52, 31, .13); }

/* ---------- карточки-челноки ---------- */

.cnd-heats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cnd-lane-gap);
  margin: 18px 0 20px;
}

.cnd-heat {
  background: var(--cnd-graphite-deep);
  padding: 16px 16px 18px;
  border-bottom: 5px solid var(--cnd-tartan);
}

.cnd-heat h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cnd-line);
  letter-spacing: .02em;
}

.cnd-heat p {
  margin: 0;
  font-size: 14px;
  color: #cfd3da;
}

/* ---------- ступени клуба ---------- */

.cnd-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  margin: 20px 0 18px;
}

.cnd-step {
  background: var(--cnd-tartan-dim);
  border-top: 4px solid var(--cnd-line);
  padding: 10px 8px 12px;
  text-align: center;
  font-size: 13px;
}

.cnd-step:nth-child(1) { min-height: 76px; }
.cnd-step:nth-child(2) { min-height: 90px; }
.cnd-step:nth-child(3) { min-height: 104px; }
.cnd-step:nth-child(4) { min-height: 118px; }
.cnd-step:nth-child(5) { min-height: 132px; }
.cnd-step:nth-child(6) { min-height: 146px; background: var(--cnd-tartan); }
.cnd-step:nth-child(7) { min-height: 160px; background: var(--cnd-tartan); }

.cnd-step-pct {
  display: block;
  font-family: "Rubik Moonrocks", "Merriweather Sans", sans-serif;
  font-size: 21px;
  margin-bottom: 4px;
}

/* ---------- FAQ ---------- */

.cnd-questions details {
  background: var(--cnd-graphite-deep);
  border-left: 4px solid var(--cnd-line);
  margin: 0 0 9px;
  padding: 12px 16px;
}

.cnd-questions summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: #f6c9bd;
  list-style: none;
}

.cnd-questions summary::-webkit-details-marker { display: none; }

.cnd-questions summary::before {
  content: "\2571\2571 ";
  color: var(--cnd-tartan);
}

.cnd-questions details[open] summary { color: var(--cnd-line); }

.cnd-questions details p {
  margin: 10px 0 0;
  font-size: 15px;
  color: #d5d9e0;
}

/* ---------- отзыв ---------- */

.cnd-quote {
  margin: 20px 0;
  padding: 16px 18px;
  background: rgba(242, 240, 235, .07);
  border-top: 3px solid var(--cnd-tartan);
  border-bottom: 3px solid var(--cnd-tartan);
  font-size: 15px;
}

.cnd-quote-who {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cnd-ash);
}

/* ---------- источники ---------- */

.cnd-sources {
  background: var(--cnd-graphite-deep);
  padding: 18px 20px;
  border-top: 5px solid var(--cnd-line);
  font-size: 15px;
}

.cnd-sources ul { margin: 10px 0 0; padding-left: 20px; }
.cnd-sources li { margin-bottom: 7px; }

.cnd-finish {
  margin: 30px 0 10px;
  padding: 24px 22px;
  background: repeating-linear-gradient(
    45deg,
    var(--cnd-graphite-deep) 0 12px,
    var(--cnd-graphite-soft) 12px 24px
  );
  text-align: center;
}

.cnd-finish p { margin: 0 0 16px; font-size: 17px; }

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

.cnd-base {
  margin-top: 40px;
  padding: 26px 22px 34px;
  background: var(--cnd-graphite-deep);
  border-top: 6px solid var(--cnd-tartan);
  font-size: 14px;
  color: #b8bec7;
}

.cnd-base-row { margin: 0 0 8px; }

.cnd-base-age {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(242, 240, 235, .3);
  color: var(--cnd-line);
  letter-spacing: .02em;
}

/* ---------- 640 ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cnd-shell { padding: 0 14px 48px; }
  .cnd-straight { margin: 0 -14px 26px; padding: 30px 14px 30px; }
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .cnd-lead { font-size: 16px; }
  .cnd-board { grid-template-columns: 1fr 1fr; gap: 9px; }
  .cnd-board-cell:last-child { grid-column: 1 / -1; }
  .cnd-heats { grid-template-columns: 1fr; }
  .cnd-steps { grid-template-columns: 1fr 1fr; }
  .cnd-step,
  .cnd-step:nth-child(1),
  .cnd-step:nth-child(2),
  .cnd-step:nth-child(3),
  .cnd-step:nth-child(4),
  .cnd-step:nth-child(5),
  .cnd-step:nth-child(6),
  .cnd-step:nth-child(7) { min-height: 0; }
  .cnd-lane { padding: 20px 0 20px 0; }
  .cnd-lane::before {
    position: static;
    width: 42px;
    height: 30px;
    margin-bottom: 10px;
  }
  .cnd-lane::after { display: none; }
  .cnd-go, .cnd-go-alt { display: block; text-align: center; font-size: 17px; padding: 14px 16px; }
  table { min-width: 520px; font-size: 14px; }
}
