/* Гамма — с макета Йоггу (~/sites/Zvyazy_tovar/public/yoggu-sofi): слива, ягода, лаванда, крем, солнце. 16.10.2026 */
@font-face { font-family: "Nunito"; src: url("fonts/nunito-cyrillic.woff2") format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin.woff2") format("woff2"); font-weight: 400 900; 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F8F7FD;
  --paper: #FFFFFF;
  --ink: #2A1633;
  --muted: #6B5A73;
  --line: #ECE6F0;
  --accent: #C1218E;
  --accent-dark: #9C1873;
  --accent-soft: #FDE7F4;
  --lav: #EDEEFB;
  --lav-2: #DCDDF7;
  --cream: #FFF6EC;
  --sun: #FFD23F;
  --ok: #1F9D55;
  --sage: var(--ok);
  --sand: var(--lav);
  --font: "Nunito", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-body-font-family: var(--font);
  --bs-link-color-rgb: 156, 24, 115;
  --bs-link-hover-color-rgb: 120, 16, 88;
  --bs-border-radius: .75rem;
}
body { background: var(--bg); color: var(--ink); font-family: var(--font); }
.btn { border-radius: 999px; font-weight: 700; }
.form-control, .form-select { border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(193,33,142,.15); }
.nav-pills .nav-link { border-radius: 999px; color: var(--ink); } .nav-pills .nav-link.active { background: var(--ink); }
h1, h2, h3, .h3, .h4, .h5, .h6, .display-font { letter-spacing: -0.015em; font-weight: 800; }
a { text-decoration: none; }

.app-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.navbar-brand { font-weight: 700; color: var(--ink) !important; display: flex; align-items: center; gap: .5rem; }
.brand-sub { font-weight: 400; color: var(--muted); font-size: .9rem; }
.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i { width: 9px; height: 22px; border-radius: 999px; display: inline-block; }
.brand-dots i:nth-child(2) { height: 28px; margin-top: -6px; }
.app-foot { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; margin-top: 3rem; background: var(--paper); }

.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); color: #fff; }
.bg-accent { background: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }
.card-soft { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; }
.badge.text-bg-warning-subtle { background: #FFF2C2; color: #6B4E00; }
.badge.text-bg-success-subtle { background: #E3EDD8; color: #3C5A2A; }

/* шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; }
.step a { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .7rem; border-radius: 12px; color: var(--ink);
  border: 1px solid var(--line); height: 100%; background: var(--paper); }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; background: var(--sand); color: var(--muted); }
.step-title { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.step-detail { font-size: .75rem; color: var(--muted); line-height: 1.2; }
.step-done .step-num { background: var(--ok); color: #fff; }
.step-now a { border-color: var(--accent); }
.step-now .step-num { background: var(--accent); color: #fff; }
.step-current a { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) inset; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-detail { display: none; }
}
.next-box { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-radius: 16px; background: var(--lav); border: 1px dashed var(--lav-2); }

/* палитры */
.swatches { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.swatches-big { height: 120px; border-radius: 14px; }
.sw { display: flex; flex-direction: column; justify-content: flex-end; padding: .4rem .5rem; min-width: 0; font-size: .72rem; line-height: 1.15; }
.sw-role { opacity: .8; } .sw-name { font-weight: 600; } .sw-hex { opacity: .75; font-family: ui-monospace, monospace; }
.pal-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .75rem; height: 100%;
  display: flex; flex-direction: column; gap: .5rem; transition: box-shadow .15s, transform .15s; }
.pal-card:hover { box-shadow: 0 10px 24px rgba(42,22,51,.08); transform: translateY(-2px); }
.pal-card.active { box-shadow: 0 0 0 2px var(--accent); }
.pal-name { font-weight: 600; font-size: .95rem; }
.pal-tip { font-size: .8rem; color: var(--muted); flex: 1; }
.pal-meta { font-size: .72rem; color: var(--muted); }
.room-svg { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid var(--line); }
.room-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.room-tabs a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--paper);
  font-size: .9rem; display: inline-flex; align-items: center; gap: .4rem; }
.room-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.room-tabs .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.color-row { display: grid; grid-template-columns: 44px 1fr 1fr 70px 32px; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.color-row input[type=color] { width: 44px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); }
.style-chip { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .7rem; background: var(--paper); text-align: left; width: 100%; height: 100%; }
.style-chip.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.style-chip small { color: var(--muted); display: block; line-height: 1.25; }

/* картинки */
.render-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.render-card img { width: 100%; display: block; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.render-wait { aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background: repeating-linear-gradient(45deg, var(--lav), var(--lav) 12px, #F4F4FD 12px, #F4F4FD 24px); color: var(--muted); }
.badge-q { position: absolute; top: .5rem; left: .5rem; }

/* таблицы */
.table-tight td, .table-tight th { padding: .3rem .35rem; vertical-align: middle; }
.table-tight input, .table-tight select { font-size: .85rem; padding: .2rem .35rem; }
.check-error { color: #A12F1F; } .check-warn { color: #8A5A00; } .check-info { color: var(--muted); }
.pt-exists { background: #EAF6EF !important; } .pt-optional { opacity: .8; }
.dot-kind { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }

/* смета */
.stage-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; margin-top: 1.5rem; }
.item-row { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.item-row .sw-mini { width: 18px; height: 18px; border-radius: 4px; display: inline-block; vertical-align: -3px; border: 1px solid rgba(0,0,0,.1); }
.results { margin-top: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .5rem; font-size: .85rem; }
.results .r { display: grid; grid-template-columns: 1fr auto; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.results .r:last-child { border-bottom: 0; }
.status-bought { opacity: .6; }

/* лендинг */
.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; }
.hero .lead { color: var(--muted); max-width: 36rem; }
.hero-art { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(42,22,51,.12); }
.land-step { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; height: 100%; }
.land-step .n { font-weight: 800; color: var(--accent); font-size: 1.4rem; }
.price-box { background: var(--ink); color: #fff; border-radius: 20px; padding: 2rem; }
.price-box .muted { color: #CDBFD3; }

@media print {
  .app-nav, .app-foot, .stepper, .next-box, .no-print, .alert { display: none !important; }
  body { background: #fff; }
  main.container { max-width: 100%; padding: 0; }
  .card-soft { border: 0; padding: 0; }
  .brief-section { break-inside: avoid; }
}

/* демо */
.guest-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: 16px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.guest-bar b { color: var(--sun); }

/* план точек электрики: номера поверх картинки плана, подсветка точки ↔ строки таблицы (16.10.2026) */
.eplan { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; user-select: none; }
.eplan img { display: block; max-width: 100%; max-height: 74vh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.eplan.placing { cursor: crosshair; }
.eplan.placing img { outline: 3px dashed var(--accent); outline-offset: 3px; }
.pm, .pm-key, .pt-num { display: inline-block; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff;
  font: 800 11px/1 var(--font); text-align: center; padding: 0; }
.pm { position: absolute; width: 22px; height: 22px; line-height: 18px; transform: translate(-50%, -50%); z-index: 2; cursor: pointer;
  box-shadow: 0 1px 4px rgba(42, 22, 51, .45); text-decoration: none; transition: transform .15s, opacity .15s; }
.pm-exists { background: var(--ok); }
.pm-optional { background: #fff; color: var(--accent); border-color: var(--accent); border-style: dashed; }
.pm-other { opacity: .5; transform: translate(-50%, -50%) scale(.82); }
.pm:hover, .pm.hl { opacity: 1; z-index: 6; transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 5px rgba(193, 33, 142, .3); color: #fff; }
.pm-optional:hover, .pm-optional.hl { color: var(--accent); }
.pm:hover::after, .pm.hl::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 240px;
  transform: translateX(-50%) scale(.74); transform-origin: 50% 100%; background: var(--ink); color: #fff; border-radius: 8px;
  padding: 6px 9px; font: 600 13px/1.3 var(--font); text-align: left; white-space: normal; pointer-events: none; }
.pm-key { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; box-shadow: 0 0 0 1px var(--line); }
.pm-key.pm-other { opacity: .5; }
.pt-num { width: 28px; height: 28px; line-height: 24px; font-size: 12px; cursor: pointer; }
.pt-num.off { background: #fff; color: var(--muted); border: 2px dashed var(--muted); }
.pt-num.sel { box-shadow: 0 0 0 4px var(--sun); }
tr.hl > td { background: #FFF3B0 !important; transition: background .2s; }

/* шаг «Цвета»: примеры сочетаний — фото интерьеров (tools/palette_images.py), как подборка в Пинтересте (16.10.2026) */
.pal-hero { border-radius: 14px; overflow: hidden; background: var(--lav); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.pal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pal-hero-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: .9rem; }
.pal-thumbs { display: flex; gap: 6px; }
.pal-thumbs:empty { display: none; }
.pal-thumbs img { width: calc(20% - 5px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.pal-thumbs img:hover { border-color: var(--accent); }
.pal-card { overflow: hidden; }
.pal-pic { display: block; margin: -.75rem -.75rem .1rem; padding: 0; border: 0; background: var(--lav); width: calc(100% + 1.5rem); cursor: zoom-in; }
.pal-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.pal-card:hover .pal-pic img { transform: scale(1.03); }

/* смета: цена и кнопка магазина сразу, крупное итого этапа, галочка «куплено», услуги с иконкой (16.10.2026) */
.stage-head { align-items: flex-end; border-bottom: 2px solid var(--ink); padding-bottom: .35rem; margin-top: 1.75rem; gap: 1rem; }
.stage-n { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.stage-t { font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.stage-sum { font-size: 1.6rem; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.item-main { display: grid; grid-template-columns: auto 1fr auto auto; gap: .35rem .75rem; align-items: center; }
.item-check .form-check-input { width: 1.35rem; height: 1.35rem; margin: 0; cursor: pointer; }
.item-check .form-check-input:checked { background-color: var(--ok); border-color: var(--ok); }
.status-bought { opacity: 1; }
.status-bought .item-name { text-decoration: line-through; color: var(--muted); }
.status-bought .item-body, .status-bought .item-price { opacity: .65; }
.item-price { text-align: right; white-space: nowrap; }
.ip-sum { font-weight: 800; font-size: 1.05rem; }
.ip-none { font-size: .85rem; color: var(--muted); font-style: italic; }
.item-shop { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; min-width: 150px; }
.shop-btn { --shop: var(--ink); display: inline-flex; align-items: center; gap: .4rem; background: var(--shop); color: #fff !important; text-decoration: none;
  border-radius: 999px; padding: .28rem .8rem .28rem .3rem; font-weight: 800; font-size: .82rem; white-space: nowrap;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--shop) 35%, transparent); transition: transform .15s, filter .15s; }
.shop-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.shop-btn i { font-style: normal; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #fff; color: var(--shop);
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 900; }
.lupa { border: 1px solid var(--line); background: var(--paper); color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, color .15s; }
.lupa:hover { color: var(--accent); border-color: var(--accent); }
.lupa.need { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.item-more summary { cursor: pointer; display: inline-block; margin: .2rem 0 0 2.1rem; }
.item-more[open] summary { color: var(--accent) !important; }
.is-service { background: linear-gradient(90deg, var(--cream), transparent 70%); }
.svc-ico { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--sun); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.svc-tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A5A00; background: #FFF0C2; border-radius: 999px; padding: .1rem .5rem; }
.find-bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; background: var(--accent-soft); border-radius: 12px; padding: .6rem .9rem; }
.sum-total td { font-weight: 900; font-size: 1.15rem; }
@media (max-width: 640px) {
  .item-main { grid-template-columns: auto 1fr auto; }
  .item-shop { grid-column: 2 / -1; justify-content: flex-start; min-width: 0; }
  .stage-sum { font-size: 1.3rem; }
}

/* задачи: дерево этап → задача → пункт, галочка, кто, срок (16.10.2026) */
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-list .tk-list { margin-left: 1.15rem; border-left: 2px solid var(--line); padding-left: .5rem; }
.tk.folded > .tk-list, .tk.folded > .tk-add { display: none; }
.tk.folded > .tk-row .tk-fold { transform: rotate(-90deg); }
.tk-row { display: flex; align-items: center; gap: .45rem; padding: .3rem .25rem; border-radius: 8px; }
.tk-row:hover { background: var(--lav); }
.tk.depth-0 > .tk-row { margin-top: .9rem; border-bottom: 2px solid var(--ink); border-radius: 0; }
.tk.depth-0 > .tk-row .tk-title { font-weight: 900; font-size: 1.05rem; }
.tk.depth-1 > .tk-row .tk-title { font-weight: 700; }
.tk-fold { border: 0; background: none; width: 1.2rem; padding: 0; color: var(--muted); transition: transform .15s; }
.tk-fold-sp { width: 1.2rem; flex: none; }
.tk-check { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; cursor: pointer; }
.tk-check:checked { background-color: var(--ok); border-color: var(--ok); }
.tk-ring { --p: 0; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); mask: radial-gradient(circle, transparent 42%, #000 44%); }
.tk-title { flex: 1; min-width: 0; padding: .15rem .3rem; border-radius: 6px; color: var(--ink); cursor: text; overflow-wrap: anywhere; }
.tk-meta { display: flex; align-items: center; gap: .45rem; flex: none; }
.tk-title:focus { background: var(--paper); outline: 2px solid var(--accent-soft); }
.is-done > .tk-row .tk-title { text-decoration: line-through; color: var(--muted); }
.tk-link { font-size: .78rem; white-space: nowrap; text-decoration: none; background: var(--cream); border-radius: 999px; padding: .05rem .5rem; }
.tk-count { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.tk-who { width: 92px; border: 1px solid transparent; background: var(--lav); border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; }
.tk-due { width: 128px; border: 1px solid transparent; background: transparent; font-size: .8rem; color: var(--muted); border-radius: 6px; }
.tk-who:focus, .tk-due:focus { border-color: var(--accent); outline: 0; background: var(--paper); }
.tk-due.late { color: #C62828; font-weight: 800; }
.tk-act { white-space: nowrap; opacity: .35; }
.tk-row:hover .tk-act { opacity: 1; }
.tk-add { display: flex; gap: .4rem; margin: .25rem 0 .5rem 2.9rem; }
@media (max-width: 640px) {
  .tk-row { display: grid; grid-template-columns: 1.1rem 1.3rem 1fr; gap: .1rem .4rem; align-items: start; }
  .tk-fold, .tk-fold-sp, .tk-check, .tk-ring { margin-top: .2rem; }
  .tk-meta { grid-column: 3; flex-wrap: wrap; gap: .3rem; }
  .tk-who { width: 78px; }
  .tk-due { width: 116px; }
  .tk-act { opacity: 1; margin-left: auto; }
  .tk-list .tk-list { margin-left: .5rem; }
}
@media (max-width: 640px) {
  .item-main { grid-template-columns: auto 1fr; }
  .item-price { grid-column: 2; text-align: left; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
  .item-shop { grid-column: 2; }
  .item-more summary { margin-left: 2.1rem; }
}
/* другие магазины у позиции: контурные с ценой; «искать в …» — пунктир (16.10.2026) */
.item-shop { flex-wrap: wrap; max-width: 330px; }
.shop-btn.alt { background: var(--paper); color: var(--shop) !important; border: 1.5px solid var(--shop); box-shadow: none; padding: .2rem .7rem .2rem .22rem; }
.shop-btn.alt i { background: var(--shop); color: #fff; }
.shop-btn.alt b { font-weight: 800; color: var(--ink); }
.shop-btn.ghost { background: transparent; color: var(--shop) !important; border: 1.5px dashed color-mix(in srgb, var(--shop) 60%, transparent);
  box-shadow: none; font-weight: 700; padding: .2rem .7rem .2rem .22rem; opacity: .85; }
.shop-btn.ghost i { background: color-mix(in srgb, var(--shop) 15%, #fff); }
@media (max-width: 640px) { .item-shop { max-width: none; } }

/* план по размерам и мебель (16.10.2026) */
.pe-wrap, .fe-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.pe-svg, .fe-svg { width: 100%; height: auto; display: block; max-height: 78vh; touch-action: none; user-select: none; }
.pe-svg text, .fe-svg text { font-family: var(--font); pointer-events: none; }
.pw { stroke: #2A1633; stroke-width: 10; stroke-linecap: square; cursor: pointer; }
.pw:hover { stroke: #9C1873; stroke-width: 16; }
.pw.on { stroke: var(--accent); stroke-width: 18; }
.pr.movable { cursor: grab; }
.pr.movable .pr-floor { stroke: var(--accent); stroke-dasharray: 6 6; stroke-width: 2; vector-effect: non-scaling-stroke; }
.fi.ghost { opacity: .55; pointer-events: none; }
.pe-panel { background: var(--lav); border-radius: 12px; padding: .8rem; }
.pe-op { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-bottom: .5rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--lav-2); }
.pe-op .form-select { flex: 1 1 100%; }
.pe-op .form-control { width: 64px; }
#pe-move.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.fe-svg .fi { cursor: grab; }
.fe-svg .fi.sel > * { filter: drop-shadow(0 0 3px rgba(193, 33, 142, .9)); }
.fe-svg .fi.bad > *:not(text) { stroke: #D32F2F !important; }
.fe-svg .fz { opacity: .55; }
.fe-svg .fz.on { opacity: 1; }
.fe-info { min-height: 2rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.fe-probs li { margin-bottom: .25rem; cursor: pointer; }
.fe-probs .check-error { color: #B71C1C; } .fe-probs .check-warn { color: #8A5A00; }
.fe-lib { display: grid; gap: .3rem; max-height: 62vh; overflow: auto; }
.fe-lib-it { display: flex; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); background: var(--paper); border-radius: 10px;
  padding: .4rem .6rem; font-size: .85rem; text-align: left; }
.fe-lib-it:hover { border-color: var(--accent); background: var(--accent-soft); }
.fe-lib-it small { color: var(--muted); white-space: nowrap; }
.fe-lib-it.other { opacity: .7; }
.fe-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .75rem; }
.fe-var { border: 2px solid var(--line); background: var(--paper); border-radius: 12px; padding: .4rem; display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; }
.fe-var:hover { border-color: var(--accent); } .fe-var.on { border-color: var(--accent); background: var(--accent-soft); }
.fe-mini { width: 100%; height: 130px; }

/* шаг «Цвета»: сначала стиль по фото, потом гамма (16.10.2026) */
.sp-n { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff;
  align-items: center; justify-content: center; font-size: .9rem; margin-right: .35rem; vertical-align: 2px; }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.style-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; }
.style-card:hover { box-shadow: 0 12px 28px rgba(42, 22, 51, .1); transform: translateY(-2px); }
.style-card.active { box-shadow: 0 0 0 3px var(--accent); }
.sc-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.sc-thumbs { display: flex; gap: 4px; padding: 4px 4px 0; }
.sc-thumbs img { flex: 1; min-width: 0; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; cursor: pointer; }
.sc-body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.sc-signs { display: flex; flex-wrap: wrap; gap: .25rem; }
.sc-signs span { font-size: .72rem; background: var(--lav); border-radius: 999px; padding: .1rem .5rem; }
.style-cur { display: flex; gap: 1rem; align-items: center; }
.style-cur img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; flex: none; }
@media (max-width: 640px) { .style-cur { flex-direction: column; align-items: flex-start; } .style-cur img { width: 100%; } }
.fe-probs .check-hint { color: var(--muted); }
.fe-var.radical { border-style: dashed; }
.fe-var small { font-weight: 600; color: var(--muted); line-height: 1.2; }
.fe-var.radical small { color: #B23B00; }
.fe-svg .fz.rec { opacity: .7; } .fe-svg .fz.rec.on { opacity: 1; }
