/* =========================
   ROUTER PAGE
   /pages/router.html
   ========================= */

.router-page{
  width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Кнопка «Вернуться назад» (загружается из pages/back-button/back-button.html) */
.router-back-wrap{
  text-align: center;
}

/* ===== Заголовки ===== */
.router-head{
  margin-bottom: 18px;
}

.router-title{
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
}

.router-title--h2{
  font-size: 24px;
}

.router-title__ico{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.router-title__ico svg{
  width: 28px;
  height: 28px;
  display: block;
  /* если где-то останутся inline‑svg, красим их как текст заголовка */
  fill: currentColor;
}

.router-title__ico img{
  width: 28px;
  height: 28px;
  display: block;
  /* перекрашиваем чёрный SVG в #002C5F (как заголовок) */
  filter: invert(13%) sepia(71%) saturate(1107%) hue-rotate(185deg) brightness(88%) contrast(106%);
}

.router-sub{
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.router-sub a{
  color: var(--blue);
  text-decoration: none;
}
.router-sub a:hover{
  text-decoration: underline;
}

.router-head--sm{
  margin-bottom: 14px;
}

.router-sub--sm{
  font-weight: 600;
}

/* ===== Блок "Модели роутеров" ===== */
.router-block{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,44,95,.10);
}

.router-block__title{
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

/* ===== Список моделей (как у тебя сейчас) ===== */
.router-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.router-list__item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 20px;
  border-radius: 18px;

  background: linear-gradient(120deg, #ffffff, #f2f7ff);
  border: 1px solid rgba(0,44,95,.08);
  box-shadow: 0 12px 26px rgba(2,44,95,.06);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.router-list__item:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(2,44,95,.12);
  border-color: rgba(0,108,255,.18);
}

.router-list__left{
  display:flex;
  flex-direction: column;
  min-width: 0;
}

.router-list__name{
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
}

.router-list__meta{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Кнопка "Инструкция" */
.router-link{
  height: 42px;
  padding: 0 18px;
  border-radius: 16px;
  white-space: nowrap;
}

/* ===== Узнать IP ===== */
.router-ip__btn{
  height: 44px;
}

/* ===== Шаги (для 3-го блока) ===== */
.router-subtitle{
  margin: 18px 0 10px;
  font-weight: 900;
  color: var(--ink);
  font-size: 18px;
}

.router-steps{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

.router-steps li{
  margin: 0 0 10px;
}

.router-steps li:last-child{
  margin-bottom: 0;
}

/* акценты внутри шагов */
.router-steps strong{
  font-weight: 700;
  color: var(--ink);
}

/* финальное резюме под шагами */
.router-final{
  margin-top: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ===== Скриншоты для отдельных моделей ===== */
.router-shot{
  margin: 0 0 14px;
}

.router-shot__img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(2,44,95,.10);
}

.router-shot__caption{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.router-note{
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}


/* ===== Адаптив ===== */
@media (max-width: 900px){
  .router-title{
    font-size: 24px;
  }

  .router-title--h2{
    font-size: 22px;
  }
}

@media (max-width: 600px){
  .router-list__item{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .router-link{
    width: 100%;
    justify-content: center;
  }
}

/* Прямоугольники используют общий стиль .section-card (components.css) */