/* ============================================================
   HOME — стили главной страницы
   Подключается только в index.php через $extra_css
   ============================================================ */

/* ---------- BENTO: чистая сетка 6 колонок ---------- */
.bento-2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 64px 0;
}
.bento-2 .bento-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.bento-2 .bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.bento-2 .span-2 { grid-column: span 2; }
.bento-2 .span-3 { grid-column: span 3; }
.bento-2 .span-6 { grid-column: span 6; }

.bento-2 .bento-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.bento-2 .bento-icon svg { width: 22px; height: 22px; }

.bento-2 h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.bento-2 p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Акцентный блок (вместо чёрного) */
.bento-2 .bento-item.accent {
  background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  color: #fff;
  border-color: transparent;
}
.bento-2 .bento-item.accent h3 { color: #fff; }
.bento-2 .bento-item.accent p { color: rgba(255, 255, 255, 0.9); }
.bento-2 .bento-item.accent .bento-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Широкая карточка на 6 колонок с горизонтальной раскладкой */
.bento-2 .bento-item.wide {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.bento-2 .bento-item.wide .bento-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}
.bento-2 .bento-item.wide .bento-icon svg { width: 26px; height: 26px; }
.bento-2 .bento-item.wide .bento-body { flex: 1; min-width: 0; }
.bento-2 .bento-item.wide .bento-body p { margin: 0; }

@media (max-width: 900px) {
  .bento-2 { grid-template-columns: repeat(2, 1fr); margin: 48px 0; }
  .bento-2 .span-2,
  .bento-2 .span-3,
  .bento-2 .span-6 { grid-column: span 2; }
  .bento-2 .bento-item.wide { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
  .bento-2 { grid-template-columns: 1fr; gap: 12px; }
  .bento-2 .span-2,
  .bento-2 .span-3,
  .bento-2 .span-6 { grid-column: span 1; }
}

/* ---------- БЛОГ на главной ---------- */
.blog-section {
  margin: 64px 0 40px;
}
.blog-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.blog-section-head h2 {
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}
.blog-section-head p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}
.blog-section-head a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.blog-section-head a:hover { color: var(--accent-hover); }

.blog-list {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) {
  .blog-list { grid-template-columns: 1fr; }
}

/* Большая карточка */
.blog-feature {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.blog-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-feature-cover {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  overflow: hidden;
}
.blog-feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-out);
}
.blog-feature:hover .blog-feature-cover img {
  transform: scale(1.04);
}
.blog-feature-body {
  padding: 24px;
}
.blog-feature-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-feature-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text);
}
.blog-feature-excerpt {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Список мелких */
.blog-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-side-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .2s var(--ease-out);
}
.blog-side-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.blog-side-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  overflow: hidden;
}
.blog-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-side-body { min-width: 0; flex: 1; }
.blog-side-date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.blog-side-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 4px 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-side-excerpt {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Финальный CTA — ближе к футеру ---------- */
.landing-final {
  margin: 64px 0 0 !important;
  padding: 56px 40px !important;
}

/* ---------- Timeline: увеличиваем точки, чтобы SVG не резались ---------- */
.timeline {
  padding-left: 44px !important;
}
.timeline::before {
  left: 15px !important;
}
.timeline-dot {
  width: 32px !important;
  height: 32px !important;
  left: -40px !important;
  background: var(--card-bg) !important;
  padding: 6px !important;
}
.timeline-dot svg {
  width: 14px;
  height: 14px;
}