html, body, button, input, textarea, select { font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* Дополнения витрины к собранному Tailwind: анимации, окна, лайтбокс. */
html, body { background: #1c1c1c; }
.word-content h1, .word-content h2, .word-content h3 { color: #111827 !important; }
.word-content a { color: #b45309; text-decoration: underline; }

/* Стартовый прелоадер */
#start-loader { position: fixed; inset: 0; z-index: 2000; background: #1c1c1c; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
#start-loader img { width: 140px; max-width: 40vw; animation: trs-pulse 1.4s ease-in-out infinite; }
#start-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes trs-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* Плавное появление графики: скелетон с бликом, затем картинка */
.skel-shimmer::before { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.5s infinite; }
.skel-img { opacity: 0; transition: opacity .6s ease; }
.skel.is-loaded .skel-img { opacity: 1; }
.skel.is-loaded .skel-shimmer { display: none; }
.skel.is-error .skel-shimmer, .skel.is-error .skel-img { display: none; }
.hero-bg { opacity: 0; transform: scale(1.03); transition: opacity 1s ease, transform 1.6s ease; }
.hero-bg.is-loaded { opacity: 1; transform: scale(1); }

/* Карусели плиток */
.slide-bg { opacity: 0; transition: opacity .7s ease; }
.slide-bg.is-active { opacity: 1; }
.slide-text { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.slide-text.is-active { position: relative; opacity: 1; transform: none; }

/* Мобильное меню */
.mobile-menu { opacity: 0; visibility: hidden; transform: translateY(-16px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
body.menu-open #main-scroll { overflow: hidden; }

/* Модальные окна: запрет прокрутки страницы под ними */
body.modal-open, body.lightbox-open { overflow: hidden; }
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.is-open { display: block; }
.modal-root .modal-backdrop { opacity: 0; transition: opacity .25s ease; }
.modal-root .modal-win { opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .3s ease, transform .3s ease; }
.modal-root.is-visible .modal-backdrop { opacity: 1; }
.modal-root.is-visible .modal-win { opacity: 1; transform: none; }
.modal-root [hidden] { display: none !important; }
.modal-scroll-container, .pane-list, #main-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#modal-body.is-swapping > * { opacity: .35; transition: opacity .15s ease; }
#modal-body > * { animation: trs-fade .3s ease both; }
@keyframes trs-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.82); padding: 16px; cursor: zoom-out; opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { display: flex; }
.lightbox.is-visible { opacity: 1; }
.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(0,0,0,.5); padding: 8px; border-radius: 9999px; cursor: pointer; }
.lightbox-close:hover { color: #FFC107; }

/* Кнопка «Наверх» и уведомление */
.to-top { position: fixed; right: 24px; bottom: 96px; z-index: 110; width: 48px; height: 48px; border-radius: 9999px; background: #FFC107; color: #000; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s, visibility .3s; cursor: pointer; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; z-index: 150; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 1000; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Утилиты, которых нет в собранном наборе */
.min-w-0 { min-width: 0; }
.pt-6 { padding-top: 1.5rem; }
.text-\[11px\] { font-size: 11px; }
@media (min-width: 768px) { .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Счётчики шапки */
.count-badge { position: absolute; top: -8px; right: -8px; background: #FFC107; color: #000; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.count-badge[hidden] { display: none; }

/* Управление корзиной */
.cart-ctl { display: block; }
.cart-ctl .ctl-out, .cart-ctl .ctl-add, .cart-ctl .ctl-in { display: none; }
.cart-ctl[data-state="out"] .ctl-out { display: block; }
.cart-ctl[data-state="idle"] .ctl-add { display: block; }
.cart-ctl[data-state="in"] .ctl-in { display: flex; }
.ctl-out { text-align: center; padding: 10px 16px; border-radius: 8px; background: #f3f4f6; color: #9ca3af; font-weight: 700; font-size: 14px; }
.ctl-add { width: 100%; background: #FFC107; color: #000; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.ctl-add:hover { background: #eab308; }
.ctl-in { align-items: center; gap: 8px; }
.ctl-step { display: inline-flex; align-items: center; background: #f3f4f6; border-radius: 8px; flex-shrink: 0; }
.ctl-step button { width: 36px; height: 40px; font-size: 20px; font-weight: 700; color: #111827; cursor: pointer; border-radius: 8px; }
.ctl-step button:hover:not(:disabled) { background: #e5e7eb; }
.ctl-step button:disabled { color: #d1d5db; cursor: not-allowed; }
.ctl-qty { min-width: 28px; text-align: center; font-weight: 700; font-size: 15px; }
.ctl-added { flex: 1; background: #e5e7eb; color: #6b7280; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: 8px; cursor: default; }
.ctl-note { margin-top: 6px; font-size: 12px; color: #b45309; }
.cart-ctl.is-compact .ctl-add, .cart-ctl.is-compact .ctl-added { padding: 8px 10px; font-size: 13px; }
.cart-ctl.is-compact .ctl-step button { height: 34px; width: 32px; }
.cart-ctl[data-busy] { opacity: .7; pointer-events: none; }

/* Закладка избранного */
.fav-btn { width: 36px; height: 36px; border-radius: 9999px; background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #9ca3af; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: color .15s, transform .15s; }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.fav-btn:hover { color: #6b7280; transform: scale(1.06); }
.fav-btn.is-on { color: #dc2626; }
.fav-btn.is-on svg { fill: currentColor; }

/* Варианты, комплект, корзина */
.variant-chip { display: inline-block; padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-weight: 600; color: #374151; background: #fff; transition: border-color .15s, background .15s; }
.variant-chip:hover { border-color: #FFC107; }
.variant-chip.is-active { border-color: #FFC107; background: #fff8e1; color: #000; }
.kit-card { display: block; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.cart-row.is-gone { opacity: .5; }
.cart-taken { margin-top: 6px; font-size: 12px; color: #b45309; background: #fffbeb; border-radius: 6px; padding: 6px 10px; }

/* Формы входа и кабинета */
.auth-tabs { display: flex; gap: 4px; background: #f3f4f6; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #6b7280; cursor: pointer; }
.auth-tabs button.is-active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.auth-pane[hidden], [data-sms-step][hidden], [data-company][hidden] { display: none; }
.auth-msg { background: #fef2f2; color: #b91c1c; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.auth-msg.is-ok { background: #ecfdf5; color: #047857; }
.auth-msg[hidden] { display: none; }
.f-label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 12px; }
.f-input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; color: #111827; background: #fff; font-weight: 400; }
.f-input:focus { outline: none; border-color: #FFC107; box-shadow: 0 0 0 3px rgba(255,193,7,.25); }
.f-btn { background: #FFC107; color: #000; font-weight: 700; padding: 10px 24px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.f-btn:hover { background: #eab308; }
.f-btn:disabled { opacity: .6; cursor: wait; }
.f-btn-ghost { background: #f3f4f6; color: #374151; }
.f-btn-ghost:hover { background: #e5e7eb; }
.f-link { margin-left: 12px; font-size: 13px; color: #6b7280; text-decoration: underline; cursor: pointer; }

.footer-copy { font-size: 12px; color: #6b7280; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* Главная на ПК и планшете: всё помещается в экран без полос прокрутки */
@media (min-width: 768px) {
    #home { height: 100vh; height: 100dvh; }
    .home-main { overflow: hidden !important; }
    .home-hero { flex: 1 1 auto !important; min-height: 0 !important; justify-content: center !important; padding-bottom: 4px !important; }
    .home-hero > div { padding-top: 8px !important; }
    .home-hero h1 { font-size: clamp(24px, 5.2vh, 96px) !important; line-height: 1.06; margin-bottom: clamp(8px, 1.6vh, 16px) !important; }
    .home-hero h1 .hero-accent { margin-top: clamp(2px, .8vh, 8px) !important; padding: clamp(2px, .5vh, 4px) clamp(8px, 1vw, 12px) !important; }
    .home-hero p { max-width: min(32rem, 90vw); font-size: clamp(12px, 1.9vh, 24px) !important; margin-bottom: clamp(10px, 2vh, 24px) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .home-hero a { padding-top: clamp(9px, 1.6vh, 22px) !important; padding-bottom: clamp(9px, 1.6vh, 22px) !important; font-size: clamp(12px, 1.5vh, 18px) !important; }
    .home-bottom { flex: none !important; padding-top: 10px !important; padding-bottom: 6px !important; margin-top: 0 !important; }
    .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; margin-bottom: clamp(10px, 2.2vh, 22px) !important; gap: 12px !important; }
    .home-tiles [class*="min-h-"] { min-height: 0 !important; }
    .home-tiles > * { height: clamp(150px, 31vh, 560px) !important; padding: clamp(10px, 1.8vh, 30px) !important; }
    .home-tiles .tile-carousel { padding: 0 !important; }
    .home-tiles .tile-carousel > div.relative { padding: clamp(10px, 1.8vh, 30px) !important; }
    .home-tiles h3 { font-size: clamp(14px, 2.2vh, 30px) !important; }
    .home-tiles { gap: clamp(12px, 1.2vw, 28px) !important; }
    .home-footer { padding-top: 8px !important; padding-bottom: 6px !important; margin-top: 0 !important; }
}
/* большие экраны: содержимое растёт вместе с экраном, а не стоит узкой колонкой по центру */
@media (min-width: 1700px) {
    .home-bottom > div, .home-footer > div { max-width: min(100%, 2600px) !important; }
    .home-hero > div > div { max-width: min(56rem, 60vw) !important; }
}
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .home-tiles > * { height: clamp(110px, 15vh, 320px) !important; }
}
@media (min-width: 768px) and (max-height: 560px) { .home-main { overflow-y: auto !important; } }

/* Язык */
.lang-sw { position: relative; margin-left: 8px; }
.lang-cur { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; padding: 4px 2px; }
.lang-cur:hover { color: #FFC107; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; background: #262626; border: 1px solid #404040; border-radius: 10px; padding: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.5); z-index: 200; }
.lang-menu[hidden] { display: none; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #d1d5db; }
.lang-menu a:hover { background: #333; color: #fff; }
.lang-menu a.is-active { color: #FFC107; }

/* Бургер-меню */
.mobile-menu { padding: 0; }
.bm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.bm-body { flex: 1; overflow-y: auto; padding: 8px 20px 16px; overscroll-behavior: contain; }
.bm-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin: 18px 0 8px; }
.bm-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 17px; font-weight: 700; color: #fff; }
.bm-nav a svg:first-child { color: #FFC107; flex-shrink: 0; }
.bm-nav a span { flex: 1; }
.bm-nav .bm-arrow { color: #6b7280; }
.bm-nav a:active, .bm-nav a:hover { color: #FFC107; }
.bm-quick { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bm-quick a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #262626; border: 1px solid #333; border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; }
.bm-quick a svg { color: #FFC107; }
.bm-quick a span { flex: 1; }
.bm-quick b { background: #FFC107; color: #000; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.bm-quick b[hidden] { display: none; }
.bm-foot { flex-shrink: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bm-langs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9ca3af; }
.bm-langs a { padding: 6px 12px; border-radius: 8px; background: #262626; border: 1px solid #333; font-weight: 700; color: #d1d5db; }
.bm-langs a.is-active { background: #FFC107; border-color: #FFC107; color: #000; }
.bm-socials { display: flex; gap: 16px; color: #9ca3af; }
.bm-socials a:hover { color: #fff; }

.footer-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 14px;font-size:14px}
@media(min-width:768px){.footer-line{justify-content:flex-start}}
.footer-sep{width:1px;height:14px;background:rgba(255,255,255,.18)}
.footer-links{display:flex;flex-wrap:wrap;gap:2px 16px;font-size:12.5px}
.footer-links a{color:#9ca3af;transition:color .15s;position:relative}
.footer-links a:hover{color:#FFC107}
@media(max-width:420px){.footer-sep{display:none}.footer-line{flex-direction:column;gap:6px}}

/* ---------- чат поддержки ---------- */
.cw { position: fixed; right: 24px; bottom: 24px; z-index: 160; font-family: inherit; }
.cw-btn { position: relative; width: 60px; height: 60px; border-radius: 9999px; background: #FFC107; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -6px rgba(0,0,0,.5); cursor: pointer; border: 0; transition: transform .2s; }
.cw-btn:hover { transform: scale(1.06); }
.cw-btn.is-open { background: #2a2a2a; color: #FFC107; }
.cw-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 9999px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #1c1c1c; }
.cw-badge[hidden], .cw-panel[hidden] { display: none; }
.cw-panel { position: absolute; right: 0; bottom: 76px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: #fff; color: #111827; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; animation: cwin .22s ease-out; }
@keyframes cwin { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.cw-head { background: #1c1c1c; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cw-head b { display: block; font-size: 15px; }
.cw-head span { font-size: 12px; color: #FFC107; }
.cw-head button { color: #fff; opacity: .8; cursor: pointer; background: none; border: 0; padding: 6px; }
.cw-head button:hover { opacity: 1; color: #FFC107; }
.cw-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f5f6f8; display: flex; flex-direction: column; gap: 8px; }
.cw-msg { max-width: 84%; padding: 8px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cw-msg time { display: flex; justify-content: flex-end; align-items: center; font-size: 10.5px; color: rgba(17,24,39,.55); margin-top: 2px; }
.cw-who { display: block; font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 2px; }
.cw-in, .cw-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cw-bot { color: #374151; }
.cw-out { align-self: flex-end; background: #FFC107; color: #111; border-bottom-right-radius: 4px; }
.cw-tick { display: inline-flex; margin-left: 4px; color: #6b7280; }
.cw-out .cw-tick.is-read { color: #1565e8; }
.cw-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cw-quick button { background: #fff; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .15s; }
.cw-quick button:hover { border-color: #FFC107; background: #fff8e1; }
.cw-note { font-size: 12px; color: #6b7280; text-align: center; padding: 4px 8px; }
.cw-err { color: #b91c1c; }
.cw-typing { min-height: 18px; padding: 0 16px; font-size: 12px; color: #6b7280; font-style: italic; background: #f5f6f8; }
.cw-form { border-top: 1px solid #e5e7eb; padding: 10px 12px 12px; background: #fff; }
.cw-ident { display: grid; gap: 6px; margin-bottom: 8px; }
.cw-ident[hidden] { display: none; }
.cw-ident input { padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 13px; }
.cw-row { display: flex; gap: 8px; align-items: flex-end; }
.cw-row textarea { flex: 1; resize: none; padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 12px; font: inherit; font-size: 14px; max-height: 110px; outline: none; }
.cw-row textarea:focus, .cw-ident input:focus { border-color: #FFC107; }
.cw-row button { width: 40px; height: 40px; border-radius: 9999px; background: #FFC107; color: #111; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.cw-prod { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff8e1; border: 1px solid #ffe08a; border-radius: 10px; padding: 6px 10px; font-size: 12px; margin-bottom: 8px; }
.cw-prod button { background: none; border: 0; font-size: 16px; cursor: pointer; }
@media (max-width: 767px) {
  .cw { right: 16px; bottom: 16px; }
  .cw-panel { position: fixed; inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; bottom: 0; }
  .cw-btn.is-open { display: none; }
  .to-top { bottom: 88px; right: 16px; }
}
.cw-tool { width: 36px; height: 36px; border-radius: 9999px; background: none; border: 0; color: #6b7280; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 19px; }
.cw-tool:hover { background: #f3f4f6; color: #111; }
.cw-msg a { color: inherit; text-decoration: underline; }
.cw-big { font-size: 36px; line-height: 1.15; }
.cw-img { display: block; margin: 2px 0 4px; border-radius: 12px; overflow: hidden; max-width: 230px; }
.cw-img img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.cw-video { display: block; max-width: 230px; width: 100%; border-radius: 12px; margin: 2px 0 4px; background: #000; }
.cw-file { display: flex; align-items: center; gap: 10px; text-decoration: none !important; padding: 2px 0; min-width: 180px; }
.cw-file b { display: block; font-size: 13px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-file small { font-size: 11px; opacity: .65; }
.cw-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #1c1c1c; color: #FFC107; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cw-out .cw-ico { background: #1c1c1c; }
.cw-pending { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-pending:not(:empty) { margin-bottom: 8px; }
.cw-pend { display: flex; align-items: center; gap: 6px; background: #f3f4f6; border-radius: 10px; padding: 4px 6px; font-size: 12px; max-width: 170px; }
.cw-pend img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.cw-pend .cw-ico { width: 32px; height: 32px; }
.cw-pn { display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-pn small { opacity: .6; overflow: hidden; text-overflow: ellipsis; }
.cw-pend-err { background: #fee2e2; color: #b91c1c; }
.cw-pend-up { opacity: .7; }
.cw-pend button { background: none; border: 0; font-size: 17px; cursor: pointer; color: inherit; }
.cw-emopop { position: absolute; left: 8px; right: 8px; bottom: 100%; max-height: 190px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 6px; display: flex; flex-wrap: wrap; }
.cw-emopop button { width: 36px; height: 36px; font-size: 22px; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.cw-emopop button:hover { background: #f3f4f6; }
.cw-form { position: relative; }
.cw-panel.cw-drop::after { content: 'Отпустите файлы, чтобы прикрепить'; position: absolute; inset: 0; background: rgba(255,193,7,.2); border: 3px dashed #FFC107; color: #111; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; pointer-events: none; }
.cw-viewer { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.cw-viewer img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.cw-viewer button { position: absolute; top: 12px; right: 18px; font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer; }

.footer-line{flex-wrap:wrap}
.home-footer{padding-right:88px}
.footer-copy{font-size:12px;color:#6b7280;white-space:nowrap}
@media(max-width:767px){.home-footer{padding-right:0;padding-bottom:84px}.footer-line{flex-direction:column;gap:6px}.footer-sep{display:none}.footer-copy{white-space:normal}}

/* Спиннер загрузки картинок (как в ERP) */
@keyframes trs-spin { to { transform: rotate(360deg); } }
.img-spin, .lb-spin { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid rgba(120,120,120,.25); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; z-index: 11; pointer-events: none; }
.lb-spin { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: rgba(255,255,255,.2); border-top-color: #FFC107; }
.lightbox.is-ready .lb-spin, .cw-img.is-ready .img-spin { display: none; }
.cw-img { position: relative; min-height: 80px; background: #e5e7eb; }
.skel:not(.is-loaded):not(.is-error)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid rgba(120,120,120,.25); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; z-index: 11; }
/* Запрет прокрутки страницы под окнами и меню */
body.modal-open #main-scroll, body.menu-open #main-scroll, body.lightbox-open #main-scroll { overflow: hidden !important; }
body.modal-open, body.menu-open, body.lightbox-open { overflow: hidden; overscroll-behavior: none; }
.modal-backdrop, .mobile-menu { overscroll-behavior: contain; }

/* ===== Окна: шапка и кнопки ===== */
#modal-big { border-radius: 20px 20px 0 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
@media (min-width: 768px) { #modal-big { border-radius: 20px; } }
.modal-root .modal-backdrop { background: rgba(10,10,10,.62) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.win-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 16px 0 20px; background: #fff; border-bottom: 1px solid #eceef1; flex-shrink: 0; width: 100%; }
@media (min-width: 768px) { .win-head { padding: 0 20px 0 24px; } }
.win-ico { width: 36px; height: 36px; border-radius: 10px; background: #262626; color: #FFC107; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.win-ico svg { width: 20px; height: 20px; }
.win-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: #171717; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btn { width: 40px; height: 40px; border-radius: 9999px; border: 0; background: #f3f4f6; color: #4b5563; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; flex-shrink: 0; }
.win-btn:hover { background: #e5e7eb; color: #111; }
.win-btn:active { transform: scale(.92); }
.win-btn:focus-visible { outline: 2px solid #FFC107; outline-offset: 2px; }
.win-btn-close { background: #262626; color: #fff; }
.win-btn-close:hover { background: #FFC107; color: #000; transform: rotate(90deg); }
.win-btn-close:active { transform: rotate(90deg) scale(.92); }
.win-sep { width: 1px; height: 22px; background: #e5e7eb; margin: 0 4px; }
#modal-loader { background: #fff; }

/* ===== Лента в стиле новостного сайта ===== */
.feed-bg { background: #f6f7f9; }
.feed-wrap { max-width: 1120px; margin: 0 auto; padding: 16px; }
@media (min-width: 768px) { .feed-wrap { padding: 28px; } }
.feed-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .feed-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; } }
@media (min-width: 1024px) { .feed-grid { grid-template-columns: repeat(3, 1fr); } }
.feed-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e8eaee; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor: pointer; }
.feed-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.25); border-color: #FFC107; }
.feed-cover { position: relative; aspect-ratio: 16 / 10; background: #e5e7eb; overflow: hidden; }
.feed-cover .skel-img { transition: opacity .6s ease, transform .6s ease; }
.feed-card:hover .feed-cover .skel-img { transform: scale(1.05); }
.feed-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd0d6; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.feed-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.feed-date { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a7b00; }
.feed-title { font-size: 17px; line-height: 1.3; font-weight: 800; color: #171717; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.feed-card:hover .feed-title { color: #b88a00; }
.feed-sum { font-size: 14px; line-height: 1.5; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.feed-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #171717; }
.feed-card:hover .feed-more svg { transform: translateX(4px); }
.feed-more svg { transition: transform .2s; }
.feed-card-hero { position: relative; border: 0; min-height: 280px; }
.feed-card-hero .feed-cover { position: absolute; inset: 0; aspect-ratio: auto; }
.feed-card-hero .feed-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.85)); z-index: 5; }
.feed-card-hero .feed-body { position: relative; z-index: 6; margin-top: auto; padding: 24px; justify-content: flex-end; min-height: 280px; }
@media (min-width: 768px) { .feed-card-hero, .feed-card-hero .feed-body { min-height: 380px; } .feed-card-hero .feed-body { padding: 36px; max-width: 760px; } }
.feed-card-hero .feed-date { color: #FFC107; }
.feed-card-hero .feed-title, .feed-card:hover.feed-card-hero .feed-title { color: #fff; font-size: 24px; -webkit-line-clamp: 4; }
@media (min-width: 768px) { .feed-card-hero .feed-title { font-size: 34px; } }
.feed-card-hero .feed-sum { color: #d1d5db; }
.feed-card-hero .feed-more { color: #FFC107; margin-top: 4px; }
.feed-bar { padding: 10px 16px; border-bottom: 1px solid #eceef1; background: #fff; flex-shrink: 0; }
@media (min-width: 768px) { .feed-bar { padding: 12px 28px; } }
.feed-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #4b5563; padding: 6px 12px 6px 8px; border-radius: 9999px; transition: background .2s, color .2s; }
.feed-back:hover { background: #f3f4f6; color: #111; }
.feed-article { max-width: 820px; margin: 0 auto; padding: 20px 16px 40px; }
@media (min-width: 768px) { .feed-article { padding: 36px 28px 56px; } }
.feed-more-block { margin-top: 48px; padding-top: 28px; border-top: 1px solid #eceef1; }
.feed-more-block .feed-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .feed-more-block .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feed-more-block .feed-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Галерея ===== */
.gal-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; border-radius: 16px; overflow: hidden; background: #111; cursor: zoom-in; user-select: none; }
.gal-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.7); transform: scale(1.15); }
.gal-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s ease; }
.gal-stage.is-loading .gal-img { opacity: .25; }
.gal-spin { position: absolute; z-index: 6; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid rgba(255,255,255,.25); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.gal-stage.is-loading .gal-spin { opacity: 1; }
.gal-nav, .gal-zoom { position: absolute; z-index: 8; width: 44px; height: 44px; border-radius: 9999px; border: 0; background: rgba(20,20,20,.55); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, color .2s, opacity .2s, transform .2s; }
.gal-nav:hover, .gal-zoom:hover { background: #FFC107; color: #000; }
.gal-prev { left: 12px; top: 50%; margin-top: -22px; } .gal-next { right: 12px; top: 50%; margin-top: -22px; }
.gal-zoom { right: 12px; top: 12px; width: 38px; height: 38px; }
.gal-count { position: absolute; z-index: 8; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 9999px; background: rgba(20,20,20,.6); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.gal-strip-wrap { position: relative; margin-top: 10px; }
.gal-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; cursor: grab; }
.gal-strip::-webkit-scrollbar { display: none; }
.gal-strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gal-thumb { position: relative; flex: 0 0 auto; width: 92px; height: 66px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #e5e7eb; cursor: pointer; scroll-snap-align: center; opacity: .65; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s, transform .2s; }
@media (min-width: 768px) { .gal-thumb { width: 116px; height: 80px; } }
.gal-thumb:hover { opacity: 1; }
.gal-thumb.is-active { opacity: 1; outline-color: #FFC107; transform: translateY(-1px); }
.gal-thumb img { pointer-events: none; -webkit-user-drag: none; }
.gal-sarr { position: absolute; top: 50%; margin-top: -16px; z-index: 5; width: 32px; height: 32px; border-radius: 9999px; border: 1px solid #e5e7eb; background: #fff; color: #374151; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: background .2s; }
.gal-sarr:hover { background: #FFC107; }
.gal-sprev { left: -6px; } .gal-snext { right: -6px; }
@media (hover: hover) and (min-width: 768px) { .gal-sarr { display: flex; } }
.lb-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 9999px; border: 0; background: rgba(0,0,0,.5); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s; }
.lb-nav:hover { background: #FFC107; color: #000; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lightbox.has-nav .lb-nav { display: flex; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 9999px; }
.lb-count:empty { display: none; }

/* ===== Прелоадеры на всех картинках ===== */
.content-img-wrapper:not(.is-loaded):not(.is-error) .content-img-front { opacity: 0; }
.content-img-front { transition: opacity .5s ease, transform .5s; }
.content-img-wrapper:not(.is-loaded):not(.is-error)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid rgba(120,120,120,.25); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; z-index: 12; }
.tile-carousel.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid rgba(255,255,255,.2); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; z-index: 30; }
.slide-bg .skel { background: #262626; }
.slide-bg .skel:not(.is-loaded):not(.is-error)::after { display: none; }
.slide-bg .skel-shimmer { display: none; }

/* ===== Каталог: плавная смена правой части, дерево на месте ===== */
.cat-link { transition: background-color .2s, color .2s; }
.cat-link:hover { background: #e5e7eb; }
.cat-link.is-active, .cat-link.is-active:hover { background: #FFC107; color: #000; }
[data-pane-main] > * { transition: opacity .2s ease; }
[data-pane-main].is-loading > * { opacity: .25; pointer-events: none; }
[data-pane-main].is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(120,120,120,.25); border-top-color: #FFC107; border-radius: 50%; animation: trs-spin .8s linear infinite; z-index: 20; }
[data-pane-main].is-in > * { animation: trs-fade .35s ease both; }
.content-img-wrapper.is-error { display: none; }
@media (max-width: 480px) { .win-title { font-size: 16px; } .win-btn { width: 36px; height: 36px; } .win-head { gap: 8px; padding: 0 12px; } .win-sep { display: none; } }

/* классы, которых нет в собранном tailwind.css */
.feed-article h1 { font-size: 30px; line-height: 1.15; }
@media (min-width: 768px) { .feed-article h1 { font-size: 44px; } }
.feed-more-block h2 { font-size: 20px; }
.feed-article .bg-amber-100 { background: #fef3c7; } .feed-article .text-amber-700 { color: #b45309; }
.feed-wrap .py-16 { padding-top: 64px; padding-bottom: 64px; }

/* Чат: приветственная форма (имя обязательно) */
.cw-gate { display: none; flex: 1; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 22px; background: #fff; }
.cw-gate:not([hidden]) { display: flex; }
.cw-gate-t { font-size: 20px; font-weight: 900; color: #111827; }
.cw-gate p { font-size: 13px; line-height: 1.45; color: #6b7280; margin-bottom: 4px; }
.cw-gate input { padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 15px; outline: none; transition: border-color .2s; }
.cw-gate input:focus { border-color: #FFC107; }
.cw-gate button { margin-top: 4px; padding: 13px; border: 0; border-radius: 12px; background: #FFC107; color: #000; font-weight: 800; font-size: 15px; cursor: pointer; transition: filter .2s; }
.cw-gate button:hover { filter: brightness(.95); }
.cw-panel.is-gated .cw-msgs, .cw-panel.is-gated .cw-typing, .cw-panel.is-gated .cw-form { display: none; }

/* Лупа: только по наведению мыши и только на больших картинках; на телефоне — без лупы */
.gal-zoom { opacity: 0; pointer-events: none; transition: opacity .2s, background .2s; }
.content-img-wrapper, .gal-stage { cursor: pointer; }
@media (hover: hover) { .gal-stage:hover .gal-zoom { opacity: 1; } }
@media (hover: none) { .gal-zoom, .content-img-overlay { display: none !important; } .gal-stage { cursor: default; } }
.hero-cta { margin-top: 22px; }
#modal-handle, .win-head { touch-action: none; }
#modal-handle { padding-top: 10px; padding-bottom: 8px; }
.cw-tgbar { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 12px; background: #e8f5fd; color: #0369a1; font-size: 13px; font-weight: 700; border: 0; border-bottom: 1px solid #d3e9f7; cursor: pointer; }
.cw-tgbar[hidden] { display: none; }
.cw-tgbar:hover { background: #d9eefb; }
.cw-gate-hint { font-size: 13px; line-height: 1.4; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.cw-gate input.is-ask { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.cw-gate { min-height: 0; overflow-y: auto; justify-content: safe center; padding: 18px 22px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cw-gate > * { flex-shrink: 0; }
.cw-gate p { margin-bottom: 0; }
.cw-gate button[type=submit] { position: sticky; bottom: 0; }
.cw-emopop { display: block; padding: 0; max-height: none; overflow: hidden; left: 8px; right: 8px; bottom: calc(100% + 6px); border-radius: 16px; box-shadow: 0 14px 38px rgba(0,0,0,.28); animation: cw-pop .16s ease-out; transform-origin: bottom left; }
@keyframes cw-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.cw-emo-tabs { display: flex; gap: 2px; padding: 6px 8px; background: #f9fafb; border-bottom: 1px solid #eef0f3; }
.cw-emo-tabs button { flex: 1; height: 34px; font-size: 19px; border-radius: 10px; opacity: .55; transition: background .15s, opacity .15s; }
.cw-emo-tabs button.on { opacity: 1; background: #fff3c4; }
.cw-emo-body { max-height: 210px; overflow-y: auto; padding: 4px 8px 8px; position: relative; scrollbar-width: thin; }
.cw-emo-h { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; margin: 8px 4px 2px; }
.cw-emo-row { display: flex; flex-wrap: wrap; }
.cw-emopop .cw-emo-row button { width: 38px; height: 38px; font-size: 24px; border-radius: 10px; transition: transform .1s, background .15s; }
.cw-emopop .cw-emo-row button:hover { background: #fff3c4; transform: scale(1.22); }
.cw-emo-g:last-child { min-height: 150px; }

.cw-pdf { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 20px; animation: cw-pop .18s ease-out; }
.cw-pdf-win { width: min(960px, 100%); height: min(92vh, 900px); background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cw-pdf-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid #eceef1; }
.cw-pdf-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: #111827; }
.cw-pdf-dl { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 9999px; background: #f3f4f6; color: #111827; text-decoration: none; }
.cw-pdf-dl:hover { background: #FFC107; }
.cw-pdf-x { width: 38px; height: 38px; border: 0; border-radius: 9999px; background: #262626; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.cw-pdf-x:hover { background: #FFC107; color: #000; transform: rotate(90deg); }
.cw-pdf-box { position: relative; flex: 1; min-height: 0; background: #e5e7eb; }
.cw-pdf-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .25s; }
.cw-pdf-box.is-ready iframe { opacity: 1; }
.cw-pdf-box .img-spin { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; }
.cw-pdf-box.is-ready .img-spin { display: none; }
html.cw-pdf-open { overflow: hidden; }
@media (max-width: 640px) { .cw-pdf { padding: 0; } .cw-pdf-win { height: 100%; border-radius: 0; } }

.cw-panel { width: 420px; }
.cw-head #cw-min { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 9999px; background: rgba(255,255,255,.14); opacity: 1; font-size: 13px; font-weight: 700; color: #fff; transition: background .2s, color .2s; }
.cw-head #cw-min span { font-size: 13px; color: inherit; }
.cw-head #cw-min:hover { background: #FFC107; color: #000; }
@media (min-width: 1280px) { .cw-panel { width: 440px; } }
/* Панель эмодзи (витрина и ERP) */
.emo-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); max-width: 380px; z-index: 60; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.28); overflow: hidden; display: flex; flex-direction: column; animation: emo-in .16s ease-out; transform-origin: bottom left; color: #111827; font-family: inherit; }
.emo-pop.is-leaving { opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .12s, transform .12s; }
@keyframes emo-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.emo-search { padding: 10px 10px 4px; }
.emo-search input { width: 100%; box-sizing: border-box; height: 38px; border: 0; border-radius: 12px; background: #f1f3f5; padding: 0 14px; font-size: 14px; color: inherit; outline: none; }
.emo-search input:focus { box-shadow: 0 0 0 2px #FFC107 inset; background: #fff; }
.emo-tabs { display: flex; gap: 2px; padding: 4px 8px 6px; border-bottom: 1px solid #eef0f3; }
.emo-tabs button { flex: 1; height: 34px; border: 0; background: none; border-radius: 10px; font-size: 19px; cursor: pointer; opacity: .5; transition: background .15s, opacity .15s, transform .15s; }
.emo-tabs button:hover { opacity: .9; }
.emo-tabs button.on { opacity: 1; background: #fff3c4; }
.emo-pop.is-search .emo-tabs { opacity: .4; pointer-events: none; }
.emo-body { height: 250px; overflow-y: auto; padding: 0 8px 8px; position: relative; scrollbar-width: thin; overscroll-behavior: contain; }
.emo-h { position: sticky; top: 0; z-index: 1; background: rgba(255,255,255,.96); backdrop-filter: blur(4px); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; padding: 8px 4px 4px; }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.emo-c { height: 38px; border: 0; background: none; border-radius: 10px; font-size: 24px; line-height: 1; cursor: pointer; transition: transform .1s, background .15s; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.emo-c:hover { background: #fff3c4; transform: scale(1.22); }
.emo-none { grid-column: 1 / -1; color: #9ca3af; font-size: 13px; padding: 12px 4px; }
.emo-sec:last-child { min-height: 200px; }
@media (max-width: 640px) { .emo-pop { max-width: none; } }

/* аватарки */
.hdr-av{width:28px;height:28px;border-radius:50%;object-fit:cover;display:block;border:2px solid #FFC107}
.acc-av{width:40px;height:40px;border-radius:50%;background:#FFC107;color:#111;display:grid;place-items:center;font-weight:800;overflow:hidden;flex:none}
.acc-av img{width:100%;height:100%;object-fit:cover;display:block}
.acc-av-lg{width:96px;height:96px;font-size:36px}
.acc-av-block{display:flex;align-items:center;gap:18px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid #e5e7eb}
.acc-av-del{margin-left:10px;font-size:13px;font-weight:600;color:#6b7280;text-decoration:underline;cursor:pointer;background:none;border:0}
.acc-av-del:hover{color:#dc2626}

/* карточка товара: закладка в правом верхнем углу, фото вписывается целиком (как в ERP) */
.tile-fav { position: absolute; top: 10px; right: 10px; z-index: 20; line-height: 0; }
.skel-fitbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.85); transform: scale(1.2); opacity: .9; }
.skel-fit .skel-img { object-fit: contain; z-index: 2; }
.skel-fit .skel-shimmer { z-index: 3; }

/* окно не передаёт прокрутку странице под собой (iOS/Android) */
#modal-root, #modal-root * { overscroll-behavior: contain; }
html:has(body.modal-open), body.modal-open { overflow: hidden; touch-action: manipulation; }

/* страница товара: магазинная вёрстка — галерея слева, покупка справа */
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.shop-grid--nogal { grid-template-columns: 1fr; }
.shop-gal .gal { margin: 0; }
.shop-gal .gal-stage { aspect-ratio: 1 / 1; max-height: 520px; background: #f3f4f6; border: 1px solid #e5e7eb; }
.shop-gal .gal-bg { filter: blur(26px) brightness(1.08) saturate(.9); opacity: .55; }
.shop-gal .gal-thumb { width: 64px; height: 64px; }
.shop-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
@media (max-width: 820px) { .shop-grid { grid-template-columns: 1fr; gap: 18px; } .shop-gal .gal-stage { max-height: 420px; } }
.shop-info>*+*{margin-top:12px}
.shop-info .variant-chip{display:inline-flex;gap:8px;align-items:center}

/* фигуры и галереи из редактора статей */
.word-content figure.content-fig { margin: 1.4em 0; width: 100%; }
.word-content figure.content-fig > .content-img-wrapper, .word-content figure.content-fig img { width: 100%; }
.word-content .content-cap { margin-top: .6em; text-align: center; font-size: .9em; line-height: 1.45; opacity: .7; }
.word-content .content-gal .gal { margin: 0; }
.word-content .content-gal .gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
