main {
  padding-top: var(--space-10);
}

.home-section {
  position: relative;
}

.home-section-alt {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 55%),
              radial-gradient(circle at bottom, rgba(34, 197, 94, 0.08), transparent 55%),
              var(--color-surface);
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.home-section-kicker {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.home-section-cta {
  flex-shrink: 0;
}

.home-hero {
  padding-top: var(--space-16);
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.home-hero-copy {
  max-width: 36rem;
}

.home-hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.home-hero-badge-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.home-hero-lead {
  font-size: var(--font-size-lg);
  color: var(--gray-100);
  margin-bottom: var(--space-5);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.home-hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.home-hero-stat-item {
  min-width: 7rem;
}

.home-hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-50);
}

.home-hero-stat-label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.home-hero-media {
  position: relative;
}

.home-hero-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.home-hero-figure img {
  width: 100%;
  height: auto;
}

.home-hero-search-wrapper {
  margin-top: var(--space-8);
}

.home-hero-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-hero-search-shell {
  width: 100%;
}

.home-hero-search-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, var(--color-primary), var(--color-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero-search-icon-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
}

.home-hero-search-btn {
  padding-inline: 1.6rem;
}

.home-hero-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.home-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1.4fr);
  gap: var(--space-8);
  align-items: stretch;
}

.home-featured-figure {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-featured-figure img {
  border-radius: calc(var(--radius-lg) - 2px);
  margin-bottom: var(--space-4);
}

.home-featured-caption {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-featured-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-featured-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-featured-meta-row {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.home-featured-link,
.home-deals-link,
.home-trust-link,
.home-reco-link {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
}

.home-deals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-deals-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-deals-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.home-deals-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.home-deals-footer {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.home-categories-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: var(--space-10);
  align-items: flex-start;
}

.home-categories-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-categories-label {
  display: block;
  font-weight: 600;
  color: var(--gray-50);
}

.home-categories-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-categories-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.home-filters-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-filters-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-filters-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.home-filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-filters-note {
  font-size: var(--font-size-xs);
}

.home-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
  gap: var(--space-10);
  align-items: center;
}

.home-reviews-figure {
  padding: var(--space-2);
}

.home-reviews-card {
  margin-top: var(--space-4);
}

.home-reviews-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.home-reviews-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-reviews-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-reviews-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.home-new-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: var(--space-10);
  align-items: flex-start;
}

.home-new-block,
.home-reco-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-new-figure img {
  border-radius: calc(var(--radius-lg) - 2px);
}

.home-new-caption {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-reco-card {
  margin-top: var(--space-2);
}

.home-reco-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-reco-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-reco-label {
  display: block;
  font-weight: 600;
}

.home-reco-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-reco-note {
  font-size: var(--font-size-xs);
}

.home-trust-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: flex-start;
}

.home-trust-grid,
.home-ux-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.home-trust-item,
.home-ux-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.home-trust-links-inline,
.home-ux-links-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-ux-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-layout,
  .home-featured-grid,
  .home-categories-layout,
  .home-reviews-layout,
  .home-new-layout,
  .home-trust-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-media {
    order: -1;
  }

  .home-trust-grid,
  .home-ux-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  main {
    padding-top: var(--space-8);
  }

  .home-hero {
    padding-top: var(--space-12);
  }

  .home-hero-stats {
    gap: var(--space-4);
  }

  .home-hero-stat-item {
    min-width: 0;
  }

  .home-featured-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-deals-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-filters-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-trust-grid,
  .home-ux-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Кнопки в колонку для мобильной версии */
  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .home-hero-search-chips {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  /* Корректировка фото и заголовков для мобильных устройств */
  .home-hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .home-hero-figure {
    max-width: 100vw;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }

  .home-hero-figure img {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    border-radius: 0;
  }

  .home-hero-copy {
    max-width: 100%;
  }

  .home-hero-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .home-hero-lead {
    font-size: var(--font-size-base);
  }

  .home-hero h1,
  .home-hero #hero-heading {
    font-size: 1.35rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}
