/**
 * Главная страница v2 — секции по макету Mindray Home (PNG).
 */

.home-v2 {
  font-family: var(--font-text);
  color: var(--text-body);
}

.home-v2__main {
  box-sizing: border-box;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) 72px;
}

/* Hero */
.home-v2-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 40px;
  background: var(--surface-sunken);
}

.home-v2-hero__inner {
  display: flex;
  align-items: stretch;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

.home-v2-hero__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 52px 56px 52px 0;
}

.home-v2-hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  text-wrap: pretty;
}

.home-v2-hero__text {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.home-v2-hero__cta.ds-btn--lg {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  min-height: 52px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-sm);
}

.home-v2-hero__media {
  flex: 0 0 44%;
  align-self: stretch;
  min-height: 320px;
}

.home-v2-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Section title */
.home-v2-section__title {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}

.home-v2-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-v2-section__head .home-v2-section__title {
  margin-bottom: 0;
}

.home-v2-section__more {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-link);
  text-decoration: none;
  white-space: nowrap;
}

.home-v2-section__more:hover {
  text-decoration: underline;
}

/* Advantages */
.home-v2-advantages {
  margin-bottom: 48px;
}

.home-v2-advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.home-v2-advantages__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
}

.home-v2-advantages__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.home-v2-advantages__item-title {
  margin: 14px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--text-strong);
}

.home-v2-advantages__item-text {
  margin: 0;
  font-size: 15px;
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  white-space: pre-line;
}

/* Catalog layout */
.home-v2-catalog {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.home-v2-catalog__row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.home-v2-sidebar {
  flex: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 320px;
  min-height: 0;
  overflow: hidden;
  padding: var(--space-5);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.home-v2-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.home-v2-sidebar__scroll::-webkit-scrollbar {
  width: 6px;
}

.home-v2-sidebar__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--border-subtle);
}

.home-v2-sidebar__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.home-v2-sidebar__title {
  flex: none;
  margin: 0 0 var(--space-3);
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}

.home-v2-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-v2-sidebar__item {
  list-style: none;
}

.home-v2-sidebar__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-text);
  font-size: 15.5px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.home-v2-sidebar__toggle:hover:not(.is-open) {
  color: var(--text-strong);
}

.home-v2-sidebar__toggle.is-open,
.home-v2-sidebar__toggle.is-open:hover {
  background: transparent;
  color: var(--color-primary);
}

.home-v2-sidebar__toggle:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.home-v2-sidebar__toggle-label {
  text-wrap: pretty;
}

.home-v2-sidebar__link {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 15.5px;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  color: var(--text-strong);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

.home-v2-sidebar__link:hover,
.home-v2-sidebar__link:focus-visible {
  color: var(--color-primary);
}

.home-v2-sidebar__link:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.home-v2-sidebar__chevron {
  flex: none;
  display: inline-flex;
  color: currentColor;
  transition: transform var(--dur-base) var(--ease-standard);
}

.home-v2-sidebar__toggle.is-open .home-v2-sidebar__chevron {
  transform: rotate(180deg);
}

.home-v2-sidebar__sublist-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-standard);
}

.home-v2-sidebar__item--parent.is-open > .home-v2-sidebar__sublist-panel {
  grid-template-rows: 1fr;
}

.home-v2-sidebar__sublist {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0 16px 8px 34px;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-v2-sidebar__sublist-panel {
    transition: none;
  }
}

.home-v2-sidebar__sublink {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: var(--fw-regular);
  line-height: 1.3;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}

.home-v2-sidebar__sublink:hover,
.home-v2-sidebar__sublink:focus-visible {
  color: var(--color-primary);
}

.home-v2-sidebar__sublink:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-v2-catalog__content {
  flex: 1;
  min-width: 0;
}

.home-v2-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.home-v2-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  min-height: 286px;
  aspect-ratio: 1;
  padding: 28px;
  gap: 18px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.home-v2-category-card:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-v2-category-card:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.home-v2-category-card__title {
  flex: 0 0 auto;
  display: -webkit-box;
  max-height: calc(22px * 1.15 * 2);
  margin: 4px 0 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
  text-align: center;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color var(--dur-fast) var(--ease-standard);
}

.home-v2-category-card:hover .home-v2-category-card__title,
.home-v2-category-card:focus-visible .home-v2-category-card__title {
  color: var(--color-primary);
}

.home-v2-category-card__image {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-v2-category-card__image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transition: transform var(--dur-base) var(--ease-standard);
}

.home-v2-category-card:hover .home-v2-category-card__image img,
.home-v2-category-card:focus-visible .home-v2-category-card__image img {
  transform: scale(1.03);
}

/* Popular products — 4 columns, full container width */
.home-v2-popular {
  width: 100%;
  overflow: visible;
}

.home-v2-popular__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  overflow: visible;
}

.home-v2-product-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 560px;
  padding: var(--space-6);
  overflow: visible;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-text);
}

.home-v2-product-card__head {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 22px;
}

.home-v2-product-card__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-500, #fdc500);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

.home-v2-product-card__meta {
  margin-top: 4px;
}

.home-v2-product-card__brand {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-body);
}

.home-v2-product-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}

.home-v2-product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  transition: color var(--dur-fast) var(--ease-standard);
}

.home-v2-product-card:hover .home-v2-product-card__title a {
  color: var(--cyan-500, var(--color-primary));
}

.home-v2-product-card__sku {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.home-v2-product-card__sku-label {
  color: var(--text-muted);
}

.home-v2-product-card__sku-value {
  color: var(--text-strong);
}

.home-v2-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  margin-top: var(--space-5);
  overflow: hidden;
  text-decoration: none;
}

.home-v2-product-card__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-v2-product-card__footer {
  margin-top: auto;
  padding-top: var(--space-5);
}

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

.home-v2-product-card__price-current {
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--text-strong);
}

.home-v2-product-card__price-old {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.home-v2-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: var(--space-4);
}

.home-v2-product-card__cart-form {
  position: relative;
}

.home-v2-product-card__cta.ds-btn--primary {
  width: 100%;
  box-sizing: border-box;
}

.home-v2-product-card__compat-wrap {
  position: relative;
  align-self: center;
}

.home-v2-product-card__compat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--text-link);
  cursor: default;
}

.home-v2-product-card__compat-icon {
  font-size: 18px;
  line-height: 1;
}

.home-v2-product-card__compat-popup {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  z-index: 30;
  box-sizing: border-box;
  width: 230px;
  max-height: 260px;
  padding: 16px 20px;
  overflow-y: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--white, #fff);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity var(--dur-fast) var(--ease-standard),
    visibility var(--dur-fast) var(--ease-standard);
  text-align: left;
}

.home-v2-product-card__compat-wrap:hover .home-v2-product-card__compat-popup,
.home-v2-product-card__compat-wrap:focus-within .home-v2-product-card__compat-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-v2-product-card__compat-wrap--empty .home-v2-product-card__compat {
  color: var(--text-muted);
  cursor: default;
}

.home-v2-product-card__compat-wrap--empty:hover .home-v2-product-card__compat,
.home-v2-product-card__compat-wrap--empty:focus-within .home-v2-product-card__compat {
  color: var(--text-muted);
}

.home-v2-product-card__compat-popup-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--text-strong);
}

.home-v2-product-card__compat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-v2-product-card__compat-list li {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-body);
}

/* Articles */
.home-v2-articles {
  margin-top: 112px;
}

.home-v2-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-v2-article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}

.home-v2-article-card:hover {
  box-shadow: var(--shadow-md);
}

.home-v2-article-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-sunken);
}

.home-v2-article-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-v2-article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
}

.home-v2-article-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-strong);
}

.home-v2-article-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-link);
}

/* About */
.home-v2-about {
  margin-top: 96px;
}

.home-v2-about__panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.home-v2-about__content {
  padding: 56px 8px 56px 56px;
}

.home-v2-about__label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-v2-about__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--fw-bold);
  line-height: 1.18;
  color: var(--text-strong);
}

.home-v2-about__text {
  max-width: 520px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}

.home-v2-about__media {
  align-self: stretch;
  min-height: 360px;
}

.home-v2-about__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Awards carousel */
.home-v2-awards {
  margin-top: 96px;
}

.home-v2-awards__head {
  margin-bottom: 18px;
}

.home-v2-awards__nav {
  display: flex;
  gap: 10px;
}

.home-v2-awards__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: #fff;
  color: var(--text-strong);
  font-size: 18px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.home-v2-awards__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.home-v2-awards__viewport {
  overflow: hidden;
}

.home-v2-awards__track {
  --aw-card: min(340px, calc((100% - 48px) / 3));
  display: flex;
  gap: 24px;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-v2-awards__track.is-dragging {
  transition: none;
  cursor: grabbing;
}

.home-v2-awards__card {
  flex: 0 0 var(--aw-card);
  width: var(--aw-card);
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #fff;
  opacity: 0.72;
  transition: opacity 300ms ease;
}

.home-v2-awards__card.is-active {
  opacity: 1;
}

.home-v2-awards__picture {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 22px;
  box-sizing: border-box;
  background: #f6f7f8;
  overflow: hidden;
}

.home-v2-awards__picture img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.home-v2-awards__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px 24px;
}

.home-v2-awards__card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}

.home-v2-awards__card-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.home-v2-awards__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.home-v2-awards__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--ink-200, #d8dde3);
  cursor: pointer;
  transition: all 240ms ease;
}

.home-v2-awards__dot.is-active {
  width: 26px;
  background: var(--color-primary);
}

/* Certificates */
.home-v2-certificates {
  margin-top: 96px;
}

.home-v2-certificates__panel {
  padding: 52px 48px;
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
}

.home-v2-certificates__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-v2-certificates__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.home-v2-certificates__thumb:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.home-v2-certificates__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Certificate lightbox */
.home-v2-cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  background: rgba(8, 12, 16, 0.86);
}

.home-v2-cert-lightbox[hidden] {
  display: none;
}

.home-v2-cert-lightbox__image {
  max-width: min(90vw, 720px);
  max-height: 88vh;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.home-v2-cert-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.home-v2-cert-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.home-v2-cert-lightbox__close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.home-v2-cert-lightbox__prev,
.home-v2-cert-lightbox__next {
  top: 50%;
  width: 56px;
  height: 56px;
  font-size: 26px;
  transform: translateY(-50%);
}

.home-v2-cert-lightbox__prev {
  left: 28px;
}

.home-v2-cert-lightbox__next {
  right: 28px;
}

.home-v2-cert-lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
}

@media (max-width: 1240px) {
  .home-v2-popular__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .home-v2-hero__inner {
    flex-direction: column;
  }

  .home-v2-hero__content {
    padding: 32px 0;
  }

  .home-v2-hero__media {
    flex: none;
    min-height: 240px;
  }

  .home-v2-advantages__grid,
  .home-v2-categories__grid,
  .home-v2-articles__grid {
    grid-template-columns: 1fr;
  }

  .home-v2-popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-v2-catalog__row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-v2-sidebar {
    width: 100%;
    max-height: none !important;
    overflow: visible;
  }

  .home-v2-sidebar__scroll {
    flex: none;
    overflow-y: visible;
  }

  .home-v2-about__panel {
    grid-template-columns: 1fr;
  }

  .home-v2-about__content {
    padding: 32px;
  }

  .home-v2-certificates__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .home-v2-popular__grid {
    grid-template-columns: 1fr;
  }

  .home-v2-hero__title {
    font-size: 28px;
  }
}