/* TAMEER B2B — оптовый прайс-лист */
body { background: #eef1f6; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding-bottom: 120px;
  background: linear-gradient(160deg, #173b68 0%, var(--navy-900) 55%, #071730 100%); }
.fx { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.o1 { width: 460px; height: 460px; left: -120px; top: -160px; background: #2f6fb8; animation: drift1 16s ease-in-out infinite alternate; }
.o2 { width: 380px; height: 380px; right: 8%; top: 10%; background: #f5a524; opacity: .22; animation: drift2 20s ease-in-out infinite alternate; }
.o3 { width: 520px; height: 520px; right: -180px; bottom: -260px; background: #1d4f8c; animation: drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(90px, 60px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px, 80px) scale(.85); } }
.gridfx { position: absolute; inset: -2px; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px; animation: pan 30s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%); }
@keyframes pan { to { background-position: 56px 56px; } }
.shield { position: absolute; right: -60px; top: 40px; width: 520px; height: auto; animation: floaty 9s ease-in-out infinite; }
.shield path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 14; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floaty { 50% { transform: translateY(-14px); } }

.top { position: relative; display: flex; align-items: center; gap: 16px; height: 84px; }
.top .lock { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.top .lock .i { width: 14px; height: 14px; color: var(--accent); }
.top .phone { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.top .phone .i { width: 18px; color: var(--accent); }

.hero-body { position: relative; padding-top: 44px; max-width: 1240px; }
.eyebrow { display: inline-block; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  opacity: 0; animation: rise .7s var(--ease) forwards; }
.hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(36px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 18px 0 20px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(60%) rotate(3deg); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 130ms + 100ms); }
.hero h1 .accent { color: var(--accent); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero p.lead { max-width: 620px; font-size: 17px; color: rgba(255, 255, 255, .78); margin: 0; opacity: 0; transform: translateY(16px); animation: rise .8s .55s var(--ease) forwards; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; transform: translateY(16px); animation: rise .8s .75s var(--ease) forwards; }
.stat { min-width: 150px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.stat b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, .62); }
.stat .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 8px; vertical-align: 3px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

/* ---------- уровни цен ---------- */
.tiers { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; margin-top: -76px; }
.tier { position: relative; text-align: left; padding: 22px; border-radius: 20px; background: #fff; border: 1.5px solid transparent; box-shadow: var(--sh-2); overflow: hidden;
  opacity: 0; transform: translateY(26px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + .9s);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.tier:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(11, 33, 64, .45); }
.tier .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-50); color: var(--navy); font-weight: 800; font-size: 14px; transition: .25s; }
.tier h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 21px; margin: 14px 0 4px; }
.tier .from { font-size: 14px; color: var(--muted); transition: color .25s; }
.tier .from b { color: var(--navy); transition: color .25s; }
.tier .note { margin-top: 12px; font-size: 13px; color: var(--muted); transition: color .25s; }
.tier .pick { position: absolute; right: 18px; top: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tier .pick .i { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: .3s var(--ease); }
.tier::after { content: ''; position: absolute; inset: auto -30% -70% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .35), transparent 65%); opacity: 0; transition: opacity .35s; }
.tier.active { background: linear-gradient(150deg, var(--navy), var(--navy-900)); color: #fff; border-color: var(--accent); }
.tier.active .n { background: var(--accent); color: var(--navy-900); }
.tier.active .from, .tier.active .note { color: rgba(255, 255, 255, .7); }
.tier.active .from b { color: #fff; }
.tier.active .pick { color: var(--accent); }
.tier.active .pick .i { opacity: 1; transform: none; }
.tier.active::after { opacity: 1; }

/* ---------- панель поиска ---------- */
.tools { position: sticky; top: 0; z-index: 20; margin-top: 26px; background: rgba(238, 241, 246, .86); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.tools.stuck { border-color: var(--line); box-shadow: 0 10px 26px -18px rgba(11, 33, 64, .4); }
.tools-in { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.t-search { position: relative; flex: 1; min-width: 240px; }
.t-search .i { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.t-search .input { padding-left: 44px; }
.tools .select { width: auto; max-width: 260px; }
.t-toggle { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-2); font-weight: 500; cursor: pointer; user-select: none; }
.t-toggle input { width: 17px; height: 17px; accent-color: var(--navy); }
.found { padding: 14px 0 10px; font-size: 14px; color: var(--muted); }
.found b { color: var(--text); }

/* ---------- таблица ---------- */
.list { --cols: minmax(0, 1fr) 120px 130px repeat(var(--n, 3), 138px); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.thead, .row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 0 12px; padding: 0 20px; }
.thead { height: 46px; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.thead > div:not(:first-child), .row > div:not(.r-main) { text-align: right; }
.thead .th-t { transition: color .2s; }
.row { min-height: 68px; border-bottom: 1px solid var(--line); transition: background .15s; opacity: 0; transform: translateY(14px); }
.row.in { opacity: 1; transform: none; transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms), background .15s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--navy-50); }
.r-main { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 0; }
.r-thumb { position: relative; width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, var(--navy), var(--navy-900)); color: #fff; display: grid; place-items: center; }
.r-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.r-thumb .i { width: 22px; height: 22px; stroke-width: 1.5; }
.r-main > div { min-width: 0; }
.list .r-price.ask { background: none; font-weight: 500; font-size: 13px; color: var(--muted); }
.r-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow: hidden; }
.r-main small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-stock { font-size: 13.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.r-stock.low { color: var(--warn); }
.r-stock.none { color: var(--muted); font-weight: 500; }
.r-retail { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.r-price { position: relative; font-size: 14.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; padding: 8px 10px; margin: 6px -4px; border-radius: 12px; transition: background .25s, color .25s, transform .25s var(--ease); font-variant-numeric: tabular-nums; }
.r-price em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ok); opacity: .0; height: 0; transition: opacity .25s, height .25s; }
.r-price.ask { font-weight: 500; color: var(--muted); font-size: 13px; }
[data-tier="0"] .t0, [data-tier="1"] .t1, [data-tier="2"] .t2, [data-tier="3"] .t3 { background: var(--accent-50); color: var(--navy-900); font-weight: 800; font-size: 15.5px; }
[data-tier="0"] .t0 em, [data-tier="1"] .t1 em, [data-tier="2"] .t2 em, [data-tier="3"] .t3 em { opacity: 1; height: 16px; }
[data-tier="0"] .th-t0, [data-tier="1"] .th-t1, [data-tier="2"] .th-t2, [data-tier="3"] .th-t3 { color: var(--accent-600); }
.skeleton { height: 68px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff 0%, #f1f4f9 40%, #fff 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
#sentinel { height: 1px; }

/* ---------- подвал ---------- */
.cta { position: relative; overflow: hidden; margin: 34px 0 0; padding: 38px 40px; border-radius: 24px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--navy-900), var(--navy)); }
.cta h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .72); max-width: 560px; }
.cta .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .emblem { position: absolute; right: 34%; top: -50px; height: 240px; opacity: .06; --em-a: #fff; --em-b: transparent; }
.foot { padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .list { --cols: minmax(0, 1fr) 92px 104px repeat(var(--n, 3), 104px); }
  .thead, .row { gap: 0 8px; padding: 0 14px; }
  .r-price { font-size: 13.5px; padding: 8px 6px; }
  .r-stock, .r-retail { font-size: 12.5px; }
}
@media (max-width: 980px) {
  .container { padding: 0 16px; }
  .shield { display: none; }
  .hero { padding-bottom: 100px; }
  .top .lock { display: none; }
  .tiers { grid-template-columns: 1fr; margin-top: -70px; }
  .tier { padding: 18px; }
  .thead { display: none; }
  .list { border-radius: 16px; }
  .row { grid-template-columns: repeat(var(--n, 3), 1fr); gap: 4px 8px; padding: 12px 14px; }
  .r-main { grid-column: 1 / -1; padding: 0; }
  .r-main b { white-space: normal; }
  .r-stock, .r-retail { grid-column: span 1; text-align: left !important; font-size: 12.5px; }
  .r-retail { grid-column: 2 / -1; text-align: right !important; }
  .r-price { text-align: center !important; margin: 4px 0 0; padding: 8px 4px; background: #f6f8fb; font-size: 13.5px; }
  .r-price::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .cta { padding: 28px 22px; }
  .tools .select { max-width: none; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .row, .reveal { opacity: 1; transform: none; }
}
