/* ==========================================================================
   Greenworks Store — Ярославль
   Главная страница. Вёрстка по дизайн-референсу (см. README).
   ========================================================================== */

:root {
  /* Цвета */
  --color-brand: #3cb346;
  --color-header: #6cb33f;
  --color-dark: #1a1a1a;
  --color-dark-2: #2b2b2b;
  --color-orange: #f07826;
  --color-pink: #f5416b;
  --color-yellow-bg: #fdeeb9;
  --color-yellow-text: #7a5c00;
  --color-star: #f5a623;
  --color-text-secondary: #888;
  --color-text-secondary-2: #999;
  --color-text-secondary-3: #9a9a9a;
  --color-bg-tile-1: #f7f7f7;
  --color-bg-tile-2: #f7f8fa;
  --color-bg-tile-3: #f6f6f8;
  --color-border: #ececec;

  /* Типографика */
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Отступы */
  --page-padding: 40px;
  --content-max-width: 1600px;
  --grid-gap: 20px;

  /* Радиусы */
  --radius-category: 24px;
  --radius-product: 16px;
  --radius-store: 4px;
  --radius-review: 20px;
  --radius-pill: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  font-family: var(--font-main);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
}

/* Слайдер (.hero), шапка и футер — на всю ширину экрана, без ограничений.
   Всё остальное (каталог, секции контента) ограничено по максимальной
   ширине и центрируется, оставляя белые поля по бокам на широких экранах. */
body > *:not(.hero):not(.site-header):not(.site-footer) {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #1665d8;
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Плейсхолдер изображений (пока нет реальных фото от заказчика) ---------- */

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, #eef1ee, #eef1ee 10px, #e6eae5 10px, #e6eae5 20px);
  border: 1px dashed #c7d0c8;
  color: #6c7a6d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px;
  overflow: hidden;
}

.placeholder__label {
  max-width: 80%;
}

.placeholder__label::before {
  content: '🖼';
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  opacity: 0.6;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--color-header);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px var(--page-padding);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.brand__logo {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.brand__divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
}

.brand__tagline {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.header-city {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-city__icon {
  color: #fff;
  flex: 0 0 auto;
}

.header-city__name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.header-catalog {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px calc(var(--page-padding) + 40px);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-catalog::-webkit-scrollbar {
  display: none;
}

.header-catalog span:not(.header-catalog__sep) {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-dark);
  white-space: nowrap;
}

.header-catalog__sep {
  width: 2px;
  height: 22px;
  background: var(--color-header);
  flex: 0 0 auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--color-dark-2);
}

.hero__img {
  position: absolute;

  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
    left: 400px;
}

.hero__panel {
  position: relative;
  z-index: 2;
  background: var(--color-dark-2);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  width: 62%;
  padding: 64px 100px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 620px;
}

.hero__accent {
  width: 56px;
  height: 4px;
  background: var(--color-brand);
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero__title span {
  color: var(--color-brand);
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  max-width: 460px;
}

/* ==========================================================================
   Секции — общие заголовки
   ========================================================================== */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  width: fit-content;
}

.section-title__text {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-dark);
}

.section-title__text--upper {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-title__arrow {
  font-size: 24px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Все категории товаров
   ========================================================================== */

.categories {
  padding: 36px var(--page-padding) 8px;
}

.categories__title {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-dark);
  margin-bottom: 24px;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--grid-gap);
}

.category-card {
  position: relative;
  aspect-ratio: 1 / 0.82;
  border-radius: var(--radius-category);
  overflow: hidden;
  display: block;
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}

.category-card__body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 1;
}

.category-card__name {
  color: #fff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.category-card__arrow {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Поможем с выбором
   ========================================================================== */

.help-choice {
  position: relative;
  background: #fff;
  display: flex;
  align-items: stretch;
  min-height: 480px;
  overflow: hidden;
  padding-left: var(--page-padding);
  margin-top: 32px;
}

.help-choice__text {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px 48px 56px 0;
}

.help-choice__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-choice__accent {
  width: 56px;
  height: 4px;
  background: var(--color-brand);
}

.help-choice__title {
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.help-choice__paragraph {
  font-size: 16px;
  color: #444;
  line-height: 1.65;
}

.help-choice__paragraph strong {
  color: var(--color-dark);
}

.help-choice__note {
  background: #f4f8f4;
  border-left: 4px solid var(--color-brand);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-choice__note-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
}

.help-choice__note-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.5;
  font-weight: 500;
}

.help-choice__note-list li {
  display: flex;
  gap: 10px;
}

.help-choice__note-num {
  color: var(--color-brand);
  font-weight: 900;
  flex: 0 0 auto;
}

.help-choice__photo {
  flex: 1;
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  background: #3a3a3a;
}

.help-choice__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Товарные карточки (Хиты продаж / Лучшие модели)
   ========================================================================== */

.products-section {
  padding: 16px var(--page-padding) 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
}

.products-section--models {
  padding-top: 8px;
  padding-bottom: 64px;
}

/* ---------- Хиты продаж: центральная карточка крупнее, две по бокам меньше ---------- */

.hits-grid {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
}

.hits-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hits-card--featured {
  flex: 1.35 1 0;
}

.hits-card__image {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 20px;
  overflow: hidden;
  background: rgb(248, 248, 252);
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.hits-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  mix-blend-mode: multiply;
}

.hits-card__price {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.hits-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.hits-card__price-row .hits-card__price {
  margin-bottom: 0;
}

.hits-card__price-old {
  font-size: 15px;
  color: #aaa;
  text-decoration: line-through;
}

.hits-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #262626;
  line-height: 1.45;
  margin-bottom: 10px;
}

.hits-card__desc {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tab {
  background: #f2f2f2;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.filter-tab.is-active {
  background: var(--color-orange);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.product-grid--five {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
}

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgb(248, 248, 252);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-product);
  overflow: hidden;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  mix-blend-mode: multiply;
}

.product-grid--five .product-card__image {
  aspect-ratio: 1 / 1.28;
}

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 1;
  flex-wrap: wrap;
  right: 56px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 14px;
  color: #fff;
  white-space: nowrap;
}

.badge--hit {
  background: var(--color-orange);
  text-transform: uppercase;
}

.badge--sale {
  background: var(--color-yellow-bg);
  color: var(--color-yellow-text);
  font-weight: 500;
  padding: 5px 10px;
}

.badge--voltage {
  background: var(--color-pink);
  padding: 5px 10px;
}

.badge--leader {
  background: var(--color-orange);
  text-transform: uppercase;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 16px;
}

.hits-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}

.product-card__actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.icon-btn {
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary-2);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.icon-btn:hover {
  color: var(--color-orange);
}

.icon-btn.is-active {
  color: var(--color-pink);
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}

.product-card__price-old {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

.product-card__discount {
  background: var(--color-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
}

.product-card__name {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--color-text-secondary-2);
  flex-wrap: wrap;
}

.product-card__rating {
  color: var(--color-star);
  letter-spacing: 1px;
}

/* ==========================================================================
   О магазине
   ========================================================================== */

.about-store {
  position: relative;
  background: var(--color-header);
  display: flex;
  align-items: stretch;
  min-height: 440px;
  overflow: hidden;
}

.about-store__photo {
  flex: 0 0 42%;
  position: relative;
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.about-store__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.about-store__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px 56px 56px 100px;
}

.about-store__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-store__accent {
  width: 56px;
  height: 4px;
  background: var(--color-dark);
}

.about-store__title {
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.5px;
}

.about-store__paragraph {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  max-width: 560px;
}

.about-store__facts {
  display: flex;
  gap: 40px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.about-store__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-store__fact-num {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
}

.about-store__fact-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Отзывы
   ========================================================================== */

.reviews {
  padding: 48px var(--page-padding) 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #fff;
}

.reviews__metrics {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.reviews__metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews__metric-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1;
}

.reviews__metric-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.reviews__metric--rating {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.reviews__metric-star {
  color: var(--color-star);
  font-size: 26px;
  padding-top: 6px;
}

.reviews__metric-rating-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
  padding-top: 12px;
  max-width: 120px;
  line-height: 1.3;
}

.reviews__recommend {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.reviews__recommend-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.reviews__recommend-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-brand);
}

.reviews__recommend-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.reviews__recommend-sep {
  width: 1px;
  height: 28px;
  background: #e5e5e5;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}

.review-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-review);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #666;
  flex: 0 0 auto;
}

.review-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  display: block;
}

.review-card__source {
  font-size: 13px;
  color: var(--color-text-secondary-2);
}

.review-card__category {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

.review-card__category .stars {
  color: var(--color-star);
}

.review-card__text {
  font-size: 15px;
  color: #333;
  line-height: 1.55;
}

.reviews__link {
  align-self: center;
  color: var(--color-brand);
  font-size: 15px;
  font-weight: 700;
}

.reviews__link:hover {
  text-decoration: underline;
}

.reviews__cta-slide {
  display: none;
}

/* ==========================================================================
   Магазины
   ========================================================================== */

.stores {
  position: relative;
  padding: 16px var(--page-padding) 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #fff;
}

.stores__title {
  font-size: 40px;
  font-weight: 400;
  color: var(--color-dark);
}

.stores__media {
  display: block;
}

.stores__map {
  position: relative;
  aspect-ratio: 1439 / 499;
  border-radius: 32px;
  overflow: hidden;
  background: #e9ede6;
}

.stores__map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.stores__reveal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 26px;
  margin: 24px 0;
  background: var(--color-orange);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--radius-store);
  cursor: pointer;
  transition: background 0.15s ease;
}

.stores__reveal-btn:hover {
  background: #d4661a;
}

.stores__reveal-btn::after {
  content: '▾';
  font-size: 18px;
  transition: transform 0.2s ease;
}

.stores__reveal-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.stores__list {
  display: flex;
  flex-direction: column;
}

.stores__list[hidden] {
  display: none;
}

.store-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.store-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.store-row__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-store);
  overflow: hidden;
  background: var(--color-bg-tile-1);
}

.store-row__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-row__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.store-row__label {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

.store-row__contacts-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-dark);
  background: var(--color-bg-tile-1);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease;
}

.store-row__contacts-btn:hover {
  background: #ebebeb;
}

.store-row__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.store-row__contacts[hidden] {
  display: none;
}

.store-row__address {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
}

.store-row__hours {
  font-size: 16px;
  color: var(--color-text-secondary-3);
  margin-top: -2px;
}

.store-row__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 4px;
}

.store-row__phone:hover {
  color: var(--color-brand);
}

.store-row__map-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brand);
  margin-top: 4px;
}

.store-row__map-link:hover {
  text-decoration: underline;
}

.back-to-top {
  position: absolute;
  right: var(--page-padding);
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
  z-index: 3;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-align: center;
  padding: 20px var(--page-padding);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1200px) {
  .product-grid--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --page-padding: 20px;
  }

  .header-catalog {
    justify-content: flex-start;
    gap: 20px;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__panel {
    width: 100%;
    clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
    padding: 40px 24px;
    min-height: auto;
  }

  .hero__img {
    position: static;
    left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  }

  .hero__title {
    font-size: 36px;
  }

  .help-choice {
    flex-direction: column;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
  }

  .help-choice__text {
    flex: none;
    padding: 40px 0;
  }

  .help-choice__photo {
    clip-path: polygon(50% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
    min-height: 320px;
  }

  .product-grid,
  .product-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .hits-grid {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 16% 20px;
    margin: 0 calc(var(--page-padding) * -1);
    -webkit-overflow-scrolling: touch;
  }

  .hits-grid::-webkit-scrollbar {
    display: none;
  }

  .hits-card,
  .hits-card--featured {
    flex: 0 0 84%;
    scroll-snap-align: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    padding: 14px;
  }

  .hits-card__image {
    margin-bottom: 14px;
  }

  .hits-card + .hits-card {
    margin-left: -46%;
  }

  .about-store {
    flex-direction: column;
  }

  .about-store__photo {
    clip-path: none;
    min-height: 260px;
  }

  .about-store__text {
    padding: 40px 24px;
  }

  .store-row {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .store-row__photo {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 600px) {
  .brand__tagline {
    display: none;
  }

  .categories__grid,
  .product-grid,
  .product-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 28px;
  }

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

  .store-row__photo {
    aspect-ratio: 16 / 9;
  }

  /* Отзывы: свайп-карусель по 2 карточки за раз, последний слайд — кнопка "смотреть все" */
  .reviews__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--page-padding);
    gap: var(--grid-gap);
    margin: 0 calc(var(--page-padding) * -1);
    padding: 0 var(--page-padding) 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .reviews__grid::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 calc(50% - var(--grid-gap) / 2);
    scroll-snap-align: start;
    padding: 16px;
    gap: 10px;
  }

  .review-card__head {
    gap: 8px;
  }

  .review-card__avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .review-card__name {
    font-size: 14px;
  }

  .review-card__source {
    font-size: 12px;
  }

  .review-card__category {
    font-size: 13px;
  }

  .review-card__text {
    font-size: 13px;
    line-height: 1.5;
  }

  .reviews__cta-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-review);
    padding: 28px;
    color: var(--color-brand);
    font-size: 16px;
    font-weight: 700;
  }

  .reviews__cta-slide-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
  }

  .reviews__link {
    display: none;
  }
}

/* ==========================================================================
   Drag-to-scroll мышью (для горизонтальных блоков: хиты, отзывы, категории)
   ========================================================================== */

.is-drag-scrollable {
  cursor: grab;
  user-select: none;
}

.is-drag-scrollable.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.is-drag-scrollable.is-dragging * {
  pointer-events: none;
}
