/* Блок «Guides for {город}» на гео-страницах.

   Отдельный файл по той же причине, что и card-features.css: Tailwind в теме
   собран заранее (assets/css/output.css, сборка от 06.06), а content-скан
   в tailwind.config.js проходит по *.php только во время сборки. Компонент
   components/local_articles.php появился позже, поэтому ни одного его класса
   в output.css нет — блок выводился вообще без стилей: маркеры списка наружу,
   рамки встык, нулевые отступы. Пересобирать output.css ради одного блока
   значит тащить на прод 80 КБ пересобранного CSS, поэтому стили здесь. */

.proj1-guides {
  background: #fafafa;
  border-top: 1px solid #ececec;
}

.proj1-guides__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 8px 48px;
}

@media (max-width: 640px) {
  .proj1-guides__inner {
    padding: 32px 20px 36px;
  }
}

/* ── Заголовок ───────────────────────────────────────────────────────────── */

.proj1-guides__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.proj1-guides__title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f0f0f;
}

/* Короткая розовая засечка под заголовком — тот же акцент, что у остальных
   разделов страницы, но без рамки на всю ширину. */
.proj1-guides__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 9px;
  background: #f36;
  border-radius: 2px;
}

.proj1-guides__count {
  flex-shrink: 0;
  font-size: 13px;
  color: #9a9a9a;
}

@media (max-width: 640px) {
  .proj1-guides__count {
    display: none;
  }
}

/* ── Сетка ───────────────────────────────────────────────────────────────── */

.proj1-guides__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .proj1-guides__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .proj1-guides__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.proj1-guides__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Маркер списка в теме задан глобально и пролезал сквозь li — гасим адресно. */
.proj1-guides__item::marker,
.proj1-guides__item::before {
  content: none;
  display: none;
}

/* ── Карточка ────────────────────────────────────────────────────────────── */

.proj1-guides__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  padding: 17px 19px 16px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.proj1-guides__card:hover,
.proj1-guides__card:focus-visible {
  border-color: #f36;
  box-shadow: 0 6px 18px rgba(255, 51, 102, .1);
  transform: translateY(-2px);
  text-decoration: none;
}

.proj1-guides__card:focus-visible {
  outline: 2px solid #f36;
  outline-offset: 2px;
}

/* Надзаголовок — рубрика статьи. Берётся из настоящей рубрики, а не из
   служебной «blog», в которой лежат все 53 материала. */
.proj1-guides__kicker {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.proj1-guides__name {
  flex: 1 1 auto;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.42;
  color: #16181c;
  transition: color .18s ease;
}

.proj1-guides__card:hover .proj1-guides__name {
  color: #f36;
}

.proj1-guides__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #9a9a9a;
}

/* Стрелка уезжает вправо при наведении — единственная анимация в блоке. */
.proj1-guides__arrow {
  flex-shrink: 0;
  color: #cfcfcf;
  transition: transform .18s ease, color .18s ease;
}

.proj1-guides__card:hover .proj1-guides__arrow {
  color: #f36;
  transform: translateX(3px);
}

/* ── Ссылка на весь блог ─────────────────────────────────────────────────── */

.proj1-guides__all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #444;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.proj1-guides__all:hover,
.proj1-guides__all:focus-visible {
  color: #f36;
  border-color: #f36;
  background: #fff;
  text-decoration: none;
}

.proj1-guides__all span {
  transition: transform .18s ease;
}

.proj1-guides__all:hover span {
  transform: translateX(3px);
}
