/* Shared components for the redesigned home, lumber and arbolite pages. All classes use the bsl- prefix. */

/* Palette of the existing theme (style.css): green #03802B and the green button gradient
   #03822B -> #09C044, orange #F58633 -> #F5B333, text #282828, greys #797979 / #DDDDDD / #F4F4F4. */
:root {
  --bsl-dark: #282828;
  --bsl-text: #282828;
  --bsl-muted: #5f5f5f;
  --bsl-green: #03802B;
  --bsl-green-gradient: linear-gradient(90deg, #03822B 0%, #09C044 100%);
  --bsl-orange: #F58633;
  --bsl-soft: #F4F4F4;
  --bsl-bg: #F4F4F4;
  --bsl-card: #ffffff;
  --bsl-border: #DDDDDD;
  --bsl-border-strong: #B8B8B8;
  --bsl-radius: 14px;
  --bsl-radius-sm: 10px;
  --bsl-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --bsl-gap: 20px;
  --bsl-focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--bsl-orange);
}

/* ---------- base ---------- */

.bsl {
  background: var(--bsl-bg);
  color: var(--bsl-text);
  font-family: "Montserrat", "Arial", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
}

.bsl *,
.bsl *::before,
.bsl *::after {
  box-sizing: border-box;
}

.bsl p {
  margin: 0;
}

.bsl img {
  max-width: 100%;
}

.bsl :focus-visible {
  outline: none;
  box-shadow: var(--bsl-focus);
  border-radius: 6px;
}

.bsl-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.bsl-section {
  padding: 56px 0;
}

.bsl-section--white {
  background: #fff;
}

.bsl-section--tight {
  padding: 40px 0;
}

/* consecutive sections on the same light background share one gap */
.bsl-section:not(.bsl-section--white) + .bsl-section:not(.bsl-section--white),
.bsl-section--white + .bsl-section--white {
  padding-top: 0;
}

/* ---------- typography ---------- */

.bsl-h1,
.bsl-h2,
.bsl-h3 {
  color: var(--bsl-dark);
  font-family: "Montserrat", "Arial", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: left;
  text-transform: none;
  margin: 0;
}

.bsl-h1 {
  font-size: clamp(26px, 3.3vw, 44px);
  line-height: 1.15;
}

.bsl-h2 {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
}

.bsl-h3 {
  font-size: 18px;
  line-height: 1.3;
}

.bsl-lead {
  color: var(--bsl-muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
}

.bsl-text {
  color: var(--bsl-muted);
  font-size: 15px;
  line-height: 1.6;
}

.bsl-text p + p,
.bsl-lead p + p {
  margin-top: 10px;
}

.bsl-text b,
.bsl-text strong,
.bsl-lead b,
.bsl-lead strong {
  color: var(--bsl-text);
  font-weight: 600;
}

.bsl-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--bsl-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bsl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.bsl-section-head__text {
  flex: 1 1 auto;
  max-width: 780px;
}

.bsl-section-head .bsl-actions {
  flex: none;
  margin-top: 0;
}

.bsl .objectmap-area {
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.bsl-section-head__text .bsl-h2 + .bsl-text,
.bsl-section-head__text .bsl-h2 + .bsl-lead {
  margin-top: 10px;
}

/* ---------- buttons ---------- */

.bsl-btn,
.bsl a.bsl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--bsl-radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.bsl-btn .bsl-icon {
  width: 18px;
  height: 18px;
}

.bsl-btn--primary,
.bsl a.bsl-btn--primary {
  background: var(--bsl-green);
  border-color: var(--bsl-green);
  color: #fff;
}

.bsl-btn--primary:hover,
.bsl a.bsl-btn--primary:hover,
.bsl-btn--primary:focus-visible,
.bsl a.bsl-btn--primary:focus-visible {
  background: var(--bsl-green-gradient);
  border-color: #76D57A;
  color: #fff;
}

.bsl-btn--outline,
.bsl a.bsl-btn--outline {
  background: #fff;
  border-color: var(--bsl-green);
  color: var(--bsl-green);
}

.bsl-btn--outline:hover,
.bsl a.bsl-btn--outline:hover,
.bsl-btn--outline:focus-visible,
.bsl a.bsl-btn--outline:focus-visible {
  background: #fff;
  border-color: var(--bsl-orange);
  color: var(--bsl-orange);
}

.bsl-btn--block {
  width: 100%;
}

.bsl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.bsl-link,
.bsl a.bsl-link {
  display: inline;
  line-height: 2;
  color: var(--bsl-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bsl-link .bsl-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -3px;
}

/* ---------- icons ---------- */

.bsl-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}

.bsl-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--bsl-soft);
  color: var(--bsl-green);
}

.bsl-card--flat .bsl-icon-box {
  background: #fff;
}

/* ---------- cards and grids ---------- */

.bsl-grid {
  display: grid;
  gap: var(--bsl-gap);
}

.bsl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsl-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.bsl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--bsl-card);
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius);
  color: var(--bsl-text);
}

.bsl-card--flat {
  background: var(--bsl-bg);
  border-color: transparent;
}

.bsl-card .bsl-h3 + .bsl-text {
  margin-top: 8px;
}

.bsl-card__foot {
  margin-top: auto;
  padding-top: 18px;
}

.bsl a.bsl-card--link,
.bsl-card--link {
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bsl a.bsl-card--link:hover,
.bsl-card--link:hover {
  border-color: var(--bsl-orange);
  box-shadow: var(--bsl-shadow);
}

.bsl-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--bsl-soft);
  color: var(--bsl-green);
}

.bsl-card__arrow .bsl-icon {
  width: 20px;
  height: 20px;
}

/* media */

.bsl-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--bsl-radius);
  background: #E6E6E6;
}

.bsl-media--43 { aspect-ratio: 4 / 3; }
.bsl-media--32 { aspect-ratio: 3 / 2; }
.bsl-media--169 { aspect-ratio: 16 / 9; }
.bsl-media--11 { aspect-ratio: 1 / 1; }

/* the image fills the ratio box without stretching it */
.bsl-media__img,
.bsl img.bsl-media__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsl-media--contain {
  background: #fff;
}

.bsl-media--contain .bsl-media__img,
.bsl-media--contain img.bsl-media__img {
  object-fit: contain;
  padding: 12px;
}

/* feature (icon + text) */

.bsl-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bsl-feature__title {
  color: var(--bsl-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.bsl-feature__text {
  margin-top: 4px;
  color: var(--bsl-muted);
  font-size: 14px;
  line-height: 1.5;
}

.bsl-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 28px;
}

.bsl-features .bsl-feature {
  align-items: center;
}

.bsl-card.bsl-feature {
  flex-direction: row;
}

.bsl-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bsl-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--bsl-text);
  font-size: 15px;
  list-style: none;
}

.bsl-checklist .bsl-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--bsl-green);
}

/* ---------- hero ---------- */

.bsl-hero {
  padding: 40px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bsl-bg) 100%);
}

.bsl-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.bsl-hero__content .bsl-lead {
  margin-top: 18px;
  max-width: 620px;
}

/* direction cards */

.bsl-dir {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.bsl-dir .bsl-media {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.bsl-dir__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 20px;
}

.bsl-dir__body .bsl-btn {
  margin-top: auto;
}

.bsl-dir__body .bsl-text {
  margin-bottom: 14px;
}

/* horizontal direction card */

.bsl-hcard {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px 16px 16px;
}

.bsl-hcard__text {
  display: block;
  margin-top: 6px;
}

.bsl-hcard .bsl-h3 {
  display: block;
}

.bsl-hcard .bsl-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--bsl-radius-sm);
}

/* ---------- split (text + photo) ---------- */

.bsl-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.bsl-split--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.bsl-split > .bsl-media {
  align-self: start;
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

.bsl-split--frame {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
}

.bsl-split--frame > .bsl-media {
  align-self: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.bsl-split--order {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: start;
}

/* ---------- stats / trust ---------- */

.bsl-stat {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
}

.bsl-stat__num {
  color: var(--bsl-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.bsl-stat__label {
  color: var(--bsl-muted);
  font-size: 14px;
  line-height: 1.35;
}

.bsl-stat .bsl-icon-box {
  margin-bottom: 4px;
}

.bsl-stars {
  display: inline-flex;
  gap: 2px;
  color: #f2a900;
}

.bsl-stars .bsl-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bsl-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bsl-fact__num {
  color: var(--bsl-dark);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.bsl-fact__text {
  margin-top: 6px;
  color: var(--bsl-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- steps ---------- */

.bsl-steps {
  display: grid;
  grid-template-columns: repeat(var(--bsl-steps, 5), minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bsl-step;
}

.bsl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  text-align: center;
  list-style: none;
  counter-increment: bsl-step;
}

.bsl-step__mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--bsl-border);
  border-radius: 50%;
  background: #fff;
  color: var(--bsl-green);
}

.bsl-step__num {
  color: var(--bsl-green);
  font-size: 18px;
  font-weight: 700;
}

.bsl-step__title {
  color: var(--bsl-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.bsl-step__text {
  color: var(--bsl-muted);
  font-size: 13px;
  line-height: 1.45;
}

.bsl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  width: calc(100% - 68px + 14px);
  height: 1px;
  background: var(--bsl-border-strong);
}

.bsl-steps--six {
  --bsl-steps: 6;
}

/* small square picture inside a feature card */
.bsl-thumb {
  width: 64px;
  flex: none;
  border-radius: var(--bsl-radius-sm);
}

/* vertical numbered steps (next to a form) */
.bsl-steps--numbers {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.bsl-steps--numbers .bsl-step {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 0;
  text-align: left;
}

.bsl-steps--numbers .bsl-step::after {
  display: none;
}

.bsl-steps--numbers .bsl-step__mark {
  width: 44px;
  height: 44px;
}

.bsl-steps--numbers .bsl-step__title {
  font-size: 15px;
}

/* ---------- forms ---------- */

.bsl-form {
  display: grid;
  gap: 14px;
}

.bsl-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}

.bsl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bsl-label {
  color: var(--bsl-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.bsl-label__req {
  color: #c0392b;
}

.bsl .bsl-input {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--bsl-border-strong);
  border-radius: var(--bsl-radius-sm);
  background: #fff;
  color: var(--bsl-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.bsl select.bsl-input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23797979' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.bsl .bsl-input::placeholder {
  color: #8D8D8D;
  opacity: 1;
}

.bsl .bsl-input:focus {
  border-color: var(--bsl-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 128, 43, .18);
}

.bsl .bsl-input:user-invalid {
  border-color: #c0392b;
}

.bsl-form__submit {
  min-width: 190px;
}

.bsl-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.bsl-form__foot .bsl-check {
  flex: 1 1 280px;
}

.bsl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--bsl-muted);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.bsl .bsl-check input[type=checkbox] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--bsl-green);
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

.bsl-check a,
.bsl .bsl-check a {
  color: var(--bsl-green);
  text-decoration: underline;
}

.bsl-form__note {
  color: var(--bsl-muted);
  font-size: 13px;
}

/* form panel */

.bsl-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius);
}

.bsl-panel__lead {
  margin-top: 10px;
}

.bsl-panel--accent {
  border-color: var(--bsl-green);
  box-shadow: var(--bsl-shadow);
}

/* final CTA */

.bsl-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* optional information card next to the form (home page layout) */
.bsl-cta--note {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.bsl-cta__note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius);
  color: var(--bsl-muted);
  text-align: center;
}

.bsl-cta__note .bsl-icon-box {
  width: 56px;
  height: 56px;
}

.bsl-cta__note .bsl-icon {
  width: 28px;
  height: 28px;
}

.bsl-cta__note-text {
  max-width: 260px;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- objects ---------- */

.bsl-object {
  overflow: hidden;
  padding: 0;
}

.bsl-object .bsl-media {
  border-radius: 0;
  aspect-ratio: 4 / 3;
}

.bsl-object__body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px 16px;
  color: var(--bsl-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.bsl-object__body .bsl-icon {
  width: 18px;
  height: 18px;
  color: var(--bsl-green);
}

/* ---------- FAQ accordion ---------- */

.bsl-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  align-items: start;
}

.bsl-faq__col {
  border-top: 1px solid var(--bsl-border);
}

.bsl-faq__item {
  border-bottom: 1px solid var(--bsl-border);
}

.bsl-faq__heading {
  margin: 0;
  font-size: inherit;
}

.bsl .bsl-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 4px;
  border: 0;
  background: none;
  color: var(--bsl-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.bsl-faq__q:hover {
  color: var(--bsl-green);
}

.bsl-faq__q .bsl-icon {
  width: 20px;
  height: 20px;
  color: var(--bsl-green);
  transition: transform .2s ease;
}

.bsl-faq__q[aria-expanded="true"] .bsl-icon {
  transform: rotate(180deg);
}

.bsl-faq__a {
  padding: 0 4px 18px;
  color: var(--bsl-muted);
  font-size: 15px;
  line-height: 1.6;
}

.bsl-faq__a[hidden] {
  display: none;
}

/* ---------- details (expandable reference content) ---------- */

.bsl-details {
  margin-top: 24px;
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius);
  background: #fff;
}

.bsl-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--bsl-green);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.bsl-details > summary::-webkit-details-marker {
  display: none;
}

.bsl-details > summary .bsl-icon {
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
}

.bsl-details[open] > summary .bsl-icon {
  transform: rotate(180deg);
}

.bsl-details__body {
  padding: 0 20px 20px;
}

.bsl-props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.bsl-props dt {
  color: var(--bsl-dark);
  font-weight: 700;
}

.bsl-props dd {
  margin: 4px 0 0;
  color: var(--bsl-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- photo strip ---------- */

.bsl-photo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.bsl-photo figcaption {
  color: var(--bsl-dark);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---------- note ---------- */

.bsl-note,
.bsl-card.bsl-note {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.bsl-note__body {
  flex: 1;
  min-width: 0;
}

.bsl-note__body .bsl-h3 + .bsl-text {
  margin-top: 6px;
}

/* ---------- embedded legacy parts (catalogs, calculator, reviews, gallery, certificates) ---------- */

.bsl-legacy {
  position: relative;
}

.bsl-legacy img[class*="bush"],
.bsl-legacy .arbolit-goods__block,
.bsl-legacy .homes__bush,
.bsl-legacy .homes__mirror-bush {
  display: none;
}

.bsl-legacy > .section,
.bsl-legacy > section {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.bsl-legacy .container {
  max-width: 1240px;
  padding-left: 24px;
  padding-right: 24px;
}

.bsl-legacy .arbolit-goods__title,
.bsl-legacy .section__header {
  display: none;
}

/* delivery calculator (template_part/bsl/delivery.php): shown exactly like the stable site.
   Only undo what the .bsl page wrapper would pass down; style.css/adaption.css do the rest. */
.bsl .bsl-delivery {
  background: var(--bsl-bg);
  color: #282828;
  font-size: 16px;
  line-height: 24px;
}

.bsl .bsl-delivery img {
  max-width: none;
}

.bsl-legacy--panel {
  padding: 24px 0;
  background: #fff;
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius);
}

.bsl-legacy--panel .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* lumber catalog (template_part/materials.php, cards rendered by basket.js).
   Both nested legacy .container got the 1240px/24px limit, so the list shrank to 4 columns
   while basket.js shows 5 cards above 1425px; .bsl p {margin:0} also un-centred «Показать ещё». */
.bsl-legacy--catalog .pilmat-list .arbolit-goods__container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* arbolit blocks (template_part/blocks.php, cards rendered by basket.js): style.css sizes every card
   to a quarter of the row, so three blocks left an empty quarter. Equal columns fill the container;
   phones keep the one-per-row layout from adaption.css. */
@media (min-width: 769px) {
  .bsl-legacy--blocks .arbolit-goods__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__list > .arbolit-card {
  flex: none;
  width: auto;
  max-width: none;
  min-width: 0;
  height: auto;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__list > .arbolit-card._hiden {
  display: none;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__img-content {
  height: auto;
  aspect-ratio: auto;
  margin-bottom: 12px;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__img-wrapper {
  width: 100%;
  margin: 0;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__img-wrapper-inner {
  width: 100%;
  height: auto;
  padding-bottom: 0;
  aspect-ratio: 4 / 3;
  max-height: 200px;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__img {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__txt-content {
  flex: 1 1 auto;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__card-title {
  overflow-wrap: break-word;
}

.bsl-legacy--catalog .pilmat-list .arbolit-goods__buttons {
  margin-top: auto;
}

.bsl-legacy--catalog .pilmat-list .goods-calc__unit,
.bsl-legacy--catalog .pilmat-list .goods__price,
.bsl-legacy--catalog .pilmat-list .pilmat__items-length p {
  white-space: nowrap;
}

/* price and «Заказать» side by side (adaption.css stacks them below 768px and makes the price 100% wide) */
.bsl-legacy--catalog .pilmat-list .goods__buy {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsl-legacy--catalog .pilmat-list .goods__price {
  flex: none;
  width: auto;
  margin: 0;
}

.bsl-legacy--catalog .pilmat-list .goods__button.button-base {
  flex: 1 1 auto;
  width: auto;
  max-width: 170px;
}

.bsl-legacy--catalog .pilmat-list ._more__btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.bsl-legacy--catalog .pilmat-list ._more__btn {
  margin: 0;
}

@media (max-width: 1279px) {
  .bsl-legacy--catalog .pilmat-list .arbolit-goods__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .bsl-legacy--catalog .pilmat-list .arbolit-goods__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  /* adaption.css sizes these in vw for a single full-width card */
  .bsl-legacy--catalog .pilmat-list .goods-calc__unit { padding: 7px 11px; font-size: 14px; }
  .bsl-legacy--catalog .pilmat-list .arbolit-goods__txt { font-size: 14px; }
}

@media (max-width: 639px) {
  .bsl-legacy--catalog .pilmat-list .arbolit-goods__list { grid-template-columns: minmax(0, 1fr); }
}

/* block catalog: «Цена по запросу» instead of a missing or zero price (bsl-pages.js) */
.bsl-legacy .goods__price .bsl-price-request { display: none; }
.bsl-legacy .goods__price.bsl-price--request .goods__price-value,
.bsl-legacy .goods__price.bsl-price--request .goods__price-word { display: none; }
.bsl-legacy .goods__price.bsl-price--request {
  flex: 1 1 auto;
  min-width: 0;
}
.bsl-legacy .goods__price.bsl-price--request .bsl-price-request {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  white-space: normal;
}

/* video reviews (template_part/videos.php) */
.bsl-legacy .video .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* certificates slider (template_part/certificates.php): the section title is replaced by our H2 */
.bsl-legacy .sert__flex {
  flex-direction: column;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.bsl-legacy .sert__content {
  width: auto;
  margin-top: 16px;
  padding: 0 0 20px;
  background: transparent;
}

.bsl-legacy .sert__list {
  width: 100%;
}

.bsl-legacy .sert__title {
  display: none;
}

.bsl-legacy .sert__image img {
  object-fit: contain;
}

/* planed lumber list (template_part/material_description.php): the title is replaced by our H2 */
.bsl-legacy--wood .wood__title {
  display: none;
}

.bsl-legacy--wood .wood__wrap {
  max-width: 1240px;
  padding: 0 24px;
  border-top: 0;
}

.bsl-legacy--wood .wood__subtitle {
  color: var(--bsl-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.bsl-legacy--wood .wood__items {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.bsl-legacy--wood .wood__item {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--bsl-border);
  border-radius: var(--bsl-radius-sm);
}

.bsl-legacy--wood .wood__item:hover,
.bsl-legacy--wood .wood__item:focus-visible {
  border-color: var(--bsl-orange);
}

.bsl-legacy--wood .wood__item-wrapper {
  gap: 8px;
  padding: 12px;
  border: 0;
}

.bsl-legacy--wood .wood__item-img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}

.bsl-legacy--wood .wood__item-title {
  color: var(--bsl-dark);
  font-size: 14px;
  line-height: 1.3;
}

.bsl-legacy--wood .wood__info {
  margin-top: 16px;
}

.bsl-legacy--wood .wood__info-text {
  color: var(--bsl-muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .bsl-legacy--wood .wood__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bsl-legacy--wood .wood__wrap { padding: 0 16px; }
  .bsl-legacy--wood .wood__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* photo gallery (template_part/photo_gallery.php) */
.bsl-legacy--gallery .photos {
  padding-bottom: 0;
}

/* the caption sat on the dashed frame (style.css: frame inset 10px, caption margin 15px);
   place it inside the frame with a 14px gap and a soft shade for light photos */
.bsl-legacy--gallery .photos__img-wrapper-inner-content {
  left: 11px;
  right: 11px;
  bottom: 11px;
  width: auto;
  z-index: 2;
  padding: 32px 12px 14px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%);
}

.bsl-legacy--gallery .photos__img-wrapper-inner-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .bsl-legacy--gallery .photos__img-wrapper-inner-content p { font-size: 15px; }
}

/* ---------- utilities ---------- */

.bsl-mt-24 { margin-top: 24px; }
.bsl-mt-32 { margin-top: 32px; }
.bsl-center { text-align: center; justify-content: center; }

.bsl-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- first screen over the previous site's banner picture ---------- */

.bsl-hero--banner {
  display: flex;
  align-items: center;
  background-color: var(--bsl-bg);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 42%, rgba(255, 255, 255, .15) 70%, rgba(255, 255, 255, 0) 100%), var(--bsl-hero-bg);
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover, cover;
}

.bsl-hero--banner .bsl-hero__grid {
  flex: 1 1 auto;
}

/* without the header overlap (no JS) the home first screen keeps its former height without the cards */
.bsl-hero--home.bsl-hero--banner {
  min-height: 535px;
}

/* the home picture is dark at the top: a light band under the header keeps its contacts readable */
.bsl-hero-under-header .bsl-hero--home.bsl-hero--banner {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, .8) var(--bsl-header-h, 0px), rgba(255, 255, 255, 0) calc(var(--bsl-header-h, 0px) + 140px)),
    linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 42%, rgba(255, 255, 255, .15) 70%, rgba(255, 255, 255, 0) 100%),
    var(--bsl-hero-bg);
  background-position: center, center, right center;
  background-size: cover, cover, cover;
}

/* as on the previous site: the first screen runs under the transparent header (its height is set
   by bsl-pages.js) and fills most of the window */
.bsl-hero-under-header .header {
  z-index: 2;
}

.bsl-hero-under-header .bsl-hero--banner {
  margin-top: calc(-1 * var(--bsl-header-h, 0px));
  padding-top: calc(var(--bsl-header-h, 0px) + 40px);
  min-height: 92vh;
  min-height: 92svh;
}

/* both first-screen buttons stay in one row; the free right half of the screen takes the overflow */
@media (min-width: 641px) {
  .bsl-hero__actions {
    flex-wrap: nowrap;
    width: max-content;
  }
}

.bsl-hero__actions {
  align-items: flex-start;
}

/* a button with a short note under it (lumber: retail purchase in the «Строитель» shop) */
.bsl-hero__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bsl-hero__action-note {
  color: var(--bsl-muted);
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 640px) {
  .bsl-hero__action { width: 100%; }
}

/* ---------- team ---------- */

/* as many cards in a row as fit, so the row stays full whatever the team size */
.bsl-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--bsl-gap);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.bsl-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.bsl-person__photo {
  display: block;
  width: 140px;
  height: 140px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: var(--bsl-soft);
}

.bsl-person__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bsl-person__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bsl-person__name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: var(--bsl-dark);
}

.bsl-person__role {
  color: var(--bsl-muted);
  font-size: 15px;
  line-height: 1.4;
}

/* ---------- arbolite comparison table: make the horizontal scroll visible ---------- */

.bsl-compare__hint {
  display: none;
  margin: 0 0 10px;
  color: var(--bsl-muted);
  font-size: 14px;
}

.bsl-compare__hint .bsl-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  vertical-align: -4px;
  color: var(--bsl-green);
}

.bsl-compare .table__wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bsl-green) var(--bsl-soft);
}

.bsl-compare .table__wrapper::-webkit-scrollbar {
  height: 8px;
}

.bsl-compare .table__wrapper::-webkit-scrollbar-track {
  background: var(--bsl-soft);
  border-radius: 4px;
}

.bsl-compare .table__wrapper::-webkit-scrollbar-thumb {
  background: var(--bsl-green);
  border-radius: 4px;
}

.bsl-compare .table__wrapper:focus-visible {
  outline: none;
  box-shadow: var(--bsl-focus);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .bsl-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .bsl-section { padding: 44px 0; }
  .bsl-hero { padding: 28px 0 40px; }
  .bsl-hero__grid,
  .bsl-split,
  .bsl-split--reverse,
  .bsl-cta { grid-template-columns: minmax(0, 1fr); }
  .bsl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsl-grid--hcards { grid-template-columns: minmax(0, 1fr); }
  .bsl-split > .bsl-media { aspect-ratio: 16 / 9; min-height: 0; }
  .bsl-steps { grid-template-columns: repeat(min(var(--bsl-steps, 5), 3), minmax(0, 1fr)); row-gap: 24px; }
  .bsl-step:not(:last-child)::after { display: none; }
  .bsl-props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bsl-grid--3,
  .bsl-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsl-faq { grid-template-columns: minmax(0, 1fr); }
  .bsl-faq__col + .bsl-faq__col { border-top: 0; }
  .bsl-section-head { flex-direction: column; align-items: flex-start; }
  .bsl-note,
  .bsl-card.bsl-note { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .bsl { font-size: 15px; }
  .bsl-container,
  .bsl-legacy .container { padding-left: 16px; padding-right: 16px; }
  .bsl-section { padding: 36px 0; }
  .bsl-hero { padding: 20px 0 32px; }
  .bsl-grid { gap: 14px; }
  .bsl-grid--2,
  .bsl-grid--3,
  .bsl-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .bsl-grid--m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsl-card { padding: 18px; }
  .bsl-panel { padding: 20px; }
  .bsl-hcard { grid-template-columns: 96px minmax(0, 1fr); padding: 12px; gap: 14px; }
  .bsl-hcard .bsl-card__arrow { display: none; }
  .bsl-dir .bsl-media { aspect-ratio: 16 / 9; }
  .bsl-features { gap: 12px 20px; margin-top: 20px; }
  .bsl-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bsl-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bsl-step { flex-direction: row; align-items: center; gap: 14px; text-align: left; padding: 0; }
  .bsl-step__mark { width: 44px; height: 44px; }
  .bsl-actions .bsl-btn { width: 100%; }
  .bsl-form__grid { grid-template-columns: minmax(0, 1fr); }
  .bsl-form__submit { width: 100%; }
  .bsl-props { grid-template-columns: minmax(0, 1fr); }
  .bsl-stat__num { font-size: 26px; }
  .bsl-legacy--panel { padding: 16px 0; }
}

@media (max-width: 360px) {
  .bsl-grid--m2 { grid-template-columns: minmax(0, 1fr); }
  .bsl-btn { padding-left: 16px; padding-right: 16px; }
  /* legacy delivery vehicle cards: the 170px picture and the 42px check mark do not fit;
     shrink the picture into its column and keep a reserved lane for a smaller check mark */
  .bsl-delivery .delivery-new__transport .delivery-transport__item {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 42px 10px 8px;
  }
  .bsl-delivery .delivery-transport__img-wrapper {
    flex: 0 0 92px;
    width: 92px;
  }
  .bsl-delivery .delivery-transport__img-wrapper-inner,
  .bsl-delivery .delivery-transport__img-wrapper-inner img {
    width: 100%;
    height: auto;
  }
  .bsl-delivery .delivery-transport__img-wrapper-inner img { object-fit: contain; }
  .bsl-delivery .delivery-transport__txt-wrap { flex: 1 1 auto; min-width: 0; }
  .bsl-delivery .delivery-transport__type { font-size: 15px; line-height: 20px; }
  .bsl-delivery .delivery-transport__volume { font-size: 14px; line-height: 18px; }
  .bsl-delivery .delivery-transport__item._active::after {
    top: calc(50% - 14px);
    right: 10px;
    width: 28px;
    height: 28px;
    background-size: 14px;
  }
}

/* banner first screen, team and comparison table on narrower screens */

@media (max-width: 1180px) {
  .bsl-compare__hint { display: block; }
}

@media (max-width: 860px) {
  .bsl-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  /* one column: the text starts at the top and stays readable over the picture, which shows at the bottom */
  .bsl-hero--banner {
    align-items: flex-start;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .88) 70%, rgba(255, 255, 255, .35) 92%, rgba(255, 255, 255, 0) 100%), var(--bsl-hero-bg);
    background-position: center, right bottom;
    background-size: cover, cover;
  }
  .bsl-hero--home.bsl-hero--banner,
  .bsl-hero-under-header .bsl-hero--home.bsl-hero--banner {
    display: block;
    padding-bottom: 240px;
    background-position: center, right bottom;
    background-size: cover, cover;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .86) 55%, rgba(255, 255, 255, .2) 85%, rgba(255, 255, 255, 0) 100%), var(--bsl-hero-bg);
  }
}

@media (max-width: 640px) {
  .bsl-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsl-person__photo { width: 110px; height: 110px; }
  .bsl-hero--home.bsl-hero--banner { padding-bottom: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .bsl *,
  .bsl *::before,
  .bsl *::after { transition: none !important; }
}
