.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  overflow: hidden;
  padding: 0;
}

.hero-image-side {
  position: relative;
  width: 50%;
  background-image: url('/images/home-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2d1531;
}

.hero-image-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hero-content-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  background: #1a1a1a;
  position: relative;
  z-index: 2;
}

.hero-content-side h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-content-side h1 span {
  color: var(--color-brand);
}

.hero-subtitle {
  font-size: 18px;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta {
  display: inline-block;
  max-width: 260px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.6;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.filters-section {
  background: #fafafa;
  padding: 48px 0;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
  line-height: 1.6;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.filter-btn.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.heatmap-section {
  padding: 56px 0;
  background: #fff;
}

.heatmap-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 3px;
}

.heatmap-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  position: relative;
  cursor: default;
  transition: box-shadow 0.15s;
  min-width: 0;
}

.heatmap-cell:hover {
  box-shadow: 0 0 0 2px #1a1a1a;
}

.heatmap-header {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}

.heatmap-header span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.heatmap-legend-cell {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(217,70,239,0.1);
}

.category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-brand);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.category-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.category-card a {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  margin-top: 14px;
  transition: color 0.2s;
}

.category-card a:hover {
  color: #c026d3;
}

.timeline-section {
  background: #fafafa;
  padding: 56px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand);
  border: 3px solid #fafafa;
}

.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-item p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.images-section {
  padding: 56px 0;
  background: #fff;
}

.images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.images-grid figure {
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}

.images-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.images-grid figure:hover img {
  transform: scale(1.03);
}

.images-grid figcaption {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.articles-section {
  padding: 56px 0;
  background: #fafafa;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  border-color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(217,70,239,0.08);
}

.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 20px;
}

.article-card-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand);
  display: block;
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}

.article-card h3 a {
  color: var(--text-dark);
  transition: color 0.2s;
}

.article-card h3 a:hover {
  color: var(--color-brand);
}

.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 14px;
  line-height: 1.6;
}

.newsletter-section {
  background: #1a1a1a;
  padding: 64px 0;
  text-align: center;
}

.newsletter-section h2 {
  color: #fff;
  margin-bottom: 10px;
}

.newsletter-section p {
  color: #aaa;
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type='email'] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #333;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
}

.newsletter-form input[type='email']::placeholder {
  color: #666;
}

.newsletter-form input[type='email']:focus {
  outline: none;
  border-color: var(--color-brand);
}

.newsletter-form button {
  padding: 14px 28px;
  white-space: nowrap;
}

.newsletter-note {
  font-size: 13px;
  color: #555;
  margin-top: 14px;
  line-height: 1.6;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.counter-item {
  text-align: center;
  padding: 24px 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.counter-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.6;
}

.counter-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero-image-side {
    width: 100%;
    height: 280px;
  }

  .hero-content-side {
    width: 100%;
    padding: 36px 24px;
  }

  .hero-content-side h1 {
    font-size: 1.8rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .images-grid {
    grid-template-columns: 1fr 1fr;
  }

  .heatmap-row,
  .heatmap-header {
    grid-template-columns: 70px repeat(7, 1fr);
  }

  .heatmap-label {
    font-size: 11px;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    padding-left: 32px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .filters-bar {
    gap: 8px;
  }

  .filter-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .images-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .counter-number {
    font-size: 26px;
  }

  .hero-content-side {
    padding: 28px 18px;
  }
}