@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-Regular.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --card: #20262c;
  --text: #252a31;
  --muted: #3b3b3b;
  --accent: #e3262e;
  --soft: #f0f0f0;
}

* { box-sizing: border-box; }

body.bl-page {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.bl-container {
  width: min(1296px, calc(100% - 32px));
  margin: 32px auto 96px;
}

.bl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 40px;
  margin-bottom: 22px;
}

.bl-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}

.bl-logo {
  display: block;
  width: 124px;
  height: auto;
  flex-shrink: 0;
}

.bl-logo-sub {
  display: inline-flex;
  align-items: center;
  width: 76px;
  height: 36px;
  padding-left: 16px;
  border-left: 1px solid var(--muted);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.bl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  flex: 1;
}

.bl-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.bl-phone {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 174px;
  height: 26px;
  color: #14171c;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  white-space: nowrap;
}

.bl-hero {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 128px;
}

.bl-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.bl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .36) 38%, rgba(0, 0, 0, .05) 100%);
}

.bl-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 579px;
  padding: 150px 0 0 80px;
}

.bl-hero-content h1 {
  width: 499px;
  height: 77px;
  margin: 0 0 8px;
  font-size: 60px;
  font-weight: 700;
  line-height: 77px;
  letter-spacing: .01em;
}

.bl-hero-content p {
  width: 499px;
  height: 56px;
  margin: 0 0 42px;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

.bl-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bl-btn {
  border: 0;
  border-radius: 4px;
  height: 60px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.bl-hero-actions .bl-btn-primary { width: 111px; }
.bl-hero-actions .bl-btn-secondary { width: 226px; }
.bl-btn-primary { background: var(--accent); color: #fff; }
.bl-btn-secondary { background: #fff; color: #222; }
.bl-btn:disabled { cursor: not-allowed; opacity: .55; }

.bl-section {
  margin-bottom: 128px;
}

.bl-section h2 {
  margin: 0 0 32px;
  font-size: 40px;
  font-weight: 600;
  line-height: 51px;
}

.bl-categories-section h2 { width: 460px; height: 51px; }
.bl-products-section h2 { width: 281px; height: 51px; }
.bl-about h2 { width: 378px; height: 102px; }
.bl-advantages-section h2 { width: 657px; height: 51px; }
.bl-cta h2 { width: 496px; height: 51px; }
.bl-contacts-section h2 { width: 186px; height: 51px; }

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

.bl-category-card {
  position: relative;
  width: 100%;
  max-width: 416px;
  height: 416px;
  background: radial-gradient(120% 140% at 15% 20%, #263341 0%, #1d2631 42%, #141d28 100%);
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  overflow: hidden;
}

.bl-category-card img {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 78%;
  height: 78%;
  object-fit: contain;
  z-index: 1;
}

.bl-category-card h3,
.bl-category-card p {
  position: relative;
  z-index: 2;
}

.bl-category-card h3 {
  margin: 0 0 8px;
  font-size: 35px;
  font-weight: 500;
  line-height: 44px;
}

.bl-category-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  opacity: .94;
}

.bl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}

.bl-tab-btn {
  appearance: none;
  width: 125px;
  height: 46px;
  background: #fff;
  border: 1px solid #d6d9dd;
  border-radius: 5px;
  color: #30343a;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: all .18s ease;
}

.bl-tab-btn:hover { background: #f7f8f9; }
.bl-tab-btn.is-active {
  background: #3a3f46;
  color: #fff;
  border-color: #3a3f46;
}

.bl-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.bl-products.is-hidden { display: none; }
.bl-product-card { min-width: 0; }

.bl-product-image-wrap {
  width: 100%;
  max-width: 306px;
  height: 306px;
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bl-product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bl-product-card p {
  width: 306px;
  max-width: 100%;
  height: 81px;
  margin: 0;
  color: #252a31;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
}

.bl-about {
  display: grid;
  grid-template-columns: minmax(0, 493px) minmax(0, 636px);
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}

.bl-about h2 {
  max-width: 378px;
  margin-bottom: 18px;
}

.bl-about-copy {
  width: 493px;
  max-width: 100%;
}

.bl-about-copy p {
  width: 493px;
  max-width: 100%;
  margin: 0 0 13px;
  color: #2d3239;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.bl-about-copy .bl-about-lead {
  height: 52px;
  margin-bottom: 18px;
  overflow: hidden;
  font-size: 20px;
  line-height: 26px;
}

.bl-about img {
  width: 636px;
  max-width: 100%;
  height: 572px;
  object-fit: cover;
  border-radius: 12px;
}

.bl-advantages-intro,
.bl-contacts-intro {
  width: 657px;
  max-width: 100%;
  height: 52px;
  color: #2d3239;
  margin: -22px 0 32px;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.bl-contacts-intro {
  width: 363px;
}

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

.bl-adv-card {
  width: 100%;
  height: 414px;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.bl-adv-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}

.bl-adv-card h3 {
  width: 100%;
  height: 26px;
  margin: 0 0 8px;
  color: #262b31;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.bl-adv-card p {
  width: 100%;
  height: 36px;
  margin: 0;
  color: #3e434a;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.bl-adv-card--image-only { padding: 0; overflow: hidden; }
.bl-adv-card--image-only img { height: 100%; margin: 0; border-radius: 12px; }

.bl-cta {
  width: 100%;
  height: 367px;
  background: linear-gradient(90deg, #1f2834 0%, #1a2330 55%, #131c28 100%);
  color: #fff;
  border-radius: 12px;
  padding: 58px 40px 42px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.bl-cta h2 {
  width: 496px;
  max-width: 100%;
  margin-bottom: 12px;
}

.bl-cta-content > p {
  width: 496px;
  max-width: 100%;
  height: 52px;
  margin: 0 0 22px;
  color: #d8dee7;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.bl-form {
  width: 760px;
  max-width: 100%;
  height: 88px;
  display: grid;
  grid-template-columns: 240px 240px minmax(190px, 1fr);
  gap: 12px;
  align-items: start;
}
.bl-form-message { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.bl-form-message--success { background: #dcfce7; color: #166534; }
.bl-form-message--warning { background: #fef3c7; color: #92400e; }
.bl-form-message--error { background: #fee2e2; color: #991b1b; }

.bl-form input[type="text"],
.bl-form input[type="tel"] {
  width: 240px;
  height: 52px;
  border: 1px solid #c6ccd2;
  border-radius: 4px;
  padding: 0 16px;
  background: #fff;
  color: #2d3239;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.bl-form .bl-submit-btn {
  width: 100%;
  height: 52px;
  padding: 0 18px;
}

.bl-cta-policy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  margin-top: 4px;
  color: #c4ccd8;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  cursor: pointer;
  user-select: none;
}

.bl-policy-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bl-cta-policy .bl-policy-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #c4ccd8;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  line-height: 1;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.bl-policy-checkbox:checked + .bl-policy-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.bl-cta-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  justify-self: end;
}

.bl-contacts-grid {
  display: grid;
  grid-template-columns: 416px minmax(0, 856px);
  gap: 24px;
  align-items: start;
}

.bl-contact-list,
.bl-map-placeholder {
  border-radius: 12px;
}

.bl-contact-list.bl-accordion {
  width: 416px;
  max-width: 100%;
  height: 576px;
  overflow: hidden;
}

.bl-acc-item {
  background: #f0f0f0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.bl-acc-item.is-open {
  height: 420px;
}

.bl-acc-head {
  width: 100%;
  height: 58px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #2b2f36;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bl-acc-head::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #4a4f57;
  border-bottom: 2px solid #4a4f57;
  border-radius: 1px;
  display: inline-block;
  flex-shrink: 0;
  margin-left: 12px;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform .2s ease;
}

.bl-acc-item.is-open .bl-acc-head::after { transform: rotate(225deg); }

.bl-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 20px;
}

.bl-acc-item.is-open .bl-acc-body {
  max-height: 348px;
  padding: 0 20px 20px;
  overflow-y: auto;
}

.bl-acc-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 18px minmax(0, 332px);
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  padding: 0;
  color: #3a3f46;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.bl-acc-row span {
  width: 332px;
  max-width: 100%;
  height: 54px;
}

.bl-acc-row img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  margin-top: 2px;
}

.bl-map-placeholder {
  width: 100%;
  height: 576px;
  padding: 0;
  overflow: hidden;
  background: #f0f0f0;
}

#blYandexMap {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .bl-header { flex-wrap: wrap; height: auto; }
  .bl-logo-wrap { min-width: auto; }
  .bl-nav { order: 3; flex-basis: 100%; gap: 24px; }
  .bl-hero-content { padding-left: 48px; }
  .bl-about { grid-template-columns: 1fr 1fr; }
  .bl-form { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .bl-form input[type="text"],
  .bl-form input[type="tel"] { width: 100%; }
  .bl-form .bl-submit-btn { grid-column: 1 / -1; width: 240px; }
  .bl-contacts-grid { grid-template-columns: minmax(320px, 416px) 1fr; }
}

@media (max-width: 900px) {
  .bl-container { margin-top: 20px; }
  .bl-header { gap: 16px; }
  .bl-logo-sub { display: none; }
  .bl-nav { justify-content: flex-start; overflow-x: auto; }
  .bl-phone { width: auto; font-size: 17px; }
  .bl-hero { height: 520px; margin-bottom: 80px; }
  .bl-hero-content { width: auto; max-width: calc(100% - 48px); padding: 120px 24px 0; }
  .bl-hero-content h1,
  .bl-hero-content p { width: 100%; }
  .bl-hero-content h1 { font-size: 44px; line-height: 56px; }
  .bl-section { margin-bottom: 80px; }
  .bl-section h2 { font-size: 32px; line-height: 40px; }
  .bl-categories,
  .bl-products,
  .bl-advantages,
  .bl-about,
  .bl-contacts-grid { grid-template-columns: 1fr; }
  .bl-category-card { min-height: 320px; }
  .bl-about-copy,
  .bl-about-copy p,
  .bl-about img,
  .bl-contact-list.bl-accordion { width: 100%; }
  .bl-about img { height: auto; max-height: 572px; }
  .bl-category-card { max-width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .bl-product-image-wrap { max-width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .bl-section h2 { width: auto; max-width: 100%; height: auto; }
  .bl-cta { grid-template-columns: 1fr; height: auto; padding: 36px 24px; }
  .bl-form { grid-template-columns: 1fr; height: auto; }
  .bl-form .bl-submit-btn { width: 100%; }
  .bl-map-placeholder,
  #blYandexMap { height: 420px; min-height: 420px; }
}

@media (max-width: 560px) {
  .bl-container { width: min(100% - 24px, 1296px); }
  .bl-logo { width: 112px; }
  .bl-phone { font-size: 15px; line-height: 20px; }
  .bl-hero-actions { flex-direction: column; align-items: stretch; }
  .bl-hero-actions .bl-btn-primary,
  .bl-hero-actions .bl-btn-secondary { width: 100%; }
  .bl-tab-btn { width: auto; min-width: 112px; font-size: 16px; }
  .bl-product-card p { width: 100%; height: auto; font-size: 16px; line-height: 22px; }
}

/* Keep the CTA form fluid at every width, including intermediate tablet sizes. */
.bl-cta-content,
.bl-form,
.bl-form > * {
  min-width: 0;
  box-sizing: border-box;
}

.bl-cta-content > p {
  height: auto;
  overflow-wrap: anywhere;
}

.bl-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bl-form input[type="text"],
.bl-form input[type="tel"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.bl-form .bl-submit-btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.bl-cta-policy {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 24px;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .bl-cta {
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  }

  .bl-form {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bl-form .bl-submit-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .bl-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .bl-cta {
    padding: 28px 16px;
  }

  .bl-cta-policy {
    align-items: flex-start;
    line-height: 1.45;
  }

  .bl-cta-policy .bl-policy-mark {
    margin-top: 2px;
  }
}

.bl-cta-policy-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bl-cta {
  height: auto;
  min-height: 367px;
}

.bl-form {
  height: auto;
  min-height: 88px;
}

.bl-form .bl-submit-btn {
  height: auto;
  min-height: 52px;
  padding-block: 8px;
}

@media (max-width: 900px) {
  .bl-cta {
    min-height: 0;
  }
}
