/* core\src\components\home\style\bestsellers.css */

.best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.best-grid img {
  object-fit: cover;
}
/* core\src\components\home\style\categories.css */

.category {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
}

.category figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--img-border-radius-middle);
  background: var(--color);
}

.category img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.category .title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  .category {
    grid-template-columns: 1fr;
  }
}
/* core\src\components\home\style\advantages.css */

.home-advantages {
  background-color: var(--bg-color-blue);
  border-radius: var(--border-radius-big);
  padding: 40px 0;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
  gap: 50px;
  margin: 0 auto;
}

.advantage-card {
  padding: 0 20px;
  text-align: center;
}

.advantage-card h3 {
  font-size: 1.25rem;
  margin: 15px 0;
}

.advantage-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}
/* core\src\components\home\style\features.css */

.home-features {
  background-color: var(--bg-color-green);
  border-radius: var(--border-radius-big);
  padding: 40px 20px;
}

.feature-grid {
  max-width: var(--width-wide);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-image {
  overflow: hidden;
  border-radius: var(--img-border-radius-small);
  aspect-ratio: 3 / 2;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card .button {
  /* Прижимает кнопку к низу, если тексты разной длины */
  align-self: flex-start;
}

.feature-title {
  margin: 1rem 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-muted);
}

.feature-text {
  margin: 1rem 0;
}
/* core\src\components\home\style\releases.css */

.releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .releases-grid {
    grid-template-columns: 1fr;
  }
}
/* core\src\components\home\style\bundles.css */

.bundles-grid {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
}

.bundle-card {
  padding: 30px;
  border-radius: var(--border-radius-big);
  background: #f9f9f9;
  width: 300px;
  display: flex;
  flex-direction: column;
}

/* Кнопка внизу карточки по центру */
.bundle-action {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .bundles-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Примеры уникальных цветов по ID */
#bundle-1 {
  background-color: var(--bg-color-red);
  border: 1px solid rgb(243, 120, 120);
}

#bundle-2 {
  background-color: var(--bg-color-yellow);
  border: 1px solid rgb(243, 196, 42);
}

#bundle-3 {
  background-color: var(--bg-color-blue);
  border: 1px solid rgb(129, 215, 255);
}

.bundle-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.bundle-header h3 {
  margin: 0;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
}

.economy {
  font-size: var(--size-small);
}

.bundle-list h4 {
  font-size: var(--size);
}

.bundle-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bundle-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.checked .icon {
  color: var(--color-success);
}

.crossed .icon {
  color: var(--color-error);
}
/* core\src\components\home\style\reviews.css */

.home-reviews {
  background-color: var(--bg-color-yellow);
  border-radius: var(--border-radius-big);
  padding: 3rem 0;
}

.reviews-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: calc(100% - 2rem);
}

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

/* Card */
.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background: #fff;
  border-radius: var(--border-radius-middle);
  padding: 1.5rem;
}

/* Body */
.review-body {
  font-size: var(--size);
  line-height: 1.6;
  font-style: italic;
  color: var(--color-muted);
  flex: 1;
}

.review-body p {
  margin: 0;
}

/* Author */
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.author-info .name {
  font-weight: 600;
  font-size: var(--size);
}

.author-info .job {
  font-size: var(--size-small);
  color: var(--color-muted);
}
/* core\src\components\home\style\stats.css */

.home-stats {
  background-color: var(--bg-color-green);
  border-radius: var(--border-radius-big);
  padding: 40px 10px;
}

.counter-grid {
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .counter-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Число */
.counter-value {
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

/* Сам счётчик */
.counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-block;
  text-align: center;
}

/* Текст */
.counter-label {
  font-size: var(--size);
  margin-top: 10px;
}
/* core\src\components\home\style\news.css */

.news-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
/* core\src\components\home\style\home.css */

article.home {
  max-width: var(--width-wide);
  display: flex;
  flex-direction: column;
  gap: 50px;
}

article.home h1 {
  margin-bottom: 0;
}

article.home section {
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

article.home header {
  margin-bottom: 1rem;
}

article.home h2 {
  margin-top: 0;
}
