/* modules/home/home.css */
/* Только “уникальное” для главной. Базовые кнопки/карточки — в main.css */

.hi-hero{ padding: 22px 0 10px; }
.hi-hero__inner{
  display:grid;
  grid-template-columns: minmax(0,1.32fr) minmax(0,1fr);
  gap: 18px;
  align-items:stretch;
}

.hero-card{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hi-hero__title{ margin:0 0 8px; font-size: 22px !important; line-height: 1.15; }
.hi-hero__subtitle{ margin:0 0 14px; color: var(--text-muted); font-size: 15px; line-height: 1.45; }
.hi-hero__disclaimer{
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.hi-hero__cta{ display:flex; flex-wrap:wrap; gap:10px; margin: 12px 0 0; }
.hi-hero__note{ display:flex; gap:8px; align-items:center; margin-top: auto; padding-top: 12px; color: var(--text-muted); font-size: 13px; }
.dot{ width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display:inline-block; }

.hi-hero__side{
  display: flex;
  min-height: 100%;
}

.stat{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}


.stat--pack{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  width: 100%;
  height: 100%;
}
.stat--sub{
  box-shadow: none;
  background: var(--bg-body);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.stat__label{ font-size: 12px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.25; }
.stat__value{ font-size: 14px; line-height: 1.35; }

.hi-section{ padding: 14px 0; }

.section-card{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
}

.hi-section__head h2{ margin: 0 0 6px; font-size: 20px; }
.hi-section__head p{ margin: 0 0 12px; color: var(--text-muted); }

.grid{ display:grid; gap:12px; }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-link{ display:block; color:inherit; text-decoration:none; transition: var(--transition); }
.card-link:hover{ text-decoration:none; transform: translateY(-1px); }

.card-top{ display:flex; justify-content:space-between; gap:10px; align-items:center; }
.card-title{ font-weight: 800; }
.pill{
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.card-desc{ margin-top: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.card-cta{ margin-top: 10px; font-weight: 700; color: var(--accent); }

.faq{ display:grid; gap: 10px; }
.faq-item{
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
}
.faq-item summary{ cursor:pointer; font-weight: 800; list-style:none; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-body{ margin-top: 10px; color: var(--text-main); }
.faq-short{ color: var(--text-muted); }
.faq-more{ margin-top: 8px; }
.faq-more summary{ font-weight: 700; color: var(--accent); }
.faq-more-body{ margin-top: 8px; color: var(--text-muted); }
.faq-links{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 8px; }
.faq-links a{ font-weight: 700; }

.mini-grid{ display:grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-card{
  display:block;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
  color: var(--text-main);
  text-decoration:none;
  transition: var(--transition);
}
.mini-card:hover{
  text-decoration:none;
  border-color: var(--accent);
  transform: translateY(-1px);
}
.mini-date{ font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.mini-title{ font-weight: 900; line-height: 1.25; }
.mini-desc{ margin-top: 6px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }

.hi-more{ margin-top: 10px; }
.hi-bottom{ padding-bottom: 24px; }

.bottom-card{
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.bottom-card h3{ margin: 0 0 10px; }
.bottom-card ol{ margin: 0 0 12px 18px; color: var(--text-muted); }
.bottom-cta{ display:flex; flex-wrap:wrap; gap: 10px; }
.disclaimer{ margin-top: 10px; font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px){
  .hi-hero__inner{ grid-template-columns: 1fr; }
  .hi-hero__title{ font-size: 22px !important; }
  .grid-3, .mini-grid{ grid-template-columns: 1fr; }
  .stat--pack{ grid-template-columns: 1fr; }
}


/* empty state */
.articles-empty{
  padding:18px;
  border:1px solid var(--border-color);
  border-radius:16px;
  background: var(--bg-body);
  color: var(--text-muted);
  text-align:center;
}


.stat__value{ display:flex; align-items:center; gap:8px; }
.stat__icon{ font-size: 18px; line-height: 1; }
.stat__num{ font-size: 18px; font-weight: 800; }


/* Intro hub article */
.hi-hub{ padding-top: 4px; }
.hub-card{
  border-color: color-mix(in oklab, var(--accent) 22%, var(--border-color));
}
.hub-article{
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.hub-article__date{
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hub-article__title{
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.hub-article__title a{
  color: var(--text-main);
  text-decoration: none;
}
.hub-article__title a:hover{
  color: var(--accent);
  text-decoration: none;
}
.hub-article__short{
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}
.hub-article__cta{
  margin-top: 12px;
}

.hub-start{
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-body);
}
.hub-start__list{
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}
@media (max-width: 900px){
  .hub-article__title{ font-size: 20px; }
}
