.behavior-training-page-frame {
  --ds-night: #17362d;
  --ds-night-soft: #2d4b41;
  --ds-accent: #d0ad72;
  --ds-accent-strong: #765a2d;
}

.behavior-training-page-frame .ds-breadcrumbs > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bt-page--cat {
  --ds-night: #26372f;
  --ds-night-soft: #405349;
  --ds-accent: #d4b782;
  --ds-accent-strong: #765d34;
}

.bt-main-hero { min-height: 600px; }

.bt-species-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.bt-species-switch a {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 12px;
  min-height: 72px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(255, 249, 238, .3);
  border-radius: 2px 14px 2px 2px;
  color: var(--ds-ivory);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.bt-species-switch a > span {
  display: grid;
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
}

.bt-species-switch strong { align-self: end; font-size: 14px; }
.bt-species-switch small { align-self: start; color: inherit; opacity: .72; font-size: 11px; }
.bt-species-switch a:hover, .bt-species-switch a:focus-visible, .bt-species-switch a.is-current { background: var(--ds-ivory); color: var(--ds-night); transform: translateY(-2px); }

.bt-direction { margin-top: clamp(74px, 10vw, 126px); }
.bt-direction + .bt-direction { padding-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--ds-line); }
.bt-direction__heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 44px; align-items: end; }
.bt-direction__heading h2 { margin: 7px 0 16px; max-width: 760px; font: 600 clamp(43px, 5.5vw, 68px)/.98 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; }
.bt-direction__heading p:last-child { max-width: 760px; margin: 0; color: var(--ds-soft); font-size: 16px; line-height: 1.7; }
.bt-primary-link { display: inline-flex; min-height: 48px; align-items: center; gap: 18px; padding: 0 18px; border: 1px solid var(--ds-night); color: var(--ds-night); font-size: 13px; font-weight: 760; text-decoration: none; white-space: nowrap; }
.bt-primary-link:hover { color: var(--ds-ivory); background: var(--ds-night); }

.bt-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 36px 0; background: var(--ds-line); border: 1px solid var(--ds-line); }
.bt-theme-grid > a { display: grid; grid-template-columns: 36px 1fr auto; gap: 15px; align-items: center; min-height: 116px; padding: 20px 22px; color: var(--ds-ink); background: var(--ds-surface); text-decoration: none; transition: background 170ms ease; }
.bt-theme-grid > a:hover { background: #f0e7d8; }
.bt-theme-grid__number { color: var(--ds-accent-strong); font: 650 23px/1 "Cormorant Garamond", Georgia, serif; }
.bt-theme-grid strong, .bt-theme-grid small { display: block; }
.bt-theme-grid strong { margin-bottom: 6px; font: 650 25px/1.05 "Cormorant Garamond", Georgia, serif; }
.bt-theme-grid small { color: var(--ds-soft); font-size: 12px; line-height: 1.45; }
.bt-featured-grid { margin-top: 26px; }

.bt-page-number { display: block; margin-top: 14px; color: var(--ds-accent); font: 720 13px/1.4 "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.bt-species-switch--compact { max-width: 390px; }
.bt-species-switch--compact a { min-height: 58px; grid-template-columns: 32px 1fr; grid-template-rows: auto; }
.bt-species-switch--compact a > span { width: 32px; height: 32px; grid-row: auto; font-size: 18px; }

.bt-theme-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.bt-theme-index a { min-height: 94px; padding: 18px; border: 1px solid var(--ds-line); border-radius: 2px 15px 2px 2px; color: var(--ds-ink); background: var(--ds-surface); text-decoration: none; }
.bt-theme-index strong, .bt-theme-index small { display: block; }
.bt-theme-index strong { font: 650 21px/1.05 "Cormorant Garamond", Georgia, serif; }
.bt-theme-index small { margin-top: 9px; color: var(--ds-soft); font-size: 11px; }
.bt-page-group { scroll-margin-top: 92px; }
.bt-page-group + .bt-page-group { margin-top: 52px; }
.bt-page-group > header { margin-bottom: 19px; }
.bt-page-group h3 { margin: 0; font: 650 clamp(29px, 3.6vw, 42px)/1.04 "Cormorant Garamond", Georgia, serif; }
.bt-page-group > header p { max-width: 730px; margin: 8px 0 0; color: var(--ds-soft); font-size: 14px; line-height: 1.6; }

.bt-pagination { display: grid; grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr); gap: 18px; align-items: center; margin-top: 68px; padding-top: 28px; border-top: 1px solid var(--ds-line); }
.bt-pagination > div { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.bt-pagination a, .bt-pagination span { display: inline-grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--ds-line); color: var(--ds-ink); background: var(--ds-surface); font-size: 13px; font-weight: 730; text-decoration: none; }
.bt-pagination span[aria-current] { color: var(--ds-ivory); background: var(--ds-night); }
.bt-pagination i { align-self: center; font-style: normal; }
.bt-pagination__direction:first-child { justify-self: start; padding: 0 15px; }
.bt-pagination__direction:last-child { justify-self: end; padding: 0 15px; }
.bt-pagination a:hover { border-color: var(--ds-night); }

.bt-table-wrap { max-width: 100%; margin: 28px 0 32px; overflow-x: auto; border: 1px solid var(--ds-line); background: var(--ds-surface); }
.bt-table-wrap:focus-visible { outline: 3px solid var(--ds-accent-strong); outline-offset: 3px; }
.bt-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font: 14px/1.55 "Manrope", "Segoe UI", sans-serif; }
.bt-table-wrap th, .bt-table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--ds-line); text-align: left; vertical-align: top; }
.bt-table-wrap th { color: var(--ds-ivory); background: var(--ds-night-soft); font-weight: 750; }
.bt-table-wrap tbody tr:last-child td { border-bottom: 0; }
.bt-table-wrap tbody tr:nth-child(even) { background: rgba(208, 173, 114, .08); }
.bt-max-promo { margin-top: 58px; }

@media (max-width: 980px) {
  .bt-theme-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-direction__heading { grid-template-columns: 1fr; gap: 24px; }
  .bt-primary-link { justify-self: start; }
}

@media (max-width: 680px) {
  .bt-main-hero { min-height: 0; }
  .bt-species-switch, .bt-theme-grid, .bt-theme-index { grid-template-columns: 1fr; }
  .bt-direction { margin-top: 68px; }
  .bt-direction__heading h2 { font-size: clamp(40px, 13vw, 56px); }
  .bt-theme-grid > a { min-height: 100px; padding: 17px 15px; }
  .bt-pagination { grid-template-columns: 1fr 1fr; }
  .bt-pagination > div { grid-column: 1 / 3; grid-row: 1; }
  .bt-pagination__direction:first-child { grid-column: 1; grid-row: 2; }
  .bt-pagination__direction:last-child { grid-column: 2; grid-row: 2; }
  .bt-table-wrap { margin-right: -10px; margin-left: -10px; }
}
