/* Страницы-инструкции: шаги, вопросы и карточки. Поверх creators.css */
.g-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.g-step { display: flex; gap: 14px; align-items: flex-start; }
.g-step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: #04120F; background: linear-gradient(135deg, #3DE7BC, #12B48C);
}
.g-step h3 { margin: 4px 0 4px; font-size: 16.5px; font-weight: 700; }
.g-step p { margin: 0; color: rgba(233, 243, 239, 0.72); line-height: 1.6; font-size: 14.5px; }
.g-step a { color: #3DE7BC; }

.g-faq {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  background: rgba(255, 255, 255, 0.025); padding: 0 16px; margin-bottom: 10px;
}
.g-faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: '+'; color: #3DE7BC; font-size: 20px; line-height: 1; flex: 0 0 auto;
  transition: transform .2s ease;
}
.g-faq[open] summary::after { transform: rotate(45deg); }
.g-faq p { margin: 0 0 16px; color: rgba(233, 243, 239, 0.72); line-height: 1.6; font-size: 14.5px; }

.g-cards { display: grid; gap: 10px; }
.g-card {
  display: block; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.g-card:hover { border-color: rgba(61, 231, 188, 0.3); background: rgba(61, 231, 188, 0.05); transform: translateY(-1px); }
.g-card b { display: block; font-size: 16px; margin-bottom: 5px; }
.g-card span { color: rgba(233, 243, 239, 0.6); font-size: 13.5px; line-height: 1.5; }
@media (min-width: 720px) { .g-cards { grid-template-columns: 1fr 1fr; } }

/* Страницы без оглавления (инструкции, «Свой VPN»): текст занимал только узкую
   колонку, где на странице правил стоит оглавление. Без .toc — одна колонка. */
.layout:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }

/* Внутри .sec две колонки: узкая под иконку и широкая под текст. Всё, что мы
   кладём в секцию (карточки, вопросы, плашки), должно занимать обе — иначе
   блоки ужимаются в половину ширины и наезжают друг на друга. */
.sec > .g-faq, .sec > .g-cards, .sec > .steps, .sec > .facts, .sec > p { grid-column: 1 / -1; }
.sec > .g-cards, .sec > .steps, .sec > .facts { margin-top: 14px; }
.sec > .g-faq:first-of-type { margin-top: 14px; }
