:root {
  --blue: #4c6ef5;
  --blue-dark: #364fc7;
  --text: #333;
  --muted: #777;
  --line: #ececec;
  --bg: #fff;
  --price: #c92a2a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(520px, calc(100% - 32px)); }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.top-strip {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 0;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #eee; background: #f7f7f7;
  display: grid; place-items: center; cursor: pointer;
}
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 4%;
}
.logo img { height: 62px; width: auto; }
.header-phone { color: var(--blue); font-weight: 600; font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
.cart-btn {
  position: relative;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 22px;
}
.cart-btn__count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: #fff; color: var(--blue);
  border: 2px solid var(--blue); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.search-bar {
  display: flex; gap: 10px; align-items: center;
  padding: 0 4% 14px;
}
.cat-toggle, .search-form {
  display: flex; align-items: center;
  border: 1px solid #e3e3e3; border-radius: 24px; background: #fafafa;
}
.cat-toggle { padding: 10px 16px; font-weight: 600; white-space: nowrap; color: #fff; background: var(--blue); border-color: var(--blue); }
.search-form { flex: 1; padding: 0 6px 0 16px; }
.search-form input { flex: 1; border: 0; background: transparent; outline: none; min-height: 44px; }
.search-form button { border: 0; background: transparent; width: 44px; cursor: pointer; }
.main-nav {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 0 4% 14px;
  font-size: 13px; font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }
.flash { margin: 12px auto; width: min(1180px, calc(100% - 32px)); padding: 12px 16px; background: #edf2ff; color: var(--blue-dark); border-radius: 8px; }
.hero-slider { position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: #f3f1ee; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide span {
  position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%);
  color: #e03131; font-size: clamp(22px, 4vw, 42px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(255,255,255,.8);
}
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); cursor: pointer; font-size: 26px;
}
.slide-nav.prev { left: 14px; }
.slide-nav.next { right: 14px; }
.page-intro { padding-top: 36px; }
.page-intro h1, .section-title { margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.lead { color: #555; max-width: 720px; }
.notes { background: #f8f8f8; border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 8px; }
.notes p { margin: 6px 0; }
.section-title { margin: 36px 0 18px; }
.category-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding-bottom: 20px; }
.category-tile {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  text-align: center; font-weight: 600;
}
.category-tile img { height: 140px; width: 100%; object-fit: cover; background: #f6f6f6; }
.category-tile span { display: block; padding: 10px 8px 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding-bottom: 50px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.product-card__media { background: #fafafa; aspect-ratio: 1 / 1.05; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 14px; font-weight: 600; min-height: 42px; }
.product-card__meta { margin: 0; color: var(--muted); font-size: 12px; min-height: 36px; }
.product-card__price { color: var(--price); font-size: 20px; font-weight: 700; }
.in-stock { margin: 0; color: #2b8a3e; font-size: 12px; }
.btn-cart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 42px; border: 0; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 600; cursor: pointer;
}
.btn-cart:hover { background: var(--blue-dark); }
.btn-cart--lg { max-width: 280px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip { padding: 8px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.product-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 40px; padding: 36px 0 20px; }
.product-gallery { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafafa; }
.product-gallery img { width: 100%; }
.product-info h1 { margin: 8px 0 14px; font-size: 28px; }
.breadcrumb { color: var(--muted); }
.specs { padding-left: 18px; color: #555; }
.buy-form { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.buy-form input { width: 72px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: middle; }
.cart-product { display: flex; gap: 12px; align-items: center; }
.cart-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table input { width: 64px; min-height: 36px; }
.cart-summary { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 18px; padding-bottom: 40px; }
.cart-summary p { margin: 0; white-space: nowrap; }
.cart-summary .btn-cart { width: auto; min-width: 180px; padding-inline: 28px; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; padding-bottom: 50px; }
.form-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; margin-bottom: 18px; }
.form-card label { display: block; margin-bottom: 12px; font-weight: 500; }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px;
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; }
.error { color: var(--price); margin: -6px 0 12px; }
.total { font-weight: 700; font-size: 18px; }
.linkish { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 0; }
.prose { padding-bottom: 50px; max-width: 760px; }
.pagination { padding-bottom: 40px; }
.site-footer { background: #1f1f1f; color: #ddd; padding: 42px 4% 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1180px, 100%); margin-inline: auto; }
.site-footer h3 { color: #fff; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 28px; color: #888; font-size: 12px; }
@media (max-width: 820px) {
  .top-strip { display: flex; }
  .header-phone { display: none; }
  .logo img { height: 48px; }
  .main-nav { display: none; flex-direction: column; padding-bottom: 16px; }
  .main-nav.is-open { display: flex; }
  .hero-slider { aspect-ratio: 4 / 3; }
  .product-page, .checkout-layout, .footer-grid { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; gap: 6px; padding: 12px 0; }
}
