/* Калькуляторы (/kalkulyatory/). Цвета и шрифты - переменные темы v2: --ink, --yellow, --red, --narrow */

/* ---------- верх страницы ---------- */
.calc-hero { position: relative; margin-top: 8px; background: var(--ink); color: #fff; overflow: hidden; }
.calc-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }
.calc-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: 36px; padding-bottom: 44px; }
.calc-hero .h1 { color: #fff; }
.calc-hero__lead { max-width: 640px; margin-top: 14px; font-size: 17px; line-height: 1.45; color: #D3D7D7; }
.calc-hero__facts { display: flex; gap: 32px; }
.calc-hero__facts div { display: flex; flex-direction: column; gap: 2px; }
.calc-hero__facts b { font: 700 40px/1 var(--narrow); color: var(--yellow); }
.calc-hero__facts span { font-size: 13px; color: #C9CECE; }

/* ---------- список калькуляторов ---------- */
.calc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.calc-card { position: relative; display: flex; align-items: center; gap: 24px; padding: 32px 28px; border-radius: var(--r-lg); background: var(--yellow); color: var(--ink); overflow: hidden; }
.calc-card:hover { background: var(--ink); color: #fff; }
.calc-card__ico { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.calc-card:hover .calc-card__ico { background: var(--yellow); color: var(--ink); }
.calc-card__ico .calc-ico { width: 48px; height: 48px; }
.calc-card__name { display: block; font: 700 30px/1 var(--narrow); }
.calc-card__text { display: block; margin-top: 8px; font-size: 15px; }

/* ---------- иконки (icons/*.svg, цвет - currentColor) ---------- */
.calc-ico { display: block; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.calc-ico--bolt { --ico: url("../icons/bolt.svg"); }
.calc-ico--screw { --ico: url("../icons/screw.svg"); }
.calc-ico--nut { --ico: url("../icons/nut.svg"); }
.calc-ico--washer { --ico: url("../icons/washer.svg"); }
.calc-ico--rod { --ico: url("../icons/rod.svg"); }
.calc-ico--swap { --ico: url("../icons/swap.svg"); }
.calc-ico--close { --ico: url("../icons/close.svg"); }

@media (max-width: 768px) {
  .calc-hero__in { grid-template-columns: minmax(0, 1fr); padding-top: 24px; padding-bottom: 32px; }
  .calc-hero__lead { margin-top: 10px; font-size: 15px; }
  .calc-hero__facts { gap: 24px; }
  .calc-hero__facts b { font-size: 30px; }
  .calc-cards { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .calc-card { gap: 16px; padding: 28px 20px; }
  .calc-card__ico { width: 64px; height: 64px; }
  .calc-card__ico .calc-ico { width: 34px; height: 34px; }
  .calc-card__name { font-size: 24px; }
}
