body.home {
  background-color: #FFFFFF;
}

.home-banners-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: 67px;
}
.home-banners-cards__item {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  border-radius: var(--radius-20);
  overflow: hidden;
}
.home-banners-cards__item-title {
  position: absolute;
  bottom: 65px;
  left: var(--space-16);
  font-weight: var(--weight-600);
  font-size: 24px;
  line-height: 26px;
  color: var(--color-text-white);
}
.home-banners-cards__item-link {
  position: absolute;
  bottom: var(--space-16);
  left: var(--space-16);
  height: 37px;
  line-height: 37px;
  padding: 0 var(--space-12);
  font-size: 14px;
}
.home-banners-cards__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-nav__link.in-brands {
  display: none;
}
.big-banner {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-20);
  margin-top: var(--space-8);
}
.big-banner--bp {
  margin-top: 67px;
}
.big-banner img {
  width: 100%;
}
.home-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-12);
  gap: 10px;
  margin-top: var(--space-8);
  background: var(--color-surface-soft);
  border-radius: var(--radius-30);
}
.home-nav__catalog {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.home-nav__link {
  display: inline-block;
  padding: 0 var(--space-12);
  height: 41px;
  line-height: 41px;
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-20);
  font-weight: var(--weight-600);
  font-size: 14px;
  color: var(--color-text);
  transition: background-color 0.2s ease;
}
.home-nav__link:hover {
  background: #F9F9F9;
}
.home-nav__link.in-catalog {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--color-btn-main--default);
  color: var(--color-text-white);
  font-weight: var(--weight-700);
}
.home-nav__link.in-catalog:hover {
  background: #FF905B;
}
.home-nav__link.in-catalog svg {
  fill: none;
  height: 16px;
}
.home-nav__link.in-brands {
  font-weight: var(--weight-700);
}
.home-nav__user {
  display: flex;
  gap: var(--space-8);
}
.home-nav__button {
  width: 50%;
  height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  gap: var(--space-8);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-20);
  font-weight: var(--weight-600);
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: var(--color-text);
}
.home-nav__button.login {
  background: var(--color-accent-soft-3);
}
.home-nav__button.login .nav-icon {
  position: relative;
  background: var(--color-accent-soft-4);
  border: 2px solid var(--color-accent-border);
}
.home-nav__button.login:hover .nav-icon {
  box-shadow: 0px 0px 45px -6px #fffcef;
}
.home-nav__button.orders {
  background: var(--color-white);
}
.home-nav__button.orders .nav-icon {
  background: var(--color-neutral-soft-2);
  border: 2px solid var(--color-neutral-soft);
}
.home-nav__button.orders:hover {
  background: #F9F9F9;
}
.home-nav__button .nav-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 86px;
  height: 66px;
  border-radius: var(--radius-20);
}
.home-nav__button .nav-icon .icon {
  width: 26px;
  height: 26px;
}
@media (max-width: 767px) {
  .home-banners-cards__item img {
    min-height: 292px;
  }
  .home-banners-cards__item .home-banners-cards__item-link {
    height: 37px;
    line-height: 37px;
    bottom: 17px;
    left: 15px;
  }
  .home-nav__link.in-catalog {
    gap: 0;
  }
  .home-banners-cards--three .home-banners-cards__item {
    flex: 0 0 100%;
    width: 100%;
    height: 292px;
  }
  .home-banners-cards--three .home-banners-cards__item img {
    min-height: 0;
  }
}
@media (min-width: 500px) {
  .home-banners-cards__item {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
  }
}
@media (min-width: 768px) and (max-width: 1179px) {
  .home-banners-cards {
    margin-top: 61px;
    gap: 10px 8px;
  }
  .home-nav__link.in-catalog {
    gap: 3px;
    padding-right: 0px;
  }
  .home-nav__button.login {
    height: 139px;
    width: 137px;
  }
  .home-nav__button.orders {
    height: 139px;
    width: 128px;
  }
  .home-banners-cards__item {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px);
  }
  .big-banner {
    margin-top: 60px;
  }
  .home-nav {
    margin-top: 60px;
    flex-direction: row;
  }
  .home-banners-cards--three .home-banners-cards__item {
    flex: 0 0 100%;
    width: 100%;
    height: 350px;
  }
  .home-banners-cards--three .home-banners-cards__item img {
    max-height: 350px;
  }
  .home-banners-cards__item-title {
    bottom: 96px;
    left: 30px;
  }
  .home-banners-cards__item .home-banners-cards__item-link {
    left: 30px;
    height: 52px;
    line-height: 52px;
    bottom: 27px;
    font-size: 16px;
    padding: 0 19px;
    letter-spacing: 0.4px;
  }
}
@media (min-width: 1180px) and (max-width: 1359px) {
  .home-banners-cards {
    margin-top: 80px;
  }
  .home-banners-cards--three {
    gap: 20px;
  }
  .home-banners-cards--three .home-banners-cards__item {
    flex: 0 0 380px;
    width: 380px;
    min-height: 348px;
  }
}
@media (min-width: 1180px) {
  .home-banners-cards {
    margin-top: 100px;
    gap: 20px;
  }
  .home-banners-cards__item {
    flex: 0 0 calc(33% - 10px);
    width: calc(33% - 10px);
  }
  .home-banners-cards__item .home-banners-cards__item-link {
    height: 52px;
    line-height: 52px;
    padding: 0 20px;
    font-size: 16px;
    bottom: 30px;
    left: 30px;
  }
  .home-banners-cards__item-title {
    bottom: 98px;
    left: 30px;
  }
  .big-banner {
    margin-top: 80px;
  }
  .home-nav {
    margin-top: 80px;
    padding: 0;
    background: transparent;
    gap: 20px;
    flex-direction: row;
  }
  .home-nav__catalog,
  .home-nav__user {
    background: var(--color-surface-soft);
    border-radius: var(--radius-30);
    padding: var(--space-16);
  }
  .home-nav__link {
    height: 52px;
    line-height: 52px;
    font-size: 16px;
    padding: 0 16px;
  }
  .home-nav__link svg {
    width: 10px;
  }
  .home-nav__button {
    width: 170px;
    height: 112px;
    font-size: 16px;
  }
  .home-nav__button .nav-icon {
    width: 78px;
    height: 60px;
  }
  .home-nav__button .nav-icon svg {
    width: 26px;
    height: 26px;
  }
}
@media (min-width: 1360px) {
  .home-nav__catalog,
  .home-nav__user {
    padding: 19px 16px;
  }
  .home-nav {
    margin-top: 100px;
  }
  .home-nav__link.in-catalog {
    background: var(--color-btn-main--default);
    color: white;
  }
  .home-nav__link.in-brands {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    box-shadow: var(--shadow-xs);
    color: var(--color-text);
    font-weight: var(--weight-700);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .home-nav__link.in-brands:hover {
    background: #F9F9F9;
  }
  .home-nav__link.in-brands svg.icon {
    fill: none;
    height: 16px;
  }
  .big-banner {
    margin-top: 100px;
  }
  .home-nav__button {
    width: 257px;
    height: 113px;
    flex-direction: row;
  }
  .home-nav__button span.nav-icon {
    order: 2;
  }
  .home-nav__button.login {
    background: var(--color-accent-soft-3);
  }
  .home-nav__button.login .nav-icon {
    background: var(--color-accent-soft-4);
    border: 2px solid var(--color-accent-border);
  }
  .home-nav__button.orders {
    background: var(--color-white);
  }
  .home-nav__button.orders .nav-icon {
    background: var(--color-neutral-soft-2);
    border: 2px solid var(--color-neutral-soft);
  }
  .home-banners-cards__item-title {
    font-size: 32px;
    line-height: 39px;
  }
  .home-banners-cards--three {
    gap: 20px;
  }
  .home-banners-cards--three .home-banners-cards__item {
    flex: 0 0 440px;
    width: 440px;
    min-height: 400px;
  }
}

/* Сетка брендов на главной (Frame 730 по брейкпоинтам).
   Боковые padding — только от .container; margin секции — на section. */
.pflame-home-brands {
  margin-top: 37px; /* 320–767 */
  margin-bottom: 37px;
}
/* <1180: полоса уходит за правый край .container, скролл без полосы */
.pflame-home-brands__scroller {
  margin-right: calc(-1 * var(--container-pad-mobile));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pflame-home-brands__scroller::-webkit-scrollbar {
  display: none;
}
/* Следующий .big-banner уже даёт свой margin-top — обнуляем, чтобы не удвоить зазор */
.pflame-home-brands + .pflame-home-midbanner .big-banner {
  margin-top: 0;
}
.pflame-home-brands__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  /* 320–767: node 7540:28327 — ширина полосы 940, лого 30px, ряд 30, между 50 */
  width: 940px;
  gap: 30px 50px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pflame-home-brands__item {
  flex: 0 0 auto;
  margin: 0;
}
.pflame-home-brands__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  text-decoration: none;
  color: var(--color-text);
}
.pflame-home-brands__logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.pflame-home-brands__name {
  font-weight: var(--weight-600);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 1179px) {
  .pflame-home-brands {
    margin-top: 60px;
    margin-bottom: 60px;
  }
  .pflame-home-brands__scroller {
    margin-right: calc(-1 * var(--container-pad));
  }
  .pflame-home-brands__list {
    /* 768–1179: node 7540:28164 — ширина полосы 1205, лого 40px, ряд 40, между 60 */
    width: 1205px;
    gap: 40px 60px;
  }
  .pflame-home-brands__link {
    height: 40px;
  }
  .pflame-home-brands__logo {
    height: 40px;
    max-width: 210px;
  }
  .pflame-home-brands__name {
    font-size: 14px;
  }
}
@media (min-width: 1180px) {
  .pflame-home-brands {
    margin-top: 80px; /* 1180–1359 */
    margin-bottom: 80px;
  }
  .pflame-home-brands__scroller {
    margin-right: 0;
    overflow: visible;
  }
  .pflame-home-brands__list {
    /* 1180–1359: node 7540:28001 — лого 40px, ряд 40, между 50 */
    width: auto;
    max-width: 100%;
    gap: 40px 50px;
  }
  .pflame-home-brands__link {
    height: 40px;
  }
  .pflame-home-brands__logo {
    height: 40px;
    max-width: 210px;
  }
  .pflame-home-brands__name {
    font-size: 14px;
  }
}
@media (min-width: 1360px) {
  .pflame-home-brands {
    margin-top: 100px;
    margin-bottom: 100px;
  }
  .pflame-home-brands__list {
    /* ≥1360 — текущий десктопный макет: ряд 40, между 90 */
    gap: 40px 90px;
  }
}
