/* Калькулятор печати /calculator/. Палитра/радиус — из site tokens.css
   (var(--bg/--fg/--accent/--line/--muted/--radius/--gutter)). Только раскладка
   и компоненты; никаких своих цветов. */

/* Full-width как остальной сайт (эталон .mat): без max-width/центровки,
   боковой отступ = как у шапки/футера (clamp 16–48px). Никаких «ушей». */
.calc { padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); }

/* Hero: цельный баннер — картинка на всю ширину, текст поверх слева на
   мягком градиенте (одна композиция, не два разъехавшихся блока). */
.calc__hero {
  position: relative; overflow: hidden;
  min-height: clamp(300px, 38vw, 420px);
  border-radius: var(--radius);
  display: flex; align-items: center;
  margin-bottom: 40px;
}
.calc__hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
}
.calc__hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    var(--bg) 4%,
    color-mix(in srgb, var(--bg) 68%, transparent) 40%,
    transparent 72%);
}
.calc__hero-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 clamp(22px, 4vw, 52px); max-width: 560px;
}
@media (max-width: 640px) {
  .calc__hero { align-items: flex-end; min-height: clamp(360px, 70vw, 440px); }
  .calc__hero-bg { object-position: center 30%; }
  .calc__hero::after {
    background: linear-gradient(0deg,
      var(--bg) 8%,
      color-mix(in srgb, var(--bg) 70%, transparent) 42%,
      transparent 78%);
  }
  .calc__hero-text { padding: 22px; max-width: none; }
}
.calc__eyebrow {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.calc__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.calc__title { font-size: 30px; margin: 0; font-weight: 650; letter-spacing: -0.01em; }
.calc__lead { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

/* раскладка: на широком — форма | табло */
.calc__grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 840px) {
  .calc__grid { grid-template-columns: 1fr 360px; }
  .calc__side { position: sticky; top: 28px; }
}
.calc__form { display: flex; flex-direction: column; gap: 26px; }
.calc__side { display: flex; flex-direction: column; gap: 14px; }

.calc__block { display: flex; flex-direction: column; gap: 11px; }
.calc__label {
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.calc__hint { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* чипсы */
.calc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chip {
  font: inherit; color: var(--fg); background: var(--bg-2, var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  text-align: left; line-height: 1.25; transition: border-color .12s, background .12s, transform .08s;
}
.calc-chip__sub { font-size: 11px; color: var(--muted); }
.calc-chip:hover { border-color: var(--accent); }
.calc-chip:active { transform: translateY(1px); }
.calc-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.calc-chip.is-active .calc-chip__sub { color: color-mix(in srgb, var(--accent-fg) 76%, transparent); }
.calc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* слайдеры */
.calc__sliders { gap: 18px; }
.calc-slider { display: flex; flex-direction: column; gap: 8px; }
.calc-slider__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.calc-slider__val { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: var(--line); border-radius: var(--radius); outline: none; margin: 4px 0;
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg); cursor: pointer; box-shadow: 0 0 0 1px var(--accent);
}
.calc input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; background: var(--accent);
  border: 3px solid var(--bg); cursor: pointer; box-shadow: 0 0 0 1px var(--accent);
}
.calc input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--fg); outline-offset: 2px; }

/* табло цены */
.calc-price {
  background: var(--bg-2, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 4px;
}
.calc-price__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.calc-price__cap { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.calc-price__sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-price__big {
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(38px, 8vw, 52px); color: var(--accent); font-variant-numeric: tabular-nums;
}

/* разбивка */
.calc-bd {
  margin-top: 12px; padding: 14px 20px 6px; display: flex; flex-direction: column; gap: 1px;
  background: var(--bg-2, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius);
}
.calc-bd__row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 13.5px; }
.calc-bd__k { color: var(--muted); display: flex; gap: 7px; align-items: baseline; }
.calc-bd__k em { font-style: normal; font-size: 11px; opacity: .8; }
.calc-bd__v { color: var(--fg); font-variant-numeric: tabular-nums; }
.calc-bd__row--total { border-top: 1px dashed var(--line); margin-top: 5px; padding-top: 10px; }
.calc-bd__row--total .calc-bd__k, .calc-bd__row--total .calc-bd__v { color: var(--fg); font-weight: 600; }

.calc__note { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0; }

@media (prefers-reduced-motion: reduce) { .calc * { transition: none !important; } }
