/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1f2937;
  background: #f6f8fb;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

:root {
  /* Палитра в индустриальном стиле — красный + тёмно-серо-синий */
  --primary: #c41e3a;
  --primary-dark: #8e1428;
  --primary-soft: #fde7eb;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f9;
  --white: #ffffff;
  --topbar-bg: #1c1f24;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(20, 30, 50, .06);
}

/* ===== Buttons ===== */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== Header ===== */
.site-header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }

.topbar { background: var(--topbar-bg); color: #cbd5e1; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #cbd5e1; margin-right: 18px; }
.topbar a:hover { color: #fff; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.cart-link:hover { background: #2d3138; color: #fff; }
.cart-link .cart-icon { font-size: 16px; }
.cart-badge {
  background: var(--primary);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.lang-switch { display: flex; gap: 4px; }
.lang-switch button {
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch button.active { background: var(--primary); color: #fff; }
.lang-switch button:hover:not(.active) { background: #1e293b; color: #fff; }

.header-main { display: flex; align-items: center; gap: 24px; padding: 18px 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo-text strong { display: block; font-size: 22px; color: var(--primary); line-height: 1.1; letter-spacing: .5px; }
.logo-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.search { flex: 1; display: flex; max-width: 560px; }
.search input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--primary); }
.search button {
  padding: 11px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
}
.search button:hover { background: var(--primary-dark); }

.main-nav { background: var(--primary); border-top: 1px solid var(--primary-dark); }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav li a {
  display: block;
  padding: 13px 20px;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  transition: background .15s;
}
.main-nav li a:hover { background: var(--primary-dark); }

/* ===== Hero ===== */
.hero { padding: 24px 0; }
.hero-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.slide.active { opacity: 1; }
.slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, .72) 0%, rgba(15, 23, 42, .25) 60%, transparent 100%);
}
.slide-text { position: relative; padding: 0 60px; max-width: 620px; color: #fff; }
.slide-text h1 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.slide-text p { font-size: 17px; margin-bottom: 22px; opacity: .92; }

.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #cbd5e1; cursor: pointer;
  transition: background .15s, transform .15s;
}
.slider-dots span.active { background: var(--primary); transform: scale(1.2); }

/* ===== Sections ===== */
.section-title {
  font-size: 26px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== Advantages ===== */
.advantages { padding: 30px 0; }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adv {
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.adv:hover { transform: translateY(-3px); }
.adv-icon { font-size: 32px; margin-bottom: 10px; }
.adv h3 { font-size: 16px; margin-bottom: 6px; }
.adv p { color: var(--muted); font-size: 13px; }

/* ===== Categories ===== */
.categories { padding: 40px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  padding: 26px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  border: 1.5px solid transparent;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.cat-card .icon { font-size: 36px; margin-bottom: 10px; }
.cat-card h3 { font-size: 15px; color: var(--text); margin-bottom: 4px; }
.cat-card span { font-size: 12px; color: var(--muted); }

/* ===== Products ===== */
.featured { padding: 40px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .045);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 24, 58, .22);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .1);
}
.product-img {
  height: 150px;
  padding: 12px;
  background: linear-gradient(145deg, #fbfdff, #f3f6fa);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
}
.product-card:hover .product-img img { transform: scale(1.045); }
.product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.pcard-badges {
  position: absolute; top: 9px; left: 9px;
  display: flex; gap: 4px; flex-wrap: wrap; z-index: 2;
  pointer-events: none;
}
.pcard-badge {
  color: #fff;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.product-cat {
  overflow: hidden;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .45px;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-name {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-name:hover { color: var(--primary); }
.product-price { margin-top: auto; margin-bottom: 10px; color: var(--primary); font-size: 18px; font-weight: 750; letter-spacing: -.25px; }
.product-actions { display: flex; gap: 6px; }
.product-actions .btn-outline { flex: 1; padding: 8px 9px; border-width: 1px; border-radius: 9px; font-size: 12px; }
.product-actions .btn-cart {
  width: 38px;
  padding: 8px;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  cursor: pointer;
  border: 0;
  transition: background .15s;
}
.product-actions .btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }

[data-cart-add] { position: relative; }
.btn-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #f59e0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ===== Cart page ===== */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
  gap: 24px;
  margin: 30px 0;
}
.cart-items, .cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cart-items { padding: 4px 20px; }
.cart-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto minmax(110px, auto) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-img {
  width: 104px; height: 104px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-img img { max-width: 92%; max-height: 92%; object-fit: contain; }
.cart-item-name { font-weight: 700; font-size: 16px; line-height: 1.4; }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cart-item-meta span { padding: 3px 8px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-size: 11px; }
.cart-item-price { margin-top: 8px; color: var(--muted); font-size: 13px; }
.cart-item-price strong { color: var(--text); }
.cart-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cart-qty button {
  width: 30px; height: 30px;
  background: #f9fafb;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border: 0;
}
.cart-qty button:hover { background: #e5e7eb; }
.cart-qty input {
  width: 44px;
  text-align: center;
  border: 0;
  outline: none;
  font-weight: 600;
  font-size: 14px;
}
.cart-item-sum { min-width: 110px; color: var(--primary); font-size: 17px; font-weight: 800; text-align: right; }
.cart-item-remove {
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.cart-item-remove:hover { color: #dc2626; background: #fef2f2; }

.cart-summary { padding: 22px; align-self: start; position: sticky; top: 110px; }
.cart-summary h2 { font-size: 18px; margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--muted); }
.cart-summary-note { margin: 10px 0; padding: 12px; border-radius: 8px; color: var(--muted); background: #f8fafc; font-size: 13px; line-height: 1.65; }
.cart-summary-total {
  border-top: 2px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.cart-summary-total span:last-child { color: var(--primary); }
.cart-empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.cart-empty .icon { font-size: 64px; margin-bottom: 14px; }
.cart-empty h2 { color: var(--text); margin-bottom: 6px; }

.checkout-form { padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0; }
.checkout-form h2 { font-size: 20px; margin-bottom: 16px; }
.checkout-intro { margin: -6px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.checkout-intro a { color: var(--primary); font-weight: 700; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-grid > .span-2 { grid-column: 1 / -1; }
.checkout-grid label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.checkout-grid input, .checkout-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  outline: none;
}
.checkout-grid input:focus, .checkout-grid textarea:focus { border-color: var(--primary); }
.checkout-grid textarea { resize: vertical; min-height: 70px; font-family: inherit; }

/* ===== About block ===== */
.about-block { padding: 50px 0; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-grid p { color: var(--muted); margin-bottom: 14px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stats li {
  background: var(--bg);
  padding: 22px;
  border-radius: var(--radius);
  text-align: center;
}
.about-stats strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 4px;
}
.about-stats span { font-size: 13px; color: var(--muted); }

/* ===== Callback ===== */
.callback {
  padding: 40px 0;
  background: linear-gradient(135deg, #0b6efd, #0a58ca);
  color: #fff;
}
.callback-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.callback h2 { font-size: 26px; margin-bottom: 6px; }
.callback p { opacity: .9; }
.callback-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.callback-form input {
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 0;
  outline: none;
}
.callback-form input[name="message"] { grid-column: 1 / -1; }
.callback-form .btn-primary {
  grid-column: 1 / -1;
  background: var(--accent);
  color: #1f2937;
}
.callback-form .btn-primary:hover { background: #ffb547; }

/* ===== Footer ===== */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 40px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-logo { height: 50px; margin-bottom: 12px; background: #fff; padding: 6px; border-radius: 6px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 13px; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.copyright {
  border-top: 1px solid #1e293b;
  padding: 16px 0;
  font-size: 12px;
  color: #6b7280;
}

/* ===== Catalog page ===== */
.page-head {
  background: #fff;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 28px; }
.page-lead { max-width: 900px; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.breadcrumbs a:hover { color: var(--primary); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 30px 0;
}
.cat-sidebar {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 110px;
}
.cat-sidebar h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 12px; }
.cat-sidebar li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.cat-sidebar li a:hover, .cat-sidebar li a.active { background: #eff6ff; color: var(--primary); }
.cat-sidebar-count {
  margin-left: auto;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.catalog-toolbar select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 10px;
}
.catalog-pagination .btn-outline { padding: 9px 16px; background: #fff; }
.catalog-pagination .btn-outline:disabled { cursor: not-allowed; opacity: .45; }
.catalog-pagination span { min-width: 70px; color: var(--muted); text-align: center; font-weight: 700; }
.results-count { font-size: 13px; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .icon { font-size: 50px; margin-bottom: 14px; }

/* ===== Product page ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 30px 0;
}
.product-detail-img {
  background: #f8fafc;
  border-radius: var(--radius);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}
.product-detail-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-detail h1 { font-size: 28px; margin-bottom: 8px; }
.product-detail .sku { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.product-detail .price { font-size: 32px; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.product-detail .desc { color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.product-detail .specs {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 22px;
}
.product-detail .specs h3 { font-size: 16px; margin-bottom: 10px; }
.product-detail .specs table { width: 100%; font-size: 14px; }
.product-detail .specs td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.product-detail .specs td:first-child { color: var(--muted); width: 40%; }

/* ===== Static content pages ===== */
.content-page {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 30px 0;
}
.content-page h1 { font-size: 32px; margin-bottom: 20px; }
.content-page h2 { font-size: 23px; margin: 28px 0 12px; }
.content-page p, .content-page li { color: var(--text); margin-bottom: 12px; font-size: 17px; line-height: 1.8; }
.content-page ul { padding-left: 22px; list-style: disc; }

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}
.product-info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.product-info-card h2 { font-size: 18px; margin-bottom: 10px; }
.product-info-card p, .product-info-card li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.product-info-card ul { padding-left: 18px; list-style: disc; }

.news-intro { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-card {
  padding: 0 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.news-image {
  display: flex;
  min-height: 145px;
  margin: 0 -20px 16px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #334155);
}
.news-image img { display: block; width: 100%; height: 170px; object-fit: cover; }
.news-image strong { font-size: 38px; line-height: 1; letter-spacing: 1px; }
.news-image span { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; opacity: .9; }
.news-ev { background: linear-gradient(135deg, #065f46, #10b981); }
.news-ai { background: linear-gradient(135deg, #581c87, #a855f7); }
.news-data { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.news-align { background: linear-gradient(135deg, #7c2d12, #f97316); }
.news-locator { background: linear-gradient(135deg, #164e63, #06b6d4); }
.news-cmms { background: linear-gradient(135deg, #312e81, #6366f1); }
.news-edu { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.news-event { background: linear-gradient(135deg, #713f12, #eab308); }
.news-fiber { background: linear-gradient(135deg, #064e3b, #14b8a6); }
.news-card time { display: block; margin-bottom: 8px; color: var(--primary); font-size: 12px; font-weight: 700; }
.news-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.news-card a { display: inline-block; margin-top: 10px; color: var(--primary); font-size: 13px; font-weight: 700; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: #16a34a;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  font-weight: 500;
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .2s, opacity .2s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #dc2626; }

/* ===== Loading ===== */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e5e7eb 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .product-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .advantages-grid, .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .callback-inner { grid-template-columns: 1fr; gap: 24px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .cat-sidebar { position: static; }
  .product-detail, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 280px; }
  .slide-text { padding: 0 24px; max-width: 100%; }
  .slide-text h1 { font-size: 22px; }
  .slide-text p { font-size: 15px; margin-bottom: 16px; }
  .section-title { font-size: 22px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stats strong { font-size: 24px; }
  .product-detail-img { min-height: 280px; }
  .product-detail h1 { font-size: 22px; }
  .product-detail .price { font-size: 26px; }
  .product-detail { padding: 18px; }
  .content-page { padding: 22px; }
  .content-page h1 { font-size: 22px; }
  .product-info-grid, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 60px 1fr auto; grid-template-rows: auto auto; gap: 10px; }
  .cart-item-img { width: 60px; height: 60px; grid-row: span 2; }
  .cart-qty { grid-column: 2; }
  .cart-item-sum { grid-column: 3; grid-row: 1; }
  .cart-item-remove { grid-column: 3; grid-row: 2; justify-self: end; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .topbar-inner { font-size: 11px; height: auto; padding: 6px 0; gap: 8px; flex-wrap: wrap; }
  .topbar-contacts a { margin-right: 8px; }
  .topbar-contacts a + a { display: none; } /* email скрыт — только телефон */
  .lang-switch button { padding: 3px 8px; font-size: 11px; }
  .header-main { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .logo img { height: 38px; }
  .logo-text strong { font-size: 17px; }
  .logo-text span { display: none; }
  .search { order: 3; width: 100%; max-width: none; }
  .search input, .search button { padding: 10px 14px; font-size: 14px; }
  .header-cta { display: none; }
  .main-nav ul { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav ul::-webkit-scrollbar { display: none; }
  .main-nav li a { padding: 11px 14px; white-space: nowrap; font-size: 13px; }
  .hero { padding: 14px 0; }
  .hero-slider { height: 220px; border-radius: 10px; }
  .slide::before { background: linear-gradient(180deg, rgba(15,23,42,.4) 0%, rgba(15,23,42,.85) 100%); }
  .slide-text { padding: 0 18px; }
  .slide-text h1 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
  .slide-text p { font-size: 13px; margin-bottom: 12px; }
  .slide-text .btn-primary { padding: 9px 16px; font-size: 13px; }
  .advantages { padding: 18px 0; }
  .advantages-grid { gap: 10px; }
  .adv { padding: 14px; }
  .adv-icon { font-size: 24px; }
  .adv h3 { font-size: 14px; }
  .adv p { font-size: 12px; }
  .categories, .featured { padding: 22px 0; }
  .cat-card { padding: 18px 10px; }
  .cat-card .icon { font-size: 28px; }
  .cat-card h3 { font-size: 13px; }
  .product-grid { gap: 10px; }
  .product-card { border-radius: 11px; }
  .product-img { height: 124px; padding: 8px; }
  .product-body { padding: 10px; }
  .product-cat { font-size: 9px; margin-bottom: 5px; }
  .product-name { min-height: 34px; margin-bottom: 7px; font-size: 12px; }
  .product-price { margin-bottom: 7px; font-size: 15px; }
  .product-actions .btn-outline { padding: 7px 6px; font-size: 11px; }
  .product-actions .btn-cart { width: 34px; padding: 7px; font-size: 13px; }
  .product-actions .btn-primary { padding: 8px 10px; font-size: 12px; }
  .pcard-badge { font-size: 9px; padding: 2px 6px; }
  .about-block { padding: 26px 0; }
  .callback { padding: 24px 0; }
  .callback h2 { font-size: 20px; }
  .callback-form { grid-template-columns: 1fr; }
  .callback-form input { padding: 10px 12px; }
  .site-footer { padding-top: 22px; margin-top: 22px; }
  .footer-grid { gap: 18px; padding-bottom: 18px; }
  .footer-logo { height: 42px; }
  .product-detail { padding: 14px; }
  .product-detail-img { min-height: 220px; padding: 10px; }
  .product-detail h1 { font-size: 19px; }
  .product-detail .price { font-size: 22px; }
  .page-head { padding: 18px 0; }
  .page-head h1 { font-size: 22px; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .catalog-toolbar select { width: 100%; }
  .toast { left: 12px; right: 12px; bottom: 12px; text-align: center; }
  /* theme picker — внизу слева занимает меньше места */
  .theme-toggle { width: 42px; height: 42px; font-size: 19px; bottom: 14px; left: 14px; }
  .theme-panel { bottom: 70px; left: 14px; min-width: 190px; padding: 12px 14px; }
}
@media (max-width: 420px) {
  .advantages-grid, .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-slider { height: 200px; }
  .slide-text h1 { font-size: 17px; }
  .slide-text p { font-size: 12px; }
}
