/* ===========================================================
   ФинСравни — дизайн-система
   =========================================================== */
:root {
  --bg: #f4f7fa;
  --bg-2: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f1c2b;
  --ink-2: #26384c;
  --muted: #5d7085;
  --muted-2: #7d8fa3;
  --line: #e2e8f0;
  --line-2: #d3dde8;
  --brand: #175cd3;
  --brand-2: #0f47a6;
  --brand-dark: #0b2a5b;
  --hero-from: #081c36;
  --hero-mid: #0c2f63;
  --hero-to: #1657c8;
  --accent-light: #7ef2c1;
  --footer-bg: #0b1c2f;
  --on-primary: #ffffff;
  --on-accent: #ffffff;
  --brand-ring: rgba(23, 92, 211, .14);
  --brand-glow: rgba(23, 92, 211, .45);
  --accent-ring: rgba(14, 159, 110, .35);
  --hero-glow-rgb: 78, 156, 255;
  --accent-glow-rgb: 3, 213, 153;
  --brand-soft: #eaf1ff;
  --green: #0e9f6e;
  --green-dark: #0a7d56;
  --green-soft: #e5f8f0;
  --amber: #f5a623;
  --amber-soft: #fff5e2;
  --red: #dc2626;
  --red-soft: #feecec;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 43, .05);
  --shadow: 0 8px 28px -12px rgba(15, 28, 43, .18), 0 2px 6px rgba(15, 28, 43, .04);
  --shadow-lg: 0 30px 70px -24px rgba(11, 42, 91, .35);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 142px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.22; letter-spacing: -.015em; font-weight: 750; color: var(--ink); }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 15px; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
button, input, select, textarea { font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
::selection { background: #cfe0ff; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; flex: 0 0 auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--brand);
  --btn-color: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 11px;
  background: var(--btn-bg); color: var(--btn-color);
  font-weight: 650; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 6px 14px -8px var(--brand-glow);
}
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --btn-bg: var(--brand); }
.btn-green { --btn-bg: var(--green); --btn-color: var(--on-accent); box-shadow: 0 6px 14px -8px var(--accent-ring); }
.btn-green:hover { background: var(--green-dark); color: #ffffff; }
.btn-secondary { --btn-bg: var(--brand-soft); --btn-color: var(--brand-2); box-shadow: none; }
.btn-secondary:hover { background: #dbe8ff; color: var(--brand-2); }
.btn-ghost { --btn-bg: transparent; --btn-color: var(--ink-2); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted-2); color: var(--ink); }
.btn-danger { --btn-bg: var(--red-soft); --btn-color: #b91c1c; box-shadow: none; }
.btn-danger:hover { background: #ffdede; color: #991b1b; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.btn .icon { width: 18px; height: 18px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  border-radius: 10px; cursor: pointer; position: relative; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn .icon { width: 21px; height: 21px; }
.favorite-link { color: var(--muted); }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 10px 30px -20px rgba(15, 28, 43, .4); }
.header-main { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 10px var(--brand-ring)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; margin-top: 4px; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .6); }

.global-search { position: relative; flex: 1 1 auto; max-width: 560px; display: flex; align-items: center; }
.gs-icon { position: absolute; left: 15px; color: var(--muted-2); display: inline-flex; pointer-events: none; }
.gs-icon .icon { width: 19px; height: 19px; }
.global-search input {
  width: 100%; height: 48px; padding: 0 128px 0 46px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface-2);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.global-search input::placeholder { color: var(--muted-2); }
.global-search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.gs-btn { position: absolute; right: 5px; min-height: 38px; padding: 8px 18px; border-radius: 9px; }
.suggest-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; max-height: 420px; overflow: auto;
}
.suggest-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); padding: 8px 10px 4px; font-weight: 700; }
.suggest-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--ink); }
.suggest-item:hover { background: var(--bg-2); color: var(--ink); }
.suggest-item .s-name { font-weight: 600; font-size: 14px; }
.suggest-item .s-sub { font-size: 12.5px; color: var(--muted); }
.suggest-item .s-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-item .s-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-link { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 12px; border-radius: 9px; }
.header-link:hover { background: var(--bg-2); color: var(--brand); }
.auth-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.counter {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 20px; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.user-menu { display: flex; align-items: center; gap: 4px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 30px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.user-chip:hover { border-color: var(--line-2); background: var(--surface-2); color: var(--ink); }
.user-chip-name { font-size: 13.5px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--hue, 215) 75% 92%); color: hsl(var(--hue, 215) 60% 32%);
  font-weight: 750; font-size: 13px; flex: 0 0 auto;
}
.logout-btn { width: 34px; height: 34px; }
.burger { display: none; }

.cat-nav { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.cat-nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px;
  font-size: 13.8px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.cat-link .icon { width: 18px; height: 18px; color: var(--muted); }
.cat-link:hover { color: var(--brand); }
.cat-link.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.cat-link.is-active .icon { color: var(--brand); }

.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 360px; max-width: 90vw;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  z-index: 95; padding: 8px; max-height: 440px; overflow: auto;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.notif-head b { font-size: 14px; }
.notif-item { display: block; padding: 11px 10px; border-radius: 10px; color: var(--ink); }
.notif-item:hover { background: var(--bg-2); }
.notif-item.is-unread { background: #f3f8ff; }
.notif-item .n-title { font-weight: 650; font-size: 13.5px; }
.notif-item .n-body { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.notif-item .n-time { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.notif-empty { padding: 22px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(118deg, var(--hero-from) 0%, var(--hero-mid) 48%, var(--hero-to) 110%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(var(--hero-glow-rgb), .38), transparent 62%); }
.hero::after { width: 460px; height: 460px; left: -160px; bottom: -280px; background: radial-gradient(circle, rgba(var(--accent-glow-rgb), .22), transparent 65%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 58px 0 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9fd0ff; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-light); border-radius: 2px; }
.hero h1 { font-size: 46px; line-height: 1.12; color: #fff; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero-copy > p { margin-top: 18px; font-size: 16.5px; color: rgba(255, 255, 255, .78); max-width: 530px; }
.hero-search { position: relative; display: flex; margin-top: 28px; max-width: 560px; }
.hero-search input {
  width: 100%; height: 56px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1); color: #fff; padding: 0 160px 0 20px;
  font-size: 15.5px; backdrop-filter: blur(6px);
}
.hero-search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-search input:focus { outline: none; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.hero-search .btn { position: absolute; right: 7px; top: 7px; height: 42px; background: var(--accent-light); color: #06301f; box-shadow: none; }
.hero-search .btn:hover { background: var(--accent-light); filter: brightness(1.05); color: #06301f; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chip {
  padding: 7px 13px; border-radius: 30px; font-size: 12.8px; font-weight: 600;
  color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
}
.hero-chip:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }

.hero-visual { position: relative; min-height: 330px; }
.hv-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px;
  box-shadow: 0 28px 60px -22px rgba(2, 12, 30, .65);
  width: 300px;
}
.hv-card--back { top: 4px; right: 24px; transform: rotate(5deg); opacity: .5; background: #e9f1ff; height: 270px; }
.hv-card--front { top: 34px; left: 10px; transform: rotate(-2deg); width: 330px; }
.hv-top { display: flex; align-items: center; gap: 10px; }
.hv-bank { font-size: 12px; color: var(--muted); font-weight: 600; }
.hv-name { font-weight: 750; margin-top: 10px; font-size: 15px; }
.hv-rate { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.hv-rate b { font-size: 34px; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.hv-rate span { font-size: 13px; color: var(--muted); }
.hv-bars { margin-top: 16px; display: flex; align-items: flex-end; gap: 6px; height: 58px; }
.hv-bars span { flex: 1; background: linear-gradient(180deg, #9cc4ff, #e4efff); border-radius: 4px 4px 2px 2px; }
.hv-bars span:nth-child(5) { background: linear-gradient(180deg, var(--accent-light), #d8fbee); }
.hv-lines { margin-top: 16px; display: grid; gap: 7px; }
.hv-lines span { height: 7px; border-radius: 4px; background: var(--bg-2); }
.hv-lines span:first-child { width: 82%; }
.hv-lines span:nth-child(2) { width: 64%; }
.hv-float {
  position: absolute; right: 0; bottom: 6px; background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; transform: rotate(2deg);
}
.hv-float b { font-size: 18px; }
.hv-float span { font-size: 11.5px; color: var(--muted); display: block; }
.hv-float .icon { color: var(--green); width: 26px; height: 26px; }

/* ---------------------------------------------------------- sections */
.section { padding: 46px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { font-size: 28px; }
.section-head p { color: var(--muted); margin-top: 6px; max-width: 620px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.section-link .icon { width: 16px; height: 16px; transition: transform .15s; }
.section-link:hover .icon { transform: translateX(3px); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cat-tile:hover { transform: translateY(-2px); border-color: #c9d9ee; box-shadow: var(--shadow); color: var(--ink); }
.cat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); flex: 0 0 auto;
}
.cat-tile:nth-child(3n+2) .cat-icon { background: var(--green-soft); color: var(--green); }
.cat-tile:nth-child(3n+3) .cat-icon { background: var(--bg-2); color: var(--ink-2); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-tile-text b { display: block; font-size: 15px; font-weight: 700; }
.cat-tile-text span { font-size: 12.5px; color: var(--muted); }
.cat-tile .cat-count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 20px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 15px; border-radius: 30px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--line-2); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid--1 { grid-template-columns: 1fr; }

/* ---------------------------------------------------------- product card */
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cddbeb; }
.pc-head { display: flex; align-items: center; gap: 11px; }
.bank-logo {
  --hue: 215;
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--hue) 72% 93%); color: hsl(var(--hue) 58% 31%);
  font-weight: 800; font-size: 13.5px; letter-spacing: -.02em;
}
.bank-logo--lg { width: 60px; height: 60px; border-radius: 16px; font-size: 18px; }
.bank-logo--sm { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.pc-head-text { min-width: 0; display: flex; flex-direction: column; }
.pc-bank { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-cat { font-size: 11px; color: var(--muted-2); }
.pc-head .badge-soft { margin-left: auto; }
.fav-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: #b9c6d6; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color .15s, background .15s, border-color .15s; flex: 0 0 auto;
}
.fav-btn .icon { width: 17px; height: 17px; }
.fav-btn:hover { color: #ef5f7a; border-color: #f6c6d0; background: #fff7f9; }
.fav-btn.is-active { color: #e54666; background: #fff0f4; border-color: #f3b9c7; }
.pc-title { display: block; margin-top: 13px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pc-title:hover { color: var(--brand); }
.pc-main { display: flex; align-items: flex-start; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pc-rate { min-width: 122px; }
.pc-rate b { display: block; font-size: 25px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.pc-rate b em { font-style: normal; font-size: 16px; color: var(--green); }
.pc-rate > span { font-size: 11.5px; color: var(--muted); display: block; margin-top: 3px; }
.pc-specs { flex: 1; display: grid; gap: 5px; min-width: 0; }
.pc-specs li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.8px; }
.pc-specs li span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-specs li b { font-weight: 650; color: var(--ink-2); text-align: right; white-space: nowrap; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pc-rating { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.pc-rating b { color: var(--ink); font-size: 13px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.badge-soft { background: var(--brand-soft); color: var(--brand-2); }
.badge-green { background: var(--green-soft); color: var(--green-dark); }
.badge-amber { background: var(--amber-soft); color: #a15c07; }
.badge-red { background: var(--red-soft); color: #b91c1c; }
.badge-gray { background: var(--bg-2); color: var(--muted); }
.badge-outline { border: 1px solid var(--line-2); color: var(--muted); background: #fff; }
.pc-actions { display: flex; gap: 9px; margin-top: 15px; }
.pc-actions .btn { flex: 1; min-height: 42px; }
.pc-actions .btn-ghost { flex: 0 0 auto; padding-inline: 16px; }
.pc-offers { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.pc-offers .icon { width: 14px; height: 14px; }

.stars { position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 1.5px; color: #dbe2ea; white-space: nowrap; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--amber); white-space: nowrap; width: calc(var(--rating, 0) / 5 * 100%); }
.stars--lg { font-size: 20px; letter-spacing: 2px; }

/* ---------------------------------------------------------- catalog */
.page-head { padding: 26px 0 4px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { color: var(--muted-2); }
.breadcrumbs .current { color: var(--ink-2); font-weight: 600; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-title h1 { font-size: 34px; }
.page-title .page-sub { color: var(--muted); margin-top: 7px; max-width: 680px; }
.page-title .page-count { font-size: 13px; color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px 0 50px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 14px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 30px); overflow: auto;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filters-head b { font-size: 15px; }
.filters-head .link-btn { font-size: 12.5px; }
.filters-head .filters-close { display: none; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 0; background: none; border: 0; cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--ink);
}
.filter-toggle .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .18s; }
.filter-group.is-open .filter-toggle .icon { transform: rotate(180deg); }
.filter-body { padding: 0 0 12px; display: none; }
.filter-group.is-open .filter-body { display: block; }
.check {
  display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 13.2px; color: var(--ink-2);
  cursor: pointer; line-height: 1.35;
}
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; cursor: pointer; }
.check .count { margin-left: auto; font-size: 11.5px; color: var(--muted-2); background: var(--bg-2); padding: 1px 7px; border-radius: 10px; }
.range-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.range-row .input { height: 38px; padding: 6px 10px; font-size: 13px; }
.range-sep { color: var(--muted-2); }
.filter-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 8px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-btn {
  padding: 6px 11px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.chip-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.catalog-results { min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { font-size: 13.5px; color: var(--muted); }
.results-count b { color: var(--ink); }
.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort-select { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.select-wrap { position: relative; }
.select {
  appearance: none; height: 40px; padding: 8px 34px 8px 12px; border: 1px solid var(--line-2);
  border-radius: 9px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.select-wrap > .icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.filter-open { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px;
  border-radius: 20px; background: var(--brand-soft); color: var(--brand-2); font-size: 12px; font-weight: 600;
}
.active-filter button { border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; padding: 1px; border-radius: 50%; }
.active-filter button:hover { background: var(--brand-ring); }
.active-filter .icon { width: 13px; height: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13.5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn[disabled] { opacity: .45; cursor: default; }
.page-dots { color: var(--muted-2); padding: 0 4px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------- product page */
.product-hero { display: flex; align-items: center; gap: 18px; padding: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.product-hero-text { min-width: 0; flex: 1; }
.product-hero h1 { font-size: 27px; margin-top: 7px; }
.product-hero .ph-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; font-size: 13px; color: var(--muted); }
.product-hero .ph-actions { display: flex; gap: 8px; align-items: center; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; padding-bottom: 54px; }
.product-content { display: grid; gap: 18px; min-width: 0; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.panel > h2 { font-size: 20px; margin-bottom: 14px; }
.panel > h2 + p { color: var(--ink-2); }
.panel-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check-list .icon { width: 19px; height: 19px; color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.spec-table { display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 650; text-align: right; }

.product-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 14px); }
.offer-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.offer-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent-light)); }
.offer-rate { display: flex; align-items: baseline; gap: 8px; }
.offer-rate b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.offer-rate span { color: var(--muted); font-size: 13px; }
.offer-rate-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.offer-specs { display: grid; gap: 9px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-specs li { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.offer-specs span { color: var(--muted); }
.offer-specs b { font-weight: 650; text-align: right; }
.offer-actions { display: grid; gap: 9px; }
.offer-note { font-size: 11.5px; color: var(--muted-2); margin-top: 13px; line-height: 1.45; }
.offers-badge {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px;
  background: var(--green-soft); border-radius: 10px; font-size: 12.5px; color: var(--green-dark); font-weight: 600;
}
.offers-badge .icon { width: 17px; height: 17px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.trust-card h4 { font-size: 13.5px; margin-bottom: 10px; }
.trust-list { display: grid; gap: 9px; }
.trust-list li { display: flex; gap: 9px; font-size: 12.8px; color: var(--muted); }
.trust-list .icon { width: 17px; height: 17px; color: var(--green); flex: 0 0 auto; }

/* reviews */
.reviews-summary { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.reviews-score b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.reviews-score .stars { font-size: 17px; margin-top: 4px; }
.reviews-score span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hist { flex: 1; min-width: 220px; display: grid; gap: 5px; }
.hist-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.hist-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.review-form { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin-bottom: 20px; }
.review-form h4 { font-size: 15px; margin-bottom: 4px; }
.rating-input { display: inline-flex; gap: 3px; margin: 10px 0; }
.rating-input button {
  border: 0; background: none; cursor: pointer; color: #d6dfe9; padding: 2px; line-height: 0;
  transition: color .12s, transform .12s;
}
.rating-input button .icon { width: 28px; height: 28px; }
.rating-input button:hover { transform: scale(1.08); }
.rating-input button.is-on { color: var(--amber); }
.review-form .textarea { margin-top: 6px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; flex-wrap: wrap; }
.char-counter { font-size: 12px; color: var(--muted-2); }
.char-counter.is-ok { color: var(--green); }
.char-counter.is-short { color: var(--amber); }
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.reviews-toolbar h3 { font-size: 16px; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 11px; }
.review-author { font-weight: 700; font-size: 13.5px; }
.review-date { font-size: 12px; color: var(--muted-2); }
.review-title-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.review-text { margin-top: 9px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.review-admin-reply {
  margin-top: 12px; padding: 12px 14px; background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 9px 9px 0; font-size: 13px; color: var(--ink-2);
}
.review-admin-reply b { display: block; font-size: 12px; color: var(--brand-2); margin-bottom: 3px; }
.review-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; cursor: pointer;
}
.vote-btn:hover { border-color: var(--line-2); color: var(--ink); }
.vote-btn.is-active { background: var(--green-soft); border-color: #b9ead7; color: var(--green-dark); }
.vote-btn .icon { width: 15px; height: 15px; }
.vote-btn.vote-down.is-active { background: var(--red-soft); border-color: #f6c9c9; color: #b91c1c; }
.review-mine-actions { margin-left: auto; display: flex; gap: 6px; }

/* ---------------------------------------------------------- calculator */
.calc-head { padding: 30px 0 6px; }
.calc-head h1 { font-size: 34px; }
.calc-tabs { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 12px; gap: 4px; margin: 18px 0 22px; }
.calc-tab {
  padding: 10px 22px; border-radius: 9px; border: 0; background: transparent; cursor: pointer;
  font-weight: 650; font-size: 14px; color: var(--muted);
}
.calc-tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.calc-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 50px; }
.calc-form { position: sticky; top: calc(var(--header-h) + 14px); }
.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-size: 12.5px; font-weight: 650; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  padding: 10px 12px; height: 44px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--muted-2); pointer-events: none; }
.segmented { display: flex; padding: 3px; background: var(--bg-2); border-radius: 9px; gap: 3px; }
.segmented button {
  flex: 1; padding: 8px 10px; border: 0; background: transparent; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.segmented button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.calc-results { display: grid; gap: 16px; }
.result-card { background: linear-gradient(140deg, var(--hero-from), var(--brand)); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.result-card h3 { color: #fff; font-size: 15px; font-weight: 600; opacity: .8; }
.result-main { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.result-main b { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.result-main span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.result-cell { background: rgba(255, 255, 255, .09); border-radius: 10px; padding: 11px 13px; }
.result-cell span { display: block; font-size: 11px; color: rgba(255, 255, 255, .62); }
.result-cell b { font-size: 15px; font-weight: 700; margin-top: 3px; display: block; }
.result-cell--accent b { color: var(--accent-light); }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.chart-box h3 { font-size: 15px; margin-bottom: 4px; }
.chart-box .chart-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.chart-box canvas { width: 100%; height: 220px; display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.schedule-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.schedule-box h3 { font-size: 15px; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap;
}
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--surface-2); }
.calc-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.calc-context {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand-2); font-size: 13px; margin-bottom: 16px;
}
.calc-context .icon { width: 18px; height: 18px; }
.calc-context a { margin-left: auto; font-weight: 650; }
.form-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; margin-top: 4px; }

/* ---------------------------------------------------------- auth */
.auth-wrap { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: center; padding: 46px 0 60px; }
.auth-aside h1 { font-size: 34px; }
.auth-aside p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.auth-benefits { display: grid; gap: 14px; margin-top: 26px; }
.auth-benefit { display: flex; gap: 12px; align-items: flex-start; }
.auth-benefit .cat-icon { width: 40px; height: 40px; border-radius: 11px; }
.auth-benefit .cat-icon .icon { width: 20px; height: 20px; }
.auth-benefit b { display: block; font-size: 14px; }
.auth-benefit span { font-size: 12.8px; color: var(--muted); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 23px; }
.auth-card .auth-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-alt { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-demo {
  margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  border: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.6;
}
.auth-demo code { background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; }
.form-error { padding: 10px 12px; border-radius: 9px; background: var(--red-soft); color: #b91c1c; font-size: 13px; }
.form-success { padding: 10px 12px; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; }
.field-error { font-size: 12px; color: var(--red); }

/* ---------------------------------------------------------- account */
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 0 54px; }
.account-nav {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 14px);
}
.account-user { display: flex; align-items: center; gap: 11px; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.account-user b { display: block; font-size: 14px; }
.account-user span { font-size: 11.5px; color: var(--muted); }
.account-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.account-nav a .icon { width: 18px; height: 18px; color: var(--muted); }
.account-nav a:hover { background: var(--bg-2); color: var(--ink); }
.account-nav a.is-active { background: var(--brand-soft); color: var(--brand-2); }
.account-nav a.is-active .icon { color: var(--brand); }
.account-nav .nav-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.account-content { display: grid; gap: 18px; min-width: 0; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-head h1 { font-size: 28px; }
.account-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.summary-card span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.summary-card span .icon { width: 15px; height: 15px; }
.summary-card b { display: block; font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verify-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--amber-soft); border-radius: 10px; font-size: 13px; color: #8a5206; }
.verify-row.is-ok { background: var(--green-soft); color: var(--green-dark); }
.verify-row .btn { margin-left: auto; }
.history-list { display: grid; gap: 10px; }
.history-item { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.history-item .hi-text { flex: 1; min-width: 0; }
.history-item .hi-text b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .hi-text span { font-size: 12px; color: var(--muted); }
.history-item .hi-right { text-align: right; font-size: 11.5px; color: var(--muted-2); }
.empty {
  text-align: center; padding: 46px 20px; background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius); color: var(--muted);
}
.empty .empty-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--muted-2); }
.empty .empty-icon .icon { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 5px; }
.empty p { font-size: 13.5px; max-width: 420px; margin: 0 auto 14px; }
.notification-list { display: grid; gap: 8px; }
.notification-item { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.notification-item.is-unread { background: #f5f9ff; border-color: #cfe0f8; }
.notification-item .ni-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.notification-item .ni-icon .icon { width: 18px; height: 18px; }
.notification-item b { font-size: 13.5px; display: block; }
.notification-item p { font-size: 12.8px; color: var(--muted); margin-top: 2px; }
.notification-item .ni-time { font-size: 11.5px; color: var(--muted-2); margin-top: 5px; }

/* ---------------------------------------------------------- admin */
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.admin-side { background: var(--footer-bg); color: #c7d4e4; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-side .admin-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 0 8px; color: #fff; }
.admin-side .admin-brand b { font-size: 16px; }
.admin-side .admin-brand span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7c8da5; display: block; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px;
  color: #b9c8da; font-size: 13.5px; font-weight: 600;
}
.admin-nav a .icon { width: 18px; height: 18px; opacity: .8; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.is-active { background: var(--brand); color: #fff; }
.admin-nav a.is-active .icon { opacity: 1; }
.admin-nav .nav-sep { height: 1px; background: rgba(255, 255, 255, .09); margin: 10px 4px; }
.admin-main { padding: 26px 28px 60px; min-width: 0; background: var(--bg); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 26px; }
.admin-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; }
.stat-card .sc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-card .sc-top span { font-size: 12px; color: var(--muted); }
.stat-card .sc-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.stat-card .sc-icon .icon { width: 17px; height: 17px; }
.stat-card b { display: block; font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.stat-card small { font-size: 11.5px; color: var(--muted-2); }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.admin-card h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-card canvas { width: 100%; height: 210px; display: block; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { max-width: 280px; height: 40px; }
.toolbar .select { height: 40px; }
.toolbar .spacer { flex: 1; }
.table-actions { display: flex; gap: 5px; justify-content: flex-end; }
.table-actions .icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); }
.table-actions .icon-btn .icon { width: 16px; height: 16px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-dot.is-active::before { background: var(--green); }
.status-dot.is-inactive::before { background: var(--muted-2); }
.status-dot.is-pending::before { background: var(--amber); }
.status-dot.is-rejected::before { background: var(--red); }
.admin-review { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; background: #fff; }
.admin-review + .admin-review { margin-top: 10px; }
.admin-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-review-head .ar-product { font-size: 12.5px; color: var(--muted); }
.admin-review-text { font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }
.admin-review-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.modal-form { display: grid; gap: 14px; }
.modal-form .form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 20px; transition: background .18s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 17px; height: 17px; left: 2.5px; top: 2.5px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(18px); }
.import-zone { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 20px; text-align: center; background: var(--surface-2); }
.import-zone.drag { border-color: var(--brand); background: #f2f7ff; }
.import-zone .icon { width: 30px; height: 30px; color: var(--muted-2); }
.import-zone p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.import-result { font-size: 13px; padding: 12px 14px; border-radius: 9px; background: var(--green-soft); color: var(--green-dark); }
.import-errors { margin-top: 8px; font-size: 12px; color: #b91c1c; max-height: 160px; overflow: auto; }
.totp-secret { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--surface-2); padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); letter-spacing: .08em; }
.admin-empty { text-align: center; color: var(--muted); padding: 34px; font-size: 13.5px; }

/* ---------------------------------------------------------- info / partner */
.info-page { padding: 30px 0 60px; }
.info-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
.info-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-content h1 { font-size: 32px; margin-bottom: 14px; }
.info-content h2 { font-size: 20px; margin: 24px 0 8px; }
.info-content p { color: var(--ink-2); margin-bottom: 12px; }
.info-content ul { list-style: disc; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; margin-bottom: 12px; }
.info-side { display: grid; gap: 14px; align-content: start; }
.partner-wrap { padding: 44px 0 60px; }
.partner-card { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); text-align: center; }
.partner-card .bank-logo { margin: 0 auto 16px; }
.partner-card h1 { font-size: 26px; }
.partner-card p { color: var(--muted); margin-top: 10px; }
.partner-offer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); margin: 20px 0; text-align: left; }
.partner-offer b { display: block; font-size: 14px; }
.partner-offer span { font-size: 12px; color: var(--muted); }
.partner-actions { display: grid; gap: 9px; }
.partner-note { font-size: 12px; color: var(--muted-2); margin-top: 16px; line-height: 1.6; }

/* ---------------------------------------------------------- modal / toast / misc */
.modal-root { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(9, 20, 35, .55); backdrop-filter: blur(3px); }
.modal {
  position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; padding: 24px;
  animation: modal-in .18s ease-out;
}
.modal--wide { max-width: 780px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-head h3 { font-size: 19px; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.modal-close { border: 0; background: var(--bg-2); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.modal-close:hover { background: #e3eaf2; color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap; }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 9px; max-width: 380px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 11px;
  background: #0f2237; color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px;
  animation: toast-in .22s ease-out;
}
.toast .icon { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; color: var(--accent-light); }
.toast.is-error .icon { color: #ff9c9c; }
.toast.is-warning .icon { color: #ffd479; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #e2e9f1 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.skeleton-hero { height: 300px; margin-bottom: 18px; }
.skeleton-card { height: 250px; }
.page-loading { padding-top: 26px; display: grid; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loading-inline { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); font-size: 13.5px; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-page { text-align: center; padding: 70px 20px; }
.error-page .code { font-size: 64px; font-weight: 800; color: var(--line-2); letter-spacing: -.04em; }
.error-page h1 { font-size: 26px; margin-top: 6px; }
.error-page p { color: var(--muted); margin-top: 8px; }
.error-page .btn { margin-top: 18px; }

/* ---------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); color: #a9b8ca; margin-top: 54px; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 44px 0 30px; }
.footer-brand p { font-size: 13px; line-height: 1.65; margin-top: 14px; max-width: 340px; color: #8fa2b8; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #9db0c6; background: rgba(255, 255, 255, .06); padding: 5px 10px; border-radius: 20px; }
.mini-badge .icon { width: 14px; height: 14px; }
.footer-col h4 { color: #e6eef8; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-col a { display: block; color: #9db0c6; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom p { font-size: 11.5px; color: #7b8ea5; max-width: 760px; }
.footer-note { color: #6c819a; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .header-main { gap: 14px; }
  .global-search { max-width: 420px; }
  .header-link { display: none; }
  .hero h1 { font-size: 40px; }
  .hero-inner { gap: 26px; }
  .hv-card--front { width: 300px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .admin-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .admin-main { padding: 22px 20px 50px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --header-h: 128px; }
  .global-search { max-width: none; order: 4; flex-basis: 100%; margin-bottom: 12px; }
  .header-main { flex-wrap: wrap; padding-top: 10px; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 44px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 38px; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-form { position: static; }
  .auth-wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .auth-card { max-width: 520px; }
  .product-layout { grid-template-columns: 1fr; }
  .product-aside { position: static; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: fixed; inset: 0 auto 0 0; z-index: 150; width: 340px; max-width: 90vw; border-radius: 0; max-height: none; }
  .filters.is-open { display: block; }
  .filters-head .filters-close { display: inline-flex; }
  .filter-open { display: inline-flex; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .account-nav .account-user, .account-nav .nav-sep { display: none; }
  .account-nav a { white-space: nowrap; }
  .info-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 14px; }
  .admin-side .admin-brand { margin-bottom: 12px; }
  .admin-nav { display: flex; overflow-x: auto; gap: 4px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-nav .nav-sep { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 122px; }
  .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 23px; }
  .header-main { min-height: 66px; gap: 10px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; }
  .cat-nav-inner { gap: 0; }
  .cat-link { padding: 10px 11px; font-size: 13px; }
  .cat-link .icon { width: 16px; height: 16px; }
  .burger { display: inline-flex; }
  .header-actions .favorite-link { display: none; }
  .notif-wrap { display: none; }
  .auth-actions .btn-ghost { display: none; }
  .user-chip-name { display: none; }
  .hero { margin-top: 0; }
  .hero h1 { font-size: 32px; }
  .hero-copy > p { font-size: 15px; }
  .hero-search input { height: 52px; padding-right: 120px; font-size: 14.5px; }
  .hero-search .btn { height: 40px; min-height: 40px; padding: 8px 14px; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 21px; }
  .section { padding-top: 34px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-head h2 { font-size: 24px; }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { padding: 14px; }
  .pc-main { gap: 12px; }
  .pc-rate { min-width: 100px; }
  .pc-specs li { font-size: 12px; }
  .page-title h1 { font-size: 26px; }
  .catalog-toolbar { gap: 8px; }
  .sort-select > span { display: none; }
  .select { max-width: 190px; }
  .product-hero { padding: 16px; }
  .product-hero h1 { font-size: 21px; }
  .product-hero .ph-actions { width: 100%; }
  .panel { padding: 17px; }
  .reviews-summary { gap: 16px; }
  .reviews-score b { font-size: 32px; }
  .result-main b { font-size: 32px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 20px; }
  .modal-form .form-cols { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .notif-panel { width: 320px; }
  .auth-card { padding: 22px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .hero-stat { min-width: 90px; }
  .glass, .summary-grid { grid-template-columns: 1fr 1fr; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .pc-foot { gap: 6px; }
  .pc-actions .btn-ghost { display: none; }
  .calc-tabs { width: 100%; }
  .calc-tab { flex: 1; padding: 9px 10px; }
  .admin-main { padding: 18px 14px 44px; }
  .history-item { flex-wrap: wrap; }
  .history-item .hi-right { width: 100%; text-align: left; }
}

/* ---------------------------------------------------------- home extras */
.calc-promo {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center;
  background: linear-gradient(125deg, var(--hero-from), var(--hero-mid) 60%, var(--brand) 130%);
  border-radius: 22px; padding: 34px; color: #fff; overflow: hidden; position: relative;
}
.calc-promo::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 242, 193, .22), transparent 65%); pointer-events: none; }
.calc-promo-copy h2 { color: #fff; font-size: 29px; max-width: 520px; }
.calc-promo-copy > p { color: rgba(255, 255, 255, .72); margin-top: 12px; max-width: 520px; font-size: 14.5px; }
.calc-promo-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.calc-promo-list { display: grid; gap: 8px; margin-top: 22px; }
.calc-promo-list li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.calc-promo-list .icon { width: 17px; height: 17px; color: var(--accent-light); }
.mini-calc { position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); }
.mc-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.mc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mc-result { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.mc-result span { font-size: 12.5px; color: var(--muted); }
.mc-result b { font-size: 25px; font-weight: 800; color: var(--green); letter-spacing: -.03em; }
.mc-result--small { border-top: 0; padding-top: 6px; margin-top: 4px; }
.mc-result--small b { font-size: 17px; color: var(--ink); }
.mc-note { font-size: 11px; color: var(--muted-2); margin-top: 10px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step-card > .icon { width: 30px; height: 30px; color: var(--brand); margin-bottom: 12px; }
.step-card h3 { font-size: 17px; margin-bottom: 7px; }
.step-card p { font-size: 13.2px; color: var(--muted); }
.step-num { position: absolute; right: 18px; top: 16px; font-size: 13px; font-weight: 800; color: var(--line-2); letter-spacing: .05em; }

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.review-teaser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 11px; }
.rt-head { display: flex; align-items: center; gap: 10px; }
.rt-head > div { flex: 1; min-width: 0; }
.rt-head b { display: block; font-size: 13.5px; }
.rt-head span { font-size: 11.5px; color: var(--muted-2); }
.review-teaser p { font-size: 13.5px; color: var(--ink-2); }
.rt-product { font-size: 12px; color: var(--brand); font-weight: 600; margin-top: auto; }

.brand-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.brand-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px 7px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.brand-chip:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--ink); }
.brand-chip small { font-size: 10.5px; color: var(--muted-2); background: var(--bg-2); border-radius: 8px; padding: 1px 6px; }

.cta-banner {
  margin-top: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(120deg, var(--green), var(--green-dark)); color: #fff;
  border-radius: 22px; padding: 32px 36px; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; font-size: 26px; }
.cta-banner p { color: rgba(255, 255, 255, .8); margin-top: 7px; font-size: 14px; max-width: 620px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-actions .btn-green { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta-actions .btn-green:hover { background: #eafff5; color: var(--green-dark); }
.mini-badge .icon { color: var(--accent-light); }

@media (max-width: 980px) {
  .calc-promo { grid-template-columns: 1fr; padding: 26px; }
  .steps-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-visual { display: none; }
  .calc-promo { padding: 22px; }
  .calc-promo-copy h2 { font-size: 23px; }
  .mc-fields { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 24px; }
  .cta-banner h2 { font-size: 21px; }
}

/* ---------------------------------------------------------- catalog extras */
.filters-backdrop { position: fixed; inset: 0; background: rgba(9, 20, 35, .45); z-index: 140; }
.link-btn { color: var(--brand); background: none; border: 0; cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--brand-2); text-decoration: underline; }
@media (max-width: 980px) {
  .filters { box-shadow: var(--shadow-lg); }
  body.filters-open { overflow: hidden; }
}

/* ---------------------------------------------------------- fixes */
[hidden] { display: none !important; }
#app { min-height: 60vh; }
.admin-side { top: var(--header-h); height: calc(100vh - var(--header-h)); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 10px 24px 18px; display: grid; gap: 2px; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.mobile-menu a:hover { background: var(--bg-2); }
.mobile-menu .icon { width: 18px; height: 18px; color: var(--muted); }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }
@media (max-width: 980px) { .admin-side { top: 0; height: auto; } }

/* ---------------------------------------------------------- polish */
.cat-nav .container { max-width: 1420px; }
.filters .select { max-width: none; width: 100%; }
@media (max-width: 1320px) {
  .cat-link { padding: 11px 9px; font-size: 12.8px; }
  .cat-link .icon { width: 16px; height: 16px; }
}

/* ---------------------------------------------------------- layout fixes */
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-shell { background: var(--footer-bg); }
.admin-main { background: var(--bg); }
body[data-route="admin"] .site-footer { display: none; }
body[data-route="admin"] .cat-nav { display: none; }
body[data-route="admin"] .site-header { position: static; }
#import-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cat-link .icon { display: none; }
@media (min-width: 1560px) { .cat-link .icon { display: inline-block; } }
@media (max-width: 760px) { .form-cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- mobile polish */
@media (max-width: 760px) {
  .global-search input { font-size: 13.5px; padding-right: 100px; }
  .gs-btn { min-height: 34px; padding: 6px 14px; font-size: 13px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-stat { min-width: 0; }
  .hero-stat b { font-size: 20px; }
  .hero-stat span { font-size: 10.5px; line-height: 1.3; display: block; }
}

/* ---------------------------------------------------------- final polish */
.field > label.check { justify-content: flex-start; }
.cat-link { padding: 11px 7px; font-size: 12.4px; }
.cat-nav .container { padding-right: 10px; }

@media (max-width: 980px) {
  .cat-nav { position: relative; }
  .cat-nav::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 30px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
}

/* ---------------------------------------------------------- конструктор сайта */
.section-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.edit-block-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px;
  border: 1px dashed var(--line-2); border-radius: 7px; background: #fff;
  color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.edit-block-btn:hover { border-color: var(--brand); color: var(--brand); }
.edit-block-btn .icon { width: 14px; height: 14px; }

.appearance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.preset-grid { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 18px; }
.preset-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 7px 8px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.preset-btn:hover { border-color: var(--brand); color: var(--brand); }
.preset-swatch { width: 20px; height: 20px; border-radius: 6px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-field { display: grid; gap: 5px; min-width: 0; }
.color-input { display: flex; align-items: center; gap: 7px; }
.color-input input[type="color"] {
  width: 44px; height: 40px; padding: 3px; border: 1px solid var(--line-2);
  border-radius: 9px; background: #fff; cursor: pointer; flex: 0 0 auto;
}
.color-input .input { min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; text-transform: lowercase; }
.color-input .input.is-error { border-color: var(--red); }
.color-field .hint { font-size: 10.5px; line-height: 1.3; }
.theme-preview { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.tp-hero { background: linear-gradient(118deg, var(--hero-from), var(--hero-mid) 55%, var(--hero-to)); color: #fff; padding: 18px; }
.tp-eyebrow { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-light); font-weight: 700; }
.tp-title { font-size: 19px; line-height: 1.2; font-weight: 750; margin-top: 7px; }
.tp-lines { display: grid; gap: 5px; margin: 11px 0 13px; }
.tp-lines span { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.tp-lines span:first-child { width: 78%; }
.tp-lines span:last-child { width: 56%; }
.tp-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.tp-btn { padding: 6px 11px; border-radius: 7px; font-size: 10.5px; font-weight: 700; }
.tp-primary { background: var(--brand); color: var(--on-primary); }
.tp-accent { background: var(--green); color: var(--on-accent); }
.tp-body { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg); }
.tp-chip { padding: 4px 9px; border-radius: 20px; background: #fff; border: 1px solid var(--line-2); font-size: 10px; font-weight: 600; color: var(--muted); }
.tp-chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tp-link { font-size: 10.5px; font-weight: 700; color: var(--brand); margin-left: auto; }

.blocks-list { display: grid; gap: 8px; margin-top: 12px; }
.block-row { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 10px 12px; }
.block-row.is-hidden { opacity: .58; background: var(--surface-2); }
.block-row.is-dragging { opacity: .5; }
.block-row.is-over { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.block-row-head { display: flex; align-items: center; gap: 9px; }
.block-row-head b { font-size: 12.8px; flex: 1; min-width: 0; }
.drag-handle { color: var(--muted-2); cursor: grab; display: inline-flex; padding: 2px; }
.drag-handle:active { cursor: grabbing; }
.drag-handle .icon { width: 17px; height: 17px; }
.block-controls { display: flex; align-items: center; gap: 2px; }
.block-controls .icon-btn { width: 28px; height: 28px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.block-fields { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 9px; }
.block-fields .input, .block-fields .textarea { font-size: 12.5px; }
.block-fields .textarea { min-height: 44px; height: 44px; resize: vertical; }
.block-note { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); }
.appearance-actions {
  display: flex; align-items: center; gap: 9px;
  flex-wrap: wrap; margin-top: 16px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.appearance-actions .panel-sub { margin-left: auto; }
@media (max-width: 1180px) {
  .appearance-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .color-grid { grid-template-columns: 1fr; }
  .block-fields { grid-template-columns: 1fr; }
  .appearance-actions .panel-sub { width: 100%; margin-left: 0; }
}

/* ---------------------------------------------------------- плавающая панель админа */
.admin-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 75;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(12, 27, 46, .92); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.admin-fab-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 8px;
  color: #dbe7f5; font-size: 12.5px; font-weight: 600;
}
.admin-fab-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-fab-link .icon { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .admin-fab { left: 12px; bottom: 12px; padding: 4px; }
  .admin-fab-link { padding: 7px 9px; font-size: 11.5px; }
}

/* ---------------------------------------------------------- логотип */
.brand-img { height: 34px; width: auto; max-width: 190px; object-fit: contain; border-radius: 8px; display: block; }
.site-footer .brand-img { height: 32px; max-width: 170px; }
.admin-side .brand-img { height: 30px; max-width: 170px; }
.logo-editor { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.logo-preview {
  width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview .brand-svg { width: 54px; height: 54px; }
.logo-default { width: 58px; height: 58px; border-radius: 16px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.logo-actions .panel-sub { max-width: 360px; margin: 0; }
@media (max-width: 760px) { .logo-editor { align-items: flex-start; } }

/* ---------------------------------------------------------- калькулятор МФО */
.mfo-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mfo-result-head .btn { flex: 0 0 auto; }
.mfo-criteria { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .68); }
.mfo-result-note { margin-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .62); line-height: 1.5; }
.mfo-matches-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.mfo-matches-head h3 { margin: 0; }
.mfo-matches-head .link-btn { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.mfo-matches-head .icon { width: 14px; height: 14px; }
.mfo-match { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mfo-match:last-child { border-bottom: 0; }
.mfo-match-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mfo-match-info a { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.mfo-match-info a:hover { color: var(--brand); }
.mfo-match-info span { font-size: 11.5px; color: var(--muted); }
.mfo-match-terms { text-align: right; flex: 0 0 auto; }
.mfo-match-terms b { display: block; font-size: 13px; color: var(--ink-2); }
.mfo-match-terms span { font-size: 11.5px; color: var(--muted); }
.mfo-match .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .mfo-match { flex-wrap: wrap; }
  .mfo-match-info { flex-basis: calc(100% - 50px); }
  .mfo-match-terms { text-align: left; margin-left: 42px; }
  .mfo-match .btn { margin-left: auto; }
}

/* ---------------------------------------------------------- SEO страниц */
.seo-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.seo-toolbar .input { max-width: 360px; height: 40px; }
.seo-toolbar .spacer { flex: 1; }
.seo-list { display: grid; gap: 8px; }
.seo-row { border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.seo-row > summary {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  cursor: pointer; list-style: none; flex-wrap: wrap;
}
.seo-row > summary::-webkit-details-marker { display: none; }
.seo-row[open] > summary { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.seo-row-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.seo-path { font-size: 11.5px; color: var(--muted-2); background: var(--bg-2); padding: 2px 7px; border-radius: 5px; }
.seo-row > summary .badge { font-size: 10px; }
.seo-fields { padding: 14px; display: grid; gap: 12px; }
.seo-fields .hint { font-size: 10.5px; color: var(--muted-2); }
.seo-fields .textarea { min-height: 62px; }
@media (max-width: 760px) {
  .seo-row > summary { gap: 6px; }
  .seo-path { order: 5; }
}

.seo-chevron { margin-left: auto; display: inline-flex; color: var(--muted-2); transition: transform .18s ease; }
.seo-chevron .icon { width: 16px; height: 16px; }
.seo-row[open] .seo-chevron { transform: rotate(180deg); }

/* ---------------------------------------------------------- регистрация: данные и share */
.auth-privacy {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.auth-privacy b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 4px; }
.auth-privacy p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.auth-share {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.auth-share-label { flex-basis: 100%; font-size: 12px; color: var(--muted); margin-bottom: 1px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 11px; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
  transition: opacity .15s ease, transform .15s ease;
}
.share-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.share-vk { background: #0077ff; }
.share-ok { background: #ee8208; }
.share-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 4px; border-radius: 5px;
  background: rgba(255, 255, 255, .2); font-size: 9.5px; letter-spacing: .3px;
}
@media (max-width: 420px) {
  .auth-share { gap: 6px; }
  .auth-share-label { flex-basis: 100%; }
}

.auth-share-note { flex-basis: 100%; font-size: 10.5px; line-height: 1.45; color: var(--muted-2); }

/* ---------------------------------------------------------- согласие на аналитику */
.analytics-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  padding: 12px 16px;
  background: rgba(8, 28, 54, .96);
  color: #fff;
  box-shadow: 0 -8px 24px rgba(8, 28, 54, .18);
}
.analytics-consent-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.analytics-consent b { display: block; font-size: 13px; margin-bottom: 3px; }
.analytics-consent p { margin: 0; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .76); }
.analytics-consent-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.analytics-consent-actions .btn-primary { background: #fff; color: var(--ink); }
.analytics-consent-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.analytics-consent-actions a { color: rgba(255, 255, 255, .78); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 760px) {
  .analytics-consent-inner { flex-direction: column; align-items: flex-start; }
  .analytics-consent-actions { width: 100%; }
  .analytics-consent-actions .btn-primary { flex: 1; }
}

/* ---------------------------------------------------------- живая лента одобрений */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  color: var(--green-dark, #0a7d56); text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green, #0e9f6e);
  box-shadow: 0 0 0 0 rgba(14, 159, 110, .45);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, .45); }
  70% { box-shadow: 0 0 0 7px rgba(14, 159, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); }
}
.approvals-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 16px; align-items: stretch; }
.approvals-feed { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.approval-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-bottom: 1px solid var(--line);
  animation: approvalIn .35s ease both;
}
.approval-item:last-child { border-bottom: 0; }
@keyframes approvalIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.approval-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand, #175cd3), var(--green, #0e9f6e));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px;
}
.approval-copy { flex: 1; min-width: 0; }
.approval-copy p { margin: 0 0 2px; font-size: 12.5px; color: var(--ink); }
.approval-copy a { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-copy a:hover { color: var(--brand); }
.approval-copy span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.approval-amount { flex: 0 0 auto; text-align: right; }
.approval-amount b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; }
.approval-amount span { font-size: 10.5px; color: var(--muted-2); }
.approval-check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-soft, #e9f9f1); color: var(--green-dark, #0a7d56);
}
.approval-check .icon { width: 14px; height: 14px; }
.approvals-side {
  border-radius: 14px; padding: 20px;
  background: linear-gradient(150deg, var(--footer-bg, #081c36), var(--primary-dark, #0f47a6));
  color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.approvals-side .live-badge { color: #a7f3d0; }
.approvals-side h3 { margin: 0; font-size: 19px; line-height: 1.25; color: #fff; }
.approvals-side p { margin: 0 0 4px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .7); }
.approvals-side .btn { color: #fff; border-color: rgba(255, 255, 255, .35); margin-top: auto; }
.approvals-side .btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 860px) {
  .approvals-layout { grid-template-columns: 1fr; }
  .approvals-side { min-height: 170px; }
}
@media (max-width: 520px) {
  .approval-item { flex-wrap: wrap; gap: 9px; }
  .approval-amount { margin-left: 50px; text-align: left; }
  .approval-check { margin-left: auto; }
}

/* ---------------------------------------------------------- картинки продуктов */
.pc-media {
  display: block; margin: 10px 0 8px; height: 150px;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #f2f6fc, #e8eef8);
}
.pc-media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.pc-media:hover img { transform: scale(1.03); }
.product-cover {
  margin: 0 0 16px; max-height: 380px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #f2f6fc, #e8eef8);
  display: flex; align-items: center; justify-content: center;
}
.product-cover img { max-width: 100%; max-height: 380px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 600px) {
  .pc-media { height: 120px; }
  .product-cover { max-height: 240px; }
  .product-cover img { max-height: 240px; }
}

/* ---------------------------------------------------------- быстрые фильтры карт */
.card-quick-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: -4px 0 18px;
}
.quick-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.quick-chip:hover { border-color: var(--brand); color: var(--brand); }
.quick-chip span {
  display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--bg-2); color: var(--muted); font-size: 10px;
}
.quick-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 600px) {
  .card-quick-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .quick-chip { flex: 0 0 auto; }
}

/* Длинные отзывы и адреса не должны создавать горизонтальный скролл */
.review-item,
.review-text,
.review-teaser p,
.review-admin-reply,
.admin-review-text,
.prose,
.application-item,
.hi-text {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.review-head,
.review-title-row,
.review-actions {
  min-width: 0;
}
.review-head > *,
.review-title-row > * {
  min-width: 0;
}
.account-content .panel {
  overflow-wrap: anywhere;
}

/* История заявок: кнопки не должны выходить за карточку */
.history-item { flex-wrap: wrap; }
.history-item .hi-text { flex: 1 1 220px; }
@media (max-width: 600px) {
  .history-item > .btn { margin-left: 0; }
}

/* ---------------------------------------------------------- предложение закладки */
.bookmark-prompt {
  position: fixed; top: 124px; right: 20px; z-index: 1150;
  width: min(360px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 11px;
  padding: 15px 15px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 36px rgba(8, 28, 54, .16);
  animation: bookmarkIn .35s ease both;
}
@keyframes bookmarkIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bookmark-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green-dark); font-size: 18px;
}
.bookmark-body { flex: 1; min-width: 0; }
.bookmark-body b { display: block; font-size: 13.5px; color: var(--ink); }
.bookmark-body p { margin: 4px 0 10px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.bookmark-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bookmark-actions .btn { min-height: 32px; font-size: 11.5px; }
.bookmark-body kbd {
  display: inline-block; padding: 1px 6px; border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 5px; background: var(--bg-2);
  font-size: 10.5px; font-family: inherit; color: var(--ink-2);
}
.bookmark-close {
  position: absolute; top: 7px; right: 9px; width: 24px; height: 24px;
  border: 0; background: transparent; color: var(--muted-2);
  font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px;
}
.bookmark-close:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 600px) {
  .bookmark-prompt { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
}

@media (max-width: 600px) {
  .bookmark-prompt.has-analytics { bottom: 142px; }
}

/* ---------------------------------------------------------- рассылка */
.broadcast-tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.broadcast-tips li::marker { color: var(--brand); }

.icon-btn.is-danger { color: #b91c1c; background: var(--red-soft); }
.icon-btn.is-danger:hover { background: #ffdede; color: #991b1b; }

/* ---------------------------------------------------------- редактор рассылки */
.rich-editor-wrap { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.rich-editor-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 100, 255, .1); }
.rich-toolbar {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding: 5px 7px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.rich-toolbar button {
  display: inline-flex; align-items: center; gap: 5px;
  min-width: 28px; height: 27px; padding: 0 7px;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer;
}
.rich-toolbar button:hover { background: #fff; border-color: var(--line); }
.rich-toolbar .icon { width: 13px; height: 13px; }
.rich-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 3px; }
.rich-editor {
  min-height: 130px; max-height: 260px; overflow-y: auto;
  padding: 11px 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  outline: none; white-space: pre-wrap; overflow-wrap: anywhere;
}
.rich-editor:empty::before { content: attr(data-placeholder); color: var(--muted-2); pointer-events: none; }
.rich-editor a { color: var(--brand); text-decoration: underline; }
.rich-editor ul, .rich-editor ol { padding-left: 20px; margin: 6px 0; }

.notification-item .ni-body { font-size: 12.8px; color: var(--muted); margin-top: 2px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-item .ni-body p { margin: 0 0 5px; }
.notification-item .ni-body p:last-child { margin-bottom: 0; }
.notification-item .ni-body a { color: var(--brand); text-decoration: underline; }
.notification-item .ni-body ul, .notification-item .ni-body ol { padding-left: 18px; margin: 4px 0; }

.notification-item .ni-body b,
.notification-item .ni-body strong { display: inline; font-weight: 700; }
.notification-item .ni-body i, .notification-item .ni-body em { font-style: italic; }

/* ---------------------------------------------------------- примечание карточки */
.pc-note {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.45; color: var(--muted);
  white-space: pre-line; overflow-wrap: anywhere;
}

/* ---------------------------------------------------------- таблица пользователей */
.users-table { table-layout: fixed; width: 100%; }
.users-table th, .users-table td { white-space: normal; vertical-align: middle; padding: 10px 9px; }
.users-table th { font-size: 10px; letter-spacing: .04em; }
.users-table .u-cell { min-width: 0; }
.users-table .u-cell b { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.users-table .u-login { overflow-wrap: anywhere; line-height: 1.35; }
.users-table .u-reg { margin-top: 2px; color: var(--muted-2); }
.users-table .table-actions { gap: 4px; }
.users-table .table-actions .icon-btn { width: 30px; height: 30px; flex: 0 0 auto; }
.users-table .table-actions .icon-btn .icon { width: 15px; height: 15px; }
.users-table td .badge { white-space: nowrap; }
.users-table td:nth-child(4), .users-table td:nth-child(5), .users-table td:nth-child(6) { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .users-table { min-width: 850px; }
}

/* ---------------------------------------------------------- адаптивность: карточки и калькулятор */
.product-grid, .product-grid--3, .product-card, .pc-main, .pc-specs, .pc-specs li { min-width: 0; }
.pc-specs li b { overflow-wrap: anywhere; }
.calc-layout, .calc-form, .calc-form .form-grid, .calc-form .field, .calc-form .input-group { min-width: 0; }
.result-card, .result-main, .result-grid, .result-cell { min-width: 0; }
.result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.result-cell b { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .product-grid, .product-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .calc-form .form-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-specs li { gap: 8px; }
}
@media (max-width: 420px) {
  .pc-specs li b { max-width: 52%; }
  .result-main { flex-wrap: wrap; gap: 4px; }
}

.calc-results, .chart-box, .schedule-box { min-width: 0; }
.calc-results { overflow-x: clip; }

/* Спецификации не должны распирать карточку */
.pc-specs li span, .pc-specs li b { min-width: 0; }
@media (max-width: 480px) {
  .pc-main { flex-direction: column; align-items: stretch; gap: 10px; }
  .pc-rate { min-width: 0; }
  .pc-specs { width: 100%; }
  .pc-specs li span { white-space: normal; overflow: visible; text-overflow: clip; }
  .pc-specs li b { white-space: nowrap; max-width: 55%; }
}

/* Страховка от случайного горизонтального скролла; внутренние таблицы/ленты
   по-прежнему прокручиваются в своих контейнерах. */
html, body { max-width: 100%; overflow-x: clip; }

/* Пользователи на телефоне: карточки вместо горизонтальной таблицы */
@media (max-width: 900px) {
  .users-table { min-width: 0; display: block; }
  .users-table colgroup, .users-table thead { display: none; }
  .users-table tbody { display: grid; gap: 10px; }
  .users-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px 12px; padding: 14px; border: 1px solid var(--line);
    border-radius: 12px; background: #fff;
  }
  .users-table tbody tr:hover { background: #fff; }
  .users-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .users-table td.u-cell { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  .users-table td:nth-child(2) { grid-column: 1; }
  .users-table td:nth-child(3) { grid-column: 1 / -1; }
  .users-table td:nth-child(4),
  .users-table td:nth-child(5),
  .users-table td:nth-child(6) {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 6px 8px; background: var(--bg-2); border-radius: 7px;
  }
  .users-table td:nth-child(7) { grid-column: 2; justify-self: end; align-self: center; text-align: right; }
  .users-table td:last-child { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); }
  .users-table td[data-label]::before {
    content: attr(data-label); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted-2); font-weight: 700; margin-right: 8px;
  }
  .users-table td.u-cell::before, .users-table td:last-child::before { display: none; }
  .users-table .table-actions { justify-content: flex-end; }
  .users-table td:nth-child(4), .users-table td:nth-child(5), .users-table td:nth-child(6) { justify-content: space-between; }
  .users-table td:nth-child(4)::before, .users-table td:nth-child(5)::before, .users-table td:nth-child(6)::before { display: block; }
}

@media (max-width: 760px) {
  .account-nav { flex-wrap: wrap; overflow: visible; }
  .account-nav a { flex: 1 1 auto; justify-content: center; }
  .admin-nav { flex-wrap: wrap; overflow: visible; }
  .admin-nav a { flex: 1 1 calc(50% - 4px); justify-content: flex-start; }
}

/* Значения характеристик не должны выходить за карточку */
.pc-main { gap: 14px; }
.pc-rate { flex: 0 1 122px; min-width: 0; }
.pc-rate b { overflow-wrap: anywhere; }
.pc-specs { flex: 1 1 0; min-width: 0; }
.pc-specs li { min-width: 0; gap: 8px; }
.pc-specs li span { flex: 1 1 auto; min-width: 0; }
.pc-specs li b {
  flex: 0 1 auto; min-width: 0; max-width: 62%;
  white-space: normal; overflow-wrap: anywhere; text-align: right;
}

/* ---------------------------------------------------------- пароль: показать/скрыть */
.password-field { position: relative; }
.password-field .input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px; background: transparent;
  color: var(--muted-2); cursor: pointer;
}
.password-toggle:hover { background: var(--bg-2); color: var(--ink); }
.password-toggle .icon { width: 18px; height: 18px; }
.password-toggle.is-visible { color: var(--brand); }
.password-toggle.is-visible::after {
  content: ""; position: absolute; width: 19px; height: 1.5px;
  background: currentColor; border-radius: 2px; transform: rotate(-45deg);
}

/* ---------------------------------------------------------- категории в админке */
.categories-table { table-layout: fixed; width: 100%; }
.categories-table th, .categories-table td { white-space: normal; vertical-align: middle; padding: 10px 10px; }
.categories-table .cat-name-cell { min-width: 0; }
.categories-table .cat-name-cell b { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.categories-table .cat-name-cell .panel-sub { overflow-wrap: anywhere; line-height: 1.4; margin-top: 2px; }
.categories-table td .table-actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .categories-table { display: block; }
  .categories-table colgroup, .categories-table thead { display: none; }
  .categories-table tbody { display: grid; gap: 10px; }
  .categories-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px; padding: 14px; border: 1px solid var(--line);
    border-radius: 12px; background: #fff;
  }
  .categories-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .categories-table td.cat-name-cell { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  .categories-table td:nth-child(4),
  .categories-table td:nth-child(5) { display: flex; justify-content: space-between; gap: 8px; background: var(--bg-2); padding: 6px 8px; border-radius: 7px; }
  .categories-table td:nth-child(6) { grid-column: 2; justify-self: end; align-self: center; }
  .categories-table td:last-child { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); }
  .categories-table td[data-label]::before {
    content: attr(data-label); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted-2); font-weight: 700; margin-right: 8px;
  }
  .categories-table td.cat-name-cell::before, .categories-table td:last-child::before { display: none; }
  .categories-table td:nth-child(4)::before, .categories-table td:nth-child(5)::before { display: block; }
}

/* ---------------------------------------------------------- текст категории под карточками */
.catalog-main { min-width: 0; display: grid; gap: 18px; }
.catalog-layout { padding-bottom: 24px; }
.category-footer-text {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; color: var(--ink-2);
  font-size: 13.5px; line-height: 1.65;
  white-space: pre-line; overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .category-footer-text { padding: 17px 18px; font-size: 13px; }
}

/* ---------------------------------------------------------- поделиться на главной */
.home-share {
  margin-top: 8px; padding: 26px 0;
  background: linear-gradient(180deg, #f7f9fc, #fff);
  border-top: 1px solid var(--line);
}
.home-share-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-share-copy { flex: 1 1 320px; min-width: 0; }
.home-share-copy b { display: block; font-size: 16px; color: var(--ink); }
.home-share-copy p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.home-share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.home-share-note { flex-basis: 100%; font-size: 10.5px; color: var(--muted-2); margin-top: -8px; }
@media (max-width: 600px) {
  .home-share { padding: 22px 0; }
  .home-share-inner { align-items: flex-start; gap: 12px; }
  .home-share-copy { flex-basis: 100%; }
  .home-share-actions { width: 100%; }
  .home-share-actions .share-btn { flex: 1; justify-content: center; }
  .home-share-note { margin-top: 0; }
}

/* ---------------------------------------------------------- картинка рассылки */
.notify-image-box { display: grid; gap: 8px; }
.notify-image-preview {
  min-height: 84px; border: 1px dashed var(--line-2); border-radius: 10px;
  background: var(--bg-2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6px;
}
.notify-image-preview span { font-size: 11.5px; color: var(--muted-2); }
.notify-image-preview img { display: block; max-width: 100%; max-height: 180px; border-radius: 7px; object-fit: contain; }
.notify-image-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notify-image-actions .panel-sub { font-size: 11.5px; color: var(--muted); }
.notification-item .ni-image {
  display: block; width: 100%; max-width: 520px; max-height: 260px;
  object-fit: cover; border-radius: 10px; margin-top: 10px; border: 1px solid var(--line);
}

/* Две характеристики карты: кэшбэк и процент на остаток */
.pc-main--card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.pc-main--card .pc-rate { min-width: 0; flex: none; padding-right: 16px; border-right: 1px dashed var(--line); }
.pc-main--card .pc-rate b { font-size: 23px; }
.pc-balance { padding-left: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-balance span { font-size: 11px; line-height: 1.35; color: var(--muted); }
.pc-balance b { font-size: 16px; line-height: 1.25; font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .pc-main--card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pc-main--card .pc-rate { padding: 0 0 10px; border-right: 0; border-bottom: 1px dashed var(--line); }
  .pc-balance { padding-left: 0; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .pc-balance b { font-size: 15px; text-align: right; }
}

/* ---------------------------------------------------------- индексация страниц */
.seo-index-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
}
.seo-index-panel > div:first-child { display: grid; gap: 3px; }
.seo-index-panel b { font-size: 13.5px; color: var(--ink); }
.seo-index-panel span { font-size: 12px; color: var(--muted); }
.seo-index-panel span b { font-size: 12px; }
.seo-index-actions { display: flex; gap: 7px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .seo-index-panel { align-items: flex-start; }
  .seo-index-actions { width: 100%; }
  .seo-index-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------- SEO-шаблоны категорий */
.seo-template-box {
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
  margin-bottom: 14px; background: #fff;
}
.seo-template-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.seo-template-head b { display: block; font-size: 13.5px; }
.seo-template-head span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.seo-template-box .form-cols { gap: 10px 14px; }
.seo-template-box .label, .seo-template-box .field-label { font-size: 11.5px; }
.seo-vars { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.seo-vars > span { font-size: 10.5px; color: var(--muted-2); margin-right: 2px; }
.seo-var {
  border: 1px solid var(--line); border-radius: 5px; background: var(--bg-2);
  padding: 2px 6px; font: inherit; font-size: 10.5px; color: var(--brand-2); cursor: pointer;
}
.seo-var:hover { border-color: var(--brand); color: var(--brand); }
.seo-template-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.seo-template-actions .panel-sub { flex: 1 1 260px; font-size: 10.5px; }
@media (max-width: 600px) {
  .seo-template-box { padding: 13px; }
  .seo-template-head { display: block; }
}

.seo-template-box .select { max-width: none; width: 100%; }

.seo-template-box .field-hint-inline { font-size: 10px; font-weight: 500; color: var(--muted-2); margin-left: auto; text-align: right; }

/* ---------------------------------------------------------- расписание рассылок */
.broadcast-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.broadcast-list-head h3 { margin: 0; }
.scheduled-list { display: grid; gap: 8px; }
.scheduled-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.scheduled-when { flex: 0 0 128px; font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scheduled-main { flex: 1 1 220px; min-width: 0; }
.scheduled-main b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.scheduled-main span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.scheduled-item .badge { white-space: nowrap; }
@media (max-width: 600px) {
  .scheduled-when { flex-basis: 100%; }
  .scheduled-item .btn { margin-left: auto; }
}

.broadcast-offer-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.broadcast-offer-row .select-wrap { flex: 1 1 260px; min-width: 0; }
.broadcast-offer-row .select { max-width: none; width: 100%; height: 40px; }
@media (max-width: 600px) {
  .broadcast-offer-row .btn { width: 100%; }
}

/* ---------------------------------------------------------- SEO: пояснения и предпросмотр */
.seo-vars-help { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.seo-vars-help summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.seo-vars-help ul { margin: 7px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.seo-vars-help code, .seo-vars-help kbd { font-size: 10.5px; color: var(--brand-2); }
.seo-preview {
  margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.seo-preview-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 700; margin-bottom: 7px; }
.seo-preview-url { font-size: 11px; color: var(--green-dark); margin-bottom: 3px; overflow-wrap: anywhere; }
.seo-preview-title { font-size: 16px; line-height: 1.35; color: #1a0dab; font-weight: 600; overflow-wrap: anywhere; }
.seo-preview-description { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.seo-preview-h1 { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-2); font-weight: 650; overflow-wrap: anywhere; }

/* ---------------------------------------------------------- простой импорт */
.import-card { max-width: 100%; }
.import-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.import-head h3 { margin: 0 0 3px; }
.import-head .panel-sub { margin: 0; max-width: 640px; }
.import-sample-box { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 7px; }
.import-sample-box > span:first-child { font-size: 12.5px; font-weight: 700; }
.import-sample { margin: 0; padding: 9px 11px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); overflow-x: auto; }
.import-sample-box .panel-sub { font-size: 11.5px; }
.import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.import-advanced { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.import-advanced summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
@media (max-width: 600px) {
  .import-head { display: block; }
  .import-head .btn { margin-top: 9px; }
}

/* Картинка продукта в админке */
.product-image-input { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.product-image-input .input { flex: 1 1 260px; min-width: 0; }
.product-image-preview {
  margin-top: 8px; min-height: 86px; max-height: 180px; border: 1px dashed var(--line-2);
  border-radius: 10px; background: var(--bg-2); display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 6px;
}
.product-image-preview img { max-width: 100%; max-height: 168px; object-fit: contain; border-radius: 7px; }
.product-image-preview span { font-size: 11.5px; color: var(--muted-2); }
@media (max-width: 600px) { .product-image-input .btn { width: 100%; } }

.import-columns-help { display: grid; gap: 5px; }
.import-columns-help > div { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.import-columns-help code { color: var(--brand-2); font-size: 11px; }
.import-columns-help > div > span { flex: 1 1 420px; }

.seo-vars-all { margin-top: 7px; }
.seo-vars-all summary { cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.seo-vars-all .seo-vars { margin-top: 7px; }
.seo-template-preview { margin-top: 12px; }
.seo-vars-help ul { max-height: 220px; overflow: auto; }

/* ---------------------------------------------------------- домен, robots, sitemap */
.seo-technical-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: var(--surface-2); }
.seo-technical-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 11px; }
.seo-technical-head h3 { margin: 0 0 3px; }
.seo-technical-head .panel-sub { margin: 0; max-width: 680px; }
.seo-technical-links { display: flex; gap: 7px; flex-wrap: wrap; }
.seo-technical-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
@media (max-width: 600px) {
  .seo-technical-head { display: block; }
  .seo-technical-links { margin-top: 8px; }
  .seo-technical-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------- тексты сайта */
.texts-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.texts-toolbar h3 { margin: 0 0 3px; }
.texts-toolbar .panel-sub { margin: 0; max-width: 720px; }
.texts-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.texts-list { display: grid; gap: 9px; margin-top: 12px; }
.texts-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.texts-item > summary { display: flex; align-items: center; gap: 9px; padding: 11px 13px; cursor: pointer; list-style: none; }
.texts-item > summary::-webkit-details-marker { display: none; }
.texts-item-title { font-weight: 650; font-size: 13px; }
.texts-item > summary code { font-size: 10.5px; color: var(--muted-2); }
.texts-item > summary .seo-chevron { margin-left: auto; }
.texts-item[open] > summary .seo-chevron { transform: rotate(180deg); }
.texts-body { padding: 0 13px 13px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.texts-body .field { margin-top: 11px; }
.texts-item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .texts-toolbar { display: block; }
  .texts-actions { margin-top: 9px; }
  .texts-actions .btn { flex: 1 1 auto; }
}

/* Условия и требования в карточке продукта */
.detail-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.detail-list li {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.detail-icon {
  width: 28px; height: 28px; flex: 0 0 28px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 8px; color: var(--green); background: var(--green-soft);
}
.detail-icon .icon { width: 16px; height: 16px; }
.requirements-list .detail-icon { color: var(--brand); background: var(--brand-soft); }
.detail-text { min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.detail-text b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 700; }
.detail-text span { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .detail-list li { padding: 11px 12px; }
  .detail-text { font-size: 13px; }
}

.seo-page-template-field { margin-bottom: 12px; max-width: 560px; }

/* Кредитные карты: три ключевых параметра */
.pc-main--credit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}
.pc-credit-stat { min-width: 0; padding-right: 8px; border-right: 1px solid var(--line); }
.pc-credit-stat:last-child { border-right: 0; padding-right: 0; }
.pc-credit-stat span { display: block; font-size: 10.5px; line-height: 1.25; color: var(--muted); }
.pc-credit-stat b { display: block; margin-top: 3px; font-size: 17px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.pc-credit-stat em { display: block; margin-top: 1px; font-size: 10px; font-style: normal; color: var(--muted-2); }
@media (max-width: 520px) {
  .pc-main--credit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-credit-stat:nth-child(2) { border-right: 0; }
  .pc-credit-stat:last-child { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 7px; }
}

.seo-ready { display: inline-flex; align-items: center; gap: 3px; }
.seo-ready .icon { width: 12px; height: 12px; }

@media (min-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------- карточки: единый современный вид */
.product-card { border-radius: 16px; padding: 17px; isolation: isolate; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(15, 40, 80, .13); border-color: #b9cee8; }
.product-card::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 18px; right: 18px; height: 3px;
  border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--accent-light));
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.pc-media { margin: 12px 0 10px; height: 150px; border: 1px solid var(--line); background: #fff; }
.pc-media--placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: radial-gradient(circle at 50% 20%, #fff 0, #eef4fc 55%, #e7effa 100%);
  color: var(--brand-2); text-align: center; padding: 12px;
}
.pc-media--placeholder:hover b { color: var(--brand); }
.pc-placeholder-icon {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #dbe7f6; box-shadow: 0 4px 12px rgba(23, 92, 211, .1); margin-bottom: 4px;
}
.pc-placeholder-icon .icon { width: 25px; height: 25px; }
.pc-media--placeholder b { font-size: 14px; color: var(--ink); line-height: 1.25; }
.pc-media--placeholder small { font-size: 10.5px; color: var(--muted); }
.pc-title { font-size: 17px; line-height: 1.32; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.64em; }
.pc-sub {
  margin: 5px 0 0; font-size: 11.8px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-main { margin-top: 12px; padding-top: 12px; }
.pc-rate b { font-size: 27px; }
.pc-specs--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pc-specs--grid li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 7px 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
}
.pc-specs--grid li span { width: 100%; font-size: 9.5px; line-height: 1.2; white-space: normal; color: var(--muted-2); }
.pc-specs--grid li b { width: 100%; font-size: 12px; line-height: 1.3; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-features { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pc-feature {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 6px;
  background: var(--green-soft); color: var(--green-dark); font-size: 10.5px; font-weight: 650; line-height: 1.2;
}
.pc-feature .icon { width: 11px; height: 11px; flex: 0 0 auto; }
.pc-actions { margin-top: auto; padding-top: 15px; }
.pc-actions .btn-primary { font-weight: 700; }
@media (max-width: 600px) {
  .product-card { padding: 14px; border-radius: 14px; }
  .pc-title { font-size: 16px; }
  .pc-specs--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pc-trust { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10px; color: var(--muted-2); }
.pc-trust .icon { width: 12px; height: 12px; color: var(--green); }

/* Быстрое изменение названия сайта */
.site-name-quick { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.site-name-quick h3 { margin: 0 0 2px; }
.site-name-quick .panel-sub { margin: 0; }
.site-name-quick-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-name-quick-form .input { width: min(320px, 100%); }
.site-name-quick-form .panel-sub { min-width: 120px; }
@media (max-width: 700px) {
  .site-name-quick { display: block; }
  .site-name-quick-form { margin-top: 10px; }
  .site-name-quick-form .input { width: 100%; }
  .site-name-quick-form .btn { width: 100%; }
}

/* Микрозаймы: первый займ, качества, условия и требования */
.pc-firstfree {
  display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 7px 9px;
  border-radius: 8px; background: var(--green-soft); color: var(--green-dark);
  font-size: 11.2px; font-weight: 750; line-height: 1.25;
}
.pc-firstfree .icon { width: 13px; height: 13px; flex: 0 0 auto; }
.pc-qualities { margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.pc-qualities > b, .pc-mfo-block > b {
  display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.pc-qualities ul, .pc-mfo-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pc-qualities li { display: flex; align-items: flex-start; gap: 4px; font-size: 11.2px; line-height: 1.35; color: var(--ink-2); }
.pc-qualities li .icon { width: 11px; height: 11px; margin-top: 2px; color: var(--green); flex: 0 0 auto; }
.pc-mfo-info { display: grid; gap: 9px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.pc-mfo-block ul li { position: relative; padding-left: 9px; font-size: 10.8px; line-height: 1.4; color: var(--muted); }
.pc-mfo-block ul li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }

/* Условия и требования — во всех карточках */
.pc-info { display: grid; gap: 9px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.pc-info-block > b {
  display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.pc-info-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pc-info-block ul li { position: relative; padding-left: 9px; font-size: 10.8px; line-height: 1.4; color: var(--muted); }
.pc-info-block ul li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }

/* МФО: ставка сверху, параметры — на всю ширину карточки */
.pc-main--mfo { display: block; }
.pc-main--mfo .pc-rate { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-bottom: 8px; }
.pc-main--mfo .pc-rate b { font-size: 28px; }
.pc-main--mfo .pc-rate > span { font-size: 11.5px; margin-top: 0; }
.pc-main--mfo .pc-specs--grid { width: 100%; }

/* Все некарточные продукты: ставка сверху, параметры на всю ширину */
.pc-main--wide { display: block; }
.pc-main--wide .pc-rate { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-bottom: 8px; }
.pc-main--wide .pc-rate b { font-size: 28px; }
.pc-main--wide .pc-rate > span { font-size: 11.5px; margin-top: 0; }
.pc-main--wide .pc-specs--grid { width: 100%; }

/* Подбор микрозайма на странице каталога */
.mfo-picker {
  display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.6fr);
  gap: 18px 24px; margin: 0 0 18px; padding: 20px;
  border: 1px solid #cfe2f5; border-radius: 18px;
  background: linear-gradient(135deg, #f2f8ff 0%, #eaf3ff 55%, #e8f7f1 100%);
}
.mfo-picker-copy .eyebrow { display: block; margin-bottom: 6px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mfo-picker-copy h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.mfo-picker-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mfo-picker-form { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 10px; align-items: end; }
.mfo-pick-field { display: grid; gap: 5px; min-width: 0; }
.mfo-pick-field > span { font-size: 11px; font-weight: 700; color: var(--muted); }
.mfo-picker-form .input, .mfo-picker-form .select { height: 42px; min-height: 42px; background: #fff; }
.mfo-pick-submit { min-height: 42px; white-space: nowrap; }
.mfo-pick-result { grid-column: 1 / -1; }
.mfo-pick-result-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.mfo-pick-result-head b { color: var(--ink); }
.mfo-pick-count { margin-left: 10px; color: var(--muted); }
.mfo-pick-card {
  display: grid; grid-template-columns: auto minmax(140px, 1fr) auto auto auto;
  align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm);
}
.mfo-pick-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mfo-pick-main b { font-size: 14px; color: var(--ink); }
.mfo-pick-main span { font-size: 11.5px; color: var(--muted); }
.mfo-pick-main em { width: fit-content; margin-top: 2px; padding: 3px 6px; border-radius: 5px; background: var(--green-soft); color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 700; }
.mfo-pick-rate b { display: block; font-size: 20px; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.mfo-pick-rate span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.mfo-pick-meta { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mfo-pick-meta span:first-child { color: var(--ink-2); font-weight: 700; }
.mfo-pick-loading, .mfo-pick-empty { padding: 14px; border-radius: 12px; background: #fff; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) {
  .mfo-picker { grid-template-columns: 1fr; }
  .mfo-picker-form { grid-template-columns: 1fr 1fr; }
  .mfo-pick-submit { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .mfo-picker { padding: 15px; }
  .mfo-picker-form { grid-template-columns: 1fr; }
  .mfo-pick-card { grid-template-columns: auto 1fr; }
  .mfo-pick-rate, .mfo-pick-meta, .mfo-pick-card > .btn { grid-column: 2; }
  .mfo-pick-card > .btn { justify-self: start; }
}

/* Быстрые фильтры по аудитории над каталогом */
.audience-filters { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; min-width: 0; }
.audience-label { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.audience-scroll { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 3px; scrollbar-width: none; }
.audience-scroll::-webkit-scrollbar { display: none; }
.audience-chip {
  flex: 0 0 auto; min-height: 32px; padding: 6px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink-2); font-size: 11.5px; font-weight: 650;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.audience-chip:hover { border-color: var(--brand); color: var(--brand); }
.audience-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 650px) {
  .audience-filters { align-items: flex-start; flex-direction: column; gap: 6px; }
  .audience-label { padding-top: 5px; }
  .audience-scroll { width: 100%; }
}

.audience-filters--quick { margin-top: -8px; }

/* Крупнее интерфейс на десктопе; мобильная версия не затрагивается */
@media (min-width: 1200px) {
  body {
    zoom: 1.08;
  }
}
