.hero-home {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 30%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.hero-home .container {
  position: relative;
  z-index: 1;
}
.hero-logo {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: none;
}
.hero-home h1 {
  font-family: "Inter", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero-home h1 span {
  color: var(--primary);
}
.hero-desc {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.search-hero {
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 100;
}
.search-hero input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #1e293b;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.search-hero input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.search-hero input::placeholder {
  color: #94a3b8;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #94a3b8;
}
.hero-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.sd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: #1e293b;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}
.sd-item:last-child {
  border-bottom: none;
}
.sd-item:hover,
.sd-item.sd-active {
  background: #eff6ff;
}
.sd-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sd-info {
  flex: 1;
  min-width: 0;
}
.sd-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sd-item:hover .sd-title {
  color: var(--primary);
}
.sd-slug {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sd-empty {
  padding: 20px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto 32px;
  overflow: visible;
  padding-bottom: 4px;
}
.tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #14532d;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
}
.tag-btn:hover {
  background: var(--primary, #10b981);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.2s;
}
.trust-item:hover {
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.trust-icon {
  font-size: 1.4rem;
}
.trust-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
}
.trust-sub {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}
.home-section {
  padding: 48px 0;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.home-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.home-section-title {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-section-title span {
  color: var(--primary);
}
.home-section-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 100%);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  margin-bottom: 48px;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.3);
}
.featured-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: fit-content;
}
.featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.featured-desc {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.95rem;
}
.featured-cta::after {
  content: "→";
  transition: transform 0.2s;
}
.featured-card:hover .featured-cta::after {
  transform: translateX(4px);
}
.featured-visual {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  min-height: 240px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  border-color: #bfdbfe;
}
.category-card:hover::before {
  transform: scaleX(1);
}
.category-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
}
.category-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}
.category-count {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}
.intro-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 0 8px;
  text-align: center;
}
.intro-block p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}
.trust-block {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0;
  text-align: center;
}
.trust-block p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
}
.articles-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.article-home-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.article-home-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}
.article-home-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-home-card:hover .article-home-title {
  color: var(--primary);
}
.article-home-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
}
.article-home-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-dark);
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}
.recent-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.recent-scroll::-webkit-scrollbar {
  height: 8px;
}
.recent-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.recent-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

/* ===========================================
   СТРЕЛКИ ПРОКРУТКИ ДЛЯ ЛЕНТЫ КАРТОЧЕК
   =========================================== */
.scroll-wrap {
  position: relative;
}
.scroll-wrap .recent-scroll {
  scroll-behavior: smooth;
}
.scroll-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  color: #1e293b;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  z-index: 3;
  transition: opacity 0.2s, background 0.2s;
}
.scroll-nav:hover {
  background: #f8fafc;
}
.scroll-prev {
  left: -6px;
}
.scroll-next {
  right: -6px;
}
.scroll-wrap.at-start .scroll-prev,
.scroll-wrap.at-end .scroll-next,
.scroll-wrap.no-scroll .scroll-nav {
  opacity: 0;
  pointer-events: none;
}
.scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 14px;
  width: 60px;
  background: linear-gradient(to right, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.95));
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-wrap.at-end::after,
.scroll-wrap.no-scroll::after {
  opacity: 0;
}
@media (max-width: 640px) {
  .scroll-prev {
    left: 2px;
  }
  .scroll-next {
    right: 2px;
  }
  .scroll-nav {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}
.recent-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
}
.recent-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
}
.recent-badge {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.recent-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card:hover .recent-title {
  color: var(--primary);
}
.recent-cat {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--primary-dark);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 12px;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
}
.stat-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
.cta-banner {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(
    circle,
    rgba(96, 165, 250, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
}
.cta-banner p {
  color: #94a3b8;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: #fff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}
@media (max-width: 768px) {
  .hero-home {
    padding: 36px 0 32px;
  }
  .hero-home h1 {
    font-size: 1.6rem;
  }
  .hero-desc {
    font-size: 1rem;
  }
  .trust-strip {
    gap: 12px;
  }
  .trust-item {
    padding: 10px 14px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .articles-home-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-visual {
    min-height: 120px;
    font-size: 4rem;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .tag-cloud {
    gap: 6px;
  }
  .tag-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}
