/* ==========================================================================
   TheCBD.ru — Страница «Как подобрать нужный продукт и дозировку ?»
   (/dosage-guide/, Figma 7567:25431)
   ========================================================================== */

.cbd-dguide-page {
  background: #ffffff;
  color: #202c25;
}

/* 1. Вводный блок (Figma 7567:25440) */
.cbd-dguide-hero {
  padding-top: 64px;
  padding-bottom: 48px;
}

.cbd-dguide-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}

.cbd-dguide-crumbs a {
  color: #aeaeae;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cbd-dguide-crumbs a:hover {
  color: #3f892c;
}

.cbd-dguide-crumbs__sep {
  color: rgba(25, 25, 25, 0.2);
  user-select: none;
}

.cbd-dguide-crumbs__current {
  color: #191919;
}

.cbd-dguide-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 737px) minmax(0, 521px);
  gap: 22px;
  align-items: start;
  justify-content: space-between;
}

.cbd-dguide-hero__h1 {
  margin: 0 0 24px;
  max-width: 568px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
}

.cbd-dguide-hero__prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: #343635;
}

.cbd-dguide-hero__prose p {
  margin: 0;
}

.cbd-dguide-hero__prose strong {
  font-weight: 600;
  color: #202c25;
}

.cbd-dguide-hero__media {
  width: 100%;
  height: 314px;
  border-radius: 15px;
  overflow: hidden;
  background: #f4f6f3;
}

.cbd-dguide-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2. Краткая шпаргалка для выбора (Figma 7567:25452) */
.cbd-dguide-cheat {
  padding-top: 32px;
  padding-bottom: 48px;
}

.cbd-dguide-h2 {
  margin: 0 0 24px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
}

.cbd-dguide-cheat__stage {
  position: relative;
  width: 100%;
  min-height: 541px;
  border-radius: 21px;
  overflow: hidden;
  background: #dcebd7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 32px;
}

.cbd-dguide-cheat__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.cbd-dguide-cheat__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 302px));
  gap: 24px 62px;
  justify-content: center;
  width: 100%;
  max-width: 1030px;
}

.cbd-dguide-cheat__card {
  position: relative;
  min-height: 140px;
  padding: 36px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.cbd-dguide-cheat__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.cbd-dguide-cheat__card-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000000;
}

.cbd-dguide-cheat__card-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.32;
  color: #2a2a2a;
}

/* 3. Сравнение форматов CBD (Figma 7567:25476) */
.cbd-dguide-compare {
  padding-top: 32px;
  padding-bottom: 64px;
}

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

.cbd-dguide-format-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dce4d9;
  border-radius: 16px;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cbd-dguide-format-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(25, 61, 44, 0.08);
    border-color: #b8cfb2;
  }
}

.cbd-dguide-format-card__media {
  position: relative;
  height: 200px;
  border-radius: 8px;
  background: #fafbf8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.cbd-dguide-format-card__media img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
}

.cbd-dguide-format-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6efe2;
  color: #317627;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.cbd-dguide-format-card__sub {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
  color: #5b685f;
}

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

.cbd-dguide-format-card__desc {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #5b685f;
}

.cbd-dguide-format-card__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.cbd-dguide-format-card__checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #5b685f;
}

.cbd-dguide-format-card__check-icon {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #e6efe2;
  color: #317627;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.cbd-dguide-format-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: #317627;
  color: #ffffff;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cbd-dguide-format-card__btn:hover {
  background: #286220;
}

/* 4. А теперь про дозировку: Дозировка CBD подбирается индивидуально! (Figma 7306:22689) */
.cbd-dguide-steps {
  padding-top: 24px;
  padding-bottom: 56px;
}

.cbd-dguide-steps__eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  color: #3f892c;
}

.cbd-dguide-steps__title {
  margin: 0 0 44px;
  text-align: center;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #202c25;
}

.cbd-dguide-steps__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cbd-dguide-step {
  position: relative;
  min-height: 169px;
  padding: 28px 36px 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cbd-dguide-step--1 {
  width: min(100%, 819px);
}

.cbd-dguide-step--2 {
  width: min(100%, 704px);
}

.cbd-dguide-step--3 {
  width: min(100%, 588px);
}

.cbd-dguide-step__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.cbd-dguide-step__text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 590px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: #000000;
}

/* ==========================================================================
   Адаптив: 1024px / 768px / 390px
   ========================================================================== */

@media (max-width: 1120px) {
  .cbd-dguide-hero {
    padding-top: 40px;
    padding-bottom: 36px;
  }

  .cbd-dguide-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: center;
  }

  .cbd-dguide-hero__prose {
    font-size: 15px;
    gap: 16px;
  }

  .cbd-dguide-cheat__stage {
    min-height: 430px;
    padding: 20px;
  }

  .cbd-dguide-cheat__list {
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cbd-dguide-cheat__card {
    min-height: 128px;
    padding: 28px 14px 16px;
  }

  .cbd-dguide-cheat__card-title {
    font-size: 15px;
  }

  .cbd-dguide-cheat__card-desc {
    font-size: 12.5px;
  }

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

  .cbd-dguide-format-card {
    padding: 18px;
  }
}

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

  .cbd-dguide-format-card:last-child {
    grid-column: 1 / -1;
  }

  .cbd-dguide-cheat__stage {
    min-height: 390px;
    padding: 18px 16px;
  }

  .cbd-dguide-step--1 {
    width: 100%;
  }

  .cbd-dguide-step--2 {
    width: 92%;
  }

  .cbd-dguide-step--3 {
    width: 84%;
  }
}

@media (max-width: 820px) {
  .cbd-dguide-hero {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .cbd-dguide-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .cbd-dguide-hero__media {
    height: 280px;
  }

  .cbd-dguide-hero__h1,
  .cbd-dguide-h2,
  .cbd-dguide-steps__title {
    font-size: 26px;
  }

  .cbd-dguide-cheat {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .cbd-dguide-compare {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .cbd-dguide-step {
    min-height: 136px;
    padding: 24px 20px 36px;
  }

  .cbd-dguide-step__text {
    font-size: 17px;
    line-height: 24px;
  }
}

@media (max-width: 720px) {
  .cbd-dguide-cheat__stage {
    min-height: 0;
    padding: 190px 16px 20px;
  }

  .cbd-dguide-cheat__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }

  .cbd-dguide-compare__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cbd-dguide-format-card:last-child {
    grid-column: auto;
  }

  .cbd-dguide-step--2,
  .cbd-dguide-step--3 {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .cbd-dguide-hero__h1,
  .cbd-dguide-h2,
  .cbd-dguide-steps__title {
    font-size: 23px;
  }

  .cbd-dguide-steps__eyebrow {
    font-size: 19px;
  }

  .cbd-dguide-hero__media {
    height: 230px;
  }

  .cbd-dguide-step__text {
    font-size: 15px;
    line-height: 22px;
  }
}
