/* TAMEER — витрина */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- шапка ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 38px; }
.topbar-in > span, .topbar-in > a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .i { width: 15px; height: 15px; color: var(--accent); }
.topbar .tb-phone { margin-left: auto; color: #fff; font-weight: 600; }
.topbar .tb-sync { color: rgba(255, 255, 255, .6); }
/* переключатель языка RU / UZ */
.tb-lang { display: inline-flex !important; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-left: auto; }
.tb-lang button { border: 0; background: transparent; color: rgba(255, 255, 255, .75); font: inherit; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; cursor: pointer; }
.tb-lang button.on { background: var(--accent); color: var(--navy-900); }
.topbar .tb-phone { margin-left: 0 !important; }

.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(15, 29, 49, .25); }
.header-in { display: flex; align-items: center; gap: 18px; height: 76px; }
.header .logo { margin-right: 6px; }
.catalog-btn { height: 46px; padding: 0 18px; }
.search { position: relative; flex: 1; display: flex; }
.search .input { height: 46px; padding-left: 46px; padding-right: 110px; background: var(--navy-50); border-color: transparent; }
.search .input:focus { background: #fff; }
.search > .i { position: absolute; left: 15px; top: 13px; color: var(--muted); pointer-events: none; }
.search .btn { position: absolute; right: 4px; top: 4px; height: 38px; padding: 0 16px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--r); box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; display: none; z-index: 60; }
.suggest.open { display: block; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px; }
.suggest a:hover, .suggest a.active { background: var(--navy-50); }
.suggest .s-img { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--navy-50); }
.suggest .s-img img { width: 100%; height: 100%; object-fit: contain; }
.suggest .s-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-price { font-weight: 700; color: var(--navy); font-size: 14px; white-space: nowrap; }
.suggest .s-all { display: block; padding: 11px 14px; text-align: center; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.h-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 6px 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600; color: var(--text-2); }
.h-action:hover { background: var(--navy-50); color: var(--navy); }
.h-action .i { width: 24px; height: 24px; }
.h-ic { position: relative; display: grid; font-style: normal; }
.h-ic .rb.rb-admin { top: -10px; right: -9px; }
.h-ic .rb.rb-admin .i { width: 17px; height: 17px; }
.h-ic .rb.rb-b2b { right: -13px; bottom: -2px; height: 13px; font-size: 7.5px; padding: 0 3px; }
.acc-user .rt { margin-top: 4px; }
.h-action .badge { position: absolute; top: 0; right: 12px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--navy-900); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.h-action .badge:empty { display: none; }
.h-action.bump .badge { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.catnav { border-top: 1px solid var(--line); }
.catnav-in { display: flex; gap: 4px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.catnav a .i { width: 17px; height: 17px; color: var(--navy-500); }
.catnav a:hover { background: var(--navy-50); color: var(--navy); }
.catnav a.active { background: var(--navy); color: #fff; }
.catnav a.active .i { color: var(--accent); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-3); display: none; }
.mega.open { display: block; animation: fade .15s; }
.mega-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 22px 24px 26px; align-items: start; max-height: calc(100vh - 170px); overflow-y: auto; }
.mega .m-top { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); }
.mega .m-top:hover { background: var(--navy-50); }
.mega .m-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; }
.mega .m-top:hover .m-ic { background: var(--navy); color: var(--accent); }
.mega b { display: block; font-weight: 600; }
.mega small { color: var(--muted); font-size: 13px; }

/* ---------- общие блоки ---------- */
main { min-height: 60vh; }
.section { padding: 44px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.section-head .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.section-head .link .i { width: 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 20px 0 14px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs .i { width: 14px; height: 14px; }
.page-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; letter-spacing: -.01em; margin-bottom: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- главная ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: 24px; border-radius: 24px; color: #fff;
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(58, 106, 163, .55), transparent 62%),
    radial-gradient(600px 300px at 0% 100%, rgba(245, 165, 36, .14), transparent 70%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero-bg { position: absolute; right: -120px; bottom: -260px; width: 760px; height: auto; pointer-events: none; }
.hero-bg path { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 34; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 64px 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.015em; margin: 22px 0 8px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .uz { font-family: var(--display); font-stretch: 125%; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.hero p { font-size: 17px; color: rgba(255, 255, 255, .8); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-art .glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 68%); }
.hero-art .emblem { position: relative; height: 270px; --em-a: #fff; --em-b: var(--navy); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--text); box-shadow: var(--sh-3); font-size: 13px; }
.float-card b { display: block; font-size: 14px; }
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); }
.float-card.f1 { top: 18px; left: -10px; }
.float-card.f2 { bottom: 26px; right: -6px; }
.float-card.f2 .fc-ic { background: var(--ok-50); color: var(--ok); }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; overflow: hidden; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }
.cat-tile .c-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); transition: .2s; }
.cat-tile .c-ic .i { width: 26px; height: 26px; }
.cat-tile:hover .c-ic { background: var(--navy); color: var(--accent); }
.cat-tile b { font-size: 15.5px; font-weight: 700; }
.cat-tile small { color: var(--muted); font-size: 13px; }
.cat-tile .c-arrow { position: absolute; right: 16px; top: 20px; color: var(--line-2); transition: .2s; }
.cat-tile:hover .c-arrow { color: var(--navy); transform: translateX(3px); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit { display: flex; gap: 14px; padding: 22px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.benefit .b-ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); }
.benefit b { display: block; margin-bottom: 3px; }
.benefit p { margin: 0; font-size: 13.5px; color: var(--muted); }

.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 44px; border-radius: 22px; background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; }
.cta-band h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .72); }
.cta-band .emblem { position: absolute; right: 30%; top: -40px; height: 220px; opacity: .06; --em-a: #fff; --em-b: transparent; }

/* ---------- карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s var(--ease); }
.card:hover { box-shadow: var(--sh-2); border-color: transparent; transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 1; }
.badge-sale, .badge-hit, .badge-out { height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.badge-sale { background: var(--accent); color: var(--navy-900); }
.badge-hit { background: var(--navy); color: #fff; }
.badge-out { background: #fff; color: var(--muted); border: 1px solid var(--line-2); }
.card.out .card-media > *:not(.badges) { opacity: .5; filter: grayscale(.6); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.card-title:hover { color: var(--navy-700); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; margin-top: 8px; color: var(--ok); }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.low { color: var(--warn); }
.stock.none { color: var(--muted); }
/* цена над кнопкой, кнопка на всю ширину карточки: ничего не уезжает за край */
.card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 14px; min-width: 0; }
.card-foot .btn { width: 100%; justify-content: center; min-width: 0; }
.price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 18px; min-width: 0; color: var(--navy-900); line-height: 1.1; white-space: nowrap; }
.price small { display: block; font-family: var(--font); font-stretch: 100%; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price s { display: block; font-family: var(--font); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.btn-cart { height: 40px; width: 40px; padding: 0; border-radius: 10px; }
.btn-cart .i { width: 20px; height: 20px; }
.card .stepper { height: 40px; }
.card .stepper button { width: 32px; }
.card .stepper input { width: 34px; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; padding-bottom: 20px; }
.filters { position: sticky; top: 148px; padding: 18px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 10px; }
.f-cats { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.f-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; }
.f-cats a .i { width: 18px; height: 18px; color: var(--navy-500); }
.f-cats a span { margin-left: auto; font-size: 12px; color: var(--muted); }
.f-cats a:hover { background: var(--navy-50); }
.f-cats a.active { background: var(--navy); color: #fff; font-weight: 600; }
.f-cats a.active .i, .f-cats a.active span { color: rgba(255, 255, 255, .75); }
.f-block { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range .input { height: 40px; font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar .select { width: auto; height: 40px; font-size: 14px; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.mobile-filter { display: none; }

/* ---------- страница товара ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.gallery { padding: 18px; position: sticky; top: 148px; }
.g-main { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #fff; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.g-thumbs button { width: 72px; height: 72px; flex: none; padding: 4px; border-radius: 10px; border: 2px solid var(--line); background: #fff; }
.g-thumbs button.active { border-color: var(--navy); }
.g-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { padding: 28px; }
.pdp-info .p-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.pdp-info .p-meta b { color: var(--text-2); font-weight: 600; }
.pdp-info h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 14px; }
.buy-box { margin: 22px 0; padding: 22px; border-radius: var(--r); background: var(--navy-50); }
.buy-box .price { font-size: 34px; }
.buy-box .price small { font-size: 14px; }
.buy-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.buy-row .stepper { height: 52px; background: #fff; }
.buy-row .stepper button { width: 46px; }
.buy-row .stepper input { width: 58px; font-size: 17px; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-total { margin-top: 12px; font-size: 14px; color: var(--muted); }
.buy-total b { color: var(--text); }
.perks { display: flex; flex-direction: column; gap: 12px; }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.perk .i { color: var(--navy-500); margin-top: 1px; }
.perk b { display: block; }
.perk span { color: var(--muted); }
.desc { margin-top: 24px; padding: 28px; }
.desc h3 { font-size: 19px; margin-bottom: 12px; }
.desc p { margin: 0 0 10px; color: var(--text-2); }
.specs { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin-top: 14px; font-size: 14px; }
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }

/* ---------- корзина и оформление ---------- */
.two-col { display: grid; grid-template-columns: 1fr 370px; gap: 24px; align-items: start; }
.cart-list { padding: 6px 22px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto 40px; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .c-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cart-row .c-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-row .c-name { font-weight: 600; line-height: 1.35; }
.cart-row .c-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-row .c-sum { font-weight: 800; font-family: var(--display); font-stretch: 112%; font-size: 17px; min-width: 130px; text-align: right; white-space: nowrap; }
.cart-row .warn { color: var(--warn); font-size: 12.5px; margin-top: 4px; font-weight: 500; }
.summary { padding: 24px; position: sticky; top: 148px; }
.summary h3 { font-size: 19px; margin-bottom: 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--text-2); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.sum-total span { font-weight: 600; }
.sum-total b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 25px; color: var(--navy-900); }
.free-note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-50); font-size: 13px; color: #8a5300; }
.progress { height: 6px; border-radius: 99px; background: rgba(222, 139, 6, .2); margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.checkout-form { padding: 26px; display: flex; flex-direction: column; gap: 26px; }
.checkout-form h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.checkout-form h3 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.options.three { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1.5px solid var(--line-2); cursor: pointer; transition: .15s; }
.opt:hover { border-color: var(--navy-500); }
.opt input { position: absolute; opacity: 0; }
.opt .i { color: var(--navy-500); }
.opt b { display: block; font-size: 14.5px; }
.opt span { font-size: 13px; color: var(--muted); }
.opt:has(input:checked) { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.mini-items { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; padding-right: 4px; }
.mini-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.mini-item .m-img { width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.mini-item .m-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.mini-item small { color: var(--muted); display: block; }

/* ---------- вход / регистрация ---------- */
.auth-wrap { display: grid; place-items: center; padding: 56px 0 30px; }
.auth { width: 100%; max-width: 440px; padding: 36px; }
.auth .emblem { height: 56px; margin: 0 auto 18px; }
.auth h1 { text-align: center; font-size: 25px; margin-bottom: 6px; }
.auth > p { text-align: center; color: var(--muted); margin: 0 0 24px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth .switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth .switch a { color: var(--navy); font-weight: 600; }

/* ---------- личный кабинет ---------- */
.account { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.acc-side { padding: 22px; position: sticky; top: 148px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.acc-user b { display: block; }
.acc-user small { color: var(--muted); }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; border: 0; background: none; text-align: left; font-size: 15px; }
.acc-nav a:hover, .acc-nav button:hover { background: var(--navy-50); }
.acc-nav a.active { background: var(--navy-50); color: var(--navy); font-weight: 600; }
.acc-nav .i { color: var(--navy-500); }
.order-card { padding: 20px 22px; margin-bottom: 14px; }
.order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.order-top h3 { font-size: 17px; }
.order-top .o-date { color: var(--muted); font-size: 14px; }
.order-top .o-total { margin-left: auto; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 19px; }
.order-thumbs { display: flex; gap: 8px; margin-top: 14px; }
.order-thumbs .t { width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.order-thumbs .t img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.order-thumbs .more-n { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--navy-50); }
.order-details { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: none; }
.order-card.open .order-details { display: block; }
.order-steps { display: flex; gap: 4px; margin: 6px 0 18px; }
.order-steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.order-steps i.on { background: var(--navy); }
.o-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.o-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.o-lines td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.o-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; font-size: 14px; }
.o-info small { display: block; color: var(--muted); }
.profile-form { padding: 26px; display: grid; gap: 16px; }
.success { max-width: 620px; margin: 40px auto 0; padding: 44px; text-align: center; }
.success .ok-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.success .ok-ic .i { width: 38px; height: 38px; stroke-width: 2.4; }
.success h1 { font-size: 28px; margin-bottom: 10px; }
.success p { color: var(--muted); }
.success .btns { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- подвал ---------- */
.footer { margin-top: 64px; background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding: 52px 24px 36px; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: #fff; }
.footer .f-contact { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact .i { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.footer .about { margin: 16px 0 0; max-width: 320px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; padding: 48px 36px; }
  .hero-art { display: none; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .topbar .tb-hide { display: none; }
  .header-in { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px 12px; }
  .header .logo .emblem { height: 38px; }
  .header .logo-text b { font-size: 21px; }
  .header-actions { margin-left: auto; }
  .catalog-btn { display: none; }
  .search { order: 5; flex-basis: 100%; }
  .h-action { min-width: 52px; }
  .h-action > span:not(.badge) { display: none; }
  .h-action.h-b2b > span:not(.badge) { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
  .h-action.h-b2b .i { width: 20px; height: 20px; }
  .catalog, .pdp, .two-col, .account { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .mobile-filter { display: inline-flex; }
  .gallery, .summary, .acc-side { position: static; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cart-row { grid-template-columns: 64px 1fr 34px; gap: 12px; }
  .cart-row .c-img { width: 64px; height: 64px; }
  .cart-row .stepper { grid-column: 2; }
  .cart-row .c-sum { grid-column: 2 / 4; text-align: left; min-width: 0; }
  .cart-row .c-del { grid-row: 1; grid-column: 3; }
  .options, .options.three, .row2, .o-info { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 12px; }
  .price { font-size: 16px; }
  .hero { margin-top: 14px; border-radius: 18px; }
  .hero-in { padding: 36px 22px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .page-title { font-size: 24px; }
  .pdp-info, .desc { padding: 20px; }
  .specs { grid-template-columns: 1fr 1.4fr; }
}
@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card .btn-cart { width: 100%; }
  .card .stepper { width: 100%; justify-content: space-between; }
  .auth { padding: 26px 20px; }
}

/* ---------- фирменный знак на фото и обложки без фото ---------- */
.card-media, .g-main { position: relative; overflow: hidden; }
.brand-badge { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(11, 33, 64, .18); pointer-events: none; }
.brand-badge .emblem { height: 18px; }
.brand-badge b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 10.5px; letter-spacing: .04em; color: var(--navy); }
.g-main .brand-badge { right: 16px; bottom: 16px; padding: 6px 13px 6px 7px; }
.g-main .brand-badge .emblem { height: 26px; }
.g-main .brand-badge b { font-size: 14px; }

.bc { position: absolute; inset: 0; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 28% 16%, var(--c1, #285a92) 0%, var(--c2, var(--navy-900)) 78%); }
.bc::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px); background-size: 16px 16px; }
.bc::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .42)); }
.bc-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.bc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bc-lg .bc-cap { left: 22px; right: 22px; bottom: 22px; gap: 12px; }
.bc-lg .bc-name { font-size: 20px; -webkit-line-clamp: 3; }
.bc-bg { position: absolute; right: -22%; bottom: -30%; width: 85%; height: auto; }
.bc-bg path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 26; }
.bc-ic { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 1; width: 40%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.bc-ic .i { width: 58%; height: 58%; stroke-width: 1.4; color: #fff; }
.bc-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.bc-specs i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--navy-900); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-logo { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; --em-a: #fff; --em-b: var(--navy); }
.bc-logo .emblem { height: 20px; }
.bc-logo b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 11px; letter-spacing: .06em; }
.card .badges ~ .bc .bc-logo { left: auto; right: 12px; }
.bc-lg .bc-ic { width: 34%; }
.bc-lg .bc-specs { gap: 8px; }
.bc-lg .bc-specs i { font-size: 15px; padding: 6px 12px; }
.bc-lg .bc-logo { left: 22px; top: 22px; }
.bc-lg .bc-logo .emblem { height: 34px; }
.bc-lg .bc-logo b { font-size: 17px; }
.card:hover .bc-ic { transform: translate(-50%, -50%) scale(1.05); transition: transform .35s var(--ease); }

/* ---------- подкатегории ---------- */
.m-col { min-width: 0; }
.m-subs { display: flex; flex-direction: column; gap: 1px; padding: 0 12px 10px 70px; }
.m-subs a { padding: 4px 0; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-subs a:hover { color: var(--navy); text-decoration: underline; }
.m-subs .m-more { color: var(--navy); font-weight: 600; }
.f-cats a.open { background: var(--navy-50); color: var(--navy); font-weight: 600; }
.f-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 18px; padding-left: 10px; border-left: 2px solid var(--line); }
.f-sub a { padding: 6px 10px; font-size: 13.5px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subcats a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.subcats a .i { width: 16px; height: 16px; color: var(--navy-500); }
.subcats a span { font-size: 12px; color: var(--muted); }
.subcats a:hover { border-color: var(--navy-500); color: var(--navy); }
.subcats a.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.subcats a.active .i { color: var(--accent); }
.subcats a.active span { color: rgba(255, 255, 255, .75); }
@media (max-width: 760px) {
  .subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
  .subcats::-webkit-scrollbar { display: none; }
  .m-subs { padding-left: 70px; }
}

/* размеры товара: выбор на странице товара и подпись на карточке группы */
.v-sizes { margin: -4px 0 18px; }
.v-lab { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.v-lab b { color: var(--navy-900); }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 78px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--navy-900); text-decoration: none; line-height: 1.2; transition: border-color .15s, background .15s; }
.v-chip:hover { border-color: var(--navy-900); }
.v-chip b { font-size: 15px; font-weight: 700; }
.v-chip small { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.v-chip.on { border-color: var(--accent); background: #fff7e6; box-shadow: inset 0 0 0 1px var(--accent); }
.v-chip.off { opacity: .55; }
.card-foot .btn-sm { white-space: nowrap; }
/* ---------- слайдер главной: баннеры и товары ---------- */
.slider { position: relative; margin: 18px 0 8px; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--navy-900); color: #fff; min-height: 460px; box-shadow: 0 30px 60px -36px rgba(7, 23, 48, .55); }
/* все слайды в одной ячейке сетки: высота блока равна самому высокому слайду, ничего не обрезается */
.sl-stage { display: grid; }
.sl { grid-area: 1 / 1; position: relative; display: grid; align-items: center; padding: 56px 56px 84px; opacity: 0; transform: scale(1.02); transition: opacity .9s ease, transform 1.2s var(--ease); pointer-events: none; overflow: hidden; }
.sl.on { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.sl.tone-navy { color: #fff; background: radial-gradient(circle at 82% 18%, #2f6aa8 0%, var(--navy) 42%, var(--navy-900) 100%); }
.sl-title em { font-style: normal; color: var(--accent); }
.sl.tone-navy .btn-ghost, .sl.has-img .btn-ghost, .sl-prod .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.sl.tone-navy .btn-ghost:hover, .sl.has-img .btn-ghost:hover, .sl-prod .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.sl.tone-amber { background: radial-gradient(circle at 86% 14%, #ffd98a 0%, #f5a524 42%, #c9760a 100%); color: var(--navy-900); }
.sl.tone-light { background: linear-gradient(135deg, #ffffff 0%, #e6edf6 100%); color: var(--navy-900); }
.sl.has-img, .sl-prod { color: #fff; background: var(--navy-900); }
.sl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 8s linear; }
.sl.on .sl-bg { transform: scale(1); }
.sl-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 23, 48, .9) 0%, rgba(7, 23, 48, .6) 46%, rgba(7, 23, 48, .08) 100%); }
.sl-emblem { position: absolute; right: 6%; top: 50%; width: min(28%, 230px); transform: translateY(-50%) rotate(-4deg); opacity: .9; }
.sl-ad:not(.has-img) .sl-body { max-width: 62%; }
.sl-emblem .emblem { width: 100%; height: auto; --em-a: #fff; --em-b: var(--navy); }
.sl.tone-amber .sl-emblem .emblem { --em-a: var(--navy-900); --em-b: #ffd98a; }
.sl.tone-light .sl-emblem .emblem { --em-a: var(--navy); --em-b: #ffffff; }
.sl-body { position: relative; max-width: 600px; }
.sl-title { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(28px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.015em; margin: 0 0 14px; }
.sl-text { font-size: 17px; line-height: 1.5; margin: 0 0 26px; opacity: .85; max-width: 520px; }
.sl-body .btn { margin-right: 10px; }
.sl.on .sl-title { animation: sl-rise .9s var(--ease) both .2s; }
.sl.on .sl-text { animation: sl-rise .9s var(--ease) both .35s; }
.sl.on .sl-body .btn, .sl.on .sl-cta { animation: sl-rise .9s var(--ease) both .5s; }
.sl.on .sl-tag { animation: sl-rise .8s var(--ease) both .1s; }
@keyframes sl-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.sl-tag { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--accent); color: var(--navy-900); font-weight: 800; font-size: 13px; margin-bottom: 18px; }
/* товарный слайд: фото в белой карточке слева, описание справа */
.sl-prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sl-prod-media { display: grid; place-items: center; aspect-ratio: 1; max-height: 340px; width: 100%; justify-self: center; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); transition: transform .6s var(--ease); }
.sl.on .sl-prod-media { animation: sl-zoom 1.4s var(--ease) both; }
@keyframes sl-zoom { from { transform: scale(.94) rotate(-1.5deg); } to { transform: none; } }
.sl-prod-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.sl-prod .sl-body { max-width: none; }
.sl-prod .sl-title { font-size: clamp(24px, 3vw, 40px); -webkit-line-clamp: 3; }
.sl-price { font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 34px; margin: 6px 0 22px; }
.sl-price small { display: block; font-family: var(--body, inherit); font-stretch: 100%; font-weight: 500; font-size: 13px; opacity: .7; margin-top: 2px; }
.sl-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.sl-cta .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.sl-cta [data-slot] .btn { height: 52px; width: 52px; }
.sl-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.sl-arr:hover { background: rgba(255, 255, 255, .26); }
.sl-arr .i { width: 22px; height: 22px; }
.sl-prev { left: 18px; }
.sl-next { right: 18px; }
.sl-dots { position: absolute; left: 56px; bottom: 26px; z-index: 3; display: flex; gap: 10px; }
.sl-dots button { position: relative; width: 36px; height: 6px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .3); }
.sl-dots button i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.sl-dots button.on i { transform: scaleX(0); animation: sl-prog var(--d, 6500ms) linear forwards; }
.slider.paused .sl-dots button.on i { animation-play-state: paused; }
@keyframes sl-prog { to { transform: scaleX(1); } }
.slider.ctl-dark .sl-arr { color: var(--navy-900); background: rgba(255, 255, 255, .6); border-color: rgba(11, 33, 64, .18); }
.slider.ctl-dark .sl-arr:hover { background: #fff; }
.slider.ctl-dark .sl-dots button { background: rgba(11, 33, 64, .2); }
.slider.ctl-dark .sl-dots button i { background: var(--navy-900); }
.slider.ctl-dark .sl-cta .btn-ghost { color: var(--navy-900); border-color: rgba(11, 33, 64, .3); }
@media (max-width: 900px) {
  .slider { min-height: 0; border-radius: 18px; }
  .sl { padding: 36px 28px 84px; }
  .sl-prod { grid-template-columns: 1fr; gap: 20px; align-content: center; }
  .sl-prod-media { max-height: 210px; aspect-ratio: auto; height: 210px; }
  .sl-emblem { display: none; }
  .sl-shade { background: linear-gradient(180deg, rgba(7, 23, 48, .25) 0%, rgba(7, 23, 48, .85) 60%); }
  .sl-text { font-size: 15px; margin-bottom: 20px; }
  .sl-prev, .sl-next { display: none; }
  .sl-dots { left: 28px; bottom: 22px; }
}
@media (max-width: 520px) {
  .sl { padding: 26px 20px 80px; }
  .sl-title { font-size: 28px; }
  .sl-price { font-size: 28px; }
  .sl-body .btn, .sl-cta .btn { width: 100%; justify-content: center; }
  .sl-cta [data-slot] { width: 100%; }
  .sl-cta [data-slot] .btn { width: 100%; }
  .sl-cta [data-slot] .stepper { width: 100%; }
  .sl-body .btn { margin-right: 0; }
  .sl-dots { left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl, .sl-bg, .sl-prod-media, .sl-arr { transition: none !important; }
  .sl.on .sl-title, .sl.on .sl-text, .sl.on .sl-body .btn, .sl.on .sl-cta, .sl.on .sl-tag, .sl.on .sl-prod-media { animation: none !important; }
  .sl-dots button.on i { animation: none !important; transform: scaleX(1); }
}
/* «Сообщить, когда появится» */
.notify { margin: 14px 0 0; padding: 16px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface); }
.nf-t { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; color: var(--navy-900); }
.nf-t .i { width: 18px; height: 18px; color: var(--accent); }
.nf-row { display: flex; align-items: center; gap: 8px; }
.nf-pre { font-weight: 700; color: var(--muted); white-space: nowrap; }
.nf-row .input { flex: 1; min-width: 0; }
.nf-row .btn { white-space: nowrap; }
.nf-done { display: flex; align-items: center; gap: 10px; border-style: solid; border-color: #bfe5cc; background: #f0fbf3; color: var(--ok); font-weight: 600; }
.nf-done .i { width: 20px; height: 20px; flex: none; }
@media (max-width: 520px) { .nf-row { flex-wrap: wrap; } .nf-row .input { flex: 1 1 60%; } .nf-row .btn { width: 100%; } }
/* калькулятор материалов */
.calc-head { padding: 26px 28px; margin-bottom: 18px; }
.calc-head h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.calc-head p { margin: 0 0 18px; color: var(--muted); max-width: 680px; }
.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-tabs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy-900); font-weight: 600; cursor: pointer; }
.calc-tabs button:hover { border-color: var(--navy-900); }
.calc-tabs button.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 40px; }
.calc-form { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--navy-900); font-weight: 600; }
.calc-res { padding: 24px; position: sticky; top: 90px; }
.calc-res > small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.calc-main { font-family: var(--display); font-stretch: 115%; font-weight: 900; font-size: clamp(30px, 4vw, 44px); color: var(--navy-900); margin: 6px 0 16px; line-height: 1.1; }
.calc-rows { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.calc-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc-rows li span { color: var(--muted); }
.calc-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.catnav-calc { color: var(--accent) !important; font-weight: 700; }
@media (max-width: 860px) { .calc-body { grid-template-columns: 1fr; } .calc-res { position: static; } }
@media (max-width: 520px) { .calc-form { grid-template-columns: 1fr; padding: 18px; } .calc-head { padding: 20px; } }
/* промокод и скидка при оформлении */
.promo-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row .btn { white-space: nowrap; }
.promo-msg { font-size: 13px; color: var(--muted); min-height: 0; margin-bottom: 4px; }
.promo-msg:empty { display: none; }
.promo-msg.ok { color: var(--ok); font-weight: 600; }
.promo-msg.err { color: #b42318; }
.ok-text { color: var(--ok); font-weight: 700; }.stars { display: inline-flex; gap: 1px; font-size: 16px; line-height: 1; white-space: nowrap; }
.stars i { font-style: normal; color: #cfd6e0; }
.stars i.on { color: var(--accent); }
/* отзывы на странице товара */
.rv-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 24px; align-items: start; }
.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rv:last-child { border-bottom: 0; padding-bottom: 0; }
.rv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.rv-h b { font-size: 15px; }
.rv-h small { color: var(--muted); font-size: 12px; }
.rv p { margin: 0; line-height: 1.55; color: var(--navy-900); }
.rv-side { background: var(--navy-50); border-radius: var(--r); padding: 20px; }
.rv-form { display: flex; flex-direction: column; gap: 12px; }
.rv-t { font-weight: 700; color: var(--navy-900); }
.rv-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars label { cursor: pointer; font-size: 30px; line-height: 1; color: #cfd6e0; transition: color .15s; }
.rv-stars input:checked ~ label, .rv-stars label:hover, .rv-stars label:hover ~ label { color: var(--accent); }
.rv-stars input:focus-visible + label { outline: 2px solid var(--navy-900); border-radius: 4px; }
.rv-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rv-mine p { margin: 8px 0 0; color: var(--navy-900); line-height: 1.5; }
@media (max-width: 860px) { .rv-wrap { grid-template-columns: 1fr; padding: 18px; } }
/* ---------- личный кабинет: шапка профиля, меню, медали ---------- */
.account { margin-top: 18px; }
.acc-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 28px; margin-bottom: 18px; border-radius: 22px; background: radial-gradient(circle at 90% 10%, #2f6aa8 0%, var(--navy) 46%, var(--navy-900) 100%); color: #fff; box-shadow: 0 30px 60px -40px rgba(7, 23, 48, .6); }
.acc-hero.admin { background: radial-gradient(circle at 90% 10%, #f5a524 0%, #b8741a 40%, var(--navy-900) 100%); }
.acc-ava .ava { box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.acc-id h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 4px; color: #fff; }
.acc-id > p { margin: 0 0 12px; color: rgba(255, 255, 255, .75); font-size: 14px; }
.acc-id .rt { margin-top: 0; }
.acc-level { max-width: 420px; }
.acc-level .al-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 15px; }
.acc-level .al-top b { font-family: var(--display); font-stretch: 110%; font-weight: 800; }
.acc-level .al-top span, .acc-level small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.acc-level small { display: block; margin-top: 6px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #ffd27a); transition: width .8s var(--ease); }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 10px; }
.acc-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.acc-stats b { display: block; font-family: var(--display); font-stretch: 110%; font-size: 20px; line-height: 1.1; }
.acc-stats span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.acc-side { padding: 10px; align-self: start; position: sticky; top: 90px; }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--navy-900); font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
.acc-nav a:hover, .acc-nav button:hover { background: var(--navy-50, #eef3f9); }
.acc-nav a.active { background: #fff7e6; box-shadow: inset 0 0 0 1.5px var(--accent); }
.acc-nav .ni { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--c, var(--navy)); color: #fff; box-shadow: 0 8px 16px -10px var(--c, #000); }
.acc-nav .ni .i { width: 18px; height: 18px; }
.acc-nav .nl { flex: 1; min-width: 0; }
.acc-nav .cnt { min-width: 28px; padding: 2px 8px; border-radius: 99px; background: var(--navy-900); color: #fff; font-size: 12px; text-align: center; }
.acc-h { font-size: 24px; margin: 0 0 6px; }
.acc-lead { margin: 0 0 18px; line-height: 1.5; }
.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.acc-tile { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--navy-900); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.acc-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(7, 23, 48, .5); }
.acc-tile .ni { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--c); color: #fff; }
.acc-tile .ni .i { width: 22px; height: 22px; }
.acc-tile b { font-size: 15px; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.medal-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.medal-card b { font-size: 15px; margin-top: 4px; }
.medal-card small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.medal-card .mp { width: 100%; margin-top: 8px; }
.medal-card .mp span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.medal-card .mp .bar { background: var(--navy-50, #eef3f9); }
.medal-card .mp .bar i { background: linear-gradient(90deg, var(--navy), #2f6aa8); }
.medal-card.got { border-color: #f5c46a; background: linear-gradient(180deg, #fffdf6, var(--surface)); }
.got-chip { margin-top: 6px; padding: 3px 10px; border-radius: 99px; background: #fff3d6; color: #8a5a00; font-size: 12px; font-weight: 700; }
.medal { position: relative; width: 92px; height: 110px; }
.medal svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(7, 23, 48, .18)); }
.medal .rb { fill: var(--navy); }
.medal .rb-r { fill: var(--accent); }
.medal-ic { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -50%); width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.medal-ic .i { width: 100%; height: 100%; }
.medal.tier-silver .medal-ic, .medal.tier-bronze .medal-ic { color: #3d4450; filter: none; }
.medal.tier-gold .medal-ic { color: #6b4a06; filter: none; }
.medal.off { filter: grayscale(1) opacity(.45); }
@media (max-width: 860px) {
  .acc-hero { grid-template-columns: 1fr; text-align: left; padding: 22px; }
  .acc-stats { grid-template-columns: repeat(3, 1fr); }
  .acc-side { position: static; }
}
/* звание, скидка и бонусы в кабинете; фото профиля; бонусы в оформлении */
.acc-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.perk-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13px; font-weight: 600; }
.perk-chip i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--navy-900); }
.perk-chip i .i { width: 12px; height: 12px; }
.perk-chip.bonus i { background: #fff; }
.perk-chip b { font-weight: 800; }
.av-box { display: flex; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px; }
.av-cur .ava { width: 84px; height: 84px; font-size: 30px; }
.av-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.av-txt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.av-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.av-acts .btn { cursor: pointer; }
.h-ic .h-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bonus-box { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 4px; padding: 12px; border-radius: 12px; background: #f3f8ff; border: 1px dashed #b8cfe9; }
.bonus-box .bn-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.bonus-box .bn-line b { color: var(--navy-900); }
.bonus-box .input { margin: 0; }
@media (max-width: 520px) { .av-box { flex-direction: column; align-items: flex-start; } }
/* товар на баннере: карточка справа */
.sl-ad.has-prod .sl-body { max-width: 56%; }
.sl-pcard { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); z-index: 2; width: min(300px, 34%); display: flex; flex-direction: column; background: #fff; color: var(--navy-900); border-radius: 18px; overflow: hidden; text-decoration: none; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); transition: transform .3s var(--ease); }
.sl-pcard:hover { transform: translateY(-50%) translateY(-4px); }
.sl-pimg { display: grid; place-items: center; aspect-ratio: 1; background: #fff; }
.sl-pimg img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.sl-pinfo { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; border-top: 1px solid #eef2f7; }
.sl-pinfo b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-pinfo small { color: #475569; font-size: 13px; }
.sl-pinfo em { font-style: normal; color: #b42318; font-weight: 700; }
@media (max-width: 900px) {
  .sl-pcard { position: relative; right: auto; top: auto; transform: none; width: min(240px, 100%); margin-top: 16px; }
  .sl-pcard:hover { transform: none; }
  .sl-ad.has-prod .sl-body { max-width: none; }
  .sl-ad.has-prod { align-content: start; padding-top: 30px; }
}
/* дополнительные действия на карточке товара: купить позже, сравнить, перезвонить */
.buy-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.buy-extra .btn.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cb-form[hidden] { display: none; }
.compare-wrap { overflow-x: auto; padding: 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.compare th { width: 180px; color: var(--muted); font-weight: 600; background: var(--navy-50); }
/* подбор по задаче: список материалов */
.task-need { padding: 14px 0; border-bottom: 1px solid var(--line); }
.task-need:last-of-type { border-bottom: 0; }
.tn-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.tn-head small { color: var(--muted); font-size: 12.5px; }
.tn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tn-row .tn-pick { flex: 1 1 260px; min-width: 0; }
.tn-row .tn-qty { width: 100px; }
.tn-unit { font-size: 13px; min-width: 48px; }
.task-sum { margin: 14px 0; font-size: 15px; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose p { line-height: 1.6; color: var(--text-2); margin: 0 0 8px; }
