/* Стили статьи «Что происходит, когда мы открываем сайт». Общие компоненты — в shared/css. */

/* Участники, схема, мини-сайт кофейни и карта серии — в shared/css/how-web.css. */

/* ---------- 01. Путь запроса ---------- */

.hw-journey { display: grid; gap: 18px; }
.hw-journey__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.hw-step { display: grid; gap: 8px; align-content: start; }
.hw-step__head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.hw-step__title { font-family: var(--font-heading); font-weight: 500; font-size: 19px; line-height: 1.2; }
.hw-step__text { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); min-height: 6.2em; }
.hw-msg {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--who-soft, var(--surface));
}
.hw-msg__dir { font-family: var(--font-mono); font-size: 11px; color: var(--who); }
.hw-msg__text { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.hw-msg__tech { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.hw-msg--empty { background: var(--surface); color: var(--muted); font-size: 13px; }
@media (max-width: 680px) {
  .hw-journey__cols { grid-template-columns: 1fr; }
  .hw-step__text { min-height: 0; }
}
@media (max-width: 440px) {
  .hw-journey__controls { display: grid; grid-template-columns: 1fr 1fr; }
  .hw-journey__controls .spacer { display: none; }
  .hw-journey__controls .btn:first-child { grid-column: 1 / -1; }
}

/* ---------- 02. Кто за что отвечает ---------- */

.hw-rolesdemo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hw-rolesdemo .hw-site__view { min-height: 0; }
.hw-hot {
  cursor: pointer;
  outline: 1.5px dashed var(--border-strong);
  outline-offset: 2px;
  border-radius: 6px;
  transition: outline-color var(--transition);
}
.hw-hot:hover, .hw-hot:focus-visible { outline-color: var(--primary-fg); }
.hw-hot--on, .hw-hot--on:hover { outline: 2px solid var(--primary-fg); }
.hw-site__lock.hw-hot { padding: 1px; border-radius: 4px; }

.hw-roles { display: grid; gap: 6px; }
.hw-role {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
  transition: opacity var(--transition), background var(--transition);
}
.hw-role .hw-node__icon { width: 36px; height: 36px; border-radius: 11px; color: var(--who); background: var(--who-soft); border-color: transparent; }
.hw-role .hw-icon { width: 19px; height: 19px; }
.hw-role b { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 14px; }
.hw-role span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hw-role--on { background: var(--who-soft); }
.hw-role--off { opacity: .4; }
.hw-explain { margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border-strong); font-size: 14px; color: var(--muted); }
.hw-explain b { display: block; font-family: var(--font-heading); font-weight: 500; color: var(--text); margin-bottom: 4px; }
.hw-explain p { margin: 0; line-height: 1.5; }
@media (max-width: 680px) {
  .hw-rolesdemo { grid-template-columns: 1fr; }
  .hw-roles { grid-template-columns: 1fr 1fr; }
  .hw-role { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Hero ---------- */

.hero__visual { display: flex; align-items: center; justify-content: center; }
.hero-hw { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.hero-hw .hw-site { box-shadow: var(--shadow); }
.hero-hw__route {
  padding: 12px 10px 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-hw .hw-node__icon { width: 44px; height: 44px; border-radius: 13px; }
.hero-hw .hw-route__track { top: 26px; }
.hero-hw .hw-packet { top: 27px; }
.hero-hw .hw-node__name { font-size: 12px; }
