.order-card__title,
.profile-nav__item {
  white-space: nowrap;
  text-transform: lowercase;
}
#authorization,
.card-rating,
.card-title,
header nav ul li a {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.card-fav.active svg path,
.product-details__fav-btn.active svg path {
  fill: var(--accent-pink);
  stroke: var(--accent-pink);
}
.modal-overlay,
.skeleton * {
  visibility: hidden;
}

@font-face {
  font-family: SF-Pro-Display-Bold;
  src: url("/assets/fonts/SFProDisplay-Bold.woff2");
  font-display: swap;
}
@font-face {
  font-family: SF-Pro-Display-Semibold;
  src: url("/assets/fonts/SFProDisplay-Semibold.woff2");
  font-display: swap;
}
@font-face {
  font-family: SF-Pro-Display-Regular;
  src: url("/assets/fonts/SFProDisplay-Regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: SF-Pro-Display-Bold-Italic;
  src: url("/assets/fonts/SFProDisplay-BoldItalic.woff2");
  font-display: swap;
}
@font-face {
  font-family: SF-Pro-Display-Light;
  src: url("/assets/fonts/SFProDisplay-Light.woff2");
  font-display: swap;
}

:root {
  /* ===== Базовые цвета ===== */
  --black: #000000;
  --white: #ffffff;
  --bg-body: #f6f6f6;
  --bg-gray: #ececec;
  --text-gray: #a9a9a9;
  --text-placeholder: #c9c9c9;
  --text-inactive: #d2d2d2;
  --accent-pink: #ee7ec6;

  /* ===== Фоны ===== */
  --bg-primary: #f6f6f6;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f0f0;
  --bg-hover: #e2e2e2;
  --bg-disabled: #e0e0e0;
  --bg-skeleton: #d9d9d9;
  --bg-tooltip: #333333;
  --bg-warning: rgba(255, 193, 7, 0.3);

  /* ===== Текст ===== */
  --text-primary: #000000;
  --text-secondary: #555555;
  --text-tertiary: #666666;
  --text-muted: #828282;
  --text-light: #8e8e93;
  --text-disabled: #d5d5d5;
  --text-faded: #c5c5c5;

  /* ===== Границы ===== */
  --border-primary: #ececec;
  --border-secondary: #eaeaea;
  --border-light: #e0e0e0;
  --border-medium: #d1d1d6;
  --border-dark: #c5c5c5;
  --border-divider: rgba(0, 0, 0, 0.05);

  /* ===== Статусные цвета (не меняются в тёмной теме) ===== */
  --color-error: #f54742;
  --color-error-bright: #ff3b30;
  --color-error-alt: #ff4444;
  --color-success: #00c853;
  --color-info: #8a38f5;

  /* ===== Тени ===== */
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(214, 214, 214, 0.3);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 10px 40px rgba(0, 0, 0, 0.1);

  /* ===== Оверлеи ===== */
  --overlay-light: rgba(0, 0, 0, 0.03);
  --overlay-subtle: rgba(0, 0, 0, 0.05);
  --overlay-medium: rgba(0, 0, 0, 0.06);
  --overlay-dark: rgba(0, 0, 0, 0.15);
  --overlay-darker: rgba(0, 0, 0, 0.25);
  --overlay-modal: rgba(0, 0, 0, 0.5);
  --overlay-heavy: rgba(0, 0, 0, 0.6);
  --overlay-text: rgba(0, 0, 0, 0.4);

  /* ===== Скроллбар ===== */
  --scrollbar-thumb: #d1d1d6;
  --scrollbar-thumb-hover: rgba(209, 209, 214, 0.7);
  --scrollbar-track: rgba(0, 0, 0, 0.5);
}

/* ===== ТЁМНАЯ ТЕМА ===== */
[data-theme="dark"] {
  /* Фоны */
  --bg-primary: #121212;
  --bg-secondary: #303030;
  --bg-tertiary: #2a2a2a;
  --bg-hover: #3a3a3a;
  --bg-disabled: #2d2d2d;
  --bg-skeleton: #3a3a3a;
  --bg-tooltip: #f0f0f0;
  --bg-warning: rgba(255, 193, 7, 0.2);
  --bg-body: #121212;
  --bg-gray: #303030;

  /* Текст */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #b0b0b0;
  --text-muted: #999999;
  --text-light: #888888;
  --text-disabled: #666666;
  --text-faded: #c5c5c5;
  --text-gray: #c5c5c5;
  --text-placeholder: #888888;
  --text-inactive: #999999;
  --black: #ffffff;
  --white: #121212;

  /* Границы */
  --border-primary: #3a3a3a;
  --border-secondary: #404040;
  --border-light: #4a4a4a;
  --border-medium: #505050;
  --border-dark: #5a5a5a;
  --border-divider: rgba(255, 255, 255, 0.1);

  /* Тени (более интенсивные) */
  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.8);
  --shadow-2xl: 0 10px 40px rgba(0, 0, 0, 0.9);

  /* Оверлеи (инвертированные) */
  --overlay-light: rgba(255, 255, 255, 0.03);
  --overlay-subtle: rgba(255, 255, 255, 0.05);
  --overlay-medium: rgba(255, 255, 255, 0.08);
  --overlay-dark: rgba(255, 255, 255, 0.15);
  --overlay-darker: rgba(255, 255, 255, 0.25);
  --overlay-modal: rgba(0, 0, 0, 0.85);
  --overlay-heavy: rgba(0, 0, 0, 0.9);
  --overlay-text: rgba(255, 255, 255, 0.6);

  /* Скроллбар */
  --scrollbar-thumb: #4a4a4a;
  --scrollbar-thumb-hover: rgba(74, 74, 74, 0.8);
  --scrollbar-track: rgba(255, 255, 255, 0.1);
}

/* ===== Специфичные переопределения для тёмной темы ===== */
[data-theme="dark"] .steam {
  background-color: #303030;
  box-shadow: none;
}

[data-theme="dark"] .axo-footer {
  background-color: #303030;
}

/* Hover эффекты для Recommended categories в тёмной теме */
[data-theme="dark"] .recommended-categories a:hover,
[data-theme="dark"] .mobile-recommended-categories a:hover {
  background-color: #3a3a3a;
}

[data-theme="dark"] .recommended-categories a:active,
[data-theme="dark"] .mobile-recommended-categories a:active {
  background-color: #444444;
}

/* Hover эффекты для кнопок в тёмной теме */
[data-theme="dark"] .btn--primary:hover {
  background: #e2e2e2;
}

[data-theme="dark"] .btn--outline:hover {
  background: #3a3a3a;
}

[data-theme="dark"] .btn--black:hover {
  background: #e2e2e2;
}

[data-theme="dark"] .btn--white:hover {
  background: #3a3a3a;
}

[data-theme="dark"] .back-button:hover,
[data-theme="dark"] .product-page-back:hover {
  opacity: 0.7;
}

[data-theme="dark"] .drop-down-lists button:hover {
  background-color: #3a3a3a;
}

[data-theme="dark"] .pm-tab-btn:not(.active):hover {
  background-color: #3a3a3a;
}

[data-theme="dark"] .auth-req-btn--outline:hover {
  background-color: #3a3a3a;
}

[data-theme="dark"] .product-details__period-btn:not(.product-details__period-btn--active):hover {
  border-color: #888888;
  color: #888888;
}

[data-theme="dark"] .product-details__category-btn:not(.product-details__category-btn--active):hover {
  opacity: 0.7;
}

/* Wallet card в тёмной теме */
[data-theme="dark"] .wallet-card-main {
  background-color: #303030;
}

/* Orders list articles в тёмной теме */
[data-theme="dark"] #orders-list-view > div > article {
  background-color: #303030;
}

/* Изображение профиля в тёмной теме */
[data-theme="dark"] .settings-avatar-image {
  background-image: url('/assets/img/profileBlackTheme.svg');
}

/* SVG в чёрных кнопках в тёмной теме */
[data-theme="dark"] .btn--black svg path {
  stroke: #000000;
}

/* Стрелки пагинации в тёмной теме */
[data-theme="dark"] .pagination-arrow {
  color: #ffffff;
}

[data-theme="dark"] .pagination-arrow--disabled {
  color: #666666;
}

/* Стрелки в выпадающих списках в тёмной теме */
[data-theme="dark"] .drop-down-lists select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Стрелки в форме поддержки в тёмной теме */
[data-theme="dark"] .support-form select.auth-input {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .custom-select-trigger {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .custom-select-container.open .custom-select-trigger {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* SVG иконки в тёмной теме */
[data-theme="dark"] .steam-toggle-icon path,
[data-theme="dark"] .details-delivery-copy svg path,
[data-theme="dark"] .settings-avatar-edit svg path {
  stroke: #ffffff;
}

[data-theme="dark"] .back-button svg path,
[data-theme="dark"] .pm-close-btn svg path,
[data-theme="dark"] .tx-modal__icon-close svg path {
  fill: #ffffff;
}

[data-theme="dark"] .card-rating svg path {
  fill: #ffffff;
}

[data-theme="dark"] .product-image-placeholder svg path {
  stroke: #ffffff;
}

[data-theme="dark"] #profile-icon svg path {
  fill: #ffffff;
}

/* ===== Плавные переходы для смены темы ===== */
/* Оптимизировано: transitions только для контейнеров и UI элементов, исключены карточки товаров */
body,
header,
nav,
footer,
.steam,
.axo-footer,
.btn,
.auth-input,
.drop-down-lists input,
.drop-down-lists select,
.search,
.modal-overlay,
.payment-modal,
.recommended-categories a,
.mobile-recommended-categories a {
  transition: background-color 0.3s ease,
              color 0.3s ease;
}

/* Отключение всех transitions во время переключения темы для максимальной производительности */
.theme-switching,
.theme-switching * {
  transition: none !important;
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body,
  header,
  nav,
  footer,
  .steam,
  .axo-footer,
  .btn,
  .auth-input,
  .drop-down-lists input,
  .drop-down-lists select,
  .search,
  .modal-overlay,
  .payment-modal,
  .recommended-categories a,
  .mobile-recommended-categories a {
    transition: none !important;
  }
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: SF-Pro-Display-Regular, sans-serif;
}
.content-area {
  max-width: 1400px;
  margin: 0 auto;
  width: calc(100% - 30px);
  flex: 1;
}
.search {
  position: relative;
}
.search,
.search input {
  max-width: 540px;
  width: 100%;
  height: 33px;
}
header {
  padding-top: 15px;
  padding-bottom: 60px;
}
.auth-label-row,
.brand,
.usertools,
.wallet-bonuses__row,
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search input,
.usertools,
header nav ul {
  align-items: center;
  display: flex;
}
header nav ul {
  gap: 30px;
}
.card-price,
.card-title,
.footer-content p,
.product-card,
.rating-value,
.recommended-categories a,
.section-header h2,
.show-all,
footer,
header nav ul li a {
  color: var(--black);
}
.input-label,
.rating-count {
  color: var(--text-gray);
}
.search input {
  background-color: var(--bg-gray);
  border-radius: 22px;
  padding: 9px 15px;
  font-family: SF-Pro-Display-Regular, sans-serif;
}
.search input:focus {
  outline: 0;
}
.search input::placeholder {
  font-family: SF-Pro-Display-Regular, sans-serif;
}
/* Убираем стрелочки у input type="number" */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
.usertools {
  gap: 15px;
}
.transaction-item__right,
.usertools > * {
  display: flex;
  align-items: center;
}

/* ===== Переключатель темы ===== */
.theme-toggle,
.mobile-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.theme-toggle img,
.mobile-theme-toggle img {
  width: 24px;
  height: 24px;
  display: block;
}

#authorization {
  color: var(--white);
  padding: 8.5px 20px;
  background-color: var(--black);
  border-radius: 15px;
}
.header-logo,
.mobile-bottom-nav,
.mobile-catalog-btn,
.mobile-theme-toggle,
.mobile-header-actions,
.mobile-search-container,
.pm-note.hidden,
.steam-toggle-icon {
  display: none;
}
@media (max-width: 1130px) {
  header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 20px;
  }
  .header-logo {
    display: block;
    max-width: 120px;
  }
  header nav {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 350px;
    height: 65px;
    background: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 35px;
    box-shadow: 0 10px 25px rgba(214, 214, 214, 0.3);
    border: var(--bg-gray) 1.5px solid;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    border-radius: 0;
    transition: 0.2s;
    opacity: 0.7;
    position: relative;
    color: var(--text-primary);
  }
  .nav-item svg {
    color: var(--text-primary);
  }
  .nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background-color: var(--bg-gray);
  }
  .nav-item.active {
    background: 0 0;
    opacity: 1;
  }
  .nav-item:active {
    transform: scale(0.9);
  }
}
.steam {
  background-color: var(--white);
  padding: 25px 25px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 15px;
}
.pm-header,
.steam-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.steam h2 {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 24px;
  margin-bottom: 5px;
}
.input-label,
.mobile-recommended-categories-info h3,
.recommended-categories-info h3,
.show-all {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.drop-down-lists button,
.drop-down-lists input,
.drop-down-lists select {
  height: 54px;
  width: 100%;
  font-size: 16px;
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.drop-down-lists {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: flex-end;
}
.input-group {
  position: relative;
  width: 100%;
  flex: 1;
}
.input-label {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 11px;
  pointer-events: none;
  line-height: 1;
  z-index: 5;
  transition: 0.2s;
}
.drop-down-lists input,
.drop-down-lists select {
  background-color: var(--white);
  border: 2px solid var(--bg-gray);
  border-radius: 12px;
  outline: 0;
  transition: border-color 0.2s;
  appearance: none;
}
.drop-down-lists input {
  padding: 22px 14px 8px;
}
.drop-down-lists select {
  padding: 22px 40px 8px 14px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ECECEC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.drop-down-lists input:focus,
.drop-down-lists select:focus {
  border-color: var(--black);
}
.drop-down-lists input.error {
  border-color: #f54742;
}
.input-error-message {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  font-family: SF-Pro-Display-Regular, sans-serif;
  font-size: 12px;
  color: #f54742;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}
input.error + .input-error-message {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .input-error-message {
    position: static;
    display: block;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  }
  input.error + .input-error-message {
    max-height: 20px;
    margin-top: 6px;
    transform: none;
  }
}
.replenish-wrapper {
  position: relative;
  width: 100%;
  max-width: 200px;
  flex-shrink: 0;
}
.commission-text {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  text-align: left;
  margin-top: 8px;
  font-family: SF-Pro-Display-Regular, sans-serif;
  font-size: 12px;
  color: var(--text-gray);
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .replenish-wrapper {
    max-width: 100%;
  }
  .commission-text {
    position: static;
    display: block;
    margin-top: 8px;
  }
}
.drop-down-lists input::placeholder {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  color: var(--text-placeholder);
}
.drop-down-lists button {
  max-width: 200px;
  background-color: var(--black);
  border-radius: 12px;
  cursor: pointer;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: var(--white);
  transition: 0.2s;
  flex-shrink: 0;
}
.card-image-wrapper {
  background-color: var(--bg-gray);
}
.mobile-recommended-categories a,
.recommended-categories a {
  transition:
    transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 0.2s;
  background-color: var(--bg-gray);
  box-sizing: border-box;
  text-decoration: none;
}
.drop-down-lists button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.drop-down-lists button:active {
  transform: scale(0.98);
}
@media (max-width: 900px) {
  .company-info,
  .mobile-search,
  .mobile-search input {
    max-width: 100%;
  }
  .drop-down-lists {
    flex-wrap: wrap;
  }
  .input-group {
    min-width: 45%;
  }
  .mobile-search {
    display: block;
    margin-bottom: 20px;
  }
  .mobile-recommended-categories {
    display: grid;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .mobile-recommended-categories a {
    display: flex;
  }
  .section-header h2 span {
    max-width: 230px;
  }
  .product-card,
  .product-card:active,
  .product-card:hover {
    /* НАЧАЛО КОДА АНИМАЦИИ (ОТКЛЮЧЕНИЕ НА МОБИЛЬНЫХ) */
    transform: none !important;
    transition: none !important;
    /* КОНЕЦ КОДА АНИМАЦИИ (ОТКЛЮЧЕНИЕ НА МОБИЛЬНЫХ) */
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 40px;
  }
  .company-info {
    margin-bottom: 30px;
    margin-right: 0;
  }
  .footer-content p {
    margin-left: 0;
    margin-right: 0;
  }
  .company-contact,
  .legal-link,
  .ref-sys,
  .support {
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    flex-grow: unset;
  }
  .footer-down-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }
  .social-link {
    justify-content: flex-start;
    width: auto;
    padding-bottom: 0;
  }
  .legal-info {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: auto;
  }
}
.mobile-recommended-categories {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  width: 100%;
}
.mobile-recommended-categories a {
  display: none;
  align-items: center;
  gap: 15px;
  border-radius: 15px;
  padding: 10px;
  color: var(--black);
  width: 70%;
}
.mobile-recommended-categories a:hover,
.recommended-categories a:hover {
  transform: translateY(-3px);
  background-color: #e2e2e2;
}
.mobile-recommended-categories a img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.mobile-recommended-categories-info,
.order-card,
.order-card__info,
.recommended-categories-info,
.reviews__list,
.wallet-stack {
  display: flex;
  flex-direction: column;
}
.mobile-recommended-categories-info h3,
.recommended-categories-info h3 {
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 3px;
  color: var(--black);
}
.mobile-recommended-categories-info p,
.recommended-categories-info p {
  font-family: SF-Pro-Display-Regular, sans-serif;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1;
}
@media (max-width: 1430px) {
  .mobile-recommended-categories,
  .recommended-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-bottom: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .mobile-recommended-categories::-webkit-scrollbar {
    display: none;
  }
  .mobile-recommended-categories a {
    min-width: 220px;
    width: 220px;
    flex-shrink: 0;
  }
  .mobile-recommended-categories a:hover,
  .recommended-categories a:hover {
    transform: none;
    background-color: var(--bg-gray);
  }
  .mobile-recommended-categories a:active,
  .recommended-categories a:active {
    background-color: #d1d1d6;
  }
  .recommended-categories::-webkit-scrollbar {
    display: none;
  }
  .recommended-categories a {
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
  }
}
.recommended-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
  width: 100%;
}
.recommended-categories a {
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 20px;
  padding: 15px;
  width: 100%;
}
.recommended-categories a img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.products-section {
  margin-top: 5px;
  margin-bottom: 50px;
}
.products-section .products-section {
  margin-top: 50px;
}
@media (max-width: 900px) {
  .mobile-recommended-categories {
    display: grid;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .mobile-recommended-categories a {
    display: flex;
  }
  .recommended-categories {
    display: none;
  }
  .products-section .products-section {
    margin-top: 30px;
  }
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}
.section-header h2 {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 32px;
  line-height: 1;
}
.section-header h2 span {
  display: block;
  font-family: SF-Pro-Display-Regular, sans-serif;
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 5px;
  margin-left: 2px;
}
.show-all {
  font-size: 14px;
  text-decoration: none;
  transition: 0.2s;
}
.card-label,
.card-price {
  font-family: SF-Pro-Display-Bold, sans-serif;
}
.categories-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: auto;
  text-decoration: none;
  /* НАЧАЛО КОДА АНИМАЦИИ (ПЛАВНОСТЬ) */
  transition: transform 0.2s;
  /* КОНЕЦ КОДА АНИМАЦИИ (ПЛАВНОСТЬ) */
  overflow: hidden;
}
.product-card:hover {
  /* НАЧАЛО КОДА АНИМАЦИИ (ЭФФЕКТ НАВЕДЕНИЯ) */
  transform: translateY(-5px);
  /* КОНЕЦ КОДА АНИМАЦИИ (ЭФФЕКТ НАВЕДЕНИЯ) */
}
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
}
.card-fav,
.card-label {
  position: absolute;
  top: 10px;
  z-index: 2;
}
.card-fav,
.card-fav.active,
.card-label {
  background: var(--white);
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-label {
  left: 10px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
}
.card-fav {
  right: 10px;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: 0.2s;
}
.card-fav svg {
  width: 20px;
  height: 20px;
}
.card-fav svg path {
  stroke: var(--text-gray);
  fill: var(--text-gray);
  transition: 0.2s;
}
.card-info {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-price {
  font-size: 24px;
}
.card-title {
  font-size: 16px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 12px;
}
.company-contact a,
.company-contact h1,
.footer-content p,
.rating-count,
.ref-sys a,
.ref-sys h1,
.support a,
.support h1,
footer {
  font-family: SF-Pro-Display-Regular, sans-serif;
}
.product-card.category-card .card-title {
  font-size: 16px;
  text-align: left;
  height: 42px;
  -webkit-line-clamp: 2;
}
@media (max-width: 600px) {
  .steam {
    padding: 15px;
  }
  .steam h2 {
    font-size: 22px;
  }
  .steam-header {
    cursor: pointer;
  }
  .steam-toggle-icon {
    display: block;
    transition: transform 0.3s;
  }
  .steam.open .steam-toggle-icon {
    transform: rotate(180deg);
  }
  .drop-down-lists {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: 0.3s;
  }
  .steam.open .drop-down-lists {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
  }
  .input-group {
    width: 100%;
    min-width: 100%;
  }
  .drop-down-lists button {
    max-width: 100%;
    margin-top: 10px;
  }
  .drop-down-lists button:hover {
    transform: none;
    opacity: 1;
  }
  .drop-down-lists button:active {
    opacity: 0.8;
    transform: scale(0.98);
  }
  .mobile-bottom-nav {
    width: 100%;
    height: 70px;
    max-width: 100%;
    bottom: 0;
    left: 0;
    transform: none;
    border-radius: 0;
  }
  .steam-header h1 {
    font-size: 20px;
  }
  header {
    justify-content: space-between;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mobile-catalog-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: SF-Pro-Display-Semibold, sans-serif;
    font-size: 16px;
    color: var(--black);
    text-decoration: none;
  }
  .mobile-theme-toggle {
    display: flex;
  }
  .mobile-search-container {
    display: block;
    width: 100%;
    height: 33px;
    padding: 0;
    margin-bottom: 20px;
  }
  .mobile-search {
    width: 100%;
    max-width: 100%;
  }
  .mobile-search input {
    width: 100%;
    max-width: 100%;
  }
  footer {
    padding: 90px 0;
  }
  .footer-content {
    padding-bottom: 30px;
  }
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    max-width: 100%;
    height: auto;
    min-height: 280px;
  }
  .card-image-wrapper {
    height: auto;
    aspect-ratio: 1/1;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .product-card.category-card {
    min-height: auto;
  }
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
  width: 100%;
}

@media (min-width: 1131px) {
  .profile-container {
    margin-bottom: 220px;
  }
}

.profile-nav {
  display: flex;
  flex-direction: row;
  gap: 27px;
  border-bottom: 1px solid transparent;
  padding-bottom: 10px;
  overflow-x: auto;
}
.profile-nav__item {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 25px;
  line-height: 100%;
  letter-spacing: -0.05em;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  color: var(--text-inactive);
}
.order-card__id,
.order-card__status {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  text-transform: lowercase;
  line-height: 100%;
}
.details-product-name,
.profile-nav__item--active,
.profile-nav__item--active:hover,
.transaction-amount--income,
.wallet-balance,
.wallet-label {
  color: var(--black);
}
.profile-nav__item:hover {
  color: var(--text-secondary);
}
.orders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.order-card {
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  gap: 20px;
  width: 100%;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  box-sizing: border-box;
}
.order-card__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.order-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 98px;
  flex: 1;
  min-width: 0;
}
.order-card__status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 10px;
  width: fit-content;
}
.order-card__status--processing {
  border: 1px solid #8a38f5;
  color: #8a38f5;
}
.order-card__status--cancelled {
  border: 1px solid #ff4444;
  color: #ff4444;
}
.order-card__status--success {
  border: 1px solid #00c853;
  color: #00c853;
}
.order-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-card__id {
  font-size: 16px;
  color: var(--text-disabled);
}
.order-card__title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 30px;
  color: var(--black);
  line-height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.order-card__image-placeholder {
  width: 98px;
  height: 98px;
  background: var(--text-placeholder);
  border-radius: 10px;
  flex-shrink: 0;
}
.details-product-card__inner,
.order-card__actions {
  display: flex;
  gap: 10px;
}
.order-card__actions .btn {
  flex: 1;
  height: 46px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  text-transform: lowercase;
  cursor: pointer;
  transition: 0.2s;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
  border: none;
}
.btn--primary:hover {
  background: var(--bg-hover);
}
.btn--outline {
  background: 0 0;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--outline:hover {
  background: var(--bg-tertiary);
}
@media (max-width: 1200px) {
  .order-card {
    flex: 1 1 calc(50% - 10px);
  }
  .product-details {
    flex-wrap: wrap;
    height: auto;
  }
  .product-details__info {
    max-width: 100%;
    min-height: auto;
  }
}
@media (max-width: 768px) {
  .order-card {
    flex: 1 1 100%;
  }
  .order-card__title {
    font-size: 24px;
    white-space: normal;
  }
  .details-container {
    margin-bottom: 30px;
  }
  .details-title,
  .product-description__title,
  .product-details__price,
  .product-details__title,
  .reviews__title,
  .wallet-title,
  .favorites-title,
  .referral-title {
    font-size: 32px;
  }
  .details-row {
    flex-direction: column;
    gap: 15px;
  }
  .details-actions {
    flex-direction: column;
    width: 100%;
  }
  .details-actions .btn {
    width: 100%;
  }
  .transaction-item {
    align-items: flex-start;
  }
  .transaction-item__right {
    white-space: nowrap;
    margin-left: 10px;
  }
  .product-description__text,
  .transaction-title {
    font-size: 14px;
  }
  .transaction-date {
    font-size: 12px;
  }
  .product-details__gallery {
    flex-direction: column-reverse;
    width: 100%;
    gap: 20px;
  }
  .product-details__thumbs {
    display: none;
  }
  .product-details__main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    margin-bottom: 0;
  }
  .product-details__period-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .product-details__period-btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  .product-details__category-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .product-details__category-btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    height: 46px;
  }
  .product-details__actions {
    flex-wrap: nowrap;
  }
  .product-details__buy-btn,
  .reviews__chart-row {
    max-width: 100%;
  }
  .reviews__filters {
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .reviews__filters::-webkit-scrollbar {
    display: none;
  }
  .review-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .review-card__time {
    align-self: flex-start;
  }
  .reviews__header {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 400px) {
  .order-card {
    padding: 15px;
  }
  .order-card__header {
    gap: 12px;
  }
  .order-card__image-placeholder {
    width: 70px;
    height: 70px;
  }
  .order-card__info {
    height: auto;
    min-height: 70px;
    justify-content: space-between;
    gap: 10px;
  }
  .order-card__title {
    font-size: 20px;
  }
  .order-card__id {
    font-size: 14px;
  }
  .order-card__actions .btn {
    height: 38px;
    font-size: 14px;
  }
  .settings-title {
    font-size: 32px;
  }
  .settings-save-btn {
    width: 110px;
    height: 38px;
    font-size: 14px;
  }
}
.profile-content-area {
  position: relative;
  width: 100%;
}
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.view-section.active {
  display: block;
  opacity: 1;
  animation: 0.4s ease-out forwards fadeIn;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.details-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1396px;
  margin-bottom: 100px;
}
.back-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: 0 0;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-bottom: 5px;
}
.back-button span,
.details-product-price,
.details-value {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  color: var(--black);
  line-height: 100%;
}
.back-button:hover,
.product-page-back:hover {
  opacity: 0.7;
}
.details-title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 45px;
  color: var(--black);
  line-height: 100%;
  text-transform: lowercase;
  margin-bottom: 5px;
}
.details-product-card {
  border: 2px solid var(--bg-gray);
  border-radius: 15px;
  padding: 15px;
  width: 100%;
  background: var(--white);
}
.details-product-image {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-skeleton) 0, var(--white) 100%);
  flex-shrink: 0;
}
.details-product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 85px;
  padding: 5px 0;
}
.details-label,
.details-product-category {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  color: var(--text-disabled);
  line-height: 100%;
}
.details-product-main,
.reviews__header,
.transaction-item__left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.details-product-name {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 20px;
  line-height: 100%;
  margin: 0;
}
.details-actions .btn,
.wallet-card-bonus span,
.wallet-label {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  text-transform: lowercase;
}
.auth-actions,
.auth-divider,
.auth-socials-row,
.details-row,
.wallet-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.details-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.details-info-list > .details-row:first-child > .details-item {
  margin-bottom: 10px;
}
.details-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}
.details-product-delivery {
  display: flex;
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
}
.details-delivery-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 8px 12px;
  border: 1.5px solid var(--border-primary);
  border-radius: 10px;
  box-sizing: border-box;
}
.details-delivery-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 19px;
  width: 100%;
}
.details-delivery-info {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 25px;
  flex: 1;
  min-width: 0;
}
.details-delivery-label,
.details-delivery-code {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  color: var(--black);
  line-height: normal;
}
.details-delivery-code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.details-delivery-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.details-delivery-copy:hover {
  opacity: 0.7;
}
.details-delivery-copy svg {
  width: 20px;
  height: 20px;
}
.details-actions .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 46px;
  padding: 15px 20px;
  border-radius: 15px;
  line-height: 100%;
  letter-spacing: -0.05em;
  gap: 5.2px;
  cursor: pointer;
  transition: 0.2s;
}
.wallet-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.wallet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 336px;
  flex-shrink: 0;
}
.wallet-card-bonus,
.wallet-card-main {
  gap: 33px;
  display: flex;
  box-sizing: border-box;
}
.wallet-card-bonus {
  background: var(--accent-pink);
  border-radius: 20px 20px 0 0;
  padding: 18px 15px 48px;
  width: 100%;
  justify-content: space-between;
}
.wallet-card-bonus span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--black);
  line-height: 100%;
}
.wallet-card-bonus__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.wallet-card-bonus__amount {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-weight: 600;
}
.wallet-card-main {
  background: var(--white);
  border-radius: 20px;
  padding: 18px 15px;
  width: 100%;
  flex-direction: column;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
.wallet-balance-block {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 10px;
}
.wallet-balance {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 45px;
  line-height: 100%;
}
.btn--black,
.wallet-bonuses__btn,
.wallet-support-btn {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.btn--black {
  background: var(--black);
  color: var(--white);
  border-radius: 15px;
  border: none;
  font-size: 16px;
}
.btn--small {
  height: 46px;
  border-radius: 15px;
  font-size: 16px;
  flex: 1;
}
.wallet-support-btn {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.pm-label,
.transaction-amount,
.transaction-title,
.wallet-bonuses__label,
.wallet-bonuses__value span {
  font-size: 16px;
  color: var(--black);
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.wallet-bonuses {
  background: var(--white);
  border-radius: 20px;
  padding: 20px 15px;
  width: 100%;
  box-sizing: border-box;
}
.wallet-bonuses__info {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.transaction-title,
.wallet-bonuses__label {
  text-transform: lowercase;
}
.review-card__meta,
.wallet-bonuses__value {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wallet-bonuses__btn {
  background: var(--overlay-subtle);
  border: none;
  border-radius: 15px;
  padding: 5px 20px;
  height: 30px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  text-transform: lowercase;
}
.wallet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.settings-title,
.wallet-title,
.favorites-title,
.referral-title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 45px;
  color: var(--black);
  line-height: 100%;
  margin: 0;
  text-transform: lowercase;
}
.settings-email,
.settings-input-label,
.settings-logout-btn,
.settings-name,
.transaction-date {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-divider);
}
.transaction-date {
  font-size: 16px;
  color: var(--text-inactive);
  text-transform: lowercase;
}
@media (max-width: 1024px) {
  .settings-layout,
  .wallet-container,
  .wallet-sidebar {
    flex-direction: column;
  }
  .settings-profile-content {
    flex-direction: column;
    align-items: center;
  }
  .settings-form-block,
  .wallet-content,
  .wallet-sidebar,
  .wallet-stack {
    width: 100%;
  }
  .settings-profile-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .settings-avatar-container {
    width: 150px;
    height: 150px;
  }
  .settings-text-info {
    width: 100%;
    align-items: center;
  }
  .settings-logout-btn {
    margin-top: 20px;
  }
  .product-description {
    flex-direction: column;
    margin-top: 60px;
    margin-bottom: 30px;
    gap: 30px;
  }
  .product-description__content,
  .product-description__title {
    max-width: 100%;
  }
  .reviews {
    flex-direction: column;
    margin: 40px auto;
  }
  .reviews__sidebar {
    max-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
}
.settings-email,
.settings-name {
  line-height: 32px;
  letter-spacing: 0.63px;
  margin: 0;
}
.settings-container,
.favorites-container,
.referral-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 60px;
}
.profile-products-section {
  margin-top: 0;
  margin-bottom: 20px;
}
.settings-layout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.settings-profile-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: auto;
  max-width: 1396px;
  flex-wrap: wrap;
  gap: 40px;
}
.settings-profile-content {
  display: flex;
  align-items: center;
  gap: 40px;
}
.settings-text-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 285px;
}
.settings-name {
  font-size: 32px;
  color: var(--black);
}
.settings-email {
  font-size: 24px;
  color: var(--text-placeholder);
}
.btn,
.settings-action-label {
  letter-spacing: -0.05em;
}
.settings-avatar-container {
  position: relative;
  width: 220px;
  height: 220px;
}
.settings-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 1000px;
  background-color: var(--bg-skeleton);
  background-image: url('/assets/img/profile.svg');
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}
.settings-avatar-edit {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 31px;
  height: 31px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s;
}
.settings-avatar-edit:hover {
  transform: scale(1.1);
}
.settings-actions-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
  max-width: 285px;
  margin-top: 20px;
}
.settings-logout-btn {
  width: 100%;
  max-width: 135px;
  height: 46px;
  border-radius: 15px;
  border: 1.5px solid var(--black);
  background: 0 0;
  font-size: 16px;
  text-align: center;
  color: var(--black);
  cursor: pointer;
  margin-top: 0;
  padding: 0;
}
.settings-telegram-btn {
  width: 100%;
  max-width: 135px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.settings-form-block {
  display: flex;
  flex-direction: column;
  gap: 35px;
  flex: 1;
}
.auth-card,
.settings-input-wrapper {
  flex-direction: column;
  box-sizing: border-box;
}
.settings-input-wrapper {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  border: 1.5px solid var(--bg-gray);
  padding: 8px 12px;
  transition: border-color 0.2s;
}
.settings-input-wrapper:focus-within {
  border-color: var(--black);
}
.settings-input-label {
  font-size: 10px;
  color: var(--text-placeholder);
  line-height: 100%;
  text-transform: lowercase;
}
.settings-action-label,
.settings-input-field,
.settings-save-btn,
.settings-toggle-text {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
}
.settings-action-label,
.settings-input-field {
  color: var(--black);
  text-transform: lowercase;
  line-height: 100%;
}
.settings-input-field {
  border: none;
  outline: 0;
  background: 0 0;
  padding: 0;
  width: 100%;
}
.settings-actions-bar,
.settings-toggle-bar {
  padding-left: 16px;
  display: flex;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.settings-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.settings-save-btn {
  width: 149px;
  height: 46px;
  border-radius: 15px;
  background: var(--black);
  color: var(--white);
  border: none;
  cursor: pointer;
  text-transform: lowercase;
  transition: opacity 0.2s;
}
.auth-title,
.settings-toggle-text {
  color: var(--black);
  text-transform: lowercase;
}
.settings-save-btn:hover {
  opacity: 0.8;
}
.settings-toggle-text {
  text-align: right;
}
.settings-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.settings-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-gray);
  transition: 0.4s;
  border-radius: 40px;
}
.settings-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 24px;
  left: 3px;
  bottom: 2.5px;
  background-color: #d5d5d5;
  transition: 0.4s;
  border-radius: 20px;
}
input:checked + .settings-slider {
  background-color: var(--black);
}
input:checked + .settings-slider:before {
  transform: translateX(10px);
  background-color: var(--white);
}
.auth-card {
  width: 100%;
  max-width: 452px;
  height: auto;
  min-height: auto;
  background: var(--white);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-md);
  margin: 0 auto 100px;
}
.auth-form,
.auth-header {
  flex-direction: column;
  display: flex;
}
.auth-header {
  gap: 2px;
  align-items: center;
  text-align: center;
}
.auth-title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 36px;
  line-height: 100%;
  margin: 0;
}
.auth-divider-text,
.auth-error-message,
.auth-input,
.auth-label,
.auth-subtitle,
.btn,
.product-page-back {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.auth-label,
.auth-subtitle {
  text-transform: lowercase;
  color: var(--text-faded);
  line-height: 100%;
}
.auth-subtitle {
  font-size: 16px;
  margin: 0;
}
.auth-form {
  gap: 20px;
}
.auth-input-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border-dark);
  border-radius: 10px;
  padding: 8px 12px;
  box-sizing: border-box;
  position: relative;
}
.auth-input-group.error {
  border-color: #f54742;
}
.auth-input,
.auth-password-toggle {
  background: 0 0;
  border: none;
  padding: 0;
}
.auth-label {
  font-size: 10px;
}
.auth-input {
  font-size: 16px;
  color: var(--black);
  outline: 0;
  width: 100%;
}
.auth-input::placeholder {
  color: var(--text-faded);
}
.auth-error-message {
  color: red;
  font-size: 14px;
  text-align: center;
  display: none;
}
.auth-divider-text,
.btn {
  font-size: 16px;
  text-transform: lowercase;
}
.auth-password-toggle {
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 28px;
  transform: translateY(-50%);
}
.auth-divider {
  align-items: center;
  justify-content: space-between;
  height: 16px;
}
.auth-divider-line {
  height: 1px;
  background: var(--bg-gray);
  flex: 1;
}
.auth-divider-text {
  color: var(--text-faded);
  white-space: nowrap;
}
.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.auth-actions,
.auth-socials-row,
.product-details {
  flex-direction: row;
}
.auth-social-btn,
.btn {
  gap: 5.2px;
  display: flex;
}
.auth-actions .btn {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.btn {
  height: 46px;
  min-height: 46px;
  border-radius: 15px;
  padding: 0 20px;
  line-height: 100%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
  box-sizing: border-box;
}
.btn--full {
  width: 100%;
}
.auth-social-btn {
  align-items: center;
  justify-content: center;
}
.auth-social-btn-small {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.btn--white {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--white:hover {
  background: var(--bg-tertiary);
}
@media (max-width: 480px) {
  .auth-card {
    min-height: auto;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
  }
  .auth-title {
    font-size: 28px;
  }
  .auth-actions,
  .auth-socials-row {
    flex-direction: column;
  }
  .auth-actions .btn,
  .auth-social-btn-small {
    width: 100%;
    flex: none;
  }
  .product-details__title {
    font-size: 26px;
  }
  .product-details__thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }
  .product-details__period-btn {
    height: 42px;
    font-size: 14px;
    border-radius: 12px;
  }
  .product-details__category-btn {
    height: 42px;
    font-size: 14px;
    border-radius: 12px;
  }
  .product-details__buy-btn {
    font-size: 18px;
  }
}
.product-page-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.product-page-back:active {
  opacity: 0.5;
  transform: translateX(-2px);
}
.product-details {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1396px;
  margin: 0 auto 60px auto;
  box-sizing: border-box;
  font-family: SF-Pro-Display-Regular, sans-serif;
  color: var(--black);
  transition: none;
  transform: none;
}
.product-details:hover {
  transform: none;
}
.product-details__gallery {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-shrink: 0;
}
.product-details__thumbs {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 98px;
  flex-shrink: 0;
}
.product-details__thumb {
  width: 98px;
  height: 98px;
  border-radius: 13px;
  background-color: var(--bg-gray);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-details__thumb:hover {
  opacity: 0.8;
}
.product-details__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-details__main-image {
  width: 570px;
  height: 570px;
  background-color: var(--bg-gray);
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}
.product-details__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-details__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 688px;
  min-height: 570px;
  gap: 24px;
}
.product-details__header-group {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.product-details__title {
  font-size: 45px;
  font-weight: 700;
  font-family: SF-Pro-Display-Bold, sans-serif;
  line-height: normal;
  margin: 0;
  color: var(--black);
}
.product-details__label,
.product-details__period-btn {
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  color: var(--black);
}
.product-details__period-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-details__period-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.product-details__period-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  min-height: 46px;
  min-width: 219px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  background: 0 0;
  border: 1.5px solid var(--black);
}
.product-details__category-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-details__category-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.product-details__category-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  min-height: 46px;
  min-width: 219px;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  background: 0 0;
  border: 1.5px solid var(--black);
  color: var(--black);
  line-height: normal;
  text-transform: lowercase;
}
.product-description,
.reviews {
  display: flex;
  font-family:
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  box-sizing: border-box;
}
.product-details__period-btn--active {
  background: var(--black);
  border: 1.5px solid var(--black);
  color: var(--bg-gray);
}
.product-details__category-btn--active {
  background: var(--black);
  border: 1.5px solid var(--black);
  color: var(--bg-gray);
}
.product-details__period-btn:not(.product-details__period-btn--active):hover {
  border-color: var(--text-tertiary);
  color: var(--text-tertiary);
}
.product-details__category-btn:not(.product-details__category-btn--active):hover {
  opacity: 0.7;
}
.product-details__footer-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-details__price {
  font-size: 45px;
  font-weight: 700;
  font-family: SF-Pro-Display-Bold, sans-serif;
  color: var(--black);
}
.product-details__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.product-details__buy-btn {
  flex-grow: 1;
  max-width: 628px;
  height: 50px;
  background: var(--black);
  border-radius: 15px;
  border: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  font-family: SF-Pro-Display-Bold, sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pm-pay-btn:hover,
.product-details__buy-btn:hover {
  opacity: 0.9;
}
.product-details__buy-btn:active,
.product-details__category-btn:active,
.product-details__period-btn:active {
  transform: scale(0.98);
}
.product-details__fav-btn {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border: 1.5px solid #eaeaea;
  border-radius: 15px;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
}
.product-details__fav-btn svg {
  width: 30px;
  height: 30px;
}
.product-details__fav-btn svg path {
  transition: 0.2s;
  fill: var(--text-gray);
  stroke: var(--text-gray);
}
.product-description {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1396px;
  margin: 100px auto 50px;
  padding: 0;
}
.product-description__title {
  font-size: 45px;
  font-weight: 700;
  font-family: SF-Pro-Display-Bold, sans-serif;
  color: var(--black);
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
  width: 100%;
  max-width: 334px;
}
.product-description__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 1042px;
}
.product-description__text {
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  color: var(--black);
  line-height: 1.4;
}
.product-description__text p {
  margin: 0;
}
.reviews {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1396px;
  margin: 80px auto;
  font-family: SF-Pro-Display-Regular, sans-serif;
  color: var(--black);
}
.reviews__chart-row,
.reviews__sidebar {
  width: 100%;
  max-width: 334px;
  display: flex;
}
.reviews__sidebar {
  flex-direction: column;
  gap: 50px;
  flex-shrink: 0;
}
.reviews__title-group {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 0;
}
.reviews__title {
  font-size: 45px;
  font-weight: 700;
  font-family: SF-Pro-Display-Bold, sans-serif;
  margin: 0;
  line-height: 1;
}
.reviews__total-count {
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  margin-bottom: 6px;
}
.reviews__view-all {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text-inactive);
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  transition: opacity 0.2s;
}
.reviews__chart-label span,
.reviews__row-count {
  font-size: 16px;
  color: var(--black);
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.reviews__view-all:hover {
  opacity: 0.7;
}
.reviews__view-all svg {
  width: 24px;
  height: 24px;
}
.reviews__histogram {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.reviews__chart-row {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 16px;
}
.reviews__chart-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  width: 45px;
  flex-shrink: 0;
}
.icon-star {
  width: 16px;
  height: 16px;
  display: block;
}
.reviews__bar-bg {
  flex-grow: 1;
  max-width: 231px;
  width: 100%;
  height: 10px;
  background-color: var(--bg-gray);
  border-radius: 10px;
  overflow: hidden;
}
.reviews__bar-fill {
  height: 100%;
  background-color: var(--black);
  border-radius: 10px;
}
.reviews__row-count {
  min-width: 20px;
  text-align: right;
}
.reviews__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1042px;
  gap: 20px;
}
.reviews__filters {
  display: flex;
  gap: 20px;
}
.reviews__filter-btn {
  background: 0 0;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-inactive);
  cursor: pointer;
  padding: 0;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  transition: color 0.2s;
}
.reviews__filter-btn--active,
.reviews__filter-btn:hover {
  color: var(--black);
}
.review-card {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1.5px solid var(--bg-gray);
  gap: 10px;
}
.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.review-card__user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-gray);
  flex-shrink: 0;
}
.review-card__name {
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  margin-right: 5px;
}
.review-card__stars {
  display: flex;
  gap: 0;
  align-items: center;
}
.review-card__time {
  font-size: 10px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  color: var(--text-disabled);
}
.review-card__text {
  font-size: 16px;
  font-weight: 600;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  margin: 0;
  line-height: normal;
}
@media (max-width: 1200px) {
  .product-details {
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
    gap: 20px;
  }
  .product-details__info {
    max-width: 100%;
    min-height: auto;
  }
}
@media (max-width: 1024px) {
  .product-description {
    flex-direction: column;
    margin-top: 60px;
    margin-bottom: 30px;
    gap: 30px;
  }
  .product-description__content,
  .product-description__title,
  .product-details__buy-btn,
  .reviews__bar-bg,
  .reviews__chart-row {
    max-width: 100%;
  }
  .reviews {
    flex-direction: column;
    margin: 40px auto;
  }
  .reviews__sidebar {
    max-width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  .reviews__histogram {
    flex: 1;
    min-width: 300px;
  }
  .reviews__header {
    flex: 1;
    min-width: 200px;
  }
  .product-description__title,
  .product-details__price,
  .product-details__title,
  .reviews__title {
    font-size: 36px;
  }
}
@media (max-width: 768px) {
  .product-details {
    margin-bottom: 20px;
  }
  .reviews__filters {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
  }
  .product-details__gallery {
    flex-direction: column-reverse;
    width: 100%;
    gap: 20px;
  }
  .product-details__thumbs {
    display: none;
  }
  .product-details__main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    box-shadow: var(--shadow-md);
  }
  .product-description__title,
  .product-details__price,
  .product-details__title,
  .reviews__title {
    font-size: 32px;
  }
  .product-details__period-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    flex-wrap: unset;
  }
  /* Сброс layout-классов на мобильных - всегда 2 колонки */
  .product-details__period-options.layout-cols-4,
  .product-details__period-options.layout-cols-3,
  .product-details__period-options.layout-cols-2,
  .product-details__period-options.layout-chips {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: unset !important;
  }
  .product-details__period-options.layout-cols-4 .product-details__period-btn,
  .product-details__period-options.layout-cols-3 .product-details__period-btn,
  .product-details__period-options.layout-cols-2 .product-details__period-btn,
  .product-details__period-options.layout-chips .product-details__period-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-grow: unset !important;
  }
  .product-details__category-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .product-details__period-btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  .product-details__category-btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    height: 42px;
    min-height: 42px;
  }
  /* Pagination на мобильных */
  .pagination-nav {
    margin-top: 10px;
    height: 40px;
  }
  .pagination-arrow {
    width: 40px;
    height: 40px;
    padding: 13px;
  }
  .pagination-arrow-left {
    left: -5px;
  }
  .pagination-arrow-right {
    right: -5px;
  }
  .pagination-dot {
    width: 6px;
    height: 6px;
    padding: 13px;
    background-clip: content-box;
  }
  .pagination-dots {
    gap: 6px;
  }
  .product-details__actions {
    flex-wrap: nowrap;
  }
  .product-details__buy-btn,
  .reviews__bar-bg,
  .reviews__chart-row {
    max-width: 100%;
  }
  .product-description__text {
    font-size: 14px;
  }
  .reviews__filters {
    gap: 15px;
  }
  .reviews__filters::-webkit-scrollbar {
    display: none;
  }
  .review-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .review-card__time {
    align-self: flex-start;
  }
  .reviews__header {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: none;
  }
  .reviews__sidebar {
    flex-direction: column;
  }
  .reviews__histogram {
    width: 100%;
    flex: none;
  }
}
@media (max-width: 480px) {
  .product-details__title {
    font-size: 26px;
  }
  .product-details__thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
  }
  .product-details__period-btn {
    height: 42px;
    font-size: 14px;
    border-radius: 12px;
  }
  .product-details__category-btn {
    height: 42px;
    font-size: 14px;
    border-radius: 12px;
  }
  .product-details__buy-btn {
    font-size: 18px;
  }
  .reviews__header {
    flex-wrap: wrap;
  }
}
/* НАЧАЛО КОДА АНИМАЦИИ (СКЕЛЕТОН ЗАГРУЗКИ) */
.skeleton {
  background-color: var(--bg-disabled);
  background-image: linear-gradient(
    90deg,
    var(--bg-disabled) 0,
    var(--bg-tertiary) 40px,
    var(--bg-disabled) 80px
  );
  background-size: 200% 100%;
  background-position: 0;
  animation: 1.5s linear infinite skeleton-loading;
  border-radius: 20px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* КОНЕЦ КОДА АНИМАЦИИ (СКЕЛЕТОН ЗАГРУЗКИ) */

/* Анимация удаления из избранного */
@keyframes fadeOutCard {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.product-card.removing {
  animation: fadeOutCard 0.3s ease-out forwards;
  pointer-events: none;
}

.skeleton-text {
  display: inline-block;
  min-height: 1em;
  border-radius: 8px;
}
/* === PAYMENT MODAL START === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.payment-modal {
  background-color: var(--white);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 600px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-2xl);
  position: relative;
  box-sizing: border-box;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}
.pm-amount,
.pm-title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 45px;
  color: var(--black);
  line-height: 1;
  margin: 0;
}
.pm-input,
.pm-input-label,
.pm-note,
.pm-pay-btn,
.pm-tab-btn {
  font-family: SF-Pro-Display-Semibold, sans-serif;
}
.pm-close-btn {
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.pm-close-btn:hover {
  opacity: 0.6;
}
.pm-methods-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.pm-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.captcha-overlay.active,
.pm-card-fields,
.pm-footer,
.pm-pay-btn,
.pm-row,
.pm-tab-btn {
  display: flex;
}
.pm-tab-btn {
  flex: 1;
  height: 46px;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  padding: 0 10px;
  outline: 0;
}
.pm-tab-btn.active {
  background-color: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}
.pm-tab-btn:not(.active) {
  background-color: var(--white);
  color: var(--black);
  border: 1.5px solid var(--black);
}
.pm-tab-btn:not(.active):hover {
  background-color: #f0f0f0;
}
.pm-tab-btn[data-method="wallet"] {
  grid-column: 1/-1;
}
.pm-card-fields {
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s,
    transform 0.3s;
}
.pm-card-fields.hidden {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.pm-input-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1.5px solid var(--bg-gray);
  border-radius: 10px;
  padding: 8px 12px;
  min-height: 50px;
  box-sizing: border-box;
  background-color: var(--white);
  transition: border-color 0.2s;
  position: relative;
}
.pm-note,
.pm-pay-btn {
  transition: opacity 0.2s;
}
.pm-input-wrapper:focus-within {
  border-color: var(--black);
}
.pm-input-wrapper.error {
  border-color: #f54742;
  margin-bottom: 10px;
}
.pm-input-label {
  font-size: 10px;
  color: var(--text-disabled);
  line-height: 1;
  margin-bottom: 2px;
}
.pm-input {
  border: none;
  outline: 0;
  font-size: 16px;
  color: var(--black);
  background: 0 0;
  width: 100%;
  padding: 0;
}
.pm-input::placeholder {
  color: var(--bg-gray);
}
.pm-row {
  gap: 15px;
}
.pm-row > * {
  flex: 1;
}
.pm-footer {
  margin-top: auto;
  flex-direction: column;
  gap: 10px;
}
.pm-note {
  font-size: 10px;
  color: #d2d2d2;
  margin-top: 5px;
}
.pm-pay-btn {
  width: 100%;
  height: 46px;
  background-color: var(--black);
  color: var(--white);
  border-radius: 15px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}
@media (max-width: 600px) {
  .payment-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    max-height: 90vh;
    overflow-y: auto;
  }
  .pm-amount,
  .pm-title {
    font-size: 32px;
  }
  .pm-tab-btn {
    min-width: 45%;
  }
}
.captcha-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-heavy);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.captcha-box {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
}

/* --- ВРЕМЕННОЕ СКРЫТИЕ ПОЛЕЙ КАРТЫ --- */
.pm-card-fields {
  display: none !important;
}

@media (max-width: 600px) {
  .payment-modal {
    min-height: 380px;
  }
}
.payment-modal.wallet-modal {
  min-height: 322px;
}
/* === PAYMENT MODAL END === */

/* СТРАНИЦА УСПЕШНОЙ ОПЛАТЫ */

.tx-modal {
  /* Box Model */
  width: 100%;
  max-width: 540px;
  min-height: auto;
  box-sizing: border-box;

  /* Flexbox */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 24px;

  /* Styling */
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-xl); /* Optional depth */
  margin: auto;
  margin-bottom: 60px;
}

@media (max-width: 1130px) {
  .tx-modal {
    margin-top: 40px;
  }
}

/* --- Element: Header --- */
.tx-modal__header {
  width: 100%;
  max-width: 492px;
  min-height: 45px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center; /* JSON constraint */
  gap: 10px;
}

.tx-modal__title {
  margin: 0;
  font-size: 45px;
  font-weight: 700; /* Bold */
  color: var(--black);
  font-family: SF-Pro-Display-Bold, sans-serif;
  line-height: 1; /* Normal usually implies 1-1.2, tight for large headings */
  text-align: left;
}

.tx-modal__icon-close {
  width: 100%;
  max-width: 21px;
  min-height: 21px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tx-modal__icon-close svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Element: Price Row --- */
.tx-modal__price-row {
  width: 100%;
  max-width: 492px;
  min-height: 45px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 66px;
}

.tx-modal__price-row--single {
  justify-content: flex-end;
}

.tx-modal__amount {
  font-size: 45px;
  font-weight: 700;
  color: var(--black);
  font-family: SF-Pro-Display-Bold, sans-serif;
  line-height: normal;
}

.tx-modal__status-icon-wrapper {
  width: 100%;
  max-width: 45px;
  min-height: 45px;
  position: relative;
}

.tx-modal__status-icon {
  width: 100%;
  max-width: 45px;
  height: auto;
  display: flex;
}

.tx-modal__status-icon svg {
  width: 100%;
  height: auto;
}

/* --- Element: Details Section --- */
.tx-modal__details {
  width: 100%;
  max-width: 492px;
  min-height: auto;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
}

.tx-modal__details--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.tx-modal__detail-item {
  width: 100%;
  max-width: 359px;
  min-height: 37px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 5px;
}

.tx-modal__label {
  font-size: 16px;
  font-weight: 600; /* Semibold */
  color: var(--text-disabled);
  font-family: SF-Pro-Display-Semibold, sans-serif;
  line-height: normal;
  text-align: left;
}

.tx-modal__value {
  font-size: 16px;
  font-weight: 600; /* Semibold */
  color: var(--black);
  font-family: SF-Pro-Display-Semibold, sans-serif;
  line-height: normal;
  text-align: left;
  word-break: break-word;
}

.tx-error-note {
  margin-top: 0;
  margin-bottom: -10px;
  width: 100%;
}
.tx-error-note .tx-modal__value {
  color: #ff3b30;
  font-size: 14px;
  white-space: normal;
}

/* --- Element: Actions (Buttons) --- */
.tx-modal__actions {
  width: 100%;
  max-width: 492px;
  min-height: 46px;

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.tx-modal__btn {
  width: auto;
  flex: 1 0 calc(50% - 8px);
  max-width: 100%;
  min-height: 46px;
  padding: 15px 20px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;

  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  border-radius: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  transition: 0.2s;

  /* Flex grow ensures they fill space evenly up to max-width */
  flex-grow: 1;
}

.tx-modal__btn--hidden {
  display: none !important;
}

/* Modifier: Outline Button */
.tx-modal__btn--outline {
  background: transparent;
  border: 1.5px solid var(--black);
  color: var(--black);
}

.tx-modal__btn--outline:hover {
  background-color: #f0f0f0;
}

/* Modifier: Filled Button */
.tx-modal__btn--filled {
  background: var(--black);
  border: 1.5px solid var(--black); /* Matching border for sizing consistency */
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.tx-modal__btn--filled:hover {
  opacity: 0.8;
}

/* Mobile Adjustment for screens (< 600px) */
@media (max-width: 600px) {
  .tx-modal {
    padding: 20px;
    width: calc(100% - 30px);
    min-height: auto;
    gap: 0;
  }

  .tx-modal__details {
    margin-bottom: 14px;
  }

  .tx-modal__title,
  .tx-modal__amount {
    font-size: 28px;
  }

  .tx-modal__price-row {
    gap: 15px;
  }

  .tx-modal__actions {
    flex-direction: column;
    gap: 10px;
  }

  .tx-modal__status-icon-wrapper {
    max-width: 35px;
    min-height: 35px;
  }

  .tx-modal__status-icon {
    max-width: 35px;
  }

  .tx-modal__btn {
    font-size: 14px;
    padding: 12px;
    height: 42px;
    min-height: 42px;
    width: 100%;
    flex: initial;
  }

  .tx-modal__label,
  .tx-modal__value {
    font-size: 14px;
  }
}

/* Mobile Adjustment for extremely small screens (< 400px) */
@media (max-width: 400px) {
  .tx-modal {
    padding: 15px;
    width: calc(100% - 20px);
  }

  .tx-modal__title,
  .tx-modal__amount {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  .settings-profile-block {
    justify-content: center;
    width: 100%;
  }
}

/* ФУТЕР */
/* НАЧАЛО КОДА ФУТЕРА */

.footer {
  position: relative;
  width: 100%;
  max-width: 1840px;
  min-height: 574px;
  margin: 0 auto;
  overflow: hidden;
}

.axo-footer {
  position: relative;
  width: 100%;
  max-width: 1840px;
  max-height: 535px;
  height: 535px;
  background-color: var(--white);
  border-radius: 35px;
  padding: 50px;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  gap: 70px;
  overflow: hidden;
}

.axo-footer__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.axo-footer__nav {
  display: flex;
  gap: 60px;
  flex-wrap: nowrap;
}

.axo-footer__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 215px;
  min-width: 215px;
}

.axo-footer__header {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-faded);
  line-height: normal;
}

.axo-footer__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 30px;
}

.axo-footer__divider {
  width: 0px;
  border-left: 1px solid rgba(197, 197, 197, 1);
  min-height: 100%; /* Fill available height */
}

.axo-footer__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  max-width: 185px;
}

.axo-footer__link {
  font-family: SF-Pro-Display-Light, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.axo-footer__link:hover {
  opacity: 0.7;
}

.axo-btn-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 185px;
}

.axo-btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background-color: var(--black);
  border-radius: 15px;
  width: 100%;
  max-width: 158px;
  min-height: 50px;
  cursor: pointer;
  text-decoration: none;
}

.axo-btn-primary__text {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.axo-btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  border: 1.5px solid var(--black);
  border-radius: 15px;
  width: 100%;
  max-width: 147px;
  min-height: 50px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.axo-btn-outline__text {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.axo-copyright {
  font-family: SF-Pro-Display-Light, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  margin-top: auto;
  text-transform: uppercase;
}

.footer-logo {
  position: relative;
  top: 20px;
  white-space: nowrap;
  font-family: SF-Pro-Display-Bold-Italic, sans-serif;
  font-size: 280px;
  color: var(--text-primary);
  line-height: 0.8;
  letter-spacing: -24px;
  transition:
    font-size 0.3s ease,
    top 0.3s ease,
    letter-spacing 0.3s ease;
}

@media (max-width: 1445px) {
  .axo-footer__nav {
    flex-wrap: wrap;
    max-width: 500px;
  }
  .axo-footer__column {
    width: auto;
    flex: 1 1 200px;
  }
  .axo-footer {
    height: auto;
    max-height: none;
    min-height: 535px;
  }
  .footer-logo {
    font-size: 15vw !important;
    letter-spacing: -1.2vw !important;
    top: 20px !important;
    width: 100%;
  }
}

@media (max-width: 1110px) {
  .axo-footer__nav {
    gap: 30px;
  }
}

@media (max-width: 1110px) {
  .axo-footer {
    padding: 30px 20px;
    height: auto;
    max-height: none;
    flex-direction: column;
  }

  .footer {
    padding: 0 15px;
    padding-bottom: 90px;
  }

  .axo-footer__nav {
    flex-wrap: wrap;
    gap: 40px;
    max-width: 100%;
  }

  .axo-footer__column {
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }

  .axo-footer__list,
  .axo-btn-group {
    max-width: 100%;
  }

  .axo-btn-primary,
  .axo-btn-outline {
    max-width: 100%;
  }

  .footer-logo {
    display: none !important;
  }
}
/* КОНЕЦ КОДА ФУТЕРА */

/* ============================================ */
/* ОРИГИНАЛЬНЫЕ СТИЛИ МОДАЛЬНОГО ОКНА "ТРЕБУЕТСЯ АВТОРИЗАЦИЯ" */
/* Создано на главной странице (index.html) */
/* Используется для блокировки действий неавторизованных пользователей */
/* ============================================ */

.auth-required-modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-req-title {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 45px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin: 0;
  text-align: center;
  width: 100%;
}

.auth-req-text {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  line-height: normal;
  margin: 10px 0;
}

.auth-req-actions {
  display: flex;
  width: 100%;
  gap: 15px;
}

.auth-req-btn {
  flex: 1;
  height: 46px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: SF-Pro-Display-Semibold, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.auth-req-btn--outline {
  background: transparent;
  border: 1.5px solid var(--black);
  color: var(--black);
}

.auth-req-btn--outline:hover {
  background-color: #f0f0f0;
}

.auth-req-btn--filled {
  background: var(--black);
  border: 1.5px solid var(--black);
  color: var(--white);
}

.auth-req-btn--filled:hover {
  opacity: 0.8;
}

@media (max-width: 600px) {
  .auth-required-modal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
    height: 315px;
  }
  .auth-req-title,
  .auth-req-text {
    text-align: left;
  }
  .auth-req-actions {
    flex-direction: column;
  }
  .auth-req-btn {
    width: 100%;
    flex: none;
    min-height: 46px;
  }
}

/* ============================================ */
/* КОНЕЦ СТИЛЕЙ МОДАЛЬНОГО ОКНА "ТРЕБУЕТСЯ АВТОРИЗАЦИЯ" */
/* ============================================ */

/* ===== 404 ===== */
.notfound {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.notfound__bg {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.notfound__bg span {
  font-family: SF-Pro-Display-Bold-Italic, sans-serif;
  font-size: 720px; /* требование: 720px на фоне (десктоп) */
  line-height: 1;
  letter-spacing: -0.06em;
  transform: translateX(-0.06em);
  color: var(--accent-pink);
  opacity: 0.1; /* прозрачность 90% (видно 10%) */
  text-transform: lowercase;
  white-space: nowrap;
}

.notfound__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
  max-width: 820px;
}

.notfound__text {
  font-family: SF-Pro-Display-Regular, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}

.notfound__support {
  font-family: SF-Pro-Display-Semibold, sans-serif;
  color: var(--accent-pink);
  text-decoration: none;
  text-transform: lowercase;
}

.notfound__support:hover {
  text-decoration: underline;
}

/* ===== адаптив ===== */
@media (max-width: 1024px) {
  .notfound__bg span {
    font-size: clamp(260px, 55vw, 720px);
  }
}

@media (max-width: 520px) {
  .notfound {
    padding: 28px 0;
  }
  .notfound__text {
    font-size: 14px;
  }
  .notfound__bg span {
    font-size: clamp(220px, 70vw, 420px);
    line-height: 1;
  }
}

/* Desktop scrollbar stability */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-gutter: stable;
    background-color: var(--bg-body);
  }
  @supports not (scrollbar-gutter: stable) {
    html {
      overflow-y: scroll;
    }
  }
  html::-webkit-scrollbar {
    width: 10px;
    background-color: var(--bg-body);
  }
  html::-webkit-scrollbar-thumb {
    background-color: #d1d1d6;
    border-radius: 5px;
    border: 2px solid var(--bg-body);
  }
  html::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-gray);
  }
  html {
    scrollbar-width: thin;
    scrollbar-color: #d1d1d6 var(--bg-body);
  }
  html.modal-open {
    background-color: var(--overlay-modal);
    scrollbar-color: rgba(209, 209, 214, 0.7) rgba(0, 0, 0, 0.5);
  }
  html.modal-open::-webkit-scrollbar,
  html.modal-open::-webkit-scrollbar-track {
    background-color: var(--overlay-modal);
  }
}

@media (min-width: 769px) {
  .product-details__category-options.layout-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 125px);
    gap: 15px;
    grid-auto-flow: row;
  }
  .product-details__category-options.layout-cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 125px);
    gap: 15px;
    grid-auto-flow: row;
  }
  .product-details__category-options.layout-cols-4 .product-details__category-btn,
  .product-details__category-options.layout-cols-5 .product-details__category-btn {
    width: 125px;
    height: 45px;
    border-radius: 15px;
    min-width: 0;
    padding: 0;
  }

  /* Massive Products: адаптивная сетка вариантов 3/4 колонки */
  .product-details__period-options.layout-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 688px;
    grid-auto-flow: row;
  }
  .product-details__period-options.layout-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 688px;
    grid-auto-flow: row;
  }
  .product-details__period-options.layout-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 688px;
    grid-auto-flow: row;
  }
  .product-details__period-options.layout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 688px;
  }
  .product-details__period-options.layout-chips .product-details__period-btn {
    width: auto;
    min-width: 60px;
    flex-grow: 0;
  }
  .product-details__period-options.layout-cols-5 .product-details__period-btn,
  .product-details__period-options.layout-cols-4 .product-details__period-btn,
  .product-details__period-options.layout-cols-3 .product-details__period-btn,
  .product-details__period-options.layout-cols-2 .product-details__period-btn {
    width: 100%;
    height: 45px;
    border-radius: 15px;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 45px;
  }
}

/* Pagination Navigation Styles */
/* Pagination Navigation Styles */
.pagination-nav {
  position: relative;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pagination-arrow {
  position: absolute;
  width: 43px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 15px;
  transition: opacity 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.pagination-arrow--disabled {
  color: var(--text-faded);
  cursor: not-allowed;
}

.pagination-arrow:hover:not(:disabled) {
  opacity: 0.7;
}

.pagination-arrow:active:not(:disabled) {
  transform: scale(0.95);
}

.pagination-arrow-left {
  left: -5px;
}

.pagination-arrow-right {
  right: -5px;
}

.pagination-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-dot {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  background-color: transparent;
  position: relative;
  flex-shrink: 0;
}

.pagination-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--bg-skeleton);
  transition: background-color 0.3s;
}

.pagination-dot--active::before {
  background-color: var(--black);
}

.pagination-dot:hover {
  transform: scale(1.2);
}

.pagination-dot:active {
  transform: scale(0.9);
}

/* Анимация перехода между страницами */
.pagination-transitioning {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Redirect Page Styles */
.redirect-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-body);
  margin: 0;
}
.redirect-text {
  font-family: SF-Pro-Display-Bold, sans-serif;
  font-size: 32px;
  color: var(--black);
  text-align: center;
}
.loading-dots::after {
  content: '';
  animation: dots 1.5s infinite steps(1);
}
@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ============================================================================
   ПОИСКОВЫЙ ДВИЖОК КАТЕГОРИЙ
   ============================================================================ */

.search-highlight {
  background-color: rgba(255, 193, 7, 0.3);
  color: inherit;
  font-weight: 600;
  padding: 0;
  border-radius: 2px;
}

/* Autocomplete dropdown для главной страницы */
.search.mobile-search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-gray);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.search-dropdown--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--border-divider);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result--active {
  background-color: var(--overlay-light);
}

.search-result__name {
  flex: 1;
  font-size: 14px;
  font-family: SF-Pro-Display-Regular, sans-serif;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.search-result__badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-family: SF-Pro-Display-Regular, sans-serif;
  text-transform: lowercase;
  background-color: var(--overlay-medium);
  color: var(--text-primary);
  border-radius: 12px;
  flex-shrink: 0;
}

.search-result__badge--category {
  background-color: var(--overlay-medium);
  color: var(--text-primary);
}

.search-dropdown__empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--overlay-text);
  font-size: 13px;
  font-family: SF-Pro-Display-Regular, sans-serif;
  box-shadow: none;
}

.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: var(--overlay-dark);
  border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--overlay-darker);
}

/* Фильтр для страницы каталога */
.catalog-filter {
  margin-bottom: 24px;
}

.catalog-filter__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: SF-Pro-Display-Regular, sans-serif;
}

.catalog-filter__input:focus {
  border-color: var(--accent-pink);
}

.catalog-filter__empty {
  padding: 40px 20px 40px 0;
  text-align: left;
  color: var(--text-gray);
  font-size: 16px;
}

[data-category-item] {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-category-item][style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .search-dropdown {
    max-height: 300px;
  }

  .search-result {
    padding: 10px 12px;
  }

  .search-result__name {
    font-size: 14px;
  }

  .search-result__badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}
