/* ---------- Header ---------- */
.container-header .navbar-brand {
  max-width: 190px;
}
.container-header .brand-logo svg {
  display: block;
}
@media (max-width: 575.98px) {
  .container-header .navbar-brand {
    max-width: 150px;
  }
}
@media (min-width: 992px) {
  .container-header .navbar-brand {
    width: 190px;
  }
  /* Contacts take the whole row between the logo and the "Консультация" button */
  .container-header .header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .container-header .header-contacts > .mod-custom {
    flex: 1 1 auto;
  }
  .container-header .container-contacts__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 4px 24px;
  }
  .container-header .container-contacts__items div {
    margin-right: 0;
  }
  .container-header .header-contacts > .button {
    flex: none;
  }
  /* The main menu is visible from 992px, so it is the part that sticks on scroll */
  header.container-header {
    position: relative;
  }
  .main-menu {
    position: sticky;
    top: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Not enough room for four contacts in one line: two columns, two rows */
  .container-header .container-contacts__items {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-evenly;
  }
}

/* ---------- Banner: "Выгодные предложения" label ---------- */
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 30px;
}
.banner .banner-actions .button {
  margin-top: 0;
}
.promo-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 26px 9px 10px;
  border: 1px solid var(--yellow-primary);
  border-radius: 40px;
  background: rgba(3, 3, 3, 0.55);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.promo-label__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow-primary);
  color: var(--gray-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}
.promo-label__icon:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(250, 181, 4, 0.6);
  animation: promo-pulse 2s infinite;
}
.promo-label:hover,
.promo-label:focus {
  background: var(--yellow-primary);
  color: var(--gray-primary);
  box-shadow: 0 0 24px rgba(250, 181, 4, 0.45);
}
.promo-label:hover .promo-label__icon,
.promo-label:focus .promo-label__icon {
  background: var(--gray-primary);
  color: var(--yellow-primary);
}
@keyframes promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 181, 4, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(250, 181, 4, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 181, 4, 0); }
}
@media (max-width: 991px) {
  .promo-label {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo-label__icon:before { animation: none; }
}

/* ---------- Homepage: YG-1 brand block ---------- */
.brand-promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--gray-secondary);
  overflow: hidden;
}
.brand-promo:after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 320px;
  top: -160px;
  right: -80px;
  border-radius: 50%;
  background: #6f6f6f;
  filter: blur(112px);
  transition: 0.2s;
}
.brand-promo:hover:after {
  background: var(--yellow-primary);
}
.brand-promo > * {
  position: relative;
  z-index: 1;
}
.brand-promo__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 140px;
  padding: 24px;
  background: #fff;
}
.brand-promo__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-promo__body {
  flex: 1 1 auto;
}
.brand-promo__eyebrow {
  margin-bottom: 8px;
  color: var(--yellow-primary);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-promo__body h3 {
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}
.brand-promo__body p {
  margin: 0;
  color: #cfcfcf;
  line-height: 150%;
}
.brand-promo__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 220px;
}
.brand-promo__actions .button {
  width: 100%;
  max-width: none;
  padding: 12px 20px;
}
@media (max-width: 991.98px) {
  .brand-promo {
    flex-wrap: wrap;
    gap: 24px;
    padding: 28px 20px;
  }
  .brand-promo__logo {
    width: 160px;
    height: 100px;
    padding: 16px;
  }
  .brand-promo__body {
    flex-basis: calc(100% - 184px);
  }
  .brand-promo__actions {
    flex-direction: row;
    width: 100%;
  }
  .brand-promo__actions .button {
    flex: 1 1 0;
  }
}
@media (max-width: 575.98px) {
  .brand-promo__body {
    flex-basis: 100%;
  }
  .brand-promo__actions {
    flex-direction: column;
  }
}

/* ---------- "Выгодные предложения" page ---------- */
.offers-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 30px;
  padding: 0;
  list-style: none;
}
.offers-filter__btn {
  padding: 10px 22px;
  border: 1px solid #5f5f5f;
  border-radius: 40px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.offers-filter__btn:hover {
  border-color: var(--yellow-primary);
  color: var(--yellow-primary);
}
.offers-filter__btn.is-active {
  border-color: var(--yellow-primary);
  background: var(--yellow-primary);
  color: var(--gray-primary);
}
.offers-item[hidden] {
  display: none !important;
}
.offers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  background: var(--gray-secondary);
  text-align: center;
}
.offers-empty[hidden] {
  display: none;
}
.offers-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow-primary);
  color: var(--gray-primary);
  font-size: 30px;
  font-weight: 800;
}
.offers-empty h3 {
  margin: 8px 0 0;
  color: #fff;
}
.offers-empty p {
  max-width: 560px;
  margin: 0;
  color: #cfcfcf;
}

/* ---------- YG-1 page ---------- */
.brand-page__intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.brand-page__intro .brand-promo__logo {
  margin-top: 6px;
}
.brand-page__text p {
  color: #e9ecef;
  line-height: 160%;
}
.brand-facts {
  margin-top: 30px;
}
.brand-facts .advantages-card {
  height: 100%;
}
.brand-facts .advantages-card h5 {
  margin: 0;
}
.catalog-item-row .catalog-item-row__size {
  display: block;
  margin-top: 4px;
  color: #6f6f6f;
  font-size: 14px;
  font-weight: 400;
}
@media (max-width: 767.98px) {
  .brand-page__intro {
    flex-direction: column;
    gap: 20px;
  }
  .catalog-item-row > [class*="col"] {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 10px;
  }
  .catalog-item-row > .col-2 {
    margin-top: 0;
  }
}
