/* Калькулятор «смета-чек»: бумажный чек со строками «−/+», итог внизу, рядом ствол из колец */
.vs-check { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 22px; align-items: end; }
.vs-check__paper { position: relative; background: var(--vs-paper); border-radius: var(--vs-r2) var(--vs-r2) 0 0; padding: 26px 28px 30px; box-shadow: var(--vs-shadow); background-image: linear-gradient(var(--vs-paper), var(--vs-paper)); }
.vs-check__paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--vs-paper) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--vs-paper) 0) 0 0 / 16px 12px repeat-x; }
.vs-check__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 2px dashed var(--vs-line-2); }
.vs-check__kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--vs-muted); }
.vs-check__title { margin-top: 4px; font-size: clamp(22px, 2.6vw, 30px); }
.vs-check__city { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--vs-bg); font-size: 14px; color: var(--vs-ink); white-space: nowrap; }
.vs-check__city .vs-i { width: 18px; height: 18px; }
.vs-check__lines { list-style: none; margin: 0; padding: 0; counter-reset: ln; }
.vs-line { counter-increment: ln; display: grid; grid-template-columns: minmax(0, 1fr) auto 118px; gap: 8px 18px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--vs-line-2); }
.vs-line__name { display: flex; flex-direction: column; }
.vs-line__label { font-weight: 500; line-height: 1.3; }
.vs-line__label::before { content: counter(ln, decimal-leading-zero) '  '; color: var(--vs-muted); font-size: 13px; white-space: pre; }
.vs-line__hint { margin-top: 2px; font-size: 13px; color: var(--vs-muted); }
.vs-line__sum { text-align: right; font-weight: 700; color: var(--vs-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vs-line.is-zero .vs-line__sum { color: var(--vs-line-2); font-weight: 500; }

/* Счётчик */
.vs-step { display: inline-flex; align-items: center; border: 1px solid var(--vs-line-2); border-radius: var(--vs-r); background: var(--vs-paper); }
.vs-step__btn { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--vs-ink); cursor: pointer; touch-action: manipulation; }
.vs-step__btn:hover { color: var(--vs-act); }
.vs-step__btn:disabled { color: var(--vs-line-2); cursor: default; }
.vs-step__val { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-step__unit { min-width: 30px; font-size: 13px; color: var(--vs-muted); }

/* Выбор */
.vs-select { max-width: 280px; min-height: 44px; padding: 8px 36px 8px 12px; border: 1px solid var(--vs-line-2); border-radius: var(--vs-r); background: var(--vs-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324307a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; cursor: pointer; font-size: 15px; }

/* Галочка-переключатель */
.vs-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.vs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-switch__box { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--vs-line-2); transition: background .15s; }
.vs-switch__box::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.vs-switch input:checked + .vs-switch__box { background: var(--vs-act); }
.vs-switch input:checked + .vs-switch__box::after { transform: translateX(18px); }
.vs-switch input:focus-visible + .vs-switch__box { outline: 2px solid var(--vs-ink); outline-offset: 2px; }
.vs-switch__price { font-size: 14px; color: var(--vs-muted); white-space: nowrap; }

/* Итог */
.vs-check__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 3px double var(--vs-ink); }
.vs-check__total span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--vs-ink); }
.vs-check__total strong { font-size: clamp(30px, 3.4vw, 40px); color: var(--vs-act); font-variant-numeric: tabular-nums; }
.vs-check__note { margin-top: 8px; font-size: 14px; color: var(--vs-muted); }
.vs-check__send { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Ствол из колец рядом с чеком */
.vs-check__shaft { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 10px; }
.vs-check__shaft .vs-house { width: 84px; height: 46px; margin-bottom: 4px; background: var(--vs-act); clip-path: polygon(50% 0, 100% 55%, 88% 55%, 88% 100%, 12% 100%, 12% 55%, 0 55%); }
.vs-check__shaft .vs-ground { width: 96px; height: 4px; margin: 2px 0 4px; background: repeating-linear-gradient(90deg, var(--vs-muted) 0 6px, transparent 6px 10px); }
.vs-check__shaft .vs-ringv { width: 70px; height: 16px; border-radius: 3px; background: linear-gradient(90deg, #b9b3aa, #e3ded6 45%, #b9b3aa); border: 1px solid #a39c92; transition: opacity .2s; }
.vs-check__shaft .vs-water { width: 60px; height: 10px; margin-top: -8px; border-radius: 0 0 4px 4px; background: var(--vs-water); opacity: .75; }
.vs-check__shaft .vs-depth { margin-top: 8px; font-size: 13px; color: var(--vs-muted); text-align: center; line-height: 1.3; }

@media (max-width: 767px) {
	.vs-check { grid-template-columns: minmax(0, 1fr); }
	.vs-check__shaft { display: none; }
	.vs-check__paper { padding: 20px 16px 26px; }
	.vs-check__head { flex-direction: column; }
	.vs-line { grid-template-columns: 1fr auto; }
	.vs-line__name { grid-column: 1 / -1; }
	.vs-line__sum { align-self: center; }
	.vs-select { max-width: 100%; width: 100%; }
	.vs-line--choice .vs-line__ctrl { min-width: 0; }
	.vs-check__send .vs-btn { width: 100%; }
}

/* Строка с фото и выбор плитками с фото (дачникам — глазами, а не списком) */
.vs-line__name { flex-direction: row; align-items: center; gap: 12px; }
.vs-line__txt { display: flex; flex-direction: column; min-width: 0; }
.vs-line__thumb { flex: none; display: block; width: 72px; height: 50px; border-radius: 5px; overflow: hidden; background: var(--vs-bg); }
.vs-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vs-line--tiles { grid-template-columns: minmax(0, 1fr) 118px; }
.vs-line--tiles .vs-line__name { grid-column: 1 / 2; }
.vs-line--tiles .vs-line__ctrl { grid-column: 1 / -1; grid-row: 2; }
.vs-line--tiles .vs-line__sum { grid-column: 2; grid-row: 1; }
.vs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.vs-tile-opt { position: relative; cursor: pointer; }
.vs-tile-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-tile-opt__box { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--vs-line); border-radius: var(--vs-r2); overflow: hidden; background: var(--vs-paper); transition: border-color .15s, box-shadow .15s; }
.vs-tile-opt__img { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--vs-bg); color: var(--vs-line-2); }
.vs-tile-opt__img img { width: 100%; height: 100%; object-fit: cover; }
.vs-tile-opt__none { width: 34px; height: 34px; }
.vs-tile-opt__name { padding: 8px 10px 0; font-size: 14px; font-weight: 500; line-height: 1.25; }
.vs-tile-opt__price { padding: 2px 10px 10px; margin-top: auto; font-size: 13px; color: var(--vs-muted); }
.vs-tile-opt input:checked + .vs-tile-opt__box { border-color: var(--vs-act); box-shadow: 0 0 0 3px var(--vs-act-soft); }
.vs-tile-opt input:checked + .vs-tile-opt__box .vs-tile-opt__price { color: var(--vs-act); font-weight: 700; }
.vs-tile-opt input:focus-visible + .vs-tile-opt__box { outline: 2px solid var(--vs-ink); outline-offset: 2px; }
.vs-tile-opt:hover .vs-tile-opt__box { border-color: var(--vs-line-2); }

/* Схема септика: камеры из колец, переливы */
.vs-check__shaft .vs-sep { display: flex; align-items: flex-end; gap: 6px; }
.vs-check__shaft .vs-sep__ch { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vs-check__shaft .vs-sep__ch .vs-ringv { width: 26px; height: 12px; }
.vs-check__shaft .vs-sep__lid { width: 30px; height: 5px; border-radius: 2px; background: #8d867c; margin-bottom: 2px; }
.vs-check__shaft .vs-sep__no { font-size: 11px; color: var(--vs-muted); margin-top: 4px; }
@media (max-width: 767px) {
	.vs-line--tiles { grid-template-columns: minmax(0, 1fr) auto; }
	.vs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vs-line__thumb { width: 60px; height: 42px; }
}
/* Вариант «без …»: без фото — компактная плитка, не пустая рамка */
.vs-tile-opt__img:has(.vs-tile-opt__none) { aspect-ratio: auto; height: 44px; background: transparent; justify-items: start; padding: 10px 10px 0; }
.vs-tile-opt__none { width: 22px; height: 22px; color: var(--vs-muted); }
/* Плавающий итог сметы на телефоне — над полосой «Позвонить · Написать · Смета» */
.vs-check__float { position: fixed; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--vs-ink-2); color: #fff; box-shadow: 0 10px 30px rgba(25, 33, 90, .35); }
.vs-check__float[hidden] { display: none; }
.vs-check__float span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.2; color: #c9cdf0; }
.vs-check__float b { font-size: 20px; color: #fff; }
.vs-check__float .vs-btn { width: auto; min-height: 46px; padding: 8px 18px; }
/* Телефон: варианты с фото — лентой, листается пальцем (без столбика на весь экран) */
@media (max-width: 767px) {
	.vs-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
	.vs-tiles::-webkit-scrollbar { display: none; }
	.vs-tile-opt { scroll-snap-align: start; }
	.vs-tile-opt__name { font-size: 13px; }
}
