/* Паркелло - Dark Graphite + Antique White + Bronze */

:root {
  /* Palette */
  --graphite-900: #1a1d21;
  --graphite-800: #2a2e34;
  --graphite-700: #3a3f47;
  --antique-white: #f8f6f2;
  --antique-50: #e8e6e2;
  --bronze: #b8956a;
  --bronze-hover: #c9a77b;
  --success: #5a8f6f;
  
  /* Typography */
  --font-display: system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  
  /* Spacing tokens */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  
  /* Radius tokens */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  
  /* Shadow tokens */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --duration: 240ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--graphite-900);
  color: var(--antique-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--antique-white);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 4rem);
  padding-right: clamp(1rem, 4vw, 4rem);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--graphite-900);
  border-bottom: 1px solid var(--graphite-700);
  transition: box-shadow var(--duration) var(--ease);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  min-height: 80px;
  padding-block: .5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--bronze);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  transition: color var(--duration) var(--ease);
}

.logo:hover {
  color: var(--bronze-hover);
}

.logo:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-block: .375rem; /* Room for active underlines and keyboard focus rings. */
  gap: .5rem clamp(.75rem, 2vw, 2rem);
  justify-content: center;
}

.nav a {
  color: var(--antique-50);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--bronze);
  transition: width var(--duration) var(--ease);
}

.nav a:hover {
  color: var(--antique-white);
}

.nav a:hover::after {
  width: 100%;
}

.nav a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.phone {
  color: var(--antique-white);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.phone:hover {
  color: var(--bronze);
}

.phone:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--graphite-700);
  background-color: transparent;
  color: var(--antique-50);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-icon:hover {
  background-color: var(--graphite-800);
  border-color: var(--bronze);
  color: var(--bronze);
}

.btn-icon:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  height: clamp(600px, 100vh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 29, 33, 0.4) 0%,
    rgba(26, 29, 33, 0.7) 60%,
    rgba(26, 29, 33, 0.9) 100%
  );
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4xl);
}

.hero h1 {
  max-width: 20ch;
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
}

.btn--primary {
  background-color: var(--bronze);
  color: var(--graphite-900);
}

.btn--primary:hover {
  background-color: var(--bronze-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
}

.btn--secondary {
  background-color: var(--graphite-800);
  color: var(--antique-white);
  border: 1px solid var(--graphite-700);
}

.btn--secondary:hover {
  background-color: var(--graphite-700);
  border-color: var(--bronze);
}

.btn--outline {
  background-color: transparent;
  color: var(--antique-white);
  border: 1px solid var(--antique-50);
}

.btn--outline:hover {
  background-color: var(--antique-white);
  color: var(--graphite-900);
}

.btn--block {
  width: 100%;
}

.btn--large {
  min-height: 56px;
  padding: 0 var(--space-2xl);
  font-size: 1.125rem;
}

.btn:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Collections section */
.collections {
  padding: var(--space-4xl) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--antique-50);
  font-size: 1.125rem;
  max-width: 60ch;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--graphite-700);
  background-color: transparent;
  color: var(--antique-50);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.filter-btn:hover {
  border-color: var(--bronze);
  color: var(--antique-white);
}

.filter-btn.active {
  background-color: var(--bronze);
  border-color: var(--bronze);
  color: var(--graphite-900);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Product card */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--graphite-800);
  border: 1px solid var(--graphite-700);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.product-card:hover {
  border-color: var(--bronze);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card__image {
  position: relative;
  aspect-ratio: 312 / 240;
  overflow: hidden;
  background-color: var(--graphite-700);
}

.product-card__image .image-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--antique-50);
  font-size: 0.8rem;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.product-card__image img.ready {
  opacity: 1;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bronze);
  color: var(--graphite-900);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card__favorite {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background-color: rgba(26, 29, 33, 0.7);
  backdrop-filter: blur(8px);
  color: var(--antique-white);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.product-card__favorite:hover {
  background-color: var(--bronze);
  color: var(--graphite-900);
}

.product-card__favorite.active {
  background-color: var(--bronze);
  color: var(--graphite-900);
}

.product-card__favorite:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

.product-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--space-md);
  flex: 1;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bronze);
}

.product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--antique-white);
  line-height: 1.4;
}

.product-card__brand {
  font-size: 0.875rem;
  color: var(--antique-50);
  line-height: 1.5;
}

.product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: var(--space-sm);
}

.product-card__price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--antique-white);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-old {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--antique-50);
  text-decoration: line-through;
}

.price-current {
  font-size: 1rem;
  font-weight: 600;
  color: var(--antique-white);
}

.product-card__status {
  font-size: 0.875rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
}

/* Calculator section */
.calculator {
  padding: var(--space-4xl) 0;
  background-color: var(--graphite-800);
}

.calculator-form {
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--antique-white);
}

.form-group input,
.form-group select {
  height: 48px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--graphite-700);
  background-color: var(--graphite-900);
  color: var(--antique-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--bronze);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}

.form-group input::placeholder {
  color: var(--antique-50);
}

/* Footer */
.footer {
  padding: var(--space-4xl) 0 var(--space-xl);
  background-color: var(--graphite-900);
  border-top: 1px solid var(--graphite-700);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__description {
  color: var(--antique-50);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 32ch;
}

.footer__col h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--antique-white);
  margin-bottom: var(--space-xs);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col ul li {
  font-size: 0.875rem;
}

.footer__col a {
  color: var(--antique-50);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer__col a:hover {
  color: var(--bronze);
}

.footer__col a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.footer__contacts li {
  color: var(--antique-50);
  line-height: 1.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--graphite-700);
  font-size: 0.875rem;
  color: var(--antique-50);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

@media (max-width: 767px) {
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive - Mobile Navigation */
@media (max-width: 991px) {
  .header { position: static; }
  .header__container {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 0;
    gap: .5rem;
  }
  .nav-toggle { grid-column: 2; grid-row: 1; }
  .header__actions { grid-column: 3; grid-row: 1; gap: .4rem; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; gap: .25rem 1rem; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .phone { display: none; }
  html { scroll-padding-top: 0; }
}

@media (max-height: 480px) {
  .header { position: static; }
  html { scroll-padding-top: 0; }
}

@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
}

/* Catalog Section */
.catalog-section {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.hero--small {
  height: clamp(300px, 50vh, 500px);
}

.hero--small .hero__content {
  padding-bottom: var(--space-2xl);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--antique-50);
  margin-top: var(--space-md);
  max-width: 50ch;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--antique-50);
  margin-bottom: var(--space-xl);
}

.breadcrumbs a {
  color: var(--antique-50);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.breadcrumbs a:hover {
  color: var(--bronze);
}

.breadcrumbs span:last-child {
  color: var(--antique-white);
}

/* Catalog Header */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.catalog-header__info h2 {
  font-size: 1.5rem;
  color: var(--antique-white);
}

.catalog-header__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sort-control label {
  font-size: 0.875rem;
  color: var(--antique-50);
  white-space: nowrap;
}

.sort-select {
  min-width: 200px;
  height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--graphite-700);
  background-color: var(--graphite-800);
  color: var(--antique-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.sort-select:hover {
  border-color: var(--bronze);
}

.sort-select:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}

.filter-toggle-btn {
  position: relative;
  display: none;
  gap: var(--space-sm);
}

.filter-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background-color: var(--bronze);
  color: var(--graphite-900);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: var(--space-2xl);
}

/* Filters Sidebar */
.filters-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--graphite-700);
}

.filters-sidebar__header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--antique-white);
}

.close-filters {
  display: none;
}

.filters-sidebar__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.filters-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--graphite-700);
}

.mobile-only {
  display: none;
}

/* Filter Group */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.filter-group__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--antique-white);
}

.filter-group__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-group__content--scrollable {
  max-height: 240px;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.filter-group__content--scrollable::-webkit-scrollbar {
  width: 4px;
}

.filter-group__content--scrollable::-webkit-scrollbar-track {
  background: var(--graphite-800);
  border-radius: 2px;
}

.filter-group__content--scrollable::-webkit-scrollbar-thumb {
  background: var(--graphite-700);
  border-radius: 2px;
}

.filter-group__content--scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--bronze);
}

.filter-group__search {
  margin-bottom: var(--space-xs);
}

.filter-search {
  width: 100%;
  height: 36px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--graphite-700);
  background-color: var(--graphite-900);
  color: var(--antique-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: all var(--duration) var(--ease);
}

.filter-search:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.1);
}

.filter-search::placeholder {
  color: var(--antique-50);
}

/* Checkbox and Radio */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--antique-50);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.checkbox-label:hover,
.radio-label:hover {
  color: var(--antique-white);
}

.filter-checkbox,
.filter-radio {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--graphite-700);
  background-color: var(--graphite-900);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  appearance: none;
  position: relative;
}

.filter-radio {
  border-radius: 50%;
}

.filter-checkbox:checked,
.filter-radio:checked {
  background-color: var(--bronze);
  border-color: var(--bronze);
}

.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--graphite-900);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-radio:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--graphite-900);
}

/* Range Slider */
.range-slider {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.range-slider__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--antique-white);
  font-weight: 500;
}

.range-slider__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.range-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--graphite-700);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bronze);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.range-input::-webkit-slider-thumb:hover {
  background: var(--bronze-hover);
  transform: scale(1.1);
}

.range-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--bronze);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.range-input::-moz-range-thumb:hover {
  background: var(--bronze-hover);
  transform: scale(1.1);
}

/* Catalog Main */
.catalog-main {
  min-width: 0;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  color: var(--antique-50);
}

/* The native modal lives in the top layer, above the sticky site header. */
.filter-overlay:not([open]) { display: none; }
.filter-overlay[open] {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: min(100%, 42rem);
  max-width: none;
  height: min(88vh, 52rem);
  height: min(88dvh, 52rem);
  max-height: none;
  padding: 0;
  border: 1px solid var(--graphite-700);
  border-bottom: 0;
  border-radius: 1.1rem 1.1rem 0 0;
  background: var(--graphite-800);
  color: var(--antique-white);
  overflow: hidden;
}
.filter-overlay::backdrop { background: rgba(16,18,20,.78); }
body.filters-open { overflow: hidden; }
.color-chip {
  display: inline-block; flex: 0 0 auto; width: 1em; height: 1em;
  border-radius: 50%; border: 1px solid #ffffff70;
  background: linear-gradient(135deg,transparent 44%,#9c9b93 46% 54%,transparent 56%);
}
.product-card__color { display: flex; align-items: center; gap: .4em; font-size: .79rem; color: var(--antique-50); }
.filter-error { color: #f5ac99; font-size: .8rem; }
.filter-search[aria-invalid="true"] { border-color: #f5ac99; }

/* Navigation Active State */
.nav a.active {
  color: var(--bronze);
}

.nav a.active::after {
  width: 100%;
}

/* Product Card Status Variants */
.product-card__status--order {
  color: var(--antique-50);
}

.product-card__status--order::before {
  background-color: var(--antique-50);
}

/* The same keyboard-accessible sheet serves desktop and compact layouts. */
.filter-toggle-btn { display: inline-flex; gap: .65rem; min-width: 9rem; }
.filter-count { background: var(--graphite-900); color: var(--antique-white); }
.filter-overlay .filters-sidebar { position: static; height: 100%; max-height: none; overflow: hidden; gap: 0; padding: 0; }
.filter-overlay .filters-sidebar__header, .filter-overlay .filters-sidebar__footer { flex: none; padding: .65rem 1rem; }
.filter-overlay .filters-sidebar__content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.filter-overlay .filters-sidebar__footer { display: grid; grid-template-columns: auto 1fr; padding-bottom: max(.65rem, env(safe-area-inset-bottom)); }
.filter-overlay .filters-sidebar__footer .btn { padding-inline: .55rem; font-size: .9rem; }
.filter-overlay .checkbox-label, .filter-overlay .radio-label { min-height: 32px; }
.close-filters { display: flex; }
@media (min-width: 992px) {
  .filter-overlay[open] { inset: 0; margin: auto; width: min(32rem, 92vw); border: 1px solid var(--graphite-700); border-radius: var(--radius-lg); }
}
@media (max-width: 991px) {
  .sort-control {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }
  
  .sort-select {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .catalog-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .catalog-header__controls {
    flex-direction: column;
  }
  
  .sort-control label {
    display: none;
  }
}

/* Compact catalog: an architectural line drawing, never a substitute product photo. */
[hidden] { display: none !important; }
.header__actions { justify-content: flex-end; }
.hero, .hero--small { height: auto; align-items: center; background: linear-gradient(110deg,#25282b,#292a29 65%,#53483c); border-bottom: 1px solid var(--graphite-700); }
.hero__content, .hero--small .hero__content { width: 100%; padding-block: clamp(2rem,4vw,4.25rem); }
.hero-drawing { position: absolute; right: 0; top: 0; width: 46%; height: 100%; color: var(--bronze); opacity: .63; mask-image: linear-gradient(90deg,transparent,#000 60%); }
.hero-drawing path { stroke: currentColor; stroke-width: .7; fill: none; }
.hero-kicker { color: var(--bronze-hover); text-transform: uppercase; font-size: .75rem; font-weight: 600; letter-spacing: .16em; margin-bottom: .65rem; }
.hero h1 { font-size: clamp(2rem,4.7vw,4rem); line-height: 1.08; margin-bottom: 1.25rem; text-shadow: none; }
.hero--small h1 { margin-bottom: .5rem; }
.hero__subtitle { margin: 0; }
.collections, .calculator, .catalog-section { padding-block: clamp(1.5rem,3vw,2.75rem); }
.section-header, .catalog-header { margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(1.6rem,3vw,2.35rem); margin-bottom: .75rem; }
.filters { gap: .5rem; margin-top: 1rem; }
.brand-tab { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; }
.brand-tab small { opacity: .8; font-size: .78em; font-variant-numeric: tabular-nums; }
.catalog-header__controls, .range-pair { display: flex; flex-wrap: wrap; gap: .5rem; }
.range-pair input { flex: 1 1 35%; min-width: 0; }
.catalog-layout { grid-template-columns: minmax(0,1fr); gap: clamp(1rem,2vw,2rem); }
.catalog-layout .products-grid, .products-grid { margin-top: 0; grid-template-columns: repeat(auto-fill,minmax(min(100%,212px),1fr)); gap: .875rem; }
.product-card { min-width: 0; }
.product-card__image { aspect-ratio: 1.7; }
.product-card__favorite { font-size: 1.5rem; line-height: 1; }
.product-card__content { gap: .32rem; padding: .85rem; overflow-wrap: anywhere; }
.product-card__title { font-size: 1.02rem; line-height: 1.32; }
.product-card__brand, .product-card__status { font-size: .79rem; }
.product-card__meta { margin-bottom: .35rem; padding-top: .45rem; gap: .15rem; }
.product-card__status:not(.product-card__status--order) { color: #9dc6a8; }
.card-actions, .pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.card-actions .btn { min-height: 36px; font-size: .83rem; padding-inline: .85rem; }
.detail-link { color: var(--bronze-hover); text-underline-offset: .2em; font-size: .84rem; }
.pager { justify-content: center; margin-top: 1.5rem; }
.pager__numbers { display: contents; }
.pager .filter-btn, .pager select { min-width: 44px; min-height: 44px; padding-inline: .7rem; }
.pager__jump { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; }
.pager select:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
button:disabled { cursor: default; opacity: .5; }
.empty-state { border: 1px dashed var(--graphite-700); padding: 2rem 1rem; border-radius: var(--radius-md); }
.filters-sidebar__content { gap: 1rem; }
.filter-group { gap: .5rem; }
.filter-group__content { gap: .3rem; }
.filters-sidebar { max-height: calc(100vh - 100px); overflow: auto; padding-right: .5rem; }
.selection-dialog { margin: auto; width: min(90vw,34rem); max-height: 75vh; color: var(--antique-white); background: var(--graphite-800); border: 1px solid var(--graphite-700); border-radius: var(--radius-md); padding: 1.5rem; }
.selection-dialog::backdrop { background: #131516cc; }
.selection-dialog p { margin-block: 1rem; overflow-wrap: anywhere; }
.calculator-form { margin: 1.25rem 0 0; }
.form-group, .form-group select { min-width: 0; max-width: 100%; }
#estimate:not(:empty) { margin-top: 1rem; }
@media (max-width: 991px) {
  .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .hero-drawing { width: 63%; opacity: .36; }
}
@media (max-width: 767px) {
  .hero__actions, .catalog-header__controls { flex-direction: row; flex-wrap: wrap; }
  .hero__actions { gap: .5rem; }
  .hero__actions .btn { width: auto; min-height: 38px; padding-inline: .8rem; font-size: .83rem; }
  .catalog-header { gap: .45rem; }
  .catalog-header__controls { align-items: center; }
  .catalog-header__controls .sort-select { max-width: 100%; min-width: 0; padding-inline: .5rem; height: 40px; }
  .products-grid, .catalog-layout .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .product-card__content { padding: .65rem; }
  .product-card__favorite { top: .4rem; left: .4rem; }
  .product-card__title { font-size: .94rem; }
  .brand-tab { padding: .4rem .65rem; gap: .38rem; }
}
@media (max-width: 350px) { .products-grid, .catalog-layout .products-grid { grid-template-columns: 1fr; } }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visible */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}
/* Общие состояния витрины и заявки */
.shop-notice { margin-block: 1rem; padding: .75rem 1rem; border-inline-start: 3px solid var(--bronze); background: var(--graphite-800); }
.shop-notice a, .selection-dialog a, .footer__legal a, .storage-notice button { color: var(--bronze-hover); }
.storage-notice { max-width: 75ch; }
.storage-notice button { background: none; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
.storage-notice button:focus-visible, .selection-dialog :focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.sale-label { display: inline-block; padding: .1rem .55rem; border: 1px solid var(--bronze); color: var(--bronze-hover); font-size: .82rem; border-radius: .35rem; }
.old-price, .selection-price, .product-card__pack, .line-total { color: var(--antique-50); font-size: .875rem; }
.selection-dialog { width: min(94vw, 40rem); max-height: 88vh; overflow: auto; }
.selection-heading, .row-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.selection-heading { justify-content: space-between; margin-bottom: 1rem; }
.selection-heading h2 { font-size: clamp(1.5rem,4vw,2rem); }
.selection-row { border-top: 1px solid var(--graphite-700); padding-block: 1rem; overflow-wrap: anywhere; }
.selection-row h3 { font-size: 1.05rem; line-height: 1.4; }
.selection-dialog .selection-price, .selection-dialog .item-issue { margin-block: .35rem; }
.selection-dialog input { font: inherit; padding: .45rem .6rem; border: 1px solid var(--graphite-700); border-radius: .35rem; background: var(--antique-white); color: var(--graphite-900); max-width: 100%; }
.row-controls input { width: 7rem; }
.selection-dialog .line-total { margin-block: .35rem .65rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
#orderFields label { display: block; }
#checkoutSummary { font-weight: 600; }
#phonePurpose { font-size: .875rem; }
#checkoutStatus:empty { margin: 0; }
button:disabled { opacity: .62; cursor: not-allowed; }

.product-card__title a { color: inherit; font: inherit; text-decoration: none; }
.product-card__title a:hover, .product-card__title a:focus-visible { text-decoration: underline; }
#cartButton { position: relative; }
.cart-count { position: absolute; right: -.25rem; top: -.22rem; background: var(--bronze); color: var(--graphite-900); border: 1px solid var(--graphite-900); border-radius: 1rem; min-width: 1.25rem; padding: 0 .25rem; font: 600 .75rem/1.18rem var(--font-body); }
#addForm { display: grid; gap: .65rem; }
.quantity-fields { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; }
.quantity-fields input { display: block; width: 9rem; }
#addSupportNote { margin: 0; font-size: .875rem; }
#saveSupport { margin-top: .75rem; }
#addForm fieldset { min-width: 0; border: 1px solid var(--graphite-700); padding: .8rem 1rem; border-radius: var(--radius-sm); }
#supportFields legend { padding-inline: .3rem; color: var(--bronze-hover); }
#supportFields label { display: block; }
#supportFields p, #supportFields a { font-size: .87rem; }
#supportFields p { margin: .5rem 0 0; }
#addStatus:empty, #draftStatus:empty { margin: 0; }
