/* ============================================
   ПроСкважину — Style System
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0077B6;
  --primary-dark: #005F8A;
  --primary-light: #90E0EF;
  --accent: #00B4D8;
  --bg: #F8FBFF;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F0F2F5;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 48px rgba(0,0,0,0.16);
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --top-bar-h: 40px;
  --header-h: 72px;
  --total-header-h: 112px;
  --container-max: 1280px;
}

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.main {
  flex: 1;
  padding-top: var(--total-header-h);
  min-height: 60vh;
}

/* --- TOP BAR --- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: #0D1B2A;
  color: #cbd5e1;
  height: var(--top-bar-h);
  font-size: 0.78rem;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  transition: color var(--transition);
}

.top-bar__phone:hover {
  color: var(--primary-light);
}

.top-bar__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #cbd5e1;
  transition: color var(--transition), background var(--transition);
}

.top-bar__social-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.top-bar__cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}

.top-bar__cta-btn:hover {
  background: var(--primary-dark);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: var(--top-bar-h); left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px;
  height: 36px;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.logo__suffix {
  font-size: 1.3rem;
  font-weight: 800;
  color: #E31E24;
  letter-spacing: -0.02em;
  margin-left: -4px;
}

.logo__suffix--footer {
  color: #90E0EF;
}

.logo__img--footer {
  height: 32px;
  filter: brightness(0) invert(1);
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.logo__accent {
  color: var(--primary);
}

/* Header tagline */
.header__tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.4;
  flex-shrink: 1;
  display: none;
}

@media (min-width: 1100px) {
  .header__tagline {
    display: block;
  }
}

/* Nav */
.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(0,119,182,0.06);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar__input {
  width: 220px;
  padding: 8px 40px 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  transition: border-color var(--transition), width var(--transition);
  outline: none;
}

.search-bar__input:focus {
  border-color: var(--primary);
  width: 280px;
}

.search-bar__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition);
}

.search-bar__btn:hover { color: var(--primary); }

/* Cart icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.cart-icon:hover {
  background: rgba(0,119,182,0.06);
  color: var(--primary);
}

.cart-icon__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.cart-icon__badge:empty,
.cart-icon__badge[data-count="0"] { display: none; }

.cart-icon__badge.bounce {
  animation: badgeBounce 0.3s ease;
}

@keyframes badgeBounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--total-header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav__link {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-nav__link:hover { background: rgba(0,119,182,0.06); }

.mobile-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  margin-top: 8px;
  background: rgba(0,119,182,0.04);
  border-radius: var(--radius);
}

.mobile-nav__phone {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.mobile-nav__hours {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mobile-nav__search {
  margin-top: 16px;
}

.mobile-nav__search .search-bar__input {
  width: 100%;
}

/* --- PAGE TRANSITIONS --- */
.page-enter {
  animation: pageIn 0.3s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- LOADING SCREEN --- */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading-screen__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- HERO --- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #E6F4FA 0%, #F0F9FF 50%, #F8FBFF 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,119,182,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(144,224,239,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0,119,182,0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,119,182,0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0,119,182,0.3);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn--outline:hover {
  background: rgba(0,119,182,0.06);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 14px 36px;
  font-size: 1rem;
}

.btn--full { width: 100%; }

.btn--success {
  background: var(--success);
  color: #fff;
}

.btn--danger {
  background: transparent;
  color: var(--danger);
}

.btn--danger:hover {
  background: rgba(239,68,68,0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

/* --- SECTION --- */
.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--surface);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- BRAND CARDS --- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.brand-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,119,182,0.08), rgba(0,180,216,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-card__logo {
  width: 100%;
  max-width: 140px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card__logo svg {
  width: 100%;
  height: 100%;
}

.brand-page-card__logo {
  width: 100%;
  max-width: 160px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.brand-page-card__logo svg {
  width: 100%;
  height: 100%;
}

.brand-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-card__count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- CATEGORY CARDS --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,119,182,0.06), rgba(0,180,216,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.category-card__name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.category-card__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- FEATURES / WHY US --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,119,182,0.08), rgba(144,224,239,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CATALOG LAYOUT --- */
.catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0;
}

.catalog__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}

.catalog__main {
  min-width: 0;
}

/* Filters */
.filters {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.filters__group {
  margin-bottom: 24px;
}

.filters__group:last-child { margin-bottom: 0; }

.filters__label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filters__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.filters__checkbox:hover { color: var(--primary); }

.filters__checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filters__checkbox-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 100px;
}

/* Price range */
.price-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-range__inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-range__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}

.price-range__input:focus { border-color: var(--primary); }

.price-range__sep { color: var(--text-light); font-size: 0.85rem; }

.price-range__slider {
  width: 100%;
  accent-color: var(--primary);
}

.filters__apply {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.filters__reset {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.filters__reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Catalog toolbar */
.catalog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog__count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.catalog__count strong {
  color: var(--text);
}

.catalog__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog__sort-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.catalog__sort select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.catalog__sort select:focus { border-color: var(--primary); }

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__image svg {
  width: 64px;
  height: 64px;
  color: var(--border);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-card__brand {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.product-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.product-card__name:hover {
  color: var(--primary);
}

.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.product-card__add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.product-card__add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.product-card__add-btn svg {
  width: 18px;
  height: 18px;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.pagination__btn:hover {
  background: rgba(0,119,182,0.06);
  color: var(--primary);
}

.pagination__btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination__dots {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail {
  padding: 32px 0 64px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--primary);
  transition: color var(--transition);
}

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs__sep { color: var(--text-light); }

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__image {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}

.product-detail__image svg {
  width: 120px;
  height: 120px;
  color: var(--border);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail__brand {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.product-detail__name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-detail__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.product-detail__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-detail__qty button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.product-detail__qty button:hover {
  background: var(--bg);
  color: var(--text);
}

.product-detail__qty span {
  width: 48px;
  text-align: center;
  font-weight: 600;
}

/* Specs table */
.specs-table {
  width: 100%;
  margin-top: 16px;
}

.specs-table__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr:nth-child(even) { background: var(--bg); }

.specs-table td {
  padding: 10px 14px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 45%;
}

.product-detail__desc {
  margin-top: 16px;
}

.product-detail__desc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-detail__desc-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- CART PAGE --- */
.cart-page {
  padding: 32px 0 64px;
}

.cart-page__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.cart-page__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--border);
}

.cart-empty__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-empty__text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Cart items */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.cart-item:hover { border-color: var(--border); }

.cart-item__image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item__brand {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item__qty button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.cart-item__qty button:hover {
  background: var(--bg);
  color: var(--text);
}

.cart-item__qty span {
  width: 36px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-item__price {
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

.cart-item__remove {
  color: var(--text-light);
  transition: color var(--transition);
}

.cart-item__remove:hover { color: var(--danger); }

/* Cart summary */
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.cart-summary__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.cart-summary__row--total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-summary__row--total span:last-child {
  color: var(--primary);
}

/* Order form */
.order-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.order-form__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 70px;
  resize: vertical;
}

.order-success {
  padding: 40px 20px;
  text-align: center;
}

.order-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(16,185,129,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.order-success__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-success__text {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- BRANDS PAGE --- */
.brands-page {
  padding: 48px 0 64px;
}

.brands-page__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.brands-page__subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.brands-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.brand-page-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-page-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.brand-page-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,180,216,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.brand-page-card__name {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-page-card__count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.brand-page-card__categories {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- ABOUT & CONTACTS PAGES --- */
.info-page {
  padding: 48px 0 64px;
}

.info-page__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.info-page__subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.info-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,119,182,0.08), rgba(144,224,239,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.info-card__icon svg {
  width: 24px;
  height: 24px;
}

.info-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,119,182,0.08), rgba(0,180,216,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-card__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  gap: 10px;
  overflow: hidden;
}

.map-placeholder svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.map-section {
  margin-top: 48px;
}

.map-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text);
}

.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f4f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100% !important;
  display: block;
}

/* --- FOOTER --- */
.footer {
  background: #0D1B2A;
  color: #A0AEC0;
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.logo--footer .logo__text { color: #fff; }
.logo--footer .logo__accent { color: var(--primary-light); }

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #A0AEC0;
  background: rgba(255,255,255,0.06);
  transition: color var(--transition), background var(--transition);
}

.footer__social-link:hover {
  color: #fff;
  background: var(--primary);
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--primary-light); }

.footer__contact {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}

a.footer__contact:hover {
  color: var(--primary-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  font-size: 0.78rem;
  text-align: center;
}

/* --- CONTACTS SOCIAL --- */
.contacts-social {
  margin: 28px 0;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.contacts-social__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.contacts-social__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.contacts-social__link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,119,182,0.04);
}

.contacts-social__link svg {
  flex-shrink: 0;
}

.contacts-social__site {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contacts-social__site a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-social__site a:hover {
  color: var(--primary-dark);
}

/* --- MOBILE FILTER TOGGLE --- */
.catalog__filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  gap: 8px;
}

.catalog__filter-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- NO RESULTS --- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--border);
}

.no-results__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* --- TOAST --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  background: #1A1A2E;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .product-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-page__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --top-bar-h: 36px;
    --total-header-h: 96px;
  }

  .top-bar__left { gap: 12px; }
  .top-bar__hours { display: none; }
  .top-bar__social { display: none; }
  .top-bar__cta-btn { display: none; }
  .top-bar__phone svg { display: none; }
  .top-bar { font-size: 0.72rem; }

  .nav { display: none; }
  .search-bar { display: none; }
  .burger { display: flex; }

  .hero { padding: 48px 0 40px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }

  .section { padding: 48px 0; }
  .section__title { font-size: 1.5rem; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }

  .catalog {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog__sidebar {
    position: static;
    max-height: none;
    display: none;
  }

  .catalog__sidebar.open {
    display: block;
  }

  .catalog__filter-toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .catalog__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-card__body { padding: 12px; }
  .product-card__footer { padding: 10px 12px; }
  .product-card__price { font-size: 0.95rem; }
  .product-card__name { font-size: 0.82rem; }

  .cart-item { flex-direction: column; }
  .cart-item__image { width: 100%; height: 160px; }
  .cart-item__controls { flex-wrap: wrap; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-details { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  .brands-page__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.65rem; }
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-card { padding: 20px 14px; }
  .pagination__btn { min-width: 34px; height: 34px; font-size: 0.78rem; }
  .top-bar__location { display: none; }
  .contacts-social__links { flex-direction: column; }
}

/* --- SCROLL-TO-TOP --- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Placeholder image */
.placeholder-svg {
  width: 64px;
  height: 64px;
  color: #D1D5DB;
}
