/* Статья «Как создать компьютерную игру» (компоненты те же, что у «Этапов разработки ПО»): компоненты внутри .blog-content.
   Всё под обёрткой .etp и префиксом etp-, чтобы не задеть другие статьи.
   Селекторы начинаются с .blog-content: правила блога (.blog-content a/p/ul/img)
   иначе перебивают компоненты, у ссылок блога стоит !important. */

/* Отступ для якорей: statya.js уточняет его по высоте шапки. */
.blog-content .etp h2,
.blog-content .etp h3 {
  scroll-margin-top: var(--etp-anchor-offset, 140px);
}

.blog-content .etp {
  --o: #F3712F;
  --o-dark: #D85A1C;
  --amber: #FFAA33;
  --o-tint: #FEF1EA;
  --o-bg: #FFF6F0;
  --o-bd: #FFD9C2;
  --ink: #1F2124;
  --text: #040404;
  --mute: #5F6368;
  --soft: #F7F7F8;
  --line: #E8E8E8;
  --blue: #3F7CC4;
  --blue-bg: #F2F7FF;
  --blue-bd: #CFE0FA;
  --red: #D9534F;
  --red-bg: #FEF5F4;
  --red-bd: #F3D2D0;
  --green: #2E9E6A;
  --r: 20px;
  --num: Unbounded, "Segoe UI", sans-serif;
  color: var(--text);
}

/* обычный текст статьи: строка не шире 820px, компоненты на всю колонку */
.blog-content .etp > p,
.blog-content .etp > ul,
.blog-content .etp-stage > p,
.blog-content .etp-model__body > p {
  max-width: 820px;
}
.blog-content .etp a {
  color: var(--o-dark) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--o-bd) !important;
  text-underline-offset: 3px;
  font-size: 18px;
}
.blog-content .etp a:hover {
  text-decoration-color: var(--o) !important;
}
/* размер ссылок как у «Этапов», где у блока текста класс blog-content--buisnessapp-2 (18 px, на телефоне 14 px):
   у части статей-элементов блога этого класса нет, с этим правилом статья выглядит одинаково в обоих случаях */
@media (max-width: 576px) {
  .blog-content .etp a { font-size: 14px; }
}
.blog-content .etp img {
  margin: 0;
}

/* служебное */
.blog-content .etp .etp-reset {
  padding: 0;
  margin: 0;
  list-style: none;
}
.blog-content .etp .etp-reset > li::before {
  display: none;
}
.blog-content .etp .etp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 700 12px/1.3 Ubuntu, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--o);
}
.blog-content .etp .etp-label .etp-i {
  width: 14px;
  height: 14px;
}

/* ярлычки-капсулы */
.blog-content .etp .etp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-content .etp .etp-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 500 13px/1.25 Ubuntu, sans-serif;
  color: var(--ink);
  white-space: nowrap;
}
.blog-content .etp .etp-chip .etp-i {
  width: 13px;
  height: 13px;
  color: var(--o);
}
.blog-content .etp .etp-chip--o {
  border-color: var(--o);
  background: var(--o);
  color: #fff;
}
.blog-content .etp .etp-chip--o .etp-i {
  color: #fff;
}
.blog-content .etp .etp-chip--tint {
  border-color: var(--o-bd);
  background: var(--o-bg);
  color: var(--o-dark);
}
.blog-content .etp .etp-chip--red {
  border-color: var(--red-bd);
  background: var(--red-bg);
  color: var(--red);
}
.blog-content .etp .etp-chip--red .etp-i {
  color: var(--red);
}
.blog-content .etp .etp-chip--ok {
  border-color: #CDEBDD;
  background: #F1FAF5;
  color: #1F7A50;
  white-space: normal;
}
.blog-content .etp .etp-chip--ok .etp-i {
  color: var(--green);
}
.blog-content .etp .etp-chip--dash {
  border-style: dashed;
  border-color: var(--gray, #B5B5B5);
  color: var(--mute);
}

/* навигация ярлычками под вступлением */
.blog-content .etp .etp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.blog-content .etp a.etp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font: 500 14px/1.2 Ubuntu, sans-serif;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color .2s, background-color .2s, color .2s;
}
.blog-content .etp a.etp-tag .etp-i {
  width: 15px;
  height: 15px;
  color: var(--o);
}
.blog-content .etp a.etp-tag:hover {
  border-color: var(--o);
  background: #fff;
  color: var(--o-dark) !important;
}

/* вступление */
.blog-content .etp .etp-lead {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}

/* «Коротко»: цифры */
.blog-content .etp .etp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.blog-content .etp .etp-stat {
  padding: 20px 20px 18px;
  border-radius: var(--r);
  background: var(--soft);
}
.blog-content .etp .etp-stat b {
  display: block;
  font: 400 26px/1.15 var(--num);
  color: var(--o);
  white-space: nowrap;
}
.blog-content .etp .etp-stat span {
  display: block;
  margin-top: 8px;
  font: 400 14px/1.45 Ubuntu, sans-serif;
  color: var(--mute);
}

/* заголовок раздела с наклейкой */
.blog-content .etp .etp-h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
}
.blog-content .etp .etp-h2 h2 {
  margin-top: 0;
}
.blog-content .etp .etp-h2 img {
  flex: none;
  width: 72px;
  height: 72px;
}
.blog-content .etp > h2 {
  margin-top: 56px;
}

/* дорожная карта шести этапов */
.blog-content .etp .etp-road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
  counter-reset: none;
}
.blog-content .etp .etp-road__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.blog-content .etp a.etp-road__item {
  color: inherit !important;
  text-decoration: none !important;
}
.blog-content .etp a.etp-road__item:hover {
  border-color: var(--o-bd);
  box-shadow: 0 10px 30px -12px rgba(243, 113, 47, .35);
  transform: translateY(-2px);
}
.blog-content .etp .etp-road__num {
  position: absolute;
  top: 18px;
  right: 20px;
  font: 400 15px/1 var(--num);
  color: var(--o);
}
.blog-content .etp .etp-road__item img {
  width: 76px;
  height: 76px;
}
.blog-content .etp .etp-road__name {
  margin: 14px 0 0;
  font: 500 19px/1.3 Bitter, serif;
  color: var(--text);
}
.blog-content .etp .etp-road__text {
  flex: 1;
  margin: 8px 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
}
.blog-content .etp .etp-road__item .etp-chip {
  align-self: flex-start;
}

/* плашки-подсказки */
.blog-content .etp .etp-call {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 900px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--o-bd);
  border-radius: var(--r);
  background: var(--o-bg);
}
.blog-content .etp .etp-call img {
  flex: none;
  width: 56px;
  height: 56px;
}
.blog-content .etp .etp-call p:not(.etp-label) {
  margin-top: 8px;
  line-height: 1.65;
}
.blog-content .etp .etp-call--note {
  border-color: var(--blue-bd);
  background: var(--blue-bg);
}
.blog-content .etp .etp-call--note .etp-label {
  color: var(--blue);
}
.blog-content .etp .etp-call__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  color: var(--blue);
}

/* этап */
.blog-content .etp .etp-stage {
  margin-top: 40px;
}
.blog-content .etp .etp-stage__head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-radius: var(--r);
  background: var(--soft);
}
.blog-content .etp .etp-stage__head img {
  flex: none;
  width: 96px;
  height: 96px;
}
.blog-content .etp .etp-stage__head h3 {
  margin-top: 12px;
}
.blog-content .etp .etp-result {
  max-width: 900px;
  margin-top: 22px;
  padding: 18px 22px 20px;
  border-left: 4px solid var(--o);
  border-radius: 0 16px 16px 0;
  background: var(--o-bg);
}
/* «Результат шага» сразу под врезкой «Из практики»: фон у обоих тёплый, при 22 px они читаются как один блок */
.blog-content .etp .etp-call + .etp-result { margin-top: 28px; }
.blog-content .etp .etp-result .etp-chips {
  margin-top: 12px;
}

/* цитата */
.blog-content .etp .etp-quote {
  position: relative;
  max-width: 900px;
  margin: 30px 0 0;
  padding: 26px 30px 24px 86px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
}
.blog-content .etp .etp-quote::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 26px;
  font: 700 76px/1 Bitter, serif;
  color: var(--amber);
}
.blog-content .etp .etp-quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}
.blog-content .etp .etp-quote blockquote p {
  margin: 0;
  font: 500 21px/1.45 Bitter, serif;
  color: #fff;
}
.blog-content .etp .etp-quote figcaption {
  margin-top: 12px;
  font: 400 14px/1.5 Ubuntu, sans-serif;
  color: #B9BDC4;
}
.blog-content .etp .etp-quote figcaption a {
  color: #FFC27A !important;
  text-decoration-color: rgba(255, 194, 122, .45) !important;
}

/* иллюстрация */
.blog-content .etp .etp-fig {
  margin: 30px 0 0;
}
.blog-content .etp .etp-fig img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--r);
}
.blog-content .etp .etp-fig figcaption {
  max-width: 900px;
  margin-top: 10px;
  font: 400 13px/1.5 Ubuntu, sans-serif;
  color: var(--mute);
}

/* мини-карточки (виды тестирования) */
.blog-content .etp .etp-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.blog-content .etp .etp-mini li {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  line-height: 1.45;
}
.blog-content .etp .etp-mini .etp-i {
  display: block;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: var(--o-tint);
  color: var(--o);
}
.blog-content .etp .etp-mini b {
  display: block;
  margin-top: 12px;
  font: 500 16px/1.3 Bitter, serif;
}
.blog-content .etp .etp-mini span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--mute);
}

/* список с галочками */
.blog-content .etp .etp-ticks {
  max-width: 820px;
  margin-top: 16px;
}
.blog-content .etp .etp-ticks li {
  position: relative;
  padding: 8px 0 8px 36px;
  line-height: 1.6;
}
.blog-content .etp .etp-ticks li::before {
  display: block;
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--o-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23F3712F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* цены */
.blog-content .etp .etp-prices {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
  margin-top: 24px;
}
.blog-content .etp .etp-price {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.blog-content .etp .etp-price__name {
  margin: 0;
  font: 500 17px/1.35 Bitter, serif;
  color: var(--text);
}
.blog-content .etp .etp-price__sum {
  margin: 14px 0 0;
  font: 400 26px/1.1 var(--num);
  color: var(--o);
  white-space: nowrap;
}
.blog-content .etp .etp-price__term {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--mute);
}
.blog-content .etp .etp-price__term .etp-i {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  color: var(--o);
}
.blog-content .etp .etp-price--hot {
  grid-row: span 2;
  border: 0;
  background: linear-gradient(160deg, #FF8A3D 0%, var(--o) 55%, #E85B1A 100%);
  color: #fff;
}
.blog-content .etp .etp-price--hot img {
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}
.blog-content .etp .etp-price--hot .etp-price__name,
.blog-content .etp .etp-price--hot .etp-price__sum,
.blog-content .etp .etp-price--hot .etp-price__term,
.blog-content .etp .etp-price--hot .etp-price__term .etp-i {
  color: #fff;
}
.blog-content .etp .etp-price--hot .etp-price__name {
  font-size: 21px;
}
.blog-content .etp .etp-price--hot .etp-price__sum {
  font-size: 34px;
}
.blog-content .etp .etp-price--hot p.etp-price__note {
  flex: 1;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #FFE9DC;
}
.blog-content .etp .etp-price--hot a {
  align-self: flex-start;
  margin-top: 16px;
  color: #fff !important;
  text-decoration-color: rgba(255, 255, 255, .5) !important;
}

/* полосы: сроки и доли бюджета */
.blog-content .etp .etp-panel {
  margin-top: 26px;
  padding: 26px 28px 22px;
  border-radius: var(--r);
  background: var(--soft);
}
.blog-content .etp .etp-panel__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-content .etp .etp-panel__head img {
  flex: none;
  width: 60px;
  height: 60px;
}
.blog-content .etp .etp-panel__title {
  margin: 4px 0 0;
  font: 500 20px/1.3 Bitter, serif;
  color: var(--text);
}
.blog-content .etp .etp-bars {
  margin-top: 18px;
}
.blog-content .etp .etp-bar {
  display: grid;
  grid-template-columns: 250px 1fr 92px;
  gap: 18px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.blog-content .etp .etp-bar__name {
  font: 500 15px/1.35 Ubuntu, sans-serif;
  color: var(--ink);
}
.blog-content .etp .etp-bar__name small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--mute);
}
.blog-content .etp .etp-bar__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #fff;
}
.blog-content .etp .etp-bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--b) / var(--max) * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--o) 0 calc(var(--a) / var(--b) * 100%), var(--amber) 0);
  opacity: .95;
}
.blog-content .etp .etp-bar__val {
  font: 400 15px/1.2 var(--num);
  color: var(--o);
  text-align: right;
  white-space: nowrap;
}
.blog-content .etp .etp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--mute);
}
.blog-content .etp .etp-legend span::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--o);
  vertical-align: 0;
}
.blog-content .etp .etp-legend span + span::before {
  background: var(--amber);
}

/* итоговые цифры с кнопкой */
.blog-content .etp .etp-proof {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 22px;
}
.blog-content .etp .etp-btn,
.blog-content .etp a.etp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 2px solid var(--o);
  border-radius: 999px;
  background: var(--o);
  font: 500 16px/1.2 Ubuntu, sans-serif;
  color: #fff !important;
  text-decoration: none !important;
  transition: background-color .2s, border-color .2s, color .2s;
}
.blog-content .etp a.etp-btn:hover {
  border-color: var(--o-dark);
  background: var(--o-dark);
}
.blog-content .etp a.etp-btn--ghost {
  background: #fff;
  color: var(--o-dark) !important;
}
.blog-content .etp a.etp-btn--ghost:hover {
  background: var(--o-tint);
  color: var(--o-dark) !important;
}
.blog-content .etp .etp-proof .etp-btn {
  border-radius: var(--r);
  padding: 18px 26px;
}

/* модели */
.blog-content .etp .etp-model {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  margin-top: 26px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.blog-content .etp .etp-model__ico img {
  width: 120px;
  height: 120px;
}
.blog-content .etp .etp-model__body h3 {
  margin-top: 12px;
}
.blog-content .etp .etp-model__body > p {
  margin-top: 12px;
}
.blog-content .etp .etp-pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.blog-content .etp .etp-pc > div {
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: #F1FAF5;
}
.blog-content .etp .etp-pc > div .etp-label {
  color: #1F7A50;
}
.blog-content .etp .etp-pc > div.etp-pc__risk {
  background: var(--red-bg);
}
.blog-content .etp .etp-pc > div.etp-pc__risk .etp-label {
  color: var(--red);
}
.blog-content .etp .etp-pc p:not(.etp-label) {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
}

/* шкала гибкости */
.blog-content .etp .etp-flex {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-content .etp .etp-flex i {
  display: inline-block;
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.blog-content .etp .etp-flex[data-v="1"] i:nth-child(-n+1),
.blog-content .etp .etp-flex[data-v="2"] i:nth-child(-n+2),
.blog-content .etp .etp-flex[data-v="3"] i:nth-child(-n+3) {
  background: var(--o);
}

/* таблицы */
.blog-content .etp .etp-table {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.blog-content .etp .etp-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
}
.blog-content .etp .etp-table th,
.blog-content .etp .etp-table td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.blog-content .etp .etp-table thead th {
  background: var(--o-bg);
  font: 700 12px/1.3 Ubuntu, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--o-dark);
}
.blog-content .etp .etp-table tbody tr:last-child td {
  border-bottom: 0;
}
.blog-content .etp .etp-table tbody tr:nth-child(2n) td {
  background: #FCFCFD;
}
.blog-content .etp .etp-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}
.blog-content .etp .etp-table td .etp-flex {
  margin-right: 8px;
}

/* ГОСТ */
.blog-content .etp .etp-gost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.blog-content .etp .etp-gost__card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.blog-content .etp .etp-gost__card h3 {
  margin-top: 14px;
  font-size: 21px;
}
.blog-content .etp .etp-gost__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--mute);
}
.blog-content .etp .etp-gost__count b {
  font: 400 40px/1 var(--num);
  color: var(--o);
}
.blog-content .etp .etp-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: 16px;
  counter-reset: flow;
}
.blog-content .etp .etp-flow li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  counter-increment: flow;
}
.blog-content .etp .etp-flow li:not(:last-child)::after {
  content: "\2192";
  color: var(--gray, #B5B5B5);
}
.blog-content .etp .etp-flow .etp-chip::before {
  content: counter(flow);
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--o-tint);
  font: 500 11px/1 Ubuntu, sans-serif;
  color: var(--o-dark);
}
.blog-content .etp .etp-gost__card > p:not(.etp-gost__count) {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
}

/* ошибки */
.blog-content .etp .etp-errs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.blog-content .etp .etp-errs li {
  padding: 20px 22px;
  border: 1px solid var(--red-bd);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--red-bg), #fff 70%);
  line-height: 1.55;
}
.blog-content .etp .etp-errs b {
  display: block;
  margin-top: 12px;
  font: 500 18px/1.35 Bitter, serif;
  color: var(--text);
}
.blog-content .etp .etp-errs span:not(.etp-chip) {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #3A3D42;
}

/* чек-лист с галочками без скриптов: счётчик считает отмеченные */
.blog-content .etp .etp-cl {
  max-width: 900px;
  margin-top: 22px;
  padding: 8px 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  counter-reset: done;
}
.blog-content .etp .etp-cl label {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-weight: 400;
}
.blog-content .etp .etp-cl input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.blog-content .etp .etp-cl input:checked {
  counter-increment: done;
}
.blog-content .etp .etp-cl__box {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border: 2px solid #C9CDD3;
  border-radius: 8px;
  background: #fff center/16px no-repeat;
  transition: background-color .15s, border-color .15s;
}
.blog-content .etp .etp-cl input:checked + .etp-cl__box {
  border-color: var(--o);
  background-color: var(--o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.blog-content .etp .etp-cl input:focus-visible + .etp-cl__box {
  outline: 3px solid var(--o-bd);
  outline-offset: 2px;
}
.blog-content .etp .etp-cl__stage {
  justify-self: start;
}
.blog-content .etp .etp-cl__text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.blog-content .etp .etp-cl input:checked ~ .etp-cl__text {
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-color: var(--o-bd);
}
.blog-content .etp p.etp-cl__done {
  margin: 16px 0 0;
  font: 400 15px/1.3 var(--num);
  color: var(--o);
}
.blog-content .etp p.etp-cl__done::after {
  content: "Отмечено: " counter(done) " из 6";
}

/* «Главное» */
.blog-content .etp .etp-main {
  margin-top: 56px;
  padding: 34px 36px 32px;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
}
.blog-content .etp .etp-main h2 {
  margin-top: 0;
  color: #fff;
}
.blog-content .etp .etp-main p {
  max-width: 820px;
  color: #E6E7E9;
}
.blog-content .etp .etp-main .etp-flow .etp-chip {
  border-color: #3A3E45;
  background: #2A2D32;
  color: #fff;
}
.blog-content .etp .etp-main .etp-flow .etp-chip::before {
  background: var(--o);
  color: #fff;
}
.blog-content .etp .etp-main .etp-flow li:not(:last-child)::after {
  color: #6B7078;
}

/* FAQ */
.blog-content .etp .etp-faq {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.blog-content .etp .etp-faq details {
  border-bottom: 1px solid var(--line);
}
.blog-content .etp .etp-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
}
.blog-content .etp .etp-faq summary::-webkit-details-marker {
  display: none;
}
.blog-content .etp .etp-faq summary h3 {
  margin: 0;
  font-size: 20px;
}
.blog-content .etp .etp-faq summary h3::before {
  display: none;
}
.blog-content .etp .etp-faq summary > .etp-i {
  flex: none;
  display: block;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50%;
  background: var(--o-tint);
  color: var(--o);
  transition: transform .25s, background-color .2s, color .2s;
}
.blog-content .etp .etp-faq details[open] summary > .etp-i {
  transform: rotate(45deg);
  background: var(--o);
  color: #fff;
}
.blog-content .etp .etp-faq details > p {
  max-width: 820px;
  margin: 0;
  padding: 0 4px 22px;
  line-height: 1.7;
}

/* связаться */
.blog-content .etp .etp-cta {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding: 32px 36px;
  border: 1px solid var(--o-bd);
  border-radius: 26px;
  background: var(--o-bg);
}
.blog-content .etp .etp-cta img {
  width: 150px;
  height: 150px;
}
.blog-content .etp p.etp-cta__title {
  margin: 0;
  font: 500 26px/1.25 Bitter, serif;
  color: var(--text);
}
.blog-content .etp .etp-cta p:not(.etp-cta__title) {
  margin-top: 8px;
  color: var(--ink);
}
.blog-content .etp .etp-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* планшет */
@media (max-width: 991px) {
  .blog-content .etp .etp-stats { grid-template-columns: 1fr 1fr; }
  .blog-content .etp .etp-road { grid-template-columns: 1fr 1fr; }
  .blog-content .etp .etp-mini { grid-template-columns: repeat(3, 1fr); }
  .blog-content .etp .etp-prices { grid-template-columns: 1fr 1fr; }
  .blog-content .etp .etp-price--hot { grid-column: span 2; grid-row: auto; }
  .blog-content .etp .etp-proof { grid-template-columns: 1fr 1fr; }
  .blog-content .etp .etp-proof .etp-btn { grid-column: span 2; }
  .blog-content .etp .etp-gost { grid-template-columns: 1fr; }
  .blog-content .etp .etp-bar { grid-template-columns: 200px 1fr 84px; }
}

/* телефон */
@media (max-width: 575px) {
  .blog-content .etp .etp-lead { font-size: 17px; }
  .blog-content .etp .etp-stats { gap: 8px; margin-top: 24px; }   /* под ярлычками: соседние блоки не ближе 24 px */
  .blog-content .etp .etp-stat { padding: 16px 14px 14px; border-radius: 16px; }
  .blog-content .etp .etp-stat b { font-size: 19px; white-space: normal; }
  .blog-content .etp .etp-stat span { font-size: 13px; }
  .blog-content .etp a.etp-tag { min-height: 36px; padding: 8px 13px; font-size: 13px; }   /* зона нажатия не ниже 36 px: при 13 px и отступах 8 было 34 */
  .blog-content .etp .etp-h2 { gap: 12px; margin-top: 44px; }
  .blog-content .etp .etp-h2 img { width: 52px; height: 52px; }
  .blog-content .etp > h2 { margin-top: 44px; }

  .blog-content .etp .etp-road { grid-template-columns: 1fr; gap: 10px; }
  .blog-content .etp .etp-road__item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 14px;
    padding: 16px 16px 16px 14px;
    border-radius: 16px;
  }
  .blog-content .etp .etp-road__item img { grid-row: span 3; width: 56px; height: 56px; }
  .blog-content .etp .etp-road__num { top: 16px; right: 16px; font-size: 13px; }
  .blog-content .etp .etp-road__name { margin: 2px 30px 0 0; font-size: 17px; }
  .blog-content .etp .etp-road__text { margin: 4px 0 10px; font-size: 14px; }

  .blog-content .etp .etp-call { flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; }
  .blog-content .etp .etp-call img { width: 48px; height: 48px; }

  .blog-content .etp .etp-stage { margin-top: 32px; }
  .blog-content .etp .etp-stage__head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 16px; }
  .blog-content .etp .etp-stage__head img { width: 72px; height: 72px; }
  .blog-content .etp .etp-result { padding: 16px 16px 18px; }
  .blog-content .etp .etp-chip { white-space: normal; }

  .blog-content .etp .etp-quote { padding: 54px 20px 20px; border-radius: 16px; }
  .blog-content .etp .etp-quote::before { top: 2px; left: 18px; font-size: 64px; }
  .blog-content .etp .etp-quote blockquote p { font-size: 18px; }
  .blog-content .etp .etp-fig img { border-radius: 16px; }

  .blog-content .etp .etp-mini { grid-template-columns: 1fr 1fr; gap: 8px; }
  .blog-content .etp .etp-mini li { padding: 14px 12px; border-radius: 14px; }
  .blog-content .etp .etp-mini li:last-child { grid-column: span 2; }

  .blog-content .etp .etp-prices { grid-template-columns: 1fr; gap: 10px; }
  .blog-content .etp .etp-price--hot { grid-column: auto; }
  .blog-content .etp .etp-price--hot img { width: 84px; height: 84px; }
  .blog-content .etp .etp-price--hot .etp-price__sum { font-size: 28px; }
  .blog-content .etp .etp-price { padding: 18px; border-radius: 16px; }
  .blog-content .etp .etp-price__sum { font-size: 22px; }

  .blog-content .etp .etp-panel { padding: 20px 16px 16px; border-radius: 16px; }
  .blog-content .etp .etp-panel__head img { width: 48px; height: 48px; }
  .blog-content .etp .etp-panel__title { font-size: 18px; }
  .blog-content .etp .etp-bar { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .blog-content .etp .etp-bar__track { grid-column: span 2; grid-row: 2; height: 12px; }
  .blog-content .etp .etp-bar__val { font-size: 14px; }

  .blog-content .etp .etp-proof { grid-template-columns: 1fr 1fr; gap: 8px; }

  .blog-content .etp .etp-model { grid-template-columns: 1fr; gap: 6px; padding: 18px; border-radius: 16px; }
  .blog-content .etp .etp-model__ico img { width: 80px; height: 80px; }
  .blog-content .etp .etp-pc { grid-template-columns: 1fr; gap: 8px; }

  .blog-content .etp .etp-table { border-radius: 16px; }
  .blog-content .etp .etp-table table { font-size: 14px; min-width: 520px; }
  .blog-content .etp .etp-table th,
  .blog-content .etp .etp-table td { padding: 12px 14px; }

  .blog-content .etp .etp-gost__card { padding: 18px; border-radius: 16px; }
  .blog-content .etp .etp-gost__card h3 { font-size: 19px; }

  .blog-content .etp .etp-errs { grid-template-columns: 1fr; gap: 10px; }
  .blog-content .etp .etp-errs li { padding: 16px 18px; border-radius: 16px; }

  .blog-content .etp .etp-cl { padding: 4px 16px 16px; border-radius: 16px; }
  .blog-content .etp .etp-cl__text { font-size: 15px; }

  .blog-content .etp .etp-main { padding: 24px 18px 22px; border-radius: 20px; }

  .blog-content .etp .etp-faq summary { padding: 16px 2px; gap: 14px; }
  .blog-content .etp .etp-faq summary h3 { font-size: 17px; }
  .blog-content .etp .etp-faq summary > .etp-i { width: 32px; height: 32px; padding: 8px; }

  .blog-content .etp .etp-cta { grid-template-columns: 1fr; gap: 12px; padding: 24px 18px; border-radius: 20px; }
  .blog-content .etp .etp-cta img { width: 90px; height: 90px; }
  .blog-content .etp p.etp-cta__title { font-size: 22px; }
  .blog-content .etp .etp-cta__btns a.etp-btn { width: 100%; }
}

/* карточка этапа целиком ссылка: li растягивает ссылку на всю высоту строки сетки */
.blog-content .etp .etp-road > li {
  display: flex;
}
.blog-content .etp .etp-road > li > a {
  flex: 1;
}
@media (max-width: 575px) {
  .blog-content .etp .etp-road__item .etp-chip { justify-self: start; }
}

/* встроенные иконки: SVG из спрайта в начале статьи */
.blog-content .etp .etp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.blog-content .etp .etp-i {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.125em;
}
.blog-content .etp .etp-call__icon .etp-i {
  width: 22px;
  height: 22px;
}
.blog-content .etp .etp-btn .etp-i {
  width: 18px;
  height: 18px;
}

/* телефон: строки таблиц карточками, подпись колонки из data-l */
@media (max-width: 575px) {
  .blog-content .etp .etp-table { overflow: visible; border: 0; border-radius: 0; }
  .blog-content .etp .etp-table table { min-width: 0; }
  .blog-content .etp .etp-table thead { display: none; }
  .blog-content .etp .etp-table tbody tr { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .blog-content .etp .etp-table tbody tr:first-child { margin-top: 0; }
  .blog-content .etp .etp-table tbody td { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
  .blog-content .etp .etp-table tbody tr:nth-child(2n) td { background: #fff; }
  .blog-content .etp .etp-table tbody td:last-child { border-bottom: 0; }
  .blog-content .etp .etp-table tbody td::before { content: attr(data-l); font: 700 11px/1.6 Ubuntu, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--o-dark); }
  .blog-content .etp .etp-table tbody td:first-child { display: block; padding: 12px 14px; background: var(--o-bg); font: 500 16px/1.35 Bitter, serif; }
  .blog-content .etp .etp-table tbody tr:nth-child(2n) td:first-child { background: var(--o-bg); }
  .blog-content .etp .etp-table tbody td:first-child::before { display: none; }
}

/* блок псевдокода игрового цикла и код в тексте */
.blog-content .etp pre.etp-code {
  max-width: 820px;
  margin: 18px 0 22px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #2B2420;
  color: #F7EDE4;
  font: 400 15px/1.65 Consolas, ui-monospace, Menlo, Monaco, "Roboto Mono", monospace;
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
}
.blog-content .etp pre.etp-code code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}
.blog-content .etp p code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--o-tint);
  color: #8A3A12;
  font: 500 .92em/1.4 Consolas, ui-monospace, Menlo, Monaco, "Roboto Mono", monospace;
}
@media (max-width: 575px) {
  .blog-content .etp pre.etp-code { padding: 14px 16px; font-size: 13px; }
}

/* карточки кода: заголовок с языком и именем файла, кнопка «Копировать» (зелёная после копирования), подсветка
   уже в разметке (span.hl-*) в палитре сайта: оранжевый, янтарный, мятный. Все правила карточки здесь, общие стили
   сайта для неё не нужны. Строки кода не переносятся, на телефоне блок прокручивается вбок: перенос ломает отступы,
   а в Python и GDScript отступ это синтаксис. Псевдокод (data-lang="pseudo") на телефоне переносит строки.
   Шрифт кода: Consolas на Windows, SF Mono или Menlo на Mac и iPhone, на Android системный моноширинный
   (Courier New там подменяется машинописным шрифтом, поэтому его в списке нет) */
.blog-content .etp .tm-code-wrap { position: relative; min-width: 0; overflow: hidden; max-width: 820px; margin: 18px 0 22px; border: 0; border-radius: 16px; background: #2B2420; box-shadow: 0 18px 36px -26px rgba(43, 36, 32, .8); }
.blog-content .etp .tm-code-title { display: block; padding: 12px 64px 12px 20px; border-bottom: 1px solid rgba(247, 237, 228, .12); background: #362D28; color: #F7EDE4; font: 600 14px/1.4 "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: .01em; }
/* три точки окна редактора в цветах сайта: точка 8 px и две тени через 14 px, отступ до текста 38 px */
.blog-content .etp .tm-code-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 38px; border-radius: 50%; background: #FF711C; box-shadow: 14px 0 0 #FFAA33, 28px 0 0 #A8DDB5; vertical-align: 1px; }
.blog-content .etp .tm-code { display: block; max-width: 100%; overscroll-behavior-inline: contain; margin: 0; padding: 18px 22px 20px; border: 0; border-radius: 0; background: #2B2420; color: #F7EDE4; font: 400 15px/1.65 Consolas, ui-monospace, Menlo, Monaco, "Roboto Mono", monospace; white-space: pre; word-break: normal; overflow-x: auto; tab-size: 4; }
.blog-content .etp .tm-code code { display: block; padding: 0; background: none; color: inherit; font: inherit; white-space: pre; word-break: normal; }   /* стили сайта у pre code переносят строки */
.blog-content .etp .tm-code-copy { position: absolute; top: 7px; right: 10px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid rgba(247, 237, 228, .22); border-radius: 8px; background: transparent; color: #F7EDE4; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background .15s, color .15s, border-color .15s; }
.blog-content .etp .tm-code-copy svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.blog-content .etp .tm-code-copy:hover, .blog-content .etp .tm-code-copy:focus-visible { border-color: #FF711C; background: rgba(255, 113, 28, .12); color: #FF9A5C; }
.blog-content .etp .tm-code-copy.is-copied { border-color: #A8DDB5; color: #A8DDB5; }
.blog-content .etp .tm-code .hl-c { color: #A39488; font-style: italic; }
.blog-content .etp .tm-code .hl-s { color: #A8DDB5; }
.blog-content .etp .tm-code .hl-n { color: #FFC46B; }
.blog-content .etp .tm-code .hl-k { color: #FF9A5C; }
.blog-content .etp .tm-code .hl-t { color: #FFD7B0; }
.blog-content .etp .tm-code .hl-a { color: #FFAA33; }
.blog-content .etp .tm-code .hl-f { color: #F2C9A0; }
/* схема цикла: каждая строка отдельным блоком, вложенные с отступом в 4 знака; если строка не помещается
   (телефон 320 px), продолжение идёт ещё на 4 знака правее её начала и не выглядит отдельной строкой */
.blog-content .etp .tm-code[data-lang="pseudo"] .tm-ln { display: block; padding-left: 4ch; text-indent: -4ch; }
.blog-content .etp .tm-code[data-lang="pseudo"] .tm-ln--1 { padding-left: 8ch; }
@media (max-width: 575px) {
  .blog-content .etp .tm-code-wrap { margin-left: -4px; margin-right: -4px; border-radius: 14px; }
  .blog-content .etp .tm-code-title { padding: 10px 56px 10px 16px; font-size: 13px; }
  .blog-content .etp .tm-code { padding: 14px 16px 16px; font-size: 13px; -webkit-overflow-scrolling: touch; }
  .blog-content .etp .tm-code-copy { top: 4px; right: 8px; width: 36px; height: 36px; }   /* не меньше ярлычков статьи: 36 px под палец */
  .blog-content .etp .tm-code[data-lang="pseudo"], .blog-content .etp .tm-code[data-lang="pseudo"] code { white-space: pre-wrap; overflow-wrap: break-word; }
}

/* телефон: карточки списка сжимаются, длинное слово («Производительность») переносится; последний пункт на всю ширину
   только при нечётном числе пунктов; на экранах уже 360 px одна колонка; псевдокод переносит строки */
@media (max-width: 575px) {
  .blog-content .etp .etp-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-content .etp .etp-mini b { overflow-wrap: anywhere; }
  .blog-content .etp .etp-mini li:last-child { grid-column: auto; }
  .blog-content .etp .etp-mini li:last-child:nth-child(odd) { grid-column: span 2; }
  .blog-content .etp pre.etp-code { white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; }
  .blog-content .etp pre.etp-code code { display: block; white-space: pre-wrap; word-break: normal; overflow-wrap: break-word; }   /* стили сайта запрещают перенос у code и рвут слова */
}
@media (max-width: 359px) {
  .blog-content .etp .etp-mini { grid-template-columns: minmax(0, 1fr); }
  .blog-content .etp .etp-mini li:last-child:nth-child(odd) { grid-column: auto; }
}

/* списки из 4 и 6 пунктов на ПК: без пустых ячеек в сетке на 5 колонок */
@media (min-width: 992px) {
  .blog-content .etp .etp-mini--4 { grid-template-columns: repeat(4, 1fr); }
  .blog-content .etp .etp-mini--3 { grid-template-columns: repeat(3, 1fr); }
}

/* чек-лист: предложение после всех отмеченных пунктов (показывает скрипт статьи statya.js) */
.blog-content .etp .etp-cl__cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--o-bd);
  border-radius: 16px;
  background: var(--o-bg);
}
.blog-content .etp .etp-cl__cta[hidden] { display: none; }
.blog-content .etp p.etp-cl__cta-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
@media (max-width: 575px) {
  .blog-content .etp .etp-cl__cta { padding: 16px; }
  .blog-content .etp p.etp-cl__cta-text { font-size: 15px; }
  .blog-content .etp .etp-cl__cta a.etp-btn { width: 100%; }
}
