/* =========================================================
   БАД — УНИВЕРСАЛЬНАЯ СТРАНИЦА РЕШЕНИЯ
   ========================================================= */

.bad-product-page {
  padding: 100px 0 70px;
  background: #f3f3f3;
  font-family: "Montserrat", sans-serif;
  color: #000;
}

.bad-product-page *,
.bad-product-page *::before,
.bad-product-page *::after {
  box-sizing: border-box;
}

.bad-product-page__container {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
}


/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */

.bad-breadcrumbs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;

  width: 100%;
  margin: 0 0 28px;

  font-family: "Montserrat", sans-serif;
}

.bad-breadcrumbs__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  min-height: 19px;

  color: #000;
  font-size: 12px;
  line-height: 19px;
}

.bad-breadcrumbs__home {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;
  flex: 0 0 19px;

  margin: 0;
  padding: 0;

  color: #000;
  text-decoration: none;
}

.bad-breadcrumbs__home img {
  display: block;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.bad-breadcrumbs__spacer {
  width: 19px;
  height: 1px;
  flex: 0 0 19px;
}

.bad-breadcrumbs__sep {
  color: #000;
}

.bad-breadcrumbs a {
  color: #000;
  text-decoration: none;
}

.bad-breadcrumbs a:hover {
  color: #3070d7;
  text-decoration: underline;
}

.bad-breadcrumbs__current {
  color: rgba(0, 0, 0, 0.4);
}


/* =========================================================
   ОСНОВНАЯ СЕТКА
   ========================================================= */

.bad-product-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}


/* =========================================================
   ЛЕВАЯ КОЛОНКА / НАВИГАЦИЯ ПО РЕЦЕПТУРАМ
   ========================================================= */

.bad-related {
  min-width: 0;
}

.bad-related__mobile-head,
.bad-related__dots {
  display: none;
}

.bad-solutions-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bad-solutions-nav__card {
  position: relative;

  min-height: 116px;

  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 13px;
  align-items: center;

  padding: 14px 38px 14px 14px;

  border-radius: 20px;
  background: #fff;

  color: #000;
  text-decoration: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.bad-solutions-nav__card:hover {
  transform: translateY(-2px);
}

.bad-solutions-nav__card.is-current {
  opacity: 0.42;
  pointer-events: none;
}

.bad-solutions-nav__image {
  width: 105px;
  height: 88px;

  border-radius: 12px;
  overflow: hidden;
  background: #f2eeec;
}

.bad-solutions-nav__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bad-solutions-nav__content {
  min-width: 0;
}

.bad-solutions-nav__number {
  display: inline-flex;

  margin-bottom: 7px;
  padding: 4px 9px;

  border-radius: 999px;
  background: #3070d7;

  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 600;
}

.bad-solutions-nav__name {
  display: block;

  margin-bottom: 5px;

  font-size: 16px;
  line-height: 1.05;
  font-weight: 600;
}

.bad-solutions-nav__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  color: rgba(0, 0, 0, 0.45);
  font-size: 8px;
  line-height: 1.25;
}

.bad-solutions-nav__arrow {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #f2f2f2;

  color: #000;
  font-size: 12px;
}


/* =========================================================
   КАРТОЧКА ВЫБРАННОГО РЕШЕНИЯ
   ========================================================= */

.bad-solution {
  min-width: 0;

  padding: 48px;

  border-radius: 30px;
  background: #fff;
}


/* Hero */

.bad-solution__hero {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.bad-solution__hero-media {
  width: 250px;
  height: 250px;

  border: 1px solid #3070d7;
  border-radius: 18px;

  overflow: hidden;
  background: #f1eeec;
}

.bad-solution__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bad-solution__hero-copy {
  min-width: 0;
}

.bad-solution__badge {
  display: inline-flex;

  margin-bottom: 17px;
  padding: 7px 18px;

  border-radius: 999px;
  background: #3070d7;

  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.bad-solution__title {
  max-width: 520px;

  margin: 0;

  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.bad-solution__lead {
  max-width: 500px;

  margin: 22px 0 0;

  font-size: 15px;
  line-height: 1.18;
  font-weight: 500;
}

.bad-solution__separator {
  height: 1px;

  margin: 40px 0 35px;

  background: rgba(0, 0, 0, 0.10);
}


/* =========================================================
   ОСНОВНОЙ КОНТЕНТ РЕШЕНИЯ
   ========================================================= */

.bad-solution__details {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(270px, 0.82fr);
  gap: 58px;
}

.bad-solution__details-main,
.bad-solution__details-side {
  min-width: 0;
}

.bad-solution__section + .bad-solution__section {
  margin-top: 28px;
}

.bad-solution__section-title {
  margin: 0 0 14px;

  color: #3070d7;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.bad-solution__text {
  margin: 0;

  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.bad-solution__text--muted {
  color: rgba(0, 0, 0, 0.48);
}

.bad-solution__ingredient {
  margin: 0 0 13px;

  font-size: 14px;
  line-height: 1.42;
}

.bad-solution__ingredient:last-child {
  margin-bottom: 0;
}

.bad-solution__ingredient strong {
  font-weight: 700;
}


/* Характеристики */

.bad-solution__specs {
  margin: 0;
}

.bad-solution__spec {
  display: grid;
  grid-template-columns: 42% 58%;

  padding: 10px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.12);

  font-size: 13px;
  line-height: 1.3;
}

.bad-solution__spec dt {
  color: rgba(0, 0, 0, 0.42);
  font-weight: 400;
}

.bad-solution__spec dd {
  margin: 0;
  padding-left: 14px;
  font-weight: 400;
}


/* CTA */

.bad-solution__cta {
  margin-top: 44px;
}

.bad-solution__cta-button {
  width: 100%;
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  border: 0;
  border-radius: 999px;

  background: #f56f00;
  color: #fff;

  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.bad-solution__cta-button:hover {
  background: #df6400;
  transform: translateY(-1px);
}


/* =========================================================
   TABLET <= 992px
   Основной блок сверху, 4 других комплекса снизу в сетке 2x2
   ========================================================= */

@media (max-width: 992px) {

  .bad-product-page {
    padding-top: 60px;
  }

  .bad-product-page__container {
    max-width: 760px;
  }

  .bad-product-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .bad-solution {
    order: 1;

    width: 100%;
    padding: 42px;

    border-radius: 28px;
  }

  .bad-related {
    order: 2;
    width: 100%;
  }

  .bad-solutions-nav__card.is-current {
    display: none;
  }

  .bad-solutions-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .bad-solutions-nav__card {
    min-height: 112px;

    grid-template-columns: 92px minmax(0, 1fr);

    padding: 12px 34px 12px 12px;

    border-radius: 17px;
  }

  .bad-solutions-nav__image {
    width: 92px;
    height: 84px;
  }

  .bad-solutions-nav__name {
    font-size: 14px;
  }

  .bad-solutions-nav__description {
    font-size: 7px;
  }

  .bad-solution__hero {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 36px;
  }

  .bad-solution__hero-media {
    width: 210px;
    height: 210px;
  }

  .bad-solution__title {
    font-size: 45px;
  }

  .bad-solution__lead {
    font-size: 14px;
  }

  .bad-solution__details {
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr);
    gap: 42px;
  }

  .bad-solution__text,
  .bad-solution__ingredient {
    font-size: 13px;
  }
}


/* =========================================================
   MOBILE <= 767px
   Hero и контент отдельными карточками.
   Другие 4 рецептуры — горизонтальный slider.
   ========================================================= */

@media (max-width: 767px) {

  .bad-product-page {
    padding: 22px 0 45px;
  }

  .bad-product-page__container {
    width: calc(100% - 28px);
    max-width: 430px;
  }


  /* Breadcrumbs */

  .bad-breadcrumbs {
    gap: 4px;
  }

  .bad-breadcrumbs__row {
    gap: 7px;

    font-size: 9px;
    line-height: 15px;
  }

  .bad-breadcrumbs__home {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .bad-breadcrumbs__home img {
    width: 16px;
    height: 16px;
  }

  .bad-breadcrumbs__spacer {
    width: 16px;
    flex-basis: 16px;
  }


  /* Layout */

  .bad-product-layout {
    gap: 38px;
  }

  .bad-solution {
    width: 100%;

    padding: 0;

    border-radius: 0;
    background: transparent;
  }


  /* Hero */

  .bad-solution__hero {
    display: flex;
    flex-direction: column;
    gap: 20px;

    padding: 22px 20px 20px;

    border-radius: 18px;
    background: #fff;
  }

  .bad-solution__hero-copy {
    order: 1;
    width: 100%;
  }

  .bad-solution__hero-media {
    order: 2;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.87;

    border: 0;
    border-radius: 14px;
  }

  .bad-solution__badge {
    margin-bottom: 13px;
    padding: 6px 13px;

    font-size: 10px;
  }

  .bad-solution__title {
    max-width: 100%;

    font-size: 35px;
    line-height: 0.98;
  }

  .bad-solution__lead {
    max-width: 100%;

    margin-top: 15px;

    font-size: 13px;
    line-height: 1.25;
  }

  .bad-solution__separator {
    display: none;
  }


  /* Content */

  .bad-solution__details {
    display: block;

    margin-top: 16px;
    padding: 24px 20px;

    border-radius: 18px;
    background: #fff;
  }

  .bad-solution__details-side {
    margin-top: 30px;
  }

  .bad-solution__section + .bad-solution__section {
    margin-top: 25px;
  }

  .bad-solution__section-title {
    margin-bottom: 12px;

    font-size: 10px;
  }

  .bad-solution__text,
  .bad-solution__ingredient {
    font-size: 13px;
    line-height: 1.38;
  }

  .bad-solution__ingredient {
    margin-bottom: 10px;
  }

  .bad-solution__spec {
    grid-template-columns: 42% 58%;

    padding: 9px 0;

    font-size: 13px;
    line-height: 1.3;
  }

  .bad-solution__spec dd {
    padding-left: 10px;
  }


  /* CTA */

  .bad-solution__cta {
    margin-top: 18px;
  }

  .bad-solution__cta-button {
    min-height: 46px;

    padding: 10px 16px;

    font-size: 11px;
  }


  /* Другие рецептуры / slider */

  .bad-related {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .bad-related__mobile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 17px;
    padding: 0 5px;
  }

  .bad-related__title {
    margin: 0;

    font-size: 28px;
    line-height: 0.95;
    font-weight: 600;
  }

  .bad-related__next {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: #3070d7;
    color: #fff;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
  }

  .bad-solutions-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    gap: 12px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .bad-solutions-nav::-webkit-scrollbar {
    display: none;
  }

  .bad-solutions-nav__card.is-current {
    display: none;
  }

  .bad-solutions-nav__card {
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 118px;

    grid-template-columns: 92px minmax(0, 1fr);

    margin: 0;

    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .bad-solutions-nav__card:hover {
    transform: none;
  }

  .bad-solutions-nav__arrow {
    width: 20px;
    height: 20px;

    font-size: 11px;
  }

  .bad-related__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-height: 22px;
    margin-top: 10px;
  }

  .bad-related__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }

  .bad-related__dot.is-active {
    background: #000;
  }
}


/* =========================================================
   SMALL MOBILE <= 480px
   ========================================================= */

@media (max-width: 480px) {

  .bad-product-page__container {
    width: calc(100% - 24px);
  }

  .bad-solution__title {
    font-size: 34px;
  }

  .bad-related__title {
    font-size: 27px;
  }
}
/* =========================================================
   TABLET — CONTENT TYPOGRAPHY
   768px–992px
   ========================================================= */

@media (min-width: 768px) and (max-width: 992px) {

  /* Подзаголовок под H1 */
  .bad-solution__lead {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Заголовки контентных разделов */
  .bad-solution__section-title {
    font-size: 14px;
    line-height: 1.25;
  }

  /* Основные описания */
  .bad-solution__text {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Активные компоненты */
  .bad-solution__ingredient {
    font-size: 14px;
    line-height: 1.45;
  }

  /* Характеристики */
  .bad-solution__spec {
    font-size: 14px;
    line-height: 1.35;
  }

  /* Карточки других комплексов */
  .bad-solutions-nav__description {
    font-size: 14px;
    line-height: 1.3;

    -webkit-line-clamp: 2;
  }

}