@font-face {
  font-family: Bim Benefits Manrope;
  src: url("manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Bim Benefits Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.bim-advantages-v4 {
  --bim-v4-art-size: 104px;
  box-sizing: border-box;
  width: min(100%, 1460px);
  margin: 34px auto 44px;
  padding-inline: clamp(16px, 3.4vw, 48px);
  scroll-margin-top: 100px;
  font-family: Bim Benefits Manrope, "Segoe UI", sans-serif;
  color: #342820;
}

.bim-advantages-v4 *,
.bim-advantages-v4 *::before,
.bim-advantages-v4 *::after {
  box-sizing: border-box;
}

.bim-advantages-v4 .bim-advantages-v4__title {
  margin: 0 0 20px;
  color: inherit;
  font-size: clamp(28px, 3.35vw, 46px);
  line-height: 1.09;
  font-weight: 800;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.bim-advantages-v4__grid,
.bim-advantages-v4__row {
  display: grid;
  gap: 18px;
}

.bim-advantages-v4__grid {
  grid-template-columns: minmax(0, 1fr);
}

.bim-advantages-v4__row--top {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) minmax(0, 1fr);
}

.bim-advantages-v4__row--bottom {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
}

.bim-advantages-v4__tile {
  --bim-v4-paper: #fff9ee;
  --bim-v4-line: #914b32;
  --bim-v4-fill: #cf8061;
  --bim-v4-mid: #e7aa8d;
  --bim-v4-light: #f7cdb5;
  --bim-v4-shadow: #8c44231a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 28px;
  border: 1px solid #e7c7b4;
  border-radius: 19px;
  background: linear-gradient(140deg, #fff6ee 1%, #f3d6c4 100%);
}

.bim-advantages-v4__tile--fresh {
  --bim-v4-line: #596d46;
  --bim-v4-fill: #879b74;
  --bim-v4-mid: #b8c2a4;
  --bim-v4-light: #d6dec5;
  --bim-v4-shadow: #43593a18;
  border-color: #d8ddcc;
  background: linear-gradient(145deg, #f8f8ef 2%, #e5eadb 100%);
}

.bim-advantages-v4__tile--track {
  --bim-v4-line: #886032;
  --bim-v4-fill: #c69352;
  --bim-v4-mid: #dab985;
  --bim-v4-light: #f2dab3;
  --bim-v4-shadow: #855c2d18;
  border-color: #e5d7c5;
  background: linear-gradient(145deg, #fffaf1 6%, #f4e6d3 100%);
}

.bim-advantages-v4__tile--original {
  --bim-v4-line: #867053;
  --bim-v4-fill: #ae9269;
  --bim-v4-mid: #d2bf9d;
  --bim-v4-light: #ecdac0;
  --bim-v4-shadow: #76634d1a;
  border-color: #e1d7c9;
  background: linear-gradient(145deg, #faf7ef 3%, #eee4d5 100%);
}

.bim-advantages-v4__tile--help {
  --bim-v4-line: #9c6b55;
  --bim-v4-fill: #b76e54;
  --bim-v4-mid: #dfb39f;
  --bim-v4-light: #ebccbd;
  --bim-v4-shadow: #83534218;
  border-color: #e3cbbf;
  background: linear-gradient(145deg, #fff8f1 2%, #f1dfd6 100%);
}

.bim-advantages-v4 .bim-advantages-v4__heading {
  margin: 0;
  color: inherit;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.03em;
}

.bim-advantages-v4__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--bim-v4-art-size);
  align-items: start;
  gap: 12px;
  width: 100%;
  flex: 1;
}

.bim-advantages-v4__copy {
  min-width: 0;
}

.bim-advantages-v4 .bim-advantages-v4__detail {
  margin: 0;
  color: #5f5248;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
}

.bim-advantages-v4 .bim-advantages-v4__price {
  margin: 0 0 6px;
  color: #9a472d;
  font-size: clamp(23px, 3.15vw, 45px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.052em;
  white-space: nowrap;
}

.bim-advantages-v4__art {
  display: block;
  align-self: center;
  width: var(--bim-v4-art-size);
  height: var(--bim-v4-art-size);
  pointer-events: none;
}

.bim-advantages-v4__art .art-paper { fill: var(--bim-v4-paper); }
.bim-advantages-v4__art .art-fill { fill: var(--bim-v4-fill); }
.bim-advantages-v4__art .art-mid { fill: var(--bim-v4-mid); }
.bim-advantages-v4__art .art-light { fill: var(--bim-v4-light); }
.bim-advantages-v4__art .art-shadow { fill: var(--bim-v4-shadow); }

.bim-advantages-v4__art .art-line,
.bim-advantages-v4__art .art-outline,
.bim-advantages-v4__art .art-dash,
.bim-advantages-v4__art .art-check {
  stroke: var(--bim-v4-line);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.bim-advantages-v4__art .art-line,
.bim-advantages-v4__art .art-dash,
.bim-advantages-v4__art .art-check { fill: none; }
.bim-advantages-v4__art .art-dash { stroke-dasharray: 3 5; opacity: .55; }
.bim-advantages-v4__art .art-check { stroke: #fff9ee; }

.bim-advantages-v4__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.bim-advantages-v4 .bim-advantages-v4__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #d4af96;
  border-radius: 9px;
  color: #67412b;
  background: #fff8ed;
  text-decoration: none;
  font: 800 13px/1.2 Bim Benefits Manrope, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.bim-advantages-v4 .bim-advantages-v4__button:hover {
  border-color: #a16d51;
  background: #fff2e4;
}

.bim-advantages-v4 .bim-advantages-v4__button--primary {
  border-color: #6d432e;
  background: #6d432e;
  color: #fff7ee;
}

.bim-advantages-v4 .bim-advantages-v4__button--primary:hover {
  background: #543021;
}

.bim-advantages-v4 .bim-advantages-v4__button:focus-visible {
  outline: 2px solid #814328;
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  .bim-advantages-v4 {
    --bim-v4-art-size: 112px;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__tile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--bim-v4-art-size);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 12px;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__main {
    display: contents;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__heading {
    grid-area: 1 / 1 / 2 / -1;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__copy {
    grid-area: 2 / 1 / 3 / 2;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__art {
    grid-area: 2 / 2 / 4 / 3;
  }

  .bim-advantages-v4__row--bottom .bim-advantages-v4__actions {
    grid-area: 3 / 1 / 4 / 2;
  }
}

@media (max-width: 1023px) {
  .bim-advantages-v4__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bim-advantages-v4__row {
    display: contents;
  }

  .bim-advantages-v4__tile--help {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .bim-advantages-v4 {
    --bim-v4-art-size: 72px;
    margin-block: 25px 32px;
  }

  .bim-advantages-v4__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .bim-advantages-v4__tile {
    padding: 20px;
    border-radius: 16px;
  }

  .bim-advantages-v4 .bim-advantages-v4__button {
    min-height: 44px;
  }
}

/* Не допускаем выхода длинного текста за ширину карточки при редактировании. */
.bim-advantages-v4__copy,
.bim-advantages-v4__heading { overflow-wrap: break-word; }