/* ===== v2: виды карточек, стекло, текстура ниши, карта, «до/после», галерея, виды калькулятора, эффекты ===== */

/* --- Текстура ниши под блоками из bg_blocks: картинка + вуаль в цвет темы, чтобы текст читался --- */
.texwrap { position: relative; isolation: isolate; background: var(--tex) center / cover no-repeat; }
.texwrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)); }
.theme-dark .texwrap::before { background: linear-gradient(180deg, rgba(10, 12, 14, .78), rgba(10, 12, 14, .88)); }
.texwrap > section, .texwrap .feature { background: transparent; }
.texwrap .b-quote { background: color-mix(in srgb, var(--navy, #102030) 72%, transparent); }
.texwrap .b-aud__item, .texwrap .b-check__list li, .texwrap .b-facts__item, .texwrap .b-tips__item, .texwrap .b-seasons__item, .texwrap .b-steps__list li {
  background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.texwrap .b-steps__list li { padding-bottom: 14px; padding-right: 14px; border-radius: 16px; }
@media (max-width: 899px) { .texwrap .b-steps__list li { padding-top: 12px; min-height: 72px; } }
@media (min-width: 900px) { .texwrap .b-steps__list li { padding-left: 14px; } .texwrap .b-steps__list .b-steps__n { left: 14px; top: 12px; } .texwrap .b-steps__list::before { top: 35px; } .texwrap .b-steps__list li { padding-top: 76px; } }
@media (max-width: 767px) { .texwrap { background-image: var(--tex-sm); } }

/* --- Стекло: шапка, изюминка, карточки --- */
.glass .header { background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
.glass .feature { position: relative; isolation: isolate; overflow: hidden; }
.glass .feature::before { content: ""; position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(40% 50% at 15% 30%, color-mix(in srgb, var(--teal) 35%, transparent), transparent 70%), radial-gradient(35% 45% at 85% 70%, color-mix(in srgb, var(--teal-l, var(--teal)) 70%, transparent), transparent 70%); }
.glass .fcalc__form, .glass .fcalc__res, .glass .feature .card, .glass .feature form, .glass .sym, .glass .srch__item {
  background: color-mix(in srgb, var(--bg) 58%, transparent) !important; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, #fff 45%, transparent); }
.theme-dark.glass .fcalc__form, .theme-dark.glass .fcalc__res { border-color: rgba(255, 255, 255, .12); }

/* --- Виды карточек услуг --- */
/* Стекло: карточки висят над цветными пятнами темы */
.cards-glass #services { position: relative; isolation: isolate; overflow: hidden; }
.cards-glass #services::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(30% 40% at 10% 20%, color-mix(in srgb, var(--teal) 30%, transparent), transparent 70%), radial-gradient(30% 40% at 90% 80%, color-mix(in srgb, var(--teal-l, var(--teal)) 80%, transparent), transparent 70%), var(--bg-soft); }
.cards-glass .card { background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid color-mix(in srgb, #fff 55%, transparent); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.cards-glass .card img { margin: 10px 10px 0; width: calc(100% - 20px); border-radius: calc(var(--radius) - 6px); }

/* Список: строки с миниатюрой */
.cards-list #services .cards { grid-template-columns: 1fr; gap: 10px; }
.cards-list .card { flex-direction: row; align-items: center; border-radius: 14px; }
.cards-list .card img { width: 112px; min-width: 112px; aspect-ratio: 1; border-radius: 12px; margin: 10px; }
.cards-list .card__body { padding: 14px 64px 14px 4px; }
.cards-list .card__go { top: 50%; bottom: auto; transform: translateY(-50%); }
@media (min-width: 900px) { .cards-list #services .cards { grid-template-columns: 1fr 1fr; } }

/* Горизонтальные: фото слева, текст справа */
.cards-horizontal #services .cards { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cards-horizontal .card { flex-direction: row; min-height: 200px; }
  .cards-horizontal .card img { width: 44%; aspect-ratio: auto; height: auto; object-fit: cover; }
  .cards-horizontal .card__body { display: flex; flex-direction: column; justify-content: center; padding: 22px 68px 22px 22px; }
}
@media (min-width: 1024px) { .cards-horizontal #services .cards { grid-template-columns: 1fr 1fr; } }

/* Номера: без фото, крупные цифры и акцентная линия */
.cards-numbered #services .cards { counter-reset: cn; }
.cards-numbered .card { counter-increment: cn; box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 0 0 var(--radius) var(--radius); background: var(--bg); }
.cards-numbered .card img { display: none; }
.cards-numbered .card__body { padding-top: 76px; }
.cards-numbered .card__body::before { content: counter(cn, decimal-leading-zero); position: absolute; top: 14px; left: 18px; font-family: var(--font-head); font-size: 46px; font-weight: 800; line-height: 1; color: var(--teal); opacity: .9; }
.cards-numbered .card:hover { background: var(--bg-soft); }

/* Полароид: фото в белой рамке с подписью, лёгкий наклон */
.cards-polaroid #services .cards { gap: 26px 20px; }
.cards-polaroid .card { background: #fff; padding: 12px 12px 0; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .35); transform: rotate(-1.4deg); }
.cards-polaroid .card:nth-child(even) { transform: rotate(1.2deg); }
.cards-polaroid .card:hover { transform: rotate(0) translateY(-4px); }
.cards-polaroid .card img { aspect-ratio: 1; border-radius: 2px; }
.cards-polaroid .card__body { text-align: center; padding: 14px 10px 62px; }
.cards-polaroid .card h3 { font-family: var(--font-head); }
.cards-polaroid .card__go { right: 50%; transform: translateX(50%); bottom: 14px; }
.theme-dark .cards-polaroid .card, .theme-dark.cards-polaroid .card { color: #1A1A1A; }

/* --- Карта зон / направлений --- */
.b-map__wrap { display: grid; gap: 28px; align-items: center; }
.b-map__wrap > * { min-width: 0; }
.b-map__lead { color: var(--muted); max-width: 46ch; }
.b-map__zones { list-style: none; counter-reset: z; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; }
.b-map__zones li { counter-increment: z; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.b-map__zones li::before { content: counter(z); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) calc(100% - var(--z) * 15%), #fff); color: var(--on-primary, #fff); font-weight: 700; }
.b-map__zones span { color: var(--muted); font-size: 15px; }
.b-map__pins { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-map__pins li { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--bg-soft); font-weight: 600; }
.b-map__pins i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.b-map__art { color: var(--text); border-radius: calc(var(--radius) + 8px); background: var(--bg-soft); padding: 12px; }
.b-map__svg { display: block; width: 100%; height: auto; }
.b-map__ring { fill: color-mix(in srgb, var(--teal) calc(var(--z) * 6%), transparent); stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 6 6; }
.b-map__river { fill: none; stroke: color-mix(in srgb, var(--teal) 55%, #5aa7ff); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.b-map__dot { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.b-map__home { fill: #fff; stroke: var(--teal); stroke-width: 4; }
.b-map__lbl { font: 700 13px var(--font-body, sans-serif); fill: currentColor; }
.b-map__lbl--home { font-size: 14px; }
.b-map__grat { stroke: currentColor; stroke-opacity: .08; }
.b-map__route { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 6; opacity: .7; }
.anim-on .b-map__art:not(.is-in) .b-map__ring { opacity: 0; transform: scale(.6); }
.b-map__ring { transform-origin: 200px 200px; transition: opacity .8s, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--z) * 140ms); }
.anim-on .b-map__art:not(.is-in) .b-map__route { stroke-dashoffset: 400; }
.b-map__route { transition: stroke-dashoffset 1.6s ease; transition-delay: calc(var(--z) * 120ms); }
@media (min-width: 900px) { .b-map__wrap { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* --- До / после --- */
.b-ba__fig { margin: 0; }
.b-ba__stage { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); aspect-ratio: 3 / 2; box-shadow: var(--shadow); touch-action: pan-y; }
.b-ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.b-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.b-ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.b-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.b-ba__range:focus-visible + .b-ba__handle, .b-ba__stage:focus-within .b-ba__handle { background: var(--teal); }
.b-ba__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; font-weight: 600; pointer-events: none; }
.b-ba__tag--l { left: 14px; } .b-ba__tag--r { right: 14px; }
.b-ba__fig figcaption { margin-top: 12px; color: var(--muted); text-align: center; }

/* --- Галерея --- */
.b-gal__grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
.b-gal__item { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg-soft); }
.b-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.b-gal__item:hover img { transform: scale(1.06); }
.b-gal__item:nth-child(1), .b-gal__item:nth-child(6) { grid-row: span 2; }
.b-gal__item:nth-child(n+9) { display: none; }
/* Десктоп: 1-е фото 2×2, 6-е широкое — 8 фото ровно в 3 ряда по 4, без пустых клеток */
@media (min-width: 768px) { .b-gal__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; } .b-gal__item:nth-child(1) { grid-column: span 2; } .b-gal__item:nth-child(6) { grid-row: auto; grid-column: span 2; } }
.b-gal__dlg { padding: 0; border: 0; border-radius: 16px; max-width: min(1100px, 94vw); background: #000; }
.b-gal__dlg::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(4px); }
.b-gal__dlg img { display: block; max-width: 100%; max-height: 86vh; }
.b-gal__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 24px; cursor: pointer; }

/* --- Виды калькулятора --- */
.fcalc__lines { display: none; list-style: none; margin: 0 0 14px; padding: 0; }
.fcalc__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.fcalc__lines li span { min-width: 0; color: var(--muted); } .fcalc__lines li b { white-space: nowrap; }
/* Чек: справа «квитанция» с позициями и зубчатым краем */
.calc-receipt .fcalc__lines { display: block; }
.calc-receipt .fcalc__res { position: relative; background: #fffdf7; color: #222; font-family: var(--font-mono, ui-monospace, monospace); border-radius: 6px 6px 0 0; padding: 22px 20px 30px; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .4); }
.calc-receipt .fcalc__res::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 10px, #fffdf7 10.5px) 0 0 / 20px 10px repeat-x; }
.calc-receipt .fcalc__label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; border-bottom: 2px dashed #ccc; padding-bottom: 10px; margin-bottom: 10px; display: block; }
.calc-receipt .fcalc__lines li span { color: #555; }
.calc-receipt .fcalc__sum { color: #111; border-top: 2px dashed #ccc; padding-top: 10px; display: block; }
/* Ползунки: крупная сумма, толстые дорожки */
.calc-sliders .fcalc__sum { font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.calc-sliders input[type="range"] { height: 12px; accent-color: var(--teal); }
.calc-sliders .fcalc__range output { font-size: 28px; color: var(--teal); margin-left: 6px; }
.calc-sliders .fcalc__lines { display: block; }
/* По шагам: прогресс и кнопки */
.fcalc__nav { display: grid; gap: 12px; }
.fcalc__prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fcalc__prog span { display: block; height: 100%; background: var(--teal); transition: width .4s ease; }
.fcalc__btns { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcalc__count { color: var(--muted); font-size: 14px; }
.calc-wizard .fcalc__lines { display: block; }
.calc-wizard .fcalc__form > fieldset, .calc-wizard .fcalc__form > .fcalc__range { min-height: 180px; animation: wiz .4s ease both; }
@keyframes wiz { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* --- Эффекты: заголовки по словам, наезд на фото --- */
h2.split .w { display: inline-block; }
.anim-on h2.split:not(.is-in) .w { opacity: 0; transform: translateY(.6em) rotate(3deg); }
h2.split .w { transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--k) * 60ms); }
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.ax-ken .h2o__media img { animation: ken 18s ease-in-out infinite alternate; }
.ax-magnet .btn--primary, .ax-magnet .btn--lg { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .ax-ken .h2o__media img, .calc-wizard .fcalc__form > * { animation: none !important; }
  .b-map__ring, .b-map__route, h2.split .w { transition: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* --- FAQ на всех страницах: 2 колонки × 4, номера на градиенте, фон ниши, появление по очереди --- */
.faq { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(40% 60% at 0% 0%, color-mix(in srgb, var(--teal) 16%, transparent), transparent 70%), radial-gradient(40% 60% at 100% 100%, color-mix(in srgb, var(--teal-l, var(--teal)) 55%, transparent), transparent 70%), var(--bg-soft); }
.faq::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--faq-bg, none) right center / cover no-repeat; opacity: .16; mask-image: linear-gradient(90deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%); }
.faq__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 26px; }
.faq__head h2 { margin: 0; }
.faq__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-primary, #fff); background: linear-gradient(120deg, var(--teal), var(--teal-d, var(--teal))); }
.faq__kicker .i { width: 18px; height: 18px; }
.faq__cols { display: grid; gap: 12px; }
.faq__cols .faq__list { display: flex; flex-direction: column; gap: 12px; max-width: none; min-width: 0; }
.faq__item { position: relative; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.faq__item:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .35); }
.faq__item[open] { border-color: transparent; box-shadow: 0 16px 34px -22px color-mix(in srgb, var(--teal) 70%, #000); }
.faq__item[open]::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(120deg, var(--teal), var(--teal-l, var(--teal)), var(--teal-d, var(--teal)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.faq__item summary { justify-content: flex-start; gap: 14px; padding: 14px 16px; }
.faq__n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--on-primary, #fff); background: linear-gradient(135deg, var(--teal), var(--teal-d, var(--teal))); box-shadow: 0 6px 14px -6px var(--teal); }
.faq__q { flex: 1; min-width: 0; }
.faq__plus { margin-left: auto; }
.faq__a { padding: 0 18px 16px 70px; }
.faq__item[open] .faq__a { animation: faq-in .35s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.theme-dark .faq__item { background: rgba(255, 255, 255, .04); }
@media (min-width: 900px) { .faq__cols { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .faq__cols .faq__list { gap: 16px; } .faq__head { align-items: center; text-align: center; } }
@media (max-width: 480px) { .faq__a { padding-left: 18px; } .faq__n { width: 34px; height: 34px; } }

/* --- Лайфхаки на главной --- */
.b-hacks__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.b-hacks__item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: var(--radius); text-decoration: none; color: inherit; background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; min-width: 0; }
.b-hacks__item::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--teal) 35%, transparent), transparent); }
.b-hacks__item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.4); }
.b-hacks__badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--on-primary, #fff); background: linear-gradient(120deg, var(--teal), var(--teal-d, var(--teal))); }
.b-hacks__badge .i { width: 16px; height: 16px; }
.b-hacks__item p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.b-hacks__src { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; color: var(--teal-d, var(--teal)); font-size: 14px; }
.b-hacks__src .i { width: 16px; height: 16px; flex: none; }
.theme-dark .b-hacks__item { background: rgba(255,255,255,.04); }

/* --- Воронка --- */
.b-funnel__wrap { display: grid; gap: 28px; align-items: center; }
.b-funnel__wrap > * { min-width: 0; }
.b-funnel__text p { color: var(--muted); max-width: 44ch; }
.b-funnel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; }
.b-funnel__list li { width: var(--w); min-width: min(100%, 260px); padding: 16px 20px; border-radius: 14px; text-align: center; color: var(--on-primary, #fff);
  background: linear-gradient(120deg, color-mix(in srgb, var(--teal) calc(100% - var(--i, 0) * 12%), var(--navy, #123)), var(--teal-d, var(--teal))); box-shadow: 0 12px 24px -18px rgba(0,0,0,.5); }
.b-funnel__list li b { display: block; font-size: 18px; }
.b-funnel__list li span { display: block; font-size: 14px; opacity: .9; }
@media (max-width: 599px) { .b-funnel__list li { width: 100%; } }
@media (min-width: 900px) { .b-funnel__wrap { grid-template-columns: 1fr 1.3fr; gap: 48px; } }

/* --- Лайфхаки в статье --- */
.hacks { margin: 0 0 28px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, var(--bg)), var(--bg-soft)); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); }
.hacks__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hacks__head .i { width: 26px; height: 26px; color: var(--teal-d, var(--teal)); }
.hacks__head b { font-size: 18px; color: var(--navy); }
.hacks__list { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 10px; }
.hacks__list li { counter-increment: h; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 80%, transparent); min-width: 0; }
.hacks__list li::before { content: counter(h); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--on-primary, #fff); background: linear-gradient(135deg, var(--teal), var(--teal-d, var(--teal))); }
@media (min-width: 900px) { .hacks__list { grid-template-columns: 1fr 1fr; } }
.theme-dark .hacks { background: rgba(255,255,255,.04); } .theme-dark .hacks__head b { color: inherit; }

/* --- Таблица состава услуги --- */
.stbl { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.stbl table { width: 100%; min-width: 420px; border-collapse: collapse; }
.stbl th, .stbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stbl thead th { background: linear-gradient(120deg, var(--teal), var(--teal-d, var(--teal))); color: var(--on-primary, #fff); font-family: var(--font-head); }
.stbl tbody th { font-weight: 500; }
.stbl tbody tr:nth-child(even) { background: var(--bg-soft); }
.stbl tr:last-child > * { border-bottom: 0; }
.stbl td { width: 160px; white-space: nowrap; }
.stbl__yes, .stbl__no { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.stbl__yes { color: var(--teal-d, var(--teal)); } .stbl__no { color: var(--muted); }
.stbl .i { width: 18px; height: 18px; }
.theme-dark .stbl { background: rgba(255,255,255,.03); }

/* Иллюстрация калькулятора под нишу */
.fcalc__viz { margin: 0 0 14px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--teal) 7%, var(--bg)); color: var(--text); }
.fcalc__viz svg { display: block; width: 100%; height: auto; font: 600 11px var(--font-body, sans-serif); fill: currentColor; }
.fcalc__viz svg text { fill: currentColor; }
.calc-receipt .fcalc__viz { background: #f3efe4; color: #333; }
/* Пошаговый калькулятор: скрытый шаг не показываем, даже если у формы своё display */
.fcalc__form > [hidden] { display: none !important; }
/* Стекло: текст результата тёмный, иначе белая сумма теряется на светлом стекле */
.glass:not(.theme-dark) .fcalc__res, .glass:not(.theme-dark) .fcalc__res .fcalc__sum, .glass:not(.theme-dark) .fcalc__res .fcalc__label, .glass:not(.theme-dark) .fcalc__res .feature__note { color: var(--text) !important; }
.glass:not(.theme-dark) .fcalc__lines li span { color: var(--muted); }
/* По шагам: карточка шага не растягивается до высоты колонки результата — без пустого поля */
.calc-wizard .fcalc { align-items: start; }
.calc-wizard .fcalc__form { align-content: start; }
.calc-wizard .fcalc__form > fieldset, .calc-wizard .fcalc__form > .fcalc__range { min-height: 0; }
.calc-wizard .opts label span, .calc-wizard .opts label { min-height: 64px; }
.calc-wizard .fcalc__form .fcalc__viz { margin: 4px 0 0; padding: 14px; }
