/* Главная: схема «Создание работы по теме» и блок «Примеры работ» (home-final-day, 2026-10-01). Цвета — tokens.css. */

/* Схема процесса: SVG по ширине блока, на телефоне — вариант 2×2 (images/stx-process-m.svg) */
.instructions__wrap-img--process { padding: 16px; overflow: hidden; }
.instructions__wrap-img--process .stx-process { position: relative; display: block; width: 100%; max-width: 660px; }
.instructions__wrap-img--process .stx-process img { display: block; width: 100%; height: auto; max-width: 100%; }
@media (max-width: 900px) {
  .instructions__wrap-img--process { height: auto; min-height: 0; }
}
@media (max-width: 600px) {
  .instructions__wrap-img--process { padding: 12px; }
  .instructions__wrap-img--process .stx-process { max-width: 380px; margin: 0 auto; }
}

/* Примеры работ из каталога (/primery/) */
.stx-hx { position: relative; margin-bottom: 88px; }
.stx-hx .section-subtitle { /* как .instructions__subtitle в style.min.css */
  font: 600 18px / 120% "Inter", sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
  background: linear-gradient(90deg, #1650eb 0%, #4d84ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 25px 0 15px;
}
.stx-hx__lead {
  max-width: 640px;
  margin: -8px auto 32px;
  text-align: center;
  font: 400 17px/1.5 "Inter", sans-serif;
  color: var(--stx-text-2, #566274);
}
.stx-hx__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stx-hx__grid > li { margin: 0; padding: 0; }
.stx-hx__card {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: var(--stx-surface, #fff);
  border: 1px solid #dde2e6;
  color: var(--stx-text, #1B2430) !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stx-hx__card:hover { transform: translateY(-2px); border-color: var(--stx-accent-line, rgba(47, 107, 255, .28)); box-shadow: 0 12px 32px rgba(22, 80, 235, .10); }
.stx-hx__card:focus-visible { outline: 2px solid var(--stx-accent, #2F6BFF); outline-offset: 2px; }
.stx-hx__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--stx-accent-soft, rgba(47, 107, 255, .10));
  color: var(--stx-accent-text, #1F52D9);
  font: 600 13px/1.2 "Inter", sans-serif;
}
.stx-hx__type .stx-i { width: 16px; height: 16px; }
.stx-hx__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 600 17px/1.35 "Inter", sans-serif;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.stx-hx__meta { font: 400 14px/1.4 "Inter", sans-serif; color: var(--stx-text-2, #566274); }
.stx-hx__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font: 500 14px/1.2 "Inter", sans-serif;
  color: var(--stx-accent-text, #1F52D9);
}
.stx-hx__more .stx-i, .stx-hx__btn .stx-i { width: 16px; height: 16px; }
.stx-hx__all { display: flex; justify-content: center; margin-top: 28px; }
.stx-hx__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--stx-surface, #fff);
  border: 1px solid var(--stx-accent-line, rgba(47, 107, 255, .28));
  color: var(--stx-accent-text, #1F52D9) !important;
  font: 600 16px/1 "Inter", sans-serif;
  text-decoration: none !important;
  transition: background .2s ease;
}
.stx-hx__btn:hover { background: var(--stx-accent-soft, rgba(47, 107, 255, .10)); }
@media (max-width: 900px) {
  .stx-hx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stx-hx { margin-bottom: 64px; }
  .stx-hx__lead { font-size: 15px; margin-bottom: 20px; }
  .stx-hx__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stx-hx__grid > li:nth-child(n+5) { display: none; } /* на телефоне 4 карточки, остальное — «Все примеры» */
  .stx-hx__card { padding: 18px; }
  .stx-hx__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stx-hx__card, .stx-hx__btn { transition: none; }
  .stx-hx__card:hover { transform: none; }
}
