/* ==========================================================================
   TheCBD.ru — Страница «Контрактное производство продукции с CBD» (/production/)
   Figma: node-id=7481:2603
   ========================================================================== */

.cbd-prod-page {
  background: var(--cbd-bg, #ffffff);
  color: var(--cbd-ink, #202c25);
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   1. Первый экран (Hero)
   -------------------------------------------------------------------------- */
.cbd-prod-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #edf3eb;
}

.cbd-prod-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cbd-prod-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.cbd-prod-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cbd-prod-hero__blob {
  position: absolute;
  pointer-events: none;
  max-width: none;
}

.cbd-prod-hero__blob--1 {
  width: 892px;
  height: 892px;
  left: -109px;
  top: -175px;
}

.cbd-prod-hero__blob--2 {
  width: 438px;
  height: 438px;
  left: -120px;
  top: -20px;
}

.cbd-prod-hero__blob--3 {
  width: 503px;
  height: 503px;
  left: -128px;
  top: 260px;
}

.cbd-prod-hero__blob--4 {
  width: 385px;
  height: 385px;
  left: 220px;
  top: 170px;
}

.cbd-prod-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(244, 248, 243, 0.88) 0%,
    rgba(244, 248, 243, 0.72) 40%,
    rgba(244, 248, 243, 0.14) 68%,
    rgba(244, 248, 243, 0) 100%
  );
  pointer-events: none;
}

.cbd-prod-hero__inner {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 56px;
}

.cbd-prod-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 56px;
}

.cbd-prod-crumbs a {
  color: rgba(25, 25, 25, 0.72);
  text-decoration: none;
  transition: color 0.18s ease;
}

.cbd-prod-crumbs a:hover {
  color: #317627;
}

.cbd-prod-crumbs__sep {
  color: rgba(25, 25, 25, 0.45);
}

.cbd-prod-crumbs__current {
  color: #191919;
  font-weight: 600;
}

.cbd-prod-hero__content {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: auto 0;
}

.cbd-prod-hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
}

.cbd-prod-hero__subtitle {
  margin: 0;
  max-width: 494px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

.cbd-prod-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  background: #317627;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cbd-prod-hero__cta:hover {
  background: #275f1f;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Вводный текст + Готовые решения
   -------------------------------------------------------------------------- */
.cbd-prod-solutions {
  padding: 80px 0 64px;
  background: #ffffff;
}

.cbd-prod-intro {
  max-width: 1020px;
  margin: 0 auto 64px;
  text-align: center;
  color: #343635;
}

.cbd-prod-intro__lead {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  color: #202c25;
}

.cbd-prod-intro__text {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

.cbd-prod-section-title {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
}

/* --------------------------------------------------------------------------
   3. Плюсы разработки СТМ на контрактном производстве
   -------------------------------------------------------------------------- */
.cbd-prod-plus {
  padding: 56px 0;
  background: #ffffff;
}

.cbd-prod-plus__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cbd-prod-plus-card {
  border: 1px solid #dce4d9;
  border-radius: 16px;
  padding: 28px 24px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-align: center;
}

.cbd-prod-plus-card__icon {
  width: 112px;
  height: 118px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbd-prod-plus-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cbd-prod-plus-card__title {
  margin: 0;
  max-width: 315px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #202c25;
}

/* --------------------------------------------------------------------------
   4. Мы предлагаем (8 карточек: 3 + 3 + 2 на десктопе, 2×4 на планшете)
   -------------------------------------------------------------------------- */
.cbd-prod-offer {
  padding: 56px 0;
  background: #ffffff;
}

.cbd-prod-offer__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.cbd-prod-offer-card {
  grid-column: span 2;
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbd-prod-offer-card--wide {
  grid-column: span 3;
}

.cbd-prod-offer-card__num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #3f892c;
}

.cbd-prod-offer-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #202c25;
}

.cbd-prod-offer-card__text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

/* --------------------------------------------------------------------------
   5. Этапы производства (6 карточек)
   -------------------------------------------------------------------------- */
.cbd-prod-process {
  padding: 56px 0;
  background: #ffffff;
}

.cbd-prod-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cbd-prod-step-card {
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cbd-prod-step-card__badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ecf3ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
}

.cbd-prod-step-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cbd-prod-step-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #202c25;
}

.cbd-prod-step-card__text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

/* --------------------------------------------------------------------------
   6. Производство под СТМ — полный спектр услуг (6 карточек)
   -------------------------------------------------------------------------- */
.cbd-prod-stm {
  padding: 56px 0;
  background: #ffffff;
}

.cbd-prod-stm__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cbd-prod-stm-card {
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.cbd-prod-stm-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #202c25;
}

.cbd-prod-stm-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f6f2;
}

.cbd-prod-stm-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   7. Бренды (5 карточек)
   -------------------------------------------------------------------------- */
.cbd-prod-brands {
  padding: 56px 0;
  background: #ffffff;
}

.cbd-prod-brands__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.cbd-prod-brand-card {
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 8px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.cbd-prod-brand-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cbd-prod-brand-card__mask {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 36px;
  background-color: #4a4a4a;
  -webkit-mask-image: url('/assets/about/brand-motherplant-mask.png');
  mask-image: url('/assets/about/brand-motherplant-mask.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* --------------------------------------------------------------------------
   8. Форма заявки на расчёт СТМ
   -------------------------------------------------------------------------- */
.cbd-prod-form-section {
  padding: 40px 0 56px;
  background: #ffffff;
  scroll-margin-top: 24px;
}

.cbd-prod-form-wrap {
  background: #d5e7d0;
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.cbd-prod-form-photo {
  border-radius: 20px;
  overflow: hidden;
  min-height: 460px;
  background: #e5eee2;
}

.cbd-prod-form-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cbd-prod-form-card {
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.cbd-prod-form-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111827;
}

.cbd-prod-form-card__subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #5b685f;
}

.cbd-prod-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-prod-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cbd-prod-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbd-prod-field label {
  font-size: 13px;
  font-weight: 500;
  color: #191919;
}

.cbd-prod-field input,
.cbd-prod-field textarea {
  width: 100%;
  background: #fdf9f9;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #191919;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cbd-prod-field input::placeholder,
.cbd-prod-field textarea::placeholder {
  color: #9ca3af;
}

.cbd-prod-field input:focus,
.cbd-prod-field textarea:focus {
  outline: none;
  border-color: #317627;
  box-shadow: 0 0 0 3px rgba(49, 118, 39, 0.12);
}

.cbd-prod-field textarea {
  min-height: 88px;
  resize: vertical;
}

.cbd-prod-form__submit {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: #317627;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cbd-prod-form__submit:hover {
  background: #275f1f;
}

.cbd-prod-form__status {
  display: none;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecf5ea;
  border: 1px solid #b9d7b4;
  color: #1f4d19;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.cbd-prod-form__status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   9. Часто задаваемые вопросы (FAQ)
   -------------------------------------------------------------------------- */
.cbd-prod-faq {
  padding: 40px 0 56px;
  background: #ffffff;
}

.cbd-prod-faq__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111827;
}

.cbd-prod-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-prod-faq__item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cbd-prod-faq__item.is-open {
  border-color: #c5d7c1;
  background: #ffffff;
}

.cbd-prod-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  cursor: pointer;
}

.cbd-prod-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.cbd-prod-faq__item.is-open .cbd-prod-faq__icon {
  transform: rotate(45deg);
}

.cbd-prod-faq__panel {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.cbd-prod-faq__item.is-open .cbd-prod-faq__panel {
  display: block;
}

/* --------------------------------------------------------------------------
   10. Баннер «Партнерская программа»
   -------------------------------------------------------------------------- */
.cbd-prod-partner-section {
  padding: 24px 0 80px;
  background: #ffffff;
}

.cbd-prod-partner {
  position: relative;
  min-height: 356px;
  border-radius: 12px;
  overflow: hidden;
  background: #193d2c;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.cbd-prod-partner__leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cbd-prod-partner__blob {
  position: absolute;
  left: -180px;
  top: -110px;
  width: 520px;
  height: 520px;
  opacity: 0.85;
  pointer-events: none;
}

.cbd-prod-partner__content {
  position: relative;
  z-index: 2;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #ffffff;
}

.cbd-prod-partner__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #ffffff;
}

.cbd-prod-partner__text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.cbd-prod-partner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  background: #ffffff;
  color: #161616;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cbd-prod-partner__cta:hover {
  background: #edf4eb;
  color: #161616;
}

.cbd-prod-partner__photo {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 356px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.cbd-prod-partner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ==========================================================================
   Планшет (1024px и 768px)
   ========================================================================== */
@media (max-width: 1199px) {
  .cbd-prod-hero {
    min-height: 460px;
  }

  .cbd-prod-solutions {
    padding: 64px 0 48px;
  }

  .cbd-prod-intro {
    margin-bottom: 48px;
  }

  .cbd-prod-intro__lead {
    font-size: 20px;
  }

  .cbd-prod-intro__text {
    font-size: 17px;
  }

  .cbd-prod-section-title {
    font-size: 26px;
  }

  .cbd-prod-plus,
  .cbd-prod-offer,
  .cbd-prod-process,
  .cbd-prod-stm,
  .cbd-prod-brands {
    padding: 44px 0;
  }

  .cbd-prod-plus-card__icon {
    width: 96px;
    height: 102px;
  }

  .cbd-prod-step-card__badge {
    width: 88px;
    height: 88px;
  }

  .cbd-prod-form-card {
    padding: 24px;
  }
}

@media (max-width: 1023px) {
  .cbd-prod-offer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cbd-prod-offer-card,
  .cbd-prod-offer-card--wide {
    grid-column: span 1;
    padding: 24px 20px;
  }

  .cbd-prod-process__grid,
  .cbd-prod-stm__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cbd-prod-brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbd-prod-form-wrap {
    grid-template-columns: 1fr;
  }

  .cbd-prod-form-photo {
    min-height: 260px;
    max-height: 300px;
  }

  .cbd-prod-partner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 300px;
  }

  .cbd-prod-partner__content {
    padding: 32px 28px;
  }

  .cbd-prod-partner__photo {
    min-height: 300px;
  }
}

@media (max-width: 959px) {
  .cbd-prod-plus__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbd-prod-plus-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 20px;
    padding: 24px 28px;
  }

  .cbd-prod-plus-card:last-child .cbd-prod-plus-card__title {
    max-width: none;
  }
}

/* ==========================================================================
   Мобильный (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .cbd-prod-hero {
    min-height: 380px;
  }

  .cbd-prod-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(244, 248, 243, 0.9) 0%,
      rgba(244, 248, 243, 0.82) 60%,
      rgba(244, 248, 243, 0.65) 100%
    );
  }

  .cbd-prod-hero__inner {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .cbd-prod-crumbs {
    margin-bottom: 28px;
  }

  .cbd-prod-hero__title {
    font-size: 24px;
  }

  .cbd-prod-hero__subtitle {
    font-size: 15px;
  }

  .cbd-prod-hero__cta {
    width: 100%;
  }

  .cbd-prod-solutions {
    padding: 44px 0 36px;
  }

  .cbd-prod-intro {
    margin-bottom: 36px;
    text-align: left;
  }

  .cbd-prod-intro__lead {
    font-size: 17px;
  }

  .cbd-prod-intro__text {
    font-size: 15px;
  }

  .cbd-prod-section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .cbd-prod-plus,
  .cbd-prod-offer,
  .cbd-prod-process,
  .cbd-prod-stm,
  .cbd-prod-brands {
    padding: 32px 0;
  }

  .cbd-prod-plus__grid,
  .cbd-prod-offer__grid,
  .cbd-prod-process__grid,
  .cbd-prod-stm__grid {
    grid-template-columns: 1fr;
  }

  .cbd-prod-plus-card:last-child {
    grid-column: auto;
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .cbd-prod-plus-card__icon {
    width: 88px;
    height: 94px;
  }

  .cbd-prod-offer-card__num {
    font-size: 30px;
  }

  .cbd-prod-offer-card__title,
  .cbd-prod-step-card__title,
  .cbd-prod-stm-card__title {
    font-size: 18px;
  }

  .cbd-prod-step-card__badge {
    width: 76px;
    height: 76px;
  }

  .cbd-prod-brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cbd-prod-brand-card {
    height: 92px;
  }

  .cbd-prod-brand-card:last-child {
    grid-column: 1 / -1;
  }

  .cbd-prod-form-wrap {
    padding: 10px;
    border-radius: 18px;
  }

  .cbd-prod-form-photo {
    min-height: 200px;
    max-height: 220px;
    border-radius: 14px;
  }

  .cbd-prod-form-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .cbd-prod-form-card__title {
    font-size: 18px;
  }

  .cbd-prod-form__row {
    grid-template-columns: 1fr;
  }

  .cbd-prod-faq__title {
    font-size: 20px;
  }

  .cbd-prod-faq__trigger {
    padding: 16px;
    font-size: 15px;
  }

  .cbd-prod-partner-section {
    padding: 16px 0 56px;
  }

  .cbd-prod-partner {
    grid-template-columns: 1fr;
  }

  .cbd-prod-partner__content {
    padding: 28px 20px 20px;
  }

  .cbd-prod-partner__title {
    font-size: 20px;
  }

  .cbd-prod-partner__cta {
    width: 100%;
  }

  .cbd-prod-partner__photo {
    min-height: 220px;
    max-height: 260px;
  }
}
