*{box-sizing:border-box}
body{font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;margin:0;color:#222;background:#fafafa}
a{color:#1976d2}
h1,h2,h3{color:#111}
.container {max-width: 1400px;margin:0 auto;padding:0 20px}
.site-header{background:#fff;border-bottom:1px solid #eee;padding:12px 0;position:sticky;top:0;z-index:10}
.header-inner{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:nowrap;
}
.logo{font-weight:700;font-size:20px;text-decoration:none;color:#111;flex-shrink:0;white-space:nowrap}
.nav a{margin:0;text-decoration:none;color:#333;font-size:14px;white-space:nowrap}
.nav a:hover{color:#1976d2}
main.container {max-width: 1400px;margin:0 auto;padding:0 20px}
.btn{display:inline-block;background:#1976d2;color:#fff;padding:10px 20px;border:0;border-radius:6px;text-decoration:none;cursor:pointer;font-size:15px;transition:background .15s}
.btn:hover{background:#1565c0}
.btn-sm{padding:6px 12px;font-size:14px}
.hero{text-align:center;padding:48px 0 32px}
.hero h1{font-size:36px;margin:0 0 12px}
.hero p{color:#666;margin:0 0 20px}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;margin:20px 0}
.product-card{background:#fff;border:1px solid #eee;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px;transition:box-shadow .15s}
.product-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.06)}
.product-card h3{margin:0;font-size:16px;line-height:1.3}
.product-card a{text-decoration:none;color:#111}
.price-row{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.price-row-lg{font-size:22px;margin:16px 0}
.old{color:#999}
.new{color:#d32f2f;font-weight:700}
.discount{background:#d32f2f;color:#fff;padding:2px 6px;border-radius:4px;font-size:12px}
.price{font-weight:700}
.catalog-layout{display:grid;grid-template-columns:240px 1fr;gap:24px}
.filters fieldset{border:1px solid #eee;padding:8px 12px;margin-bottom:12px;border-radius:6px;background:#fff}
.filters legend{font-weight:600;font-size:14px;padding:0 4px}
.filters label{display:block;margin:4px 0;font-size:14px;cursor:pointer}
.filters input[type="number"]{width:100%;margin:4px 0;padding:6px;border:1px solid #ddd;border-radius:4px}
.sort-row{margin-bottom:12px;font-size:14px;color:#666}
.sort-row a{margin-left:12px}
.cart-table{width:100%;background:#fff;border-collapse:collapse;border-radius:8px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.cart-table th,.cart-table td{padding:12px;border-bottom:1px solid #eee;text-align:left;font-size:15px}
.cart-table th{background:#f7f7f7;font-weight:600}
.qty{width:64px;padding:6px;border:1px solid #ddd;border-radius:4px}
.remove-btn{background:transparent;border:0;font-size:22px;color:#bbb;cursor:pointer;padding:0 6px}
.remove-btn:hover{color:#d32f2f}
.checkout-form{max-width:560px;display:flex;flex-direction:column;gap:14px;background:#fff;padding:24px;border-radius:8px}
.checkout-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:#444}
.checkout-form input,.checkout-form textarea{padding:10px;border:1px solid #ddd;border-radius:6px;font:inherit}
.checkout-form fieldset{border:1px solid #eee;padding:12px 16px;border-radius:6px}
.checkout-form fieldset legend{font-weight:600;padding:0 6px;font-size:14px}
.checkout-form fieldset label{flex-direction:row;align-items:center;gap:8px;cursor:pointer}
.totals{background:#f7f7f7;padding:14px;border-radius:6px;font-size:15px;line-height:1.7}
.auth-form{max-width:380px;display:flex;flex-direction:column;gap:14px;background:#fff;padding:24px;border-radius:8px}
.auth-form label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.auth-form input{padding:10px;border:1px solid #ddd;border-radius:6px;font:inherit}
.error{color:#d32f2f;background:#ffebee;padding:10px 14px;border-radius:6px;font-size:14px}
.posts-list{list-style:none;padding:0}
.posts-list li{background:#fff;padding:16px 20px;border-radius:8px;margin-bottom:12px;border:1px solid #eee}
.posts-list li h3{margin:0 0 6px}
.blog-post,.page{background:#fff;padding:28px;border-radius:8px;max-width:820px;margin:0 auto}
.product-page .description{margin:20px 0;color:#444;line-height:1.7}
.product-options{margin:16px 0}
.opt-group{margin-bottom:8px}
.opt{display:inline-block;background:#eef4ff;color:#1565c0;padding:3px 10px;border-radius:14px;font-size:13px;margin-left:6px}
.site-footer{background:#111;color:#ddd;padding:24px 0;margin-top:40px}
.site-footer a{color:#9cf}
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#222;color:#fff;padding:12px 16px;display:flex;gap:16px;align-items:center;justify-content:center;z-index:100;flex-wrap:wrap;font-size:14px}
.cookie-banner button{background:#4caf50;border:0;color:#fff;padding:8px 16px;cursor:pointer;border-radius:4px}
.cookie-banner a{color:#9cf}
@media(max-width:720px){
  .catalog-layout{grid-template-columns:1fr}
  .hero h1{font-size:26px}
  .cart-table{font-size:14px}
  .cart-table th,.cart-table td{padding:8px}
}

/* Галерея товара и карточки */
.product-image{display:block;aspect-ratio:1;background:#f5f5f5;border-radius:6px;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;display:block}
.no-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#f5f5f5;color:#999;font-size:13px;border-radius:6px}

.product-layout{display:grid;grid-template-columns:minmax(300px,1fr) 1fr;gap:32px;margin-bottom:40px}
.product-gallery{display:flex;flex-direction:column;gap:10px}
.main-image{aspect-ratio:1;background:#f5f5f5;border-radius:8px;overflow:hidden}
.main-image img{width:100%;height:100%;object-fit:contain;display:block}
.thumbs{display:flex;gap:8px;flex-wrap:wrap}
.thumbs img{width:70px;height:70px;object-fit:cover;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s}
.thumbs img:hover{border-color:#cbd5e1}
.thumbs img.active{border-color:#1976d2}

.product-info h1{margin-top:0}
.stock-info{margin:12px 0;font-size:14px}
.in-stock{color:#16a34a}
.out-stock{color:#dc2626}
.add-form-lg{display:flex;gap:8px;align-items:center;margin:16px 0}
.add-form-lg .qty{width:80px;padding:10px}
.product-page .description{background:#f9fafb;padding:16px;border-radius:8px;margin-top:20px}
.product-page .description h3{margin-top:0}
.product-page .description p{line-height:1.6;color:#333}

@media(max-width:820px){
  .product-layout{grid-template-columns:1fr}
}

/* Поиск */
.header-search{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  max-width:520px;
}
.header-search input{flex:1;padding:8px 14px;border:1px solid #e5e7eb;border-radius:20px;font:inherit;font-size:14px;outline:none;transition:border-color .15s}
.header-search input:focus{border-color:#1976d2}
.header-search button{background:transparent;border:0;font-size:18px;cursor:pointer;padding:0 6px}

.search-form{display:flex;gap:10px;max-width:600px;margin:20px 0}
.search-form input{flex:1;padding:12px 18px;border:1px solid #ddd;border-radius:8px;font:inherit;font-size:16px}
.search-summary{color:#666;margin:16px 0}

.search-list{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.search-list li{background:#fff;border:1px solid #eee;padding:8px 14px;border-radius:20px}
.search-list li a{text-decoration:none}

@media(max-width:820px){
  .header-inner{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:nowrap;
}
  .header-search{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  max-width:520px;
}
}

/* Контакты */
.contacts-layout{display:grid;grid-template-columns:280px 1fr;gap:32px;margin-top:20px}
.contacts-info{background:#fff;padding:20px;border-radius:8px;border:1px solid #eee;font-size:15px;line-height:1.8}
.contacts-info p{margin:6px 0}
@media(max-width:720px){.contacts-layout{grid-template-columns:1fr}}

/* Качелька количества */
.qty-wrap{display:inline-flex;align-items:center;border:1px solid #d4d4d8;border-radius:6px;overflow:hidden;background:#fff}
.qty-wrap button{background:#f4f4f5;border:0;width:32px;height:36px;font-size:16px;cursor:pointer;color:#52525b;transition:background .15s}
.qty-wrap button:hover{background:#e4e4e7}
.qty-wrap input{width:52px;border:0;text-align:center;font:inherit;font-size:15px;padding:6px 0;outline:0;-moz-appearance:textfield}
.qty-wrap input::-webkit-outer-spin-button,
.qty-wrap input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-wrap-sm button{width:26px;height:30px;font-size:14px}
.qty-wrap-sm input{width:40px;font-size:13px}
.add-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.add-form-sm{gap:4px}
.no-stock{font-size:12px;color:#dc2626;padding:6px 0;display:inline-block}

/* Галерея */
.product-gallery{display:flex;flex-direction:column;gap:10px}
.gallery-main{position:relative;aspect-ratio:1;background:#f5f5f5;border-radius:8px;overflow:hidden;cursor:zoom-in}
.gallery-main img{width:100%;height:100%;object-fit:contain;display:block}
.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.5);color:#fff;border:0;width:40px;height:40px;border-radius:50%;font-size:22px;cursor:pointer;line-height:1;padding:0}
.gallery-prev{left:8px}
.gallery-next{right:8px}
.gallery-prev:hover,.gallery-next:hover{background:rgba(0,0,0,.7)}
.gallery-counter{position:absolute;bottom:8px;right:12px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:2px 8px;border-radius:10px}
.thumbs{display:flex;gap:8px;flex-wrap:wrap}
.thumbs img{width:70px;height:70px;object-fit:cover;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s}
.thumbs img:hover{border-color:#cbd5e1}
.thumbs img.active{border-color:#1976d2}

/* Модалка изображения */
.image-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:200;align-items:center;justify-content:center;padding:20px}
.image-modal.open{display:flex}
.image-modal img{max-width:100%;max-height:90vh;object-fit:contain;border-radius:6px}
.modal-close{position:absolute;top:16px;right:20px;background:transparent;border:0;color:#fff;font-size:34px;cursor:pointer;line-height:1;padding:0}

/* Suggest поиска */
.header-search{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  max-width:520px;
}
.search-suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.1);max-height:360px;overflow-y:auto;z-index:30}
.search-suggest a{display:block;padding:8px 14px;text-decoration:none;color:#111;font-size:14px;border-bottom:1px solid #f4f4f5}
.search-suggest a:last-child{border-bottom:0}
.search-suggest a:hover{background:#f8fafc}
.search-suggest .ss-price{float:right;color:#71717a;font-size:13px}
.theme-compact .search-suggest{top:calc(100% + 2px)}

@media(max-width:720px){
  .qty-wrap input{width:44px}
  .gallery-prev,.gallery-next{width:34px;height:34px;font-size:18px}
}

/* Кнопка маркетплейса */
.btn-marketplace {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:#111; border:2px solid #111;
  margin-top:8px; font-weight:600;
}
.btn-marketplace:hover { background:#f4f4f5; }
.btn-marketplace-primary {
  background:#111; color:#fff; border-color:#111;
}
.btn-marketplace-primary:hover { background:#333; }
.theme-compact .btn-marketplace { border-radius:4px; }

/* ============ Кнопки в карточке товара — аккуратные ============ */
.add-form-lg {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 20px 0 12px;
  flex-wrap: wrap;
}
.add-form-lg .qty-wrap { height: 48px; }
.add-form-lg .qty-wrap button { width: 40px; height: 46px; font-size: 18px; }
.add-form-lg .qty-wrap input { width: 64px; font-size: 16px; }

.add-form-lg .btn {
  height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.add-form-lg .btn:hover { background: #1e293b; }
.add-form-lg .btn:active { transform: translateY(1px); }

/* Кнопка маркетплейса */
.btn-marketplace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  margin: 4px 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #18181b;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.btn-marketplace:hover {
  border-color: #a1a1aa;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Брендовая синяя для Ozon — переопределяем */
.btn-marketplace-primary {
  background: #005bff;
  color: #fff;
  border-color: #005bff;
}
.btn-marketplace-primary:hover {
  background: #0047cc;
  border-color: #0047cc;
  box-shadow: 0 4px 14px rgba(0,91,255,.3);
}

/* Мобильные */
@media (max-width: 720px) {
  .add-form-lg { gap: 8px; }
  .add-form-lg .btn { width: 100%; padding: 0 20px; }
  .add-form-lg .qty-wrap { flex: 0 0 auto; }
  .btn-marketplace { width: 100%; }
}

/* Компактная кнопка «Купить на маркетплейсе» в карточках списка */
.btn-mp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #005bff;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn-mp:hover { background: #0047cc; color: #fff; }

/* ============ Карточка товара: единый стиль и прижатые кнопки ============ */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.product-card .card-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card .add-form { margin: 0; }

/* ============ Единые кнопки в карточках ============ */
.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-card:active { transform: translateY(1px); }

.btn-card-primary { background: #0f172a; color: #fff; }
.btn-card-primary:hover { background: #1e293b; color: #fff; }

/* Цвета маркетплейсов */
.mp-ozon     { background: #005bff; color: #fff; }
.mp-ozon:hover { background: #0047cc; color: #fff; }

.mp-wb       { background: #cb11ab; color: #fff; }
.mp-wb:hover { background: #a50e8a; color: #fff; }

.mp-default  { background: #fff; color: #18181b; border: 1px solid #d4d4d8; }
.mp-default:hover { background: #fafafa; color: #18181b; border-color: #a1a1aa; }

/* Большая кнопка в карточке товара */
.btn-card-lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
  width: auto;
  align-self: flex-start;
  margin-top: 4px;
}

/* Мобильные */
@media (max-width: 720px) {
  .btn-card-lg { width: 100%; align-self: stretch; }
}

.product-card{display:flex;flex-direction:column;min-height:100%}
.product-card .card-actions{margin-top:auto;padding-top:10px;display:flex;flex-direction:column;gap:6px}
.product-card .add-form{margin:0}

.btn-card{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:42px;padding:8px 14px;border:0;border-radius:6px;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;text-align:center;cursor:pointer;transition:background .15s,box-shadow .15s,transform .05s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btn-card:active{transform:translateY(1px)}
.btn-card-primary{background:#0f172a;color:#fff}
.btn-card-primary:hover{background:#1e293b;color:#fff}

.mp-ozon{background:#005bff;color:#fff}
.mp-ozon:hover{background:#0047cc;color:#fff}
.mp-wb{background:#cb11ab;color:#fff}
.mp-wb:hover{background:#a50e8a;color:#fff}
.mp-default{background:#fff;color:#18181b;border:1px solid #d4d4d8}
.mp-default:hover{background:#fafafa;color:#18181b;border-color:#a1a1aa}

.btn-card-lg{min-height:48px;padding:0 24px;font-size:15px;width:auto;align-self:flex-start;margin-top:4px}

@media(max-width:720px){.btn-card-lg{width:100%;align-self:stretch}}

/* ============ Бейдж скидки на изображении (правый нижний угол) ============ */
.product-image {
  position: relative;
}
.badge-discount {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #d32f2f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(211, 47, 47, .35);
  pointer-events: none;
  z-index: 2;
}
.badge-discount-lg {
  font-size: 14px;
  padding: 7px 12px;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(211, 47, 47, .4);
}
/* .gallery-main в карточке товара — тоже position: relative */
.gallery-main { position: relative; }

/* Карта на контактах */
.contacts-map{margin-top:40px}
.map-embed{position:relative;width:100%;aspect-ratio:16/9;min-height:320px;background:#eef0f3;border-radius:8px;overflow:hidden}
.map-embed iframe,.map-embed > div{width:100%!important;height:100%!important;border:0;display:block}
@media(max-width:720px){.map-embed{aspect-ratio:4/3;min-height:260px}}

/* Копирайт студии — мелкий и еле заметный */
.site-copyright {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .2px;
}
.site-copyright a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
}
.site-copyright a:hover {
  color: rgba(255,255,255,.75);
}

/* Для темы compact — внутри строки */
.site-copyright-inline {
  color: rgba(255,255,255,.3);
  font-size: 11px;
}
.site-copyright-inline a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
}
.site-copyright-inline a:hover {
  color: rgba(255,255,255,.7);
}

/* Красивый выбор доставки и оплаты */
.choice-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.choice-item{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px;padding:12px 14px;border:2px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .15s;background:#fff}
.choice-item:hover{border-color:#cbd5e1;background:#fafafa}
.choice-item:has(input:checked){border-color:#0f172a;background:#f8fafc;box-shadow:0 2px 8px rgba(15,23,42,.08)}
.choice-item input[type="radio"]{margin-top:4px;accent-color:#0f172a;width:18px;height:18px;flex:0 0 auto}
.choice-icon{font-size:22px;line-height:1;flex:0 0 auto;margin-top:2px}
.choice-body{display:flex;flex-direction:column;gap:2px;flex:1}
.choice-name{font-weight:600;font-size:15px;color:#111}
.choice-desc{font-size:13px;color:#6b7280}
.choice-hint{font-size:12px;color:#16a34a;font-weight:500;margin-top:2px}

.totals{display:flex;flex-direction:column;gap:6px}
.totals-final{margin-top:8px;padding-top:10px;border-top:1px solid #e5e7eb;font-size:17px}
.btn-lg{padding:14px 32px;font-size:16px;min-height:52px}

/* Блог: сетка с сайдбаром */
.blog-layout{display:grid;grid-template-columns:240px 1fr;gap:32px;margin-top:20px}
.blog-sidebar{background:#fff;padding:18px;border-radius:10px;border:1px solid #e5e7eb;align-self:start;position:sticky;top:20px}
.blog-sidebar h3{margin:0 0 12px;font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:#6b7280}
.blog-cats{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}
.blog-cats a{display:flex;justify-content:space-between;padding:8px 10px;font-size:14px;text-decoration:none;color:#374151;border-radius:6px;transition:background .1s}
.blog-cats a:hover{background:#f3f4f6}
.blog-cats a.active{background:#0f172a;color:#fff}
.blog-cats small{color:#9ca3af;font-size:12px}
.blog-cats a.active small{color:rgba(255,255,255,.6)}
@media(max-width:820px){.blog-layout{grid-template-columns:1fr}.blog-sidebar{position:static}}

/* Логотип-картинка */
.logo-img, .c-logo img { display: block; max-height: 40px; width: auto; }
.c-header .c-logo img { max-height: 34px; }

/* Авторизация: табы и вспомогательные элементы */
.auth-tabs {
  display: flex; gap: 4px; margin: 16px 0 20px;
  border-bottom: 1px solid #e5e7eb; padding-bottom: 0;
}
.auth-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  text-decoration: none; color: #6b7280; background: transparent;
  border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  transition: color .15s, border-color .15s; margin-bottom: -1px;
}
.auth-tab:hover { color: #111; }
.auth-tab.active { color: #111; border-bottom-color: #111; }

.auth-hint {
  color: #6b7280; font-size: 14px; line-height: 1.6;
  margin: 0 0 16px; padding: 12px 14px;
  background: #f9fafb; border-left: 3px solid #3b82f6; border-radius: 6px;
}

.btn-outline {
  background: transparent; color: #111; border: 2px solid #111;
}
.btn-outline:hover { background: #111; color: #fff; }

.btn-link {
  background: transparent; border: 0; color: #1976d2;
  text-decoration: underline; cursor: pointer; font: inherit; padding: 0;
}
.btn-link:hover { color: #0d47a1; }

.auth-alt {
  margin-top: 28px; padding: 20px;
  background: #f9fafb; border-radius: 10px; text-align: center;
}
.auth-alt p { margin: 0 0 12px; color: #374151; }
.auth-alt .btn { display: inline-block; }
.auth-alt-note { font-size: 13px; color: #6b7280; margin-top: 12px !important; }

/* Подписка */
.subscribe-wrap { max-width: 520px; margin: 20px auto; background: #fff; padding: 28px; border-radius: 12px; border: 1px solid #e5e7eb; }
.subscribe-desc { color: #6b7280; line-height: 1.6; margin: 0 0 20px; }
.subscribe-result { text-align: center; padding: 20px; }
.subscribe-icon {
  display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: 30px;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.subscribe-result h2 { margin: 0 0 12px; }
.subscribe-result p { color: #4b5563; margin: 6px 0; }

/* Виджет подписки в футере */
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px; margin-bottom: 24px;
}
.footer-grid p { margin: 6px 0; font-size: 14px; }
.footer-grid a { color: #9cf; }

.footer-subscribe {
  display: flex; gap: 4px; margin-top: 8px;
  background: rgba(255,255,255,.08); border-radius: 6px; padding: 4px;
}
.footer-subscribe input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #fff; padding: 6px 10px; font: inherit; font-size: 13px;
}
.footer-subscribe input::placeholder { color: rgba(255,255,255,.4); }
.footer-subscribe button {
  background: #3b82f6; border: 0; color: #fff; padding: 6px 12px;
  border-radius: 4px; cursor: pointer; font-size: 14px;
}
.footer-subscribe button:hover { background: #2563eb; }

/* ============ Оформление заказа ============ */
.checkout-page { max-width: 1200px; margin: 0 auto; }
.checkout-page h1 { margin-bottom: 24px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: flex-start;
}

.checkout-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.checkout-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 24px;
}
.checkout-block h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #4b5563; font-weight: 500; }
.checkout-fields input {
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: #111;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.checkout-fields input:focus {
  outline: 0;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.checkout-block label:not(.choice-item) { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #4b5563; font-weight: 500; }
.checkout-block textarea {
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  resize: vertical;
  min-height: 80px;
}
.checkout-block textarea:focus {
  outline: 0;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.checkout-empty { color: #dc2626; font-size: 14px; }

/* Способы доставки/оплаты — компактнее */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
  margin: 0;
}
.choice-item:hover { border-color: #cbd5e1; background: #fafafa; }
.choice-item:has(input:checked) {
  border-color: #0f172a;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.choice-item input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: #0f172a;
  flex: 0 0 auto;
  margin: 0;
}
.choice-icon { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.choice-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.choice-name { font-weight: 600; font-size: 14.5px; color: #111; }
.choice-desc { font-size: 13px; color: #6b7280; }
.choice-hint { font-size: 12.5px; color: #16a34a; font-weight: 500; }

/* Сводка заказа */
.checkout-side { position: sticky; top: 20px; }
.checkout-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.checkout-summary h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.summary-items {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.summary-items li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  font-size: 13.5px;
  color: #374151;
  align-items: baseline;
}
.summary-name { font-weight: 500; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-qty { color: #9ca3af; font-size: 13px; }
.summary-price { font-weight: 600; white-space: nowrap; }

.summary-rows {
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #4b5563;
}
.summary-row-total {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 6px;
  font-size: 17px;
  color: #111;
}
.summary-row-total strong { font-size: 20px; }

#delivery-fee-cell { text-align: right; }

.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px 20px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-checkout:hover { background: #1e293b; }
.btn-checkout:active { transform: translateY(1px); }

.checkout-agree {
  font-size: 12px;
  color: #9ca3af;
  margin: 14px 0 0;
  line-height: 1.5;
  text-align: center;
}
.checkout-agree a { color: #6b7280; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 20px; }
  .checkout-side { position: static; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-block { padding: 18px; }
}

/* ============ Корзина ============ */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.cart-empty-icon { font-size: 56px; margin-bottom: 16px; }
.cart-empty h2 { margin: 0 0 8px; }
.cart-empty p { color: #6b7280; margin: 0 0 20px; }

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}
.cart-main { min-width: 0; }

.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto auto 36px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: box-shadow .15s, border-color .15s;
}
.cart-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.cart-item-image {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-image-placeholder {
  font-size: 11px;
  color: #9ca3af;
}

.cart-item-info { min-width: 0; }
.cart-item-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
.cart-item-name:hover { color: #1976d2; }
.cart-item-price-unit {
  font-size: 13px;
  color: #6b7280;
}

.cart-item-qty { flex-shrink: 0; }
.cart-item-qty .qty-wrap { margin: 0; }

.cart-item-sum {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cart-actions { margin-top: 16px; }
.cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
}
.cart-continue:hover { color: #1976d2; }

.cart-side { position: sticky; top: 20px; }
.cart-summary {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.cart-summary h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-side { position: static; }
  .cart-item {
    grid-template-columns: 72px 1fr 36px;
    grid-template-areas:
      "img info remove"
      "img qty sum";
    gap: 10px 12px;
    padding: 12px;
    align-items: start;
  }
  .cart-item-image { grid-area: img; width: 72px; height: 72px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; justify-self: start; }
  .cart-item-sum { grid-area: sum; min-width: 0; text-align: right; }
  .cart-item-remove { grid-area: remove; justify-self: end; width: 32px; height: 32px; }
}

/* ============ Страница успешного заказа ============ */
.success-page { max-width: 720px; margin: 0 auto; }

.success-hero { text-align: center; padding: 40px 20px 32px; }
.success-icon {
  width: 76px; height: 76px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: #16a34a; color: #fff; border-radius: 50%;
  font-size: 40px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(22, 163, 74, .25);
  animation: success-pop .35s ease-out;
}
@keyframes success-pop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success-hero h1 { margin: 0 0 8px; font-size: 28px; }
.success-subtitle { color: #6b7280; font-size: 15px; margin: 0; }
.success-subtitle strong { color: #111; }

.success-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.success-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 26px;
  background: #f9fafb;
  border-bottom: 1px solid #eef0f3;
  gap: 16px;
}
.success-label { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.success-number { font-size: 17px; font-weight: 700; color: #111; font-family: ui-monospace, Menlo, monospace; }
.success-card-right { text-align: right; }
.success-total { font-size: 22px; font-weight: 700; color: #111; }

.success-items {
  list-style: none;
  padding: 8px 26px;
  margin: 0;
}
.success-items li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  align-items: baseline;
}
.success-items li:last-child { border-bottom: 0; }
.success-item-name { color: #111; font-weight: 500; }
.success-item-qty { color: #9ca3af; font-size: 13px; }
.success-item-price { font-weight: 600; white-space: nowrap; color: #111; }

.success-rows {
  padding: 16px 26px 20px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
}
.success-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #4b5563;
  padding: 5px 0;
}
.success-row-total {
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  color: #111;
  font-weight: 700;
}
.success-row-total span:last-child { font-size: 20px; }

.success-info {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e40af;
}
.success-info-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.success-info strong { display: block; margin-bottom: 4px; color: #1e3a8a; }
.success-info p { margin: 0; color: #3b5ba5; font-size: 13px; }

.success-coupon {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.success-coupon-badge {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(180, 83, 9, .12);
}
.success-coupon-percent { display: block; font-size: 26px; font-weight: 800; color: #b45309; line-height: 1; }
.success-coupon-badge span:last-child { font-size: 12px; color: #92400e; text-transform: uppercase; letter-spacing: .5px; }
.success-coupon-body h3 { margin: 0 0 4px; font-size: 16px; color: #78350f; }
.success-coupon-body p { margin: 0 0 10px; font-size: 13.5px; color: #92400e; }
.success-coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 4px 4px 4px 14px;
  border-radius: 8px;
  border: 1px dashed #b45309;
}
.success-coupon-code code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  color: #78350f;
  letter-spacing: 1.5px;
}
.success-coupon-copy {
  background: #b45309;
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.success-coupon-copy:hover { background: #92400e; }

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.success-actions .btn { min-width: 180px; text-align: center; }
.success-actions .btn-outline { background: #fff; color: #111; border: 2px solid #0f172a; }
.success-actions .btn-outline:hover { background: #0f172a; color: #fff; }

.success-recommendations { margin-top: 20px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.success-recommendations h2 { text-align: center; margin: 0 0 24px; }

@media (max-width: 700px) {
  .success-card-header { flex-direction: column; }
  .success-card-right { text-align: left; }
  .success-coupon { flex-direction: column; text-align: center; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
}

/* Исправление .btn-outline — везде, где встречается */
.btn.btn-outline,
.success-actions .btn.btn-outline {
  background: #fff !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  font-weight: 600;
}
.btn.btn-outline:hover,
.success-actions .btn.btn-outline:hover {
  background: #0f172a !important;
  color: #fff !important;
}

/* ============ Хлебные крошки ============ */
.breadcrumbs {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.5;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: #d1d5db;
  margin-left: 2px;
}
.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumbs a:hover {
  color: #1976d2;
}
.breadcrumbs span[aria-current="page"] {
  color: #111;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40ch;
}

@media (max-width: 700px) {
  .breadcrumbs { font-size: 12.5px; }
  .breadcrumbs span[aria-current="page"] { max-width: 25ch; }
}

/* ============ Личный кабинет ============ */
.account-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.account-empty-icon { font-size: 56px; margin-bottom: 16px; }
.account-empty h2 { margin: 0 0 8px; }
.account-empty p { color: #6b7280; margin: 0 0 20px; }

.account-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.account-order {
  display: block;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.account-order:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transform: translateY(-1px);
}
.account-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.account-order-number {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  font-family: ui-monospace, Menlo, monospace;
  margin-bottom: 4px;
}
.account-order-date { font-size: 12.5px; color: #6b7280; }
.account-order-items {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.7;
}
.account-order-more { color: #9ca3af; font-size: 12.5px; }
.account-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  font-size: 13.5px;
  color: #6b7280;
}
.account-order-footer strong { font-size: 17px; color: #111; }

.account-order-detail { display: flex; flex-direction: column; gap: 20px; }
.account-order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.account-detail-rows { display: flex; flex-direction: column; gap: 10px; }
.account-detail-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.account-detail-rows > div:last-child { border-bottom: 0; }
.account-detail-rows span { color: #6b7280; }
.account-detail-rows strong { color: #111; text-align: right; }

@media (max-width: 700px) {
  .account-order-header { flex-direction: column; }
  .account-detail-rows > div { flex-direction: column; gap: 2px; }
  .account-detail-rows strong { text-align: left; }
}

/* ============ Личный кабинет ============ */
.cabinet { max-width: 1100px; margin: 0 auto; }
.cabinet h1 { font-size: 26px; margin: 0 0 8px; }
.cabinet-subtitle { color: #6b7280; margin: 0 0 24px; font-size: 15px; }
.cabinet-subtitle strong { color: #111; }

/* Карточка уровня */
.cabinet-level-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border: 2px solid var(--level-color, #b45309);
  border-radius: 14px;
  margin-bottom: 14px;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.cabinet-level-left { display: flex; gap: 16px; align-items: center; }
.cabinet-level-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--level-color, #b45309); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex: 0 0 auto;
}
.cabinet-level-name { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 2px; }
.cabinet-level-desc { font-size: 13.5px; color: #6b7280; }
.cabinet-level-right, .cabinet-level-points { text-align: right; }
.cabinet-level-points strong { display: block; font-size: 28px; font-weight: 800; color: #111; line-height: 1; }
.cabinet-level-points span { font-size: 12.5px; color: #6b7280; }

/* Прогресс-бар */
.cabinet-progress {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.cabinet-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #4b5563;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.cabinet-progress-info strong { color: #111; }
.cabinet-progress-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.cabinet-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 4px;
  transition: width .4s ease;
  min-width: 8px;
}
.cabinet-progress-max {
  text-align: center;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* Мини-статистика */
.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.cabinet-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.cabinet-stat-num { font-size: 20px; font-weight: 700; color: #111; }
.cabinet-stat-label { font-size: 12.5px; color: #6b7280; margin-top: 2px; }

/* Табы */
.cabinet-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.cabinet-tab {
  padding: 10px 16px;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.cabinet-tab:hover { color: #111; }
.cabinet-tab.active { color: #111; font-weight: 600; border-bottom-color: #0f172a; }

/* Блоки */
.cabinet-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.cabinet-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 22px;
}
.cabinet-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 12px;
}
.cabinet-block-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.cabinet-link {
  font-size: 13.5px;
  color: #1976d2;
  text-decoration: none;
}
.cabinet-link:hover { text-decoration: underline; }
.cabinet-empty { color: #9ca3af; font-size: 14px; margin: 0; }
.cabinet-empty a { color: #1976d2; }
.cabinet-hint { color: #6b7280; font-size: 13px; margin: 0 0 14px; line-height: 1.5; }

/* Заказы */
.cabinet-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cabinet-order-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.cabinet-order-link:hover { background: #f4f6f9; border-color: #cbd5e1; }
.cabinet-order-number { font-size: 14px; font-weight: 700; color: #111; font-family: ui-monospace, Menlo, monospace; }
.cabinet-order-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.cabinet-order-total { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; }

/* Новости */
.cabinet-news { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cabinet-news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
  transition: all .15s;
}
.cabinet-news li:last-child .cabinet-news-link { border-bottom: 0; padding-bottom: 0; }
.cabinet-news-link:hover .cabinet-news-title { color: #1976d2; }
.cabinet-news-title { font-size: 14.5px; font-weight: 600; color: #111; margin-bottom: 4px; line-height: 1.35; }
.cabinet-news-excerpt { font-size: 13px; color: #6b7280; margin-bottom: 6px; line-height: 1.5; }
.cabinet-news-meta { font-size: 12px; color: #9ca3af; }

/* Адрес */
.cabinet-address p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #374151; }
.cabinet-address-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cabinet-address-empty p { margin: 0; font-size: 14px; color: #6b7280; }

/* Форма профиля */
.cabinet-form { display: flex; flex-direction: column; gap: 16px; }
.cabinet-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.cabinet-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}
.cabinet-form input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #111;
}
.cabinet-form input:focus { outline: 0; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.cabinet-form input:disabled { background: #f9fafb; color: #9ca3af; }
.cabinet-form-actions { display: flex; gap: 10px; }

/* Уровни */
.levels-list { display: flex; flex-direction: column; gap: 10px; }
.level-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  transition: all .15s;
}
.level-item.reached {
  background: linear-gradient(90deg, rgba(22,163,74,.04), #fafbfc);
  border-color: #bbf7d0;
}
.level-item-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--level-color, #b45309); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.level-item-name { font-weight: 600; font-size: 14.5px; color: #111; }
.level-item-req { font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.level-item-bonus {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: #4b5563;
  text-align: right;
  font-weight: 500;
}
.level-item-check { color: #16a34a; font-size: 20px; font-weight: 700; }

/* Таблица баллов */
.cabinet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cabinet-table th {
  text-align: left;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.cabinet-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.cabinet-points-cell { text-align: right; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.cabinet-points-cell.plus { color: #16a34a; }
.cabinet-points-cell.minus { color: #dc2626; }

/* Плашка баллов в шапке */
.loyalty-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 5px 12px !important;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f !important;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .15s;
  margin-left: 8px !important;
}
.loyalty-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(180,83,9,.25); }
.loyalty-badge strong { color: #78350f; font-weight: 700; }
.loyalty-badge-sm { padding: 3px 10px !important; font-size: 12.5px !important; }

@media (max-width: 800px) {
  .cabinet-grid { grid-template-columns: 1fr; }
  .cabinet-form-row { grid-template-columns: 1fr; }
  .cabinet-level-card { flex-direction: column; align-items: flex-start; }
  .cabinet-level-points { text-align: left; }
  .cabinet-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cabinet-stat-num { font-size: 17px; }
  .cabinet-tabs { overflow-x: auto; }
  .cabinet-tab { white-space: nowrap; }
}

/* ============ Аватар пользователя ============ */
.user-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.user-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

/* Аватар в кабинете */
.cabinet-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.cabinet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}
.cabinet-avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.cabinet-welcome .cabinet-subtitle { margin: 0; }

/* Загрузка аватара в профиле */
.avatar-uploader {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: #fafbfc;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  margin-bottom: 20px;
}
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px dashed #cbd5e1;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initial {
  font-size: 32px;
  font-weight: 700;
  color: #9ca3af;
}
.avatar-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.avatar-actions .upload-label-inline {
  background: #eff6ff;
  color: #1e40af;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
  transition: background .15s;
}
.avatar-actions .upload-label-inline:hover { background: #dbeafe; }
.avatar-hint { margin: 0; color: #9ca3af; font-size: 12.5px; }

/* Блок оплаты баллами */
.summary-loyalty {
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px 0 !important;
  border-top: 1px dashed #e5e7eb;
  border-bottom: 1px dashed #e5e7eb;
}
.loyalty-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  font-size: 14px !important;
  color: #111 !important;
  font-weight: 500 !important;
  padding: 0 !important;
}
.loyalty-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
  margin: 0;
}
.loyalty-balance {
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 400;
}
.loyalty-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: #fffbeb;
  border-radius: 8px;
  border: 1px solid #fef3c7;
}
.loyalty-slider input[type="range"] {
  width: 100%;
  accent-color: #f59e0b;
}
.loyalty-slider-info {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #92400e;
}
.loyalty-discount { font-weight: 700; color: #16a34a; }
.loyalty-max-hint {
  font-size: 12px;
  color: #a16207;
}

/* Плашка сохранённого адреса в checkout */
.checkout-saved-hint {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 18px;
}
.checkout-saved-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.checkout-saved-body { flex: 1; min-width: 0; }
.checkout-saved-body strong { display: block; color: #14532d; font-size: 14px; margin-bottom: 4px; }
.checkout-saved-body p { margin: 0 0 10px; font-size: 13px; color: #166534; line-height: 1.5; }
.checkout-saved-body .btn { background: #16a34a; }
.checkout-saved-body .btn:hover { background: #15803d; }
.checkout-saved-body .btn:disabled { background: #86efac; cursor: default; }

/* ============ Отзывы ============ */
.product-reviews {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.product-reviews h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 16px;
  font-weight: 400;
}
.reviews-rating strong { color: #111; font-size: 15px; }
.reviews-rating small { color: #6b7280; font-weight: 400; }

.reviews-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; }
.review-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 20px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.review-author { display: flex; gap: 12px; align-items: center; }
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-author strong { display: block; font-size: 14.5px; color: #111; }
.review-verified {
  display: inline-block;
  font-size: 11px;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}
.review-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.review-stars { color: #f59e0b; font-size: 17px; letter-spacing: 2px; }
.review-text { margin: 0; color: #374151; line-height: 1.6; font-size: 14.5px; }

.reviews-empty {
  background: #f9fafb;
  padding: 24px;
  border-radius: 10px;
  text-align: center;
  color: #6b7280;
  margin: 0 0 32px;
}

.review-form-wrap {
  background: #fafbfc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
}
.review-form-wrap h3 { margin: 0 0 16px; font-size: 17px; }
.review-login-hint { color: #6b7280; margin: 0; }
.review-login-hint a { color: #1976d2; }

.review-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.review-form-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.review-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}
.review-form input[type="text"],
.review-form textarea {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  color: #111;
  background: #fff;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: 0;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.review-form textarea { resize: vertical; min-height: 90px; }
.review-form .btn { align-self: flex-start; }
.review-hint { font-size: 12.5px; color: #9ca3af; margin: 0; }

.review-rating-input { display: flex; flex-direction: row-reverse; gap: 2px; }
.review-rating-input input { display: none; }
.review-rating-input label {
  font-size: 26px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
  padding: 0;
}
.review-rating-input input:checked ~ label,
.review-rating-input label:hover,
.review-rating-input label:hover ~ label { color: #f59e0b; }

.review-success {
  background: #f0fdf4;
  color: #166534;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  font-size: 14px;
}
.review-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  font-size: 14px;
}

@media (max-width: 700px) {
  .review-form-row { grid-template-columns: 1fr; }
}

/* Блок «Заказ в подарок» */
.checkout-gift-block {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
}
.checkout-gift-toggle {
  display: flex !important;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 6px 0;
  flex-direction: row !important;
}
.checkout-gift-toggle input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #d97706;
  margin: 0;
  flex-shrink: 0;
}
.checkout-gift-toggle-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-gift-toggle-title {
  font-size: 16px;
  font-weight: 700;
  color: #78350f;
}
.checkout-gift-toggle-desc {
  font-size: 13px;
  color: #92400e;
  line-height: 1.4;
}
.checkout-gift-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #fcd34d;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-gift-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #78350f;
  font-weight: 500;
}
.checkout-gift-fields input,
.checkout-gift-fields textarea {
  padding: 11px 14px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: #111;
  transition: border-color .15s, box-shadow .15s;
}
.checkout-gift-fields input:focus,
.checkout-gift-fields textarea:focus {
  outline: 0;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.checkout-gift-fields textarea { resize: vertical; min-height: 70px; }
.checkout-fields-full { grid-column: 1 / -1; }
.checkout-gift-hint {
  margin: 0;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
}

/* ============ Блок «Подарок» — аккуратный ============ */
.checkout-gift-block {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 20px 24px;
}

/* Верхняя плашка с переключателем */
.checkout-gift-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.checkout-gift-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
  border: 1px solid #fcd34d;
}

.checkout-gift-toggle-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.checkout-gift-toggle-title {
  font-size: 15px;
  font-weight: 700;
  color: #78350f;
  line-height: 1.3;
}
.checkout-gift-toggle-desc {
  font-size: 13px;
  color: #a16207;
  line-height: 1.4;
}

/* Переключатель справа */
.checkout-gift-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.checkout-gift-switch input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  cursor: pointer;
  z-index: 2;
}
.checkout-gift-switch-track {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 13px;
  transition: background .2s;
  pointer-events: none;
}
.checkout-gift-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}
.checkout-gift-switch input:checked + .checkout-gift-switch-track {
  background: #d97706;
}
.checkout-gift-switch input:checked + .checkout-gift-switch-track::after {
  transform: translateX(18px);
}

/* Поля подарка */
.checkout-gift-fields {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #fcd34d;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checkout-gift-fields label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: #78350f !important;
  font-weight: 500 !important;
}
.checkout-gift-fields label > span {
  display: block;
}
.checkout-gift-fields label em {
  color: #dc2626;
  font-style: normal;
  font-weight: 600;
}
.checkout-gift-fields label em.muted {
  color: #a16207;
  font-weight: 400;
}
.checkout-gift-fields input[type="text"],
.checkout-gift-fields input[type="tel"],
.checkout-gift-fields textarea {
  padding: 11px 14px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  background: #fff;
  color: #111;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.checkout-gift-fields input:focus,
.checkout-gift-fields textarea:focus {
  outline: 0;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.checkout-gift-fields textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.checkout-gift-full {
  grid-column: 1 / -1;
}
.checkout-gift-hint {
  margin: 0;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(255,255,255,.6);
  border-radius: 8px;
  border: 1px solid rgba(252,211,77,.5);
}

@media (max-width: 700px) {
  .checkout-gift-grid { grid-template-columns: 1fr; }
  .checkout-gift-icon { width: 38px; height: 38px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════
   ГЛАВНАЯ — редизайн
   ═══════════════════════════════════════════════ */
.home-page { display: flex; flex-direction: column; gap: 40px; }

/* ──────── Баннеры ──────── */
.home-banners { display: flex; flex-direction: column; gap: 16px; }

.home-banner {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  padding: 56px 56px;
  min-height: 260px;
  transition: transform .2s;
}
.home-banner.layout-hero  { min-height: 320px; padding: 64px 60px; }
.home-banner.layout-strip { min-height: 160px; padding: 32px 40px; }
.home-banner.layout-card  { min-height: 200px; padding: 40px 40px; border-radius: 12px; }

.home-banner.pos-left   .home-banner-content { align-items: flex-start; text-align: left; margin-right: auto; }
.home-banner.pos-center .home-banner-content { align-items: center; text-align: center; margin: 0 auto; }
.home-banner.pos-right  .home-banner-content { align-items: flex-end; text-align: right; margin-left: auto; }

.home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}
.home-banner-title {
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.5px;
  color: inherit;
}
.home-banner.layout-strip .home-banner-title { font-size: 24px; }
.home-banner.layout-card  .home-banner-title { font-size: 26px; }

.home-banner-sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  opacity: .92;
}
.home-banner-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: .85;
  max-width: 520px;
}
.home-banner-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 30px;
  background: rgba(255,255,255,.15);
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  align-self: inherit;
}
.home-banner-cta:hover {
  background: rgba(255,255,255,.95);
  color: #0f172a;
  transform: translateY(-1px);
}

/* Пустой hero */
.home-hero-empty {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  border-radius: 16px;
}
.home-hero-empty h1 { font-size: 36px; margin: 0 0 10px; }
.home-hero-empty p  { color: #6b7280; margin: 0 0 20px; }

/* ──────── Преимущества ──────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.home-feature {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all .15s;
}
.home-feature:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transform: translateY(-2px);
}
.home-feature-icon {
  width: 46px; height: 46px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  font-size: 22px;
}
.home-feature-body { display: flex; flex-direction: column; gap: 2px; }
.home-feature-body strong { font-size: 14.5px; color: #111; }
.home-feature-body span   { font-size: 12.5px; color: #6b7280; }

/* ──────── Секции ──────── */
.home-section { display: flex; flex-direction: column; gap: 20px; }
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.home-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.home-section-link {
  font-size: 14px;
  color: #1976d2;
  text-decoration: none;
  white-space: nowrap;
}
.home-section-link:hover { text-decoration: underline; }

/* ──────── Категории ──────── */
.home-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.home-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all .15s;
}
.home-category:hover {
  border-color: #0f172a;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.home-category-icon { font-size: 28px; margin-bottom: 4px; }
.home-category-name { font-size: 14.5px; font-weight: 600; color: #111; }
.home-category-count { font-size: 12px; color: #9ca3af; }

/* ──────── Блог ──────── */
.home-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.home-blog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.home-blog-card:hover {
  border-color: #0f172a;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.home-blog-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.3; }
.home-blog-excerpt { font-size: 13.5px; color: #6b7280; line-height: 1.5; }
.home-blog-meta { font-size: 12px; color: #9ca3af; margin-top: auto; }

/* ──────── О магазине ──────── */
.home-about {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  padding: 40px 48px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 20px;
}
.home-about h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
}
.home-about p {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.65;
  max-width: 620px;
}
.home-about-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.home-about-actions .btn-outline {
  background: #fff;
  color: #0f172a;
  border: 2px solid #0f172a;
}
.home-about-actions .btn-outline:hover {
  background: #0f172a;
  color: #fff;
}
.home-about-visual {
  display: flex;
  justify-content: center;
}
.home-about-badge {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(15,23,42,.2);
}
.home-about-badge-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.home-about-badge-label {
  font-size: 14px;
  margin-top: 6px;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ──────── Адаптив ──────── */
@media (max-width: 900px) {
  .home-page { gap: 32px; }
  .home-banner { padding: 36px 28px; min-height: 220px; }
  .home-banner.layout-hero { padding: 44px 28px; min-height: 240px; }
  .home-banner-title { font-size: 26px !important; }
  .home-banner-sub { font-size: 15px; }
  .home-banner-cta { padding: 11px 22px; font-size: 14px; }

  .home-about { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .home-about h2 { font-size: 22px; }
  .home-about-badge { width: 140px; height: 140px; }
  .home-about-badge-num { font-size: 32px; }

  .home-section-head h2 { font-size: 20px; }
  .home-features { grid-template-columns: 1fr 1fr; }
  .home-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .home-features { grid-template-columns: 1fr; }
  .home-feature { padding: 14px 16px; }
  .home-feature-icon { width: 40px; height: 40px; font-size: 18px; }
}

/* Адаптивная ширина — на очень больших экранах контейнер растёт плавно */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
}
@media (min-width: 1900px) {
  .container { max-width: 1400px; }
}

/* Отступы не уменьшаются на мобильных */
@media (max-width: 700px) {
  .container { padding: 0 14px; }
}

/* ─── Шапка: приоритеты ─── */
.site-header { padding: 14px 0; }
.header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  flex-wrap: nowrap !important;
}
.logo { flex: 0 0 auto !important; }
.header-search { flex: 1 1 auto !important; min-width: 0 !important; max-width: 480px !important; }
.nav { flex: 0 0 auto !important; flex-wrap: nowrap !important; gap: 14px !important; }

/* Компактнее на средних экранах */
@media (max-width: 1280px) {
  .nav { gap: 12px !important; }
  .nav a { font-size: 13.5px !important; }
  .header-search { max-width: 360px !important; }
}
@media (max-width: 1100px) {
  .header-search { max-width: 260px !important; }
  .nav a { font-size: 13px !important; }
}

/* ─── Главная: убираем лишние отступы, контент во всю ширину ─── */
main.container {
  padding: 28px 20px !important;
}
.home-page { gap: 48px; }
.home-banners { margin-top: 0; }

/* ═══ ГАРАНТИРОВАННАЯ ШИРИНА КОНТЕЙНЕРА ═══ */
.container,
main.container,
.site-header .container,
.site-footer .container {
  max-width: 1400px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.theme-compact .container {
  max-width: 1240px !important;
}

@media (min-width: 1600px) {
  .container, main.container { max-width: 1500px !important; }
}
@media (min-width: 1900px) {
  .container, main.container { max-width: 1650px !important; }
}

@media (max-width: 700px) {
  .container, main.container { padding: 0 14px !important; }
}

/* ═══════════════════════════════════════════════
   КАРТОЧКА ТОВАРА — единый вид везде
   ═══════════════════════════════════════════════ */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  gap: 10px;
  height: 100%;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.product-card .product-image {
  display: block;
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.product-card .product-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.product-card-title {
  display: block;
  text-decoration: none;
  color: #111;
}
.product-card-title h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title:hover h3 { color: #1976d2; }

.product-card .price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  min-height: 22px;
}
.product-card .price { font-size: 17px; font-weight: 700; }
.product-card .new   { font-size: 17px; font-weight: 700; color: #d32f2f; }
.product-card .old   { font-size: 13.5px; color: #9ca3af; }

.product-card .card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card .add-form { margin: 0; }

.no-stock {
  font-size: 12.5px;
  color: #9ca3af;
  text-align: center;
  padding: 8px 0;
  display: block;
}

/* ═══════════════════════════════════════════════
   МОБИЛЬНАЯ ШАПКА: гамбургер + меню
   ═══════════════════════════════════════════════ */

/* Кнопки-иконки в шапке */
.header-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  transition: background .15s;
}
.header-icon-btn:hover { background: rgba(255,255,255,.15); }
.header-icon-count {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.user-avatar-sm {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.user-avatar-initial {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Правый блок шапки */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Гамбургер — скрыт на десктопе */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: background .15s;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  padding-top: 76px;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mobile-menu-inner {
  background: #0f172a;
  padding: 16px 20px 24px;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  animation: slideDown .2s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mobile-search {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 4px;
}
.mobile-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,.45); }
.mobile-search button {
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  border-radius: 8px;
  transition: background .12s;
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); }
.mobile-nav .mobile-loyalty {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  font-weight: 600;
}
.mobile-nav .mobile-loyalty strong { color: #78350f; }
.mobile-nav .mobile-nav-danger { color: #fca5a5; }

/* ─── Адаптив ─── */

/* Планшеты */
@media (max-width: 1100px) {
  .header-inner .nav { gap: 10px; }
  .header-inner .nav a { font-size: 13px; }
}

/* Мобильные — включаем гамбургер */
@media (max-width: 900px) {
  .site-header { padding: 10px 0; }
  .header-inner {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 0 14px !important;
  }
  .header-search { display: none !important; }
  .nav { display: none !important; }
  .hamburger { display: flex; }
  .logo { font-size: 17px; }
  .logo-img { max-height: 30px; }
  .header-right { gap: 6px; }
}

/* Убираем скролл body, когда меню открыто */
body:has(.mobile-menu:not([hidden])) { overflow: hidden; }

/* ═══════════════════════════════════════════════
   МОБИЛЬНАЯ ГЛАВНАЯ — компактные блоки
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Отступы главной */
  main.container { padding: 20px 14px !important; }
  .home-page { gap: 28px; }

  /* Баннер компактнее */
  .home-banner,
  .home-banner.layout-hero {
    padding: 28px 24px !important;
    min-height: 200px !important;
    border-radius: 12px !important;
  }
  .home-banner-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
  }
  .home-banner-sub {
    font-size: 14px !important;
    margin-top: 2px;
  }
  .home-banner-body {
    font-size: 13.5px !important;
  }
  .home-banner-cta {
    padding: 11px 22px !important;
    font-size: 14px !important;
    margin-top: 4px;
  }

  /* Преимущества — сетка 2×2 */
  .home-features {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .home-feature {
    padding: 14px 12px !important;
    gap: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left;
  }
  .home-feature-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }
  .home-feature-body strong { font-size: 13.5px !important; }
  .home-feature-body span   { font-size: 11.5px !important; line-height: 1.4; }

  /* Заголовки секций */
  .home-section-head h2 { font-size: 19px !important; }
  .home-section-link { font-size: 13px !important; }
  .home-section { gap: 14px; }

  /* Категории — 2 колонки */
  .home-categories {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .home-category {
    padding: 16px 12px !important;
  }
  .home-category-icon { font-size: 24px !important; }
  .home-category-name { font-size: 13.5px !important; }
  .home-category-count { font-size: 11px !important; }

  /* Сетка товаров — 2 колонки на телефоне */
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .product-card {
    padding: 10px !important;
    gap: 6px !important;
    border-radius: 10px !important;
  }
  .product-card-title h3 {
    font-size: 13px !important;
    min-height: 2.6em;
  }
  .product-card .price { font-size: 15px !important; }
  .product-card .new   { font-size: 15px !important; }
  .product-card .old   { font-size: 12px !important; }
  .btn-card {
    min-height: 36px !important;
    font-size: 12.5px !important;
    padding: 6px 10px !important;
  }
  .badge-discount {
    font-size: 11px !important;
    padding: 4px 7px !important;
    right: 6px !important;
    bottom: 6px !important;
  }

  /* О магазине — колонкой */
  .home-about {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
    gap: 20px !important;
  }
  .home-about h2 { font-size: 20px !important; }
  .home-about p { font-size: 14px !important; }
  .home-about-visual { justify-content: flex-start !important; }
  .home-about-badge {
    width: 120px !important;
    height: 120px !important;
  }
  .home-about-badge-num { font-size: 28px !important; }
  .home-about-badge-label { font-size: 11px !important; letter-spacing: 1px; }

  /* Блог — колонкой */
  .home-blog {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .home-blog-card { padding: 14px 16px !important; }
  .home-blog-title { font-size: 14.5px !important; }

  /* Футер — компактнее */
  .site-footer { padding: 24px 0 12px !important; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .site-copyright { font-size: 11px !important; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .home-banner { padding: 22px 18px !important; min-height: 170px !important; }
  .home-banner-title { font-size: 19px !important; }
  .home-banner-sub { font-size: 13px !important; }
  .home-features { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr !important; }
  .home-categories { grid-template-columns: 1fr 1fr !important; }
}

/* Compact тема — правый блок и гамбургер */
.c-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .c-header-inner {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 0 14px !important;
  }
  .c-search { display: none !important; }
  .c-nav { display: none !important; }
  .c-header .hamburger { display: flex !important; }
  .c-logo { font-size: 16px; }
}

/* ═══════════════════════════════════════════════
   МОБИЛЬНАЯ ГЛАВНАЯ — плотная вёрстка v2
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Шапка компактнее */
  .site-header { padding: 8px 0 !important; }
  .header-inner { min-height: 48px; }
  .logo { font-size: 16px !important; }
  .hamburger { width: 36px; height: 36px; }
  .header-icon-btn { padding: 5px 8px !important; font-size: 14px !important; }

  /* Отступы главной */
  main.container { padding: 16px 12px !important; }
  .home-page { gap: 22px !important; }

  /* Баннер ещё компактнее */
  .home-banner,
  .home-banner.layout-hero {
    padding: 22px 20px !important;
    min-height: 150px !important;
    border-radius: 10px !important;
  }
  .home-banner-title {
    font-size: 19px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
  }
  .home-banner-sub {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }
  .home-banner-cta {
    padding: 9px 18px !important;
    font-size: 13px !important;
    margin-top: 10px !important;
    border-radius: 8px !important;
  }

  /* Преимущества — «слайдер» в строку с горизонтальной прокруткой */
  .home-features {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 6px !important;
    margin: 0 -12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .home-features::-webkit-scrollbar { display: none; }
  .home-feature {
    flex: 0 0 200px !important;
    scroll-snap-align: start;
    padding: 12px 14px !important;
    gap: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    border-radius: 10px !important;
  }
  .home-feature-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 17px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
  }
  .home-feature-body strong { font-size: 13px !important; }
  .home-feature-body span   { font-size: 11px !important; }

  /* Заголовки секций компактнее */
  .home-section { gap: 12px !important; }
  .home-section-head h2 { font-size: 18px !important; }
  .home-section-link { font-size: 12.5px !important; }

  /* Категории — горизонтальная прокрутка */
  .home-categories {
    display: flex !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 6px !important;
    margin: 0 -12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .home-categories::-webkit-scrollbar { display: none; }
  .home-category {
    flex: 0 0 130px !important;
    scroll-snap-align: start;
    padding: 14px 12px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }
  .home-category-icon { font-size: 24px !important; margin-bottom: 2px !important; }
  .home-category-name { font-size: 13px !important; }
  .home-category-count { font-size: 11px !important; }

  /* Товары — 2 колонки */
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .product-card {
    padding: 10px !important;
    gap: 6px !important;
    border-radius: 10px !important;
  }
  .product-card .product-image { border-radius: 8px !important; }
  .product-card-title h3 {
    font-size: 12.5px !important;
    min-height: 2.6em;
    line-height: 1.3;
  }
  .product-card .price { font-size: 14.5px !important; }
  .product-card .new   { font-size: 14.5px !important; }
  .product-card .old   { font-size: 11.5px !important; }
  .btn-card {
    min-height: 34px !important;
    font-size: 12px !important;
    padding: 5px 8px !important;
    border-radius: 7px !important;
  }
  .badge-discount {
    font-size: 10.5px !important;
    padding: 3px 6px !important;
    right: 5px !important;
    bottom: 5px !important;
    border-radius: 5px !important;
  }

  /* О магазине — компактнее */
  .home-about {
    padding: 20px 18px !important;
    gap: 16px !important;
    border-radius: 12px !important;
  }
  .home-about h2 { font-size: 18px !important; margin-bottom: 8px !important; }
  .home-about p { font-size: 13px !important; line-height: 1.55 !important; margin-bottom: 8px !important; }
  .home-about-actions { gap: 8px !important; margin-top: 4px !important; }
  .home-about-actions .btn { padding: 9px 18px !important; font-size: 13px !important; }
  .home-about-badge {
    width: 100px !important;
    height: 100px !important;
  }
  .home-about-badge-num { font-size: 24px !important; letter-spacing: -1px !important; }
  .home-about-badge-label { font-size: 10px !important; letter-spacing: 1px !important; margin-top: 3px !important; }

  /* Блог — карточки компактнее */
  .home-blog { gap: 8px !important; }
  .home-blog-card {
    padding: 12px 14px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .home-blog-title { font-size: 14px !important; }
  .home-blog-excerpt { font-size: 12.5px !important; }
  .home-blog-meta { font-size: 11.5px !important; }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .home-banner { padding: 18px 16px !important; }
  .home-banner-title { font-size: 17px !important; }
  .home-feature { flex: 0 0 175px !important; }
  .home-category { flex: 0 0 115px !important; }
}

/* Правый блок шапки прижат к краю */
.header-right,
.c-header-right {
  margin-left: auto !important;
}

/* Поиск в шапке — сжимается, но не растягивается */
.header-search,
.c-search {
  flex: 0 1 auto !important;
}

/* В compact теме логотип + поиск + правый блок — раскладка */
.c-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

/* На мобильных — прижимаем правый блок */
@media (max-width: 900px) {
  .header-right,
  .c-header-right {
    margin-left: auto !important;
  }
}

/* ═══════════════════════════════════════════════
   ШАПКА: правильный порядок и прижатие
   ═══════════════════════════════════════════════ */

/* Правый блок — flex, прижат к краю */
.header-right,
.c-header-right {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Навигация — перед иконками */
.nav, .c-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
}

.nav a, .c-nav a {
  white-space: nowrap;
}

/* Иконка корзины и профиль — теперь после навигации */
.header-icon-btn {
  order: 10;
}
.hamburger {
  order: 20;
}
.nav, .c-nav {
  order: 0;
}

/* Мобильная версия */
@media (max-width: 900px) {
  .header-search, .c-search { display: none !important; }
  .nav, .c-nav { display: none !important; }

  .header-right,
  .c-header-right {
    margin-left: auto !important;
    gap: 6px !important;
  }
  .header-icon-btn { order: 0; }
  .hamburger { order: 10; display: flex !important; }
}

/* ═══════════════════════════════════════════════
   МОБИЛЬНОЕ МЕНЮ — улучшенное
   ═══════════════════════════════════════════════ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 100;
  padding-top: 62px;
}
.mobile-menu-inner {
  background: #0f172a;
  padding: 16px 16px 32px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  color: #e2e8f0;
}

/* Шапка меню */
.mm-head {
  display: none; /* логотип уже в шапке сайта */
}

/* Поиск */
.mm-search {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}
.mm-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.mm-search input::placeholder { color: rgba(255,255,255,.45); }
.mm-search button {
  background: rgba(255,255,255,.12);
  border: 0;
  color: #fff;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Карточка лояльности */
.mm-loyalty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #78350f;
  box-shadow: 0 4px 14px rgba(217,119,6,.2);
}
.mm-loyalty-icon {
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.mm-loyalty-body { flex: 1; min-width: 0; }
.mm-loyalty-name { font-size: 12.5px; font-weight: 500; opacity: .85; }
.mm-loyalty-points { font-size: 16px; font-weight: 700; margin-top: 2px; }
.mm-loyalty-points strong { font-size: 20px; }
.mm-loyalty-arrow { font-size: 20px; opacity: .6; }

/* Главная кнопка — в каталог */
.mm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(59,130,246,.35);
  transition: transform .1s;
}
.mm-cta:active { transform: scale(.98); }
.mm-cta-icon { font-size: 22px; }

/* Секции */
.mm-section {
  margin-bottom: 20px;
}
.mm-section-title {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Пункты меню */
.mm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #e2e8f0;
  transition: background .15s;
  margin-bottom: 4px;
}
.mm-item:hover, .mm-item:active {
  background: rgba(255,255,255,.08);
}
.mm-item-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  overflow: hidden;
}
.mm-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mm-item-text strong {
  font-size: 14.5px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-item-text small {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}
.mm-item-admin {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
}
.mm-item-admin .mm-item-text strong { color: #93c5fd; }

/* Аватар в меню */
.mm-avatar {
  width: 100%; height: 100%; object-fit: cover;
}
.mm-avatar-initial {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

/* Низ меню — вход/выход */
.mm-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-logout,
.mm-register {
  display: block;
  padding: 14px;
  text-align: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
}
.mm-logout { color: #fca5a5; }
.mm-login {
  display: block;
  padding: 15px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 10px;
}

@media (max-width: 500px) {
  .mm-item-icon { width: 32px; height: 32px; font-size: 15px; }
  .mm-item-text strong { font-size: 14px; }
  .mm-cta { padding: 14px 18px; font-size: 15px; }
}

/* Корзина в мобильном меню — с акцентом */
.mm-item-cart {
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  margin-bottom: 6px;
}
.mm-item-cart .mm-item-text strong {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mm-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #3b82f6;
  color: #fff;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.mm-item-icon-cart {
  background: rgba(59,130,246,.15) !important;
}

/* ═══════════════════════════════════════════════
   ИЗБРАННОЕ — сердечко
   ═══════════════════════════════════════════════ */

.product-image-wrap {
  position: relative;
}

/* Кнопка на карточке */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  z-index: 5;
}
.fav-btn:hover {
  background: #fff;
  color: #ef4444;
  transform: scale(1.08);
}
.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: all .2s;
}
.fav-btn.active {
  background: #ef4444;
  color: #fff;
}
.fav-btn.active svg {
  fill: #fff;
  stroke: #fff;
}
.fav-btn.active:hover {
  background: #dc2626;
}
.fav-btn.loading {
  opacity: .6;
  pointer-events: none;
}

/* Анимация «pop» при добавлении */
@keyframes favPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.fav-btn.pop { animation: favPop .4s ease; }

/* Кнопка на странице товара */
.fav-btn-lg {
  position: static;
  width: auto;
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #e5e7eb;
  color: #4b5563;
  gap: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  margin-left: 12px;
}
.fav-btn-lg svg {
  width: 20px;
  height: 20px;
}
.fav-btn-lg:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fff;
  transform: none;
}
.fav-btn-lg.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.fav-btn-lg.active:hover {
  background: #dc2626;
  border-color: #dc2626;
}
.fav-btn-text {
  display: inline;
}

/* Мобильные */
@media (max-width: 700px) {
  .fav-btn {
    width: 30px;
    height: 30px;
    top: 6px;
    right: 6px;
  }
  .fav-btn svg { width: 16px; height: 16px; }

  .fav-btn-lg {
    width: 100%;
    margin: 12px 0 0;
    justify-content: center;
  }
}

/* Кнопка «В избранное» на странице товара — жёсткие правила */
.product-info .fav-btn-lg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  position: static !important;
  margin: 12px 0 0 0 !important;
  padding: 0 20px !important;
  height: 46px !important;
  min-width: 180px;
  border-radius: 10px !important;
  background: #fff !important;
  border: 2px solid #e5e7eb !important;
  color: #4b5563 !important;
  font: inherit !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all .15s !important;
}
.product-info .fav-btn-lg:hover {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  background: #fff !important;
}
.product-info .fav-btn-lg.active {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.product-info .fav-btn-lg.active:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}
.product-info .fav-btn-lg svg {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
}
.product-info .fav-btn-lg.active svg {
  fill: #fff !important;
  stroke: #fff !important;
}

@media (max-width: 700px) {
  .product-info .fav-btn-lg {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 10px !important;
  }
}

/* ═══════════════════════════════════════════════
   СТРАНИЦА ТОВАРА v2
   ═══════════════════════════════════════════════ */
.product-page-v2 { max-width: 1400px; }

.product-main-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: flex-start;
}

/* ─── Галерея ─── */
.product-gallery-v2 {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main-v2 {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main-v2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 20px;
  box-sizing: border-box;
}
.gallery-main-v2.no-image {
  cursor: default;
}
.no-image-content {
  text-align: center;
  color: #9ca3af;
}
.no-image-content span { font-size: 48px; display: block; margin-bottom: 10px; }
.no-image-content p { margin: 0; font-size: 14px; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: all .15s;
  z-index: 3;
}
.gallery-arrow:hover {
  background: #111;
  color: #fff;
}
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }
.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  z-index: 3;
}

.gallery-thumbs-v2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumbs-v2 img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s;
  background: #f5f5f5;
}
.gallery-thumbs-v2 img:hover { border-color: #cbd5e1; }
.gallery-thumbs-v2 img.active { border-color: #0f172a; }

/* ─── Инфо ─── */
.product-info-v2 { display: flex; flex-direction: column; gap: 16px; }

.product-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
  align-self: flex-start;
}
.product-brand-line:hover { color: #111; }
.product-brand-logo { width: 26px; height: 26px; object-fit: contain; }

.product-title-v2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: #111;
}

.product-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.product-sku {
  font-size: 12.5px;
  color: #9ca3af;
  margin-left: 4px;
}

/* Цена */
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.price-old {
  font-size: 18px;
  color: #9ca3af;
  text-decoration: line-through;
}
.price-new {
  font-size: 32px;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: -1px;
}
.price-main {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  letter-spacing: -1px;
}
.price-save {
  background: #fee2e2;
  color: #dc2626;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Наличие */
.product-stock-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.stock-in { color: #16a34a; font-weight: 600; }
.stock-count { color: #6b7280; font-size: 13.5px; }
.stock-out { color: #dc2626; font-weight: 600; }

/* Кнопки */
.product-actions-v2 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.add-form-v2 {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 320px;
}

.qty-wrap-v2 {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  height: 52px;
  overflow: hidden;
}
.qty-wrap-v2 button {
  background: transparent;
  border: 0;
  width: 42px;
  height: 100%;
  font-size: 20px;
  cursor: pointer;
  color: #4b5563;
  transition: background .15s;
}
.qty-wrap-v2 button:hover { background: #f3f4f6; }
.qty-wrap-v2 input {
  width: 56px;
  border: 0;
  text-align: center;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: 0;
  -moz-appearance: textfield;
}
.qty-wrap-v2 input::-webkit-outer-spin-button,
.qty-wrap-v2 input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-cart-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 0 28px;
  height: 52px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-cart-v2:hover { background: #1e293b; }

.fav-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 52px;
  background: #fff;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.fav-btn-inline svg { width: 20px; height: 20px; transition: all .2s; }
.fav-btn-inline:hover { border-color: #ef4444; color: #ef4444; }
.fav-btn-inline.active {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.fav-btn-inline.active svg { fill: #fff; stroke: #fff; }

/* Маркетплейсы */
.product-mp-block {
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #eef0f3;
}
.product-mp-title {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}
.product-mp-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.product-mp-btn:hover {
  border-color: var(--mp-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.product-mp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Характеристики */
.product-specs {
  background: #f9fafb;
  border-radius: 10px;
  padding: 4px 16px;
}
.product-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
  font-size: 14px;
}
.product-spec-row:last-child { border-bottom: 0; }
.product-spec-row span { color: #6b7280; }
.product-spec-row strong { color: #111; font-weight: 600; text-align: right; }
.product-spec-row a { color: #1976d2; text-decoration: none; }
.product-spec-row a:hover { text-decoration: underline; }

/* Опции */
.product-options-v2 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.opt-group-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.opt-group-v2:last-child { margin-bottom: 0; }
.opt-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-right: 4px;
}
.opt-chip {
  display: inline-block;
  padding: 5px 14px;
  background: #f3f4f6;
  border: 1px solid transparent;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13.5px;
  transition: all .15s;
}
.opt-chip:hover {
  background: #e5e7eb;
  border-color: #cbd5e1;
}

/* Секции */
.product-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.product-section h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.product-section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.product-section-head h2 {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}
.reviews-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
}
.reviews-stars-inline { color: #f59e0b; font-size: 16px; }
.reviews-rating-inline strong { color: #111; font-size: 16px; }
.reviews-rating-inline small { color: #6b7280; font-size: 13px; }

.product-description-v2 {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  max-width: 800px;
}
.product-description-v2 p { margin: 0 0 12px; }

/* Отзывы */
.reviews-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-item-v2 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 22px;
}
.review-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.review-author-v2 { display: flex; gap: 12px; align-items: center; }
.review-avatar-v2 {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.review-author-v2 strong { display: block; font-size: 14.5px; color: #111; }
.review-verified-v2 {
  display: inline-block;
  font-size: 11px;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}
.review-date-v2 { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.review-stars-v2 { color: #f59e0b; font-size: 17px; letter-spacing: 2px; }
.review-text-v2 { margin: 0; color: #374151; line-height: 1.6; font-size: 14.5px; }

.reviews-empty-v2 {
  background: #f9fafb;
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
  margin-bottom: 32px;
}
.reviews-empty-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.reviews-empty-v2 p { margin: 0; font-size: 14.5px; }

.review-form-wrap-v2 {
  background: #fafbfc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
}
.review-form-wrap-v2 h3 { margin: 0 0 16px; font-size: 17px; }
.review-form-v2 { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.review-form-row-v2 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}
.review-form-v2 label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}
.review-form-v2 input[type="text"],
.review-form-v2 textarea {
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  background: #fff;
}
.review-form-v2 input[type="text"]:focus,
.review-form-v2 textarea:focus {
  outline: 0;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.review-form-v2 textarea { resize: vertical; min-height: 100px; }
.review-form-v2 .btn { align-self: flex-start; }
.review-hint { font-size: 12.5px; color: #9ca3af; margin: 0; }

.review-rating-input { display: flex; flex-direction: row-reverse; gap: 2px; }
.review-rating-input input { display: none; }
.review-rating-input label {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
  padding: 0;
  margin: 0;
}
.review-rating-input input:checked ~ label,
.review-rating-input label:hover,
.review-rating-input label:hover ~ label { color: #f59e0b; }

.review-success {
  background: #f0fdf4;
  color: #166534;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  font-size: 14px;
}
.review-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  font-size: 14px;
}

/* Адаптив */
@media (max-width: 900px) {
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-gallery-v2 { position: static; }
  .product-title-v2 { font-size: 22px; }
  .price-new, .price-main { font-size: 26px; }
  .price-old { font-size: 16px; }
  .add-form-v2 { min-width: 0; flex-wrap: wrap; }
  .btn-cart-v2 { width: 100%; }
  .fav-btn-inline { width: 100%; margin-top: 4px; }
  .gallery-thumbs-v2 img { width: 60px; height: 60px; }
  .review-form-row-v2 { grid-template-columns: 1fr; }
  .product-spec-row { font-size: 13.5px; }
}

/* Кнопка Избранное в шапке — SVG */
.header-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.header-icon-btn {
  gap: 5px;
}

/* Бейдж избранного в мобильном меню */
.mm-item-fav .mm-cart-count {
  background: #ef4444 !important;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  border-radius: 10px;
}

/* Заголовок страницы избранного */
.favorites-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.favorites-count { font-size: 14.5px; color: #4b5563; }
.favorites-count strong { color: #111; font-size: 16px; }

/* Бейдж в табе */
.cabinet-tab-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.cabinet-tab.active .cabinet-tab-badge {
  background: rgba(255,255,255,.9);
  color: #0f172a;
}

/* Счётчик избранного — скрываем, если 0 */
.header-icon-count[hidden],
.mm-cart-count[hidden] {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   СТРАНИЦЫ ВХОДА
   ═══════════════════════════════════════════════ */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 320px);
  gap: 32px;
  max-width: 900px;
  margin: 40px auto;
  align-items: flex-start;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(59,130,246,.25);
}
.auth-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: #111;
}
.auth-sub {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.auth-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 20px;
  border-left: 3px solid #dc2626;
}

/* Основной блок — код на email */
.auth-block-primary {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 22px 24px;
  position: relative;
  margin-bottom: 20px;
}
.auth-block-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-block-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1e3a8a;
}
.auth-block-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1e40af;
}
.auth-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1e40af;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.auth-btn-primary:hover {
  background: #1e3a8a;
  color: #fff;
}
.auth-btn-secondary {
  display: block;
  width: 100%;
  padding: 13px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.auth-btn-secondary:hover { background: #1e293b; }

/* Разделитель */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: #e5e7eb;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
}

/* Вторичный блок — пароль */
.auth-block-secondary {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.auth-block-secondary summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .15s;
}
.auth-block-secondary summary::-webkit-details-marker { display: none; }
.auth-block-secondary summary:hover { background: #f9fafb; }
.auth-block-secondary summary::after {
  content: '▸';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 12px;
  transition: transform .2s;
}
.auth-block-secondary { position: relative; }
.auth-block-secondary[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.auth-block-secondary .auth-block-title {
  color: #111;
  font-size: 15px;
  margin: 0;
}
.auth-block-hint {
  font-size: 12.5px;
  color: #6b7280;
}
.auth-block-secondary .auth-form {
  padding: 0 20px 20px;
}

/* Форма */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.auth-form input {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: 0;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* Код подтверждения */
.auth-code-input {
  font-size: 26px !important;
  letter-spacing: 10px !important;
  text-align: center !important;
  font-family: ui-monospace, Menlo, monospace !important;
  padding: 16px !important;
}

/* Инфо-блок */
.auth-info {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #14532d;
}
.auth-info-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.auth-info strong { display: block; margin-bottom: 2px; color: #14532d; }
.auth-info p { margin: 0; color: #166534; }

/* Письмо отправлено */
.auth-email-sent {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  margin-bottom: 22px;
  align-items: center;
}
.auth-email-sent-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.auth-email-sent strong { display: block; color: #1e3a8a; margin-bottom: 2px; font-size: 15px; }
.auth-email-sent p { margin: 0; font-size: 13px; color: #1e40af; line-height: 1.5; }

/* Ссылки */
.auth-hint {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}
.auth-hint a { color: #3b82f6; text-decoration: none; }
.auth-hint a:hover { text-decoration: underline; }

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}
.auth-footer-link a {
  color: #6b7280;
  font-size: 13.5px;
  text-decoration: none;
}
.auth-footer-link a:hover { color: #111; }

.auth-resend {
  text-align: center;
  font-size: 13.5px;
  color: #6b7280;
  margin-top: 14px;
}
.auth-link-btn {
  background: transparent;
  border: 0;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  padding: 0;
}

/* Правая колонка */
.auth-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
}
.auth-side-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255,255,255,.5);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.auth-side-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff, #dbeafe);
  border-radius: 10px;
  font-size: 18px;
}
.auth-side-item strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 2px;
}
.auth-side-item p {
  margin: 0;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}

/* Адаптив */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px auto;
  }
  .auth-side { padding-top: 0; }
  .auth-card { padding: 28px 22px; }
  .auth-header h1 { font-size: 20px; }
  .auth-icon { width: 54px; height: 54px; font-size: 26px; }
}

/* Бейдж «заблокированные баллы» в шапке */
.pending-badge {
  display: inline-block;
  background: #fbbf24;
  color: #78350f;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 2px;
  line-height: 1.4;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════
   КЛУБ / РЕФЕРАЛЬНАЯ ПРОГРАММА
   ═══════════════════════════════════════════════ */
.club-subtitle {
  color: #6b7280;
  margin: -8px 0 24px;
  font-size: 15px;
}

.club-disabled {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.club-disabled-icon { font-size: 56px; margin-bottom: 12px; }
.club-disabled h3 { margin: 0 0 8px; }
.club-disabled p { color: #6b7280; margin: 0; }

/* ─── Статистика ─── */
.club-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.club-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.club-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  letter-spacing: -1px;
  line-height: 1;
}
.club-stat-label {
  font-size: 13px;
  color: #6b7280;
  margin-top: 6px;
}
.club-stat-accent {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fcd34d;
}
.club-stat-accent .club-stat-num { color: #b45309; }
.club-stat-accent .club-stat-label { color: #92400e; }

/* ─── Как работает ─── */
.club-howto {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.club-howto h2 { margin: 0 0 20px; font-size: 18px; }

.club-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.club-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.club-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.club-step-body strong { display: block; font-size: 14.5px; color: #111; margin-bottom: 2px; }
.club-step-body p { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.5; }
.club-step-body b { color: #b45309; }

/* ─── Реферальная ссылка ─── */
.club-reflink-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.club-reflink-block h2 { margin: 0 0 6px; font-size: 18px; }
.club-reflink-desc { margin: 0 0 16px; color: #6b7280; font-size: 14px; }

.club-reflink-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.club-reflink-box input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-family: ui-monospace, Menlo, monospace;
  background: #f9fafb;
  color: #111;
}
.club-reflink-box input:focus {
  outline: 0;
  border-color: #3b82f6;
}

.club-copy-btn {
  padding: 0 24px;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  min-width: 140px;
}
.club-copy-btn:hover { background: #1e293b; }
.club-copy-btn-ok { background: #16a34a !important; }

.club-share-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.club-share-label {
  font-size: 13px;
  color: #6b7280;
  margin-right: 4px;
}
.club-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s;
}
.club-share-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.club-share-tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }
.club-share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.club-share-copy:hover { background: #f3f4f6; }

/* ─── Приглашённые ─── */
.club-invited-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.club-invited-block h2 { margin: 0 0 16px; font-size: 18px; }

.club-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}
.club-empty-icon { font-size: 48px; margin-bottom: 10px; }
.club-empty p { margin: 0; font-size: 14.5px; }

/* ─── Бонусы ─── */
.club-bonuses-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
}
.club-bonuses-block h2 { margin: 0 0 16px; font-size: 18px; }

.club-bonuses-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-bonuses-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}
.club-bonuses-list li:last-child { border-bottom: 0; }
.club-bonuses-list strong { display: block; font-size: 14.5px; color: #111; font-weight: 500; }
.club-bonus-date { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.club-bonus-points {
  font-size: 16px;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

/* ─── Адаптив ─── */
@media (max-width: 700px) {
  .club-stats { grid-template-columns: 1fr; }
  .club-steps { grid-template-columns: 1fr; }
  .club-reflink-box { flex-direction: column; }
  .club-copy-btn { padding: 12px; width: 100%; }
  .club-share-row { gap: 6px; }
  .club-share-label { display: none; }
  .club-share-btn { flex: 1; justify-content: center; font-size: 12.5px; padding: 8px 10px; }
  .club-howto, .club-reflink-block, .club-invited-block, .club-bonuses-block {
    padding: 20px 18px;
  }
  .club-stat-num { font-size: 26px; }
}

/* Глобальный тултип на витрине */
.global-info-tip {
  position: absolute;
  z-index: 99999;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 340px;
  min-width: 200px;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
  pointer-events: none;
  animation: tipFadeIn .15s ease-out;
}
@keyframes tipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.global-info-tip.global-info-tip-top::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #0f172a;
}
.global-info-tip.global-info-tip-bottom::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #0f172a;
}
@media (max-width: 600px) {
  .global-info-tip {
    max-width: calc(100vw - 24px);
    min-width: 0;
    font-size: 13.5px;
    padding: 14px 18px;
    line-height: 1.6;
  }
}

/* ═══════════════════════════════════════════════
   ИНФО-КРУЖОК и ТУЛТИП (чистая версия)
   ═══════════════════════════════════════════════ */
.global-info-tip {
  position: fixed;
  z-index: 99999;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 340px;
  min-width: 200px;
  text-align: left;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  animation: infoTipFade .15s ease-out;
}
@keyframes infoTipFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .global-info-tip {
    max-width: calc(100vw - 20px);
    min-width: 0;
    font-size: 13.5px;
    padding: 14px 18px;
    line-height: 1.6;
  }
}

/* Компактный кружок на витрине */
/* То же на витрине */
/* То же на витрине */


/* ═══════════════════════════════════════════════
   ИНФО-КРУЖОК и ТУЛТИП — ЕДИНОЕ ПРАВИЛО
   ═══════════════════════════════════════════════ */
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
  position: relative;
  padding: 0;
  box-sizing: border-box;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.info-tip::before {
  content: 'i';
  display: block;
  font: inherit;
  line-height: 1;
  margin-top: -1px;
}
.info-tip:hover { background: #4338ca; transform: scale(1.12); }
.info-tip:active { transform: scale(0.95); }
.info-tip::after { display: none !important; }

/* Глобальный тултип (fixed, без стрелки) */
.global-info-tip {
  position: fixed;
  z-index: 99999;
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 340px;
  min-width: 200px;
  text-align: left;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  animation: infoTipFade .15s ease-out;
}
@keyframes infoTipFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .global-info-tip {
    max-width: calc(100vw - 20px);
    min-width: 0;
    font-size: 13.5px;
    padding: 14px 18px;
  }
}

/* ═══════════════════════════════════════════════
   PWA — баннеры установки
   ═══════════════════════════════════════════════ */

.pwa-install-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #0f172a;
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  z-index: 9999;
  transform: translateY(140%);
  transition: transform .3s ease;
}
.pwa-install-banner.show { transform: translateY(0); }

.pwa-install-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.pwa-install-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-install-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}
.pwa-install-text span {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}
.pwa-install-btn {
  padding: 10px 18px;
  background: #3b82f6;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.pwa-install-btn:hover { background: #2563eb; }
.pwa-install-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.pwa-install-close:hover { color: #fff; }

/* iOS баннер (подсказка) */
.pwa-ios-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .3s ease;
  box-shadow: 0 -8px 30px rgba(0,0,0,.3);
}
.pwa-ios-hint.show { transform: translateY(0); }
.pwa-ios-hint-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pwa-ios-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pwa-ios-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}
.pwa-ios-text strong {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 2px;
}
.pwa-ios-text b { color: #fff; }
.pwa-ios-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pwa-install-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
    gap: 10px;
  }
  .pwa-install-text strong { font-size: 13.5px; }
  .pwa-install-text span { font-size: 11.5px; }
  .pwa-install-btn { padding: 8px 14px; font-size: 12.5px; }
}
