/* ==========================================================================
   TheCBD — Страница «О компании» (/about/, Figma 7393:10883)
   Использует дизайн-токены tokens.css, base.css и общие секции home.css
   ========================================================================== */

.cbd-about-page {
  background: var(--color-bg-page, #ffffff);
  color: var(--color-text-primary, #202c25);
}

/* 1. Первый экран (Figma 7474:2305) */
.cbd-about-hero {
  position: relative;
  min-height: 598px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: #edf1ec;
}

.cbd-about-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cbd-about-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

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

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

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

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

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

.cbd-about-hero__blob--4 {
  width: 385px;
  height: 385px;
  left: 238px;
  top: 189px;
}

.cbd-about-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 48px;
  width: 100%;
}

.cbd-about-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}

.cbd-about-crumbs a {
  color: rgba(25, 25, 25, 0.68);
  text-decoration: none;
  transition: color var(--transition-fast, 150ms ease);
}

.cbd-about-crumbs a:hover {
  color: #191919;
  text-decoration: underline;
}

.cbd-about-crumbs__sep {
  color: rgba(25, 25, 25, 0.4);
}

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

.cbd-about-hero__content {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 625px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

.cbd-about-hero__title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
  max-width: 568px;
}

.cbd-about-hero__desc {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

.cbd-about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cbd-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease);
}

.cbd-about-btn--primary {
  background: var(--color-brand-primary, #317627);
  color: #ffffff;
  border: 1px solid var(--color-brand-primary, #317627);
}

.cbd-about-btn--primary:hover {
  background: var(--color-brand-hover, #275e1f);
  border-color: var(--color-brand-hover, #275e1f);
}

.cbd-about-btn--soft {
  background: #e6efe2;
  color: var(--color-brand-primary, #317627);
  border: 1px solid #dce4d9;
}

.cbd-about-btn--soft:hover {
  background: #d8e7d2;
}

.cbd-about-btn--outline {
  background: #ffffff;
  color: var(--color-brand-primary, #317627);
  border: 1px solid #dce4d9;
  height: 48px;
  padding: 0 20px;
  font-size: 14px;
}

.cbd-about-btn--outline:hover {
  background: #f5f9f3;
  border-color: var(--color-brand-primary, #317627);
}

.cbd-about-btn--md {
  height: 48px;
  padding: 0 20px;
  font-size: 14px;
}

/* 2. Вводный текстовый блок (Figma 7695:6476) */
.cbd-about-intro {
  padding: 80px 0 48px;
}

.cbd-about-intro__box {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cbd-about-intro__lead {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-brand-accent, #3f892c);
}

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

.cbd-about-intro__text--bold {
  font-weight: 700;
}

/* 3. Наши преимущества (Figma 7695:6359) */
.cbd-about-adv {
  padding: 48px 0;
}

.cbd-about-adv__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cbd-about-adv-card {
  border: 1px solid #dce4d9;
  border-radius: 16px;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 272px;
}

.cbd-about-adv-card__badge {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ecf3ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.cbd-about-adv-card__ring {
  position: absolute;
  left: 1px;
  top: -6px;
  width: 88px;
  height: 88px;
  pointer-events: none;
}

.cbd-about-adv-card__num {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-brand-accent, #3f892c);
  transform: translateY(-3px);
}

.cbd-about-adv-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #202c25;
}

.cbd-about-adv-card__text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #5b685f;
}

/* 4. Почему удобно покупать у нас (Figma 7408:1562) */
.cbd-about-conditions {
  padding: 80px 0;
}

.cbd-about-conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cbd-about-cond-card {
  border: 1px solid #dce4d9;
  border-radius: 16px;
  background: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cbd-about-cond-card__media {
  height: 215px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f6f2;
  flex-shrink: 0;
}

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

.cbd-about-cond-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.cbd-about-cond-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #202c25;
}

.cbd-about-cond-card__text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #5b685f;
}

.cbd-about-cond-card__footer {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: #5b685f;
}

.cbd-about-cond-card__footer a {
  color: inherit;
  text-decoration: underline;
}

.cbd-about-cond-card__list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: #5b685f;
}

/* 5. Документы на продукцию (Figma 7402:2594) */
.cbd-about-docs {
  padding: 80px 0;
}

.cbd-about-docs__layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 520px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}

.cbd-about-docs__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cbd-about-docs__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-about-docs__desc {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: #5b685f;
}

.cbd-about-docs__steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cbd-about-docs__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cbd-about-docs__step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #e6efe2;
  color: var(--color-brand-primary, #317627);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbd-about-docs__step-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cbd-about-docs__step-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #202c25;
}

.cbd-about-docs__step-text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #5b685f;
}

.cbd-about-docs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cbd-about-docs__mvd {
  background: var(--color-brand-accent, #3f892c);
  border: 1px solid #dce4d9;
  border-radius: 16px;
  height: 399px;
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--transition-fast, 150ms ease), box-shadow var(--transition-fast, 150ms ease);
}

.cbd-about-docs__mvd:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(49, 118, 39, 0.16);
}

.cbd-about-docs__mvd img {
  width: 343px;
  max-width: 100%;
  height: 375px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* 6. Бренды, которым мы доверяем (Figma 7408:1505) */
.cbd-about-brands {
  padding: 80px 0;
}

.cbd-about-brands__desc {
  margin: 0 0 24px;
  max-width: 632px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #5b685f;
}

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

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

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

.cbd-about-brand-card__mask {
  width: 196px;
  max-width: 100%;
  height: 40px;
  background: #4a4a4a;
  -webkit-mask-image: url("/assets/about/brand-motherplant-mask.png");
  mask-image: url("/assets/about/brand-motherplant-mask.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* 7. Баннер «Давайте сотрудничать!» (Figma 7411:1686) */
.cbd-about-partner-section {
  padding: 0 0 40px;
}

.cbd-about-partner {
  position: relative;
  min-height: 367px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #98ae9f 0%, #4b6f5b 48%, #1e4230 100%);
  display: flex;
  align-items: center;
}

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

.cbd-about-partner__blob {
  position: absolute;
  left: -225px;
  top: -118px;
  width: 562px;
  height: 562px;
  pointer-events: none;
  z-index: 1;
}

.cbd-about-partner__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 48px 32px 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: #ffffff;
}

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

.cbd-about-partner__lead {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

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

.cbd-about-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 var(--transition-fast, 150ms ease), transform var(--transition-fast, 150ms ease);
}

.cbd-about-partner__cta:hover {
  background: #f0f6ee;
  transform: translateY(-1px);
}

.cbd-about-partner__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 620px;
  max-width: 52%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.cbd-about-partner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scaleX(-1);
}

/* 8. Часто задаваемые вопросы (Figma 7408:1524) */
.cbd-about-faq {
  padding: 64px 0 96px;
}

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

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

.cbd-about-faq__item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast, 150ms ease), background var(--transition-fast, 150ms ease);
}

.cbd-about-faq__item.is-open {
  background: #ffffff;
  border-color: #cde0c7;
}

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

.cbd-about-faq__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

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

.cbd-about-faq__panel {
  display: none;
  padding: 0 20px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #4b5563;
}

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

/* Лайтбокс для письма МВД */
.cbd-about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cbd-about-lightbox.is-open {
  display: flex;
}

.cbd-about-lightbox__dialog {
  position: relative;
  max-width: 680px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.cbd-about-lightbox__dialog img {
  max-height: calc(90vh - 32px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.cbd-about-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #202c25;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Адаптив */
@media (max-width: 1199px) {
  .cbd-about-adv__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbd-about-adv-card {
    min-height: 0;
  }

  /* На горизонтальном планшете (960–1199px) держим 3 ровные колонки без дыры */
  .cbd-about-conditions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cbd-about-cond-card {
    padding: 20px;
  }

  .cbd-about-cond-card__media {
    height: 170px;
  }

  /* На 900–1199px «Документы на продукцию» остаются в 2 сбалансированные колонки */
  .cbd-about-docs__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: center;
  }

  .cbd-about-docs__mvd {
    width: 100%;
    max-width: none;
    height: 360px;
  }

  .cbd-about-docs__mvd img {
    height: 336px;
  }

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

@media (max-width: 959px) and (min-width: 768px) {
  /* Вертикальный планшет (768–959px): 2 карточки сверху + 3-я горизонтально на всю ширину без пустоты */
  .cbd-about-conditions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cbd-about-cond-card:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .cbd-about-cond-card:nth-child(3) .cbd-about-cond-card__media {
    width: 260px;
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 899px) {
  .cbd-about-docs__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cbd-about-docs__mvd {
    width: 100%;
    max-width: none;
    height: 340px;
  }

  .cbd-about-docs__mvd img {
    height: 316px;
  }
}

@media (max-width: 900px) {
  .cbd-about-hero {
    min-height: 480px;
  }

  .cbd-about-hero__bg img {
    object-position: 75% center;
    opacity: 0.4;
  }

  .cbd-about-partner {
    flex-direction: column;
    align-items: stretch;
  }

  .cbd-about-partner__content {
    max-width: none;
    padding: 32px 24px 24px;
  }

  .cbd-about-partner__photo {
    position: relative;
    width: 100%;
    max-width: none;
    height: 260px;
  }
}

@media (max-width: 767px) {
  .cbd-about-hero {
    min-height: 0;
    background: linear-gradient(180deg, #e7efe4 0%, #f5f7f4 100%);
  }

  .cbd-about-hero__bg {
    display: none;
  }

  .cbd-about-hero__inner {
    padding-top: 20px;
    padding-bottom: 32px;
    gap: 16px;
  }

  .cbd-about-hero__content {
    padding: 0;
    gap: 16px;
  }

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

  .cbd-about-hero__desc {
    font-size: 15px;
  }

  .cbd-about-btn {
    width: 100%;
    height: 48px;
  }

  .cbd-about-intro {
    padding: 40px 0 24px;
  }

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

  .cbd-about-intro__text {
    font-size: 16px;
  }

  .cbd-about-adv,
  .cbd-about-conditions,
  .cbd-about-docs,
  .cbd-about-brands {
    padding: 40px 0;
  }

  .cbd-about-adv__grid,
  .cbd-about-conditions__grid {
    grid-template-columns: 1fr;
  }

  .cbd-about-adv-card__badge {
    width: 72px;
    height: 72px;
  }

  .cbd-about-adv-card__ring {
    width: 72px;
    height: 72px;
    top: -5px;
    left: 1px;
  }

  .cbd-about-adv-card__num {
    font-size: 24px;
  }

  .cbd-about-docs__mvd {
    height: 300px;
  }

  .cbd-about-docs__mvd img {
    height: 276px;
  }

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

  .cbd-about-brand-card {
    height: 88px;
    padding: 12px;
  }

  .cbd-about-faq {
    padding: 40px 0 64px;
  }

  .cbd-about-faq__title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .cbd-about-faq__trigger {
    padding: 16px;
    font-size: 14px;
  }
}
