/* === FONTS === */
@font-face {
  font-family: 'Namu';
  src: url('/static/fonts/namu-1990.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --gray-950: #09090b;
  
  --bg: var(--gray-950);
  --bg-card: var(--gray-900);
  --text: var(--gray-100);
  --text-muted: var(--gray-500);
  --border: var(--gray-800);
  --border-hover: var(--gray-600);
  
  --content-max-width: 1400px;
  --grid-gap: 1px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gray-400); }

img { max-width: 100%; height: auto; }

/* === LAYOUT === */
.container { 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

.section { 
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}
/* === HEADER === */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 2rem;
}

.logo {
  font-family: 'Namu', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.nav a {
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--border);
}

.nav a.active {
  color: var(--text);
  border-color: var(--text);
}

.header-contacts {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.header-contacts .phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-contacts svg {
  width: 16px;
  height: 16px;
}

.mobile-toggle { 
  display: none;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.75rem;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* Hidden elements */
.noise-overlay, .gradient-bg, .blob, .logo-icon { display: none; }
/* === HERO SPLIT === */
.hero-split {
  display: block;
  min-height: 85vh;
  border-bottom: 1px solid var(--gray-800);
  overflow: hidden;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 85vh;
  position: relative;
  z-index: 2;
}

.hero-content-inner {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-700);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  width: fit-content;
}

.hero-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.hero-title span {
  color: var(--gray-400);
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-value {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: absolute;
  top: -10%;
  right: -5%;
  bottom: -10%;
  left: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, var(--bg) 0%, transparent 30%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 15%),
    linear-gradient(to top, var(--bg) 0%, transparent 10%);
  z-index: 2;
  pointer-events: none;
}

.hero-image-frame {
  position: absolute;
  inset: -20%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-image {
  width: 140%;
  max-width: none;
  height: auto;
  min-height: 120%;
  object-fit: contain;
  filter: saturate(0.6) contrast(1.05) brightness(1.02);
  transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-5%) translateY(10%) scale(1.1);
  position: relative;
  z-index: 1;
}

.hero-image:hover {
  filter: saturate(1) contrast(1.05) brightness(1.02);
  transform: translateX(-5%) translateY(10%) scale(1.15);
}

.hero-decoration { display: none; }
/* === SECTION HEADERS === */
.section-header {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2rem;
}

.section-header::after {
  content: '';
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text);
  white-space: nowrap;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  grid-column: 1;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 500;
  font-size: 0.8rem;
  font-family: inherit;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

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

.btn-primary:hover {
  background: var(--gray-300);
  border-color: var(--gray-300);
}

.btn-outline {
  background: transparent;
  border-color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 0.8rem; }

/* === GRID SYSTEM === */
.grid-strict {
  display: grid;
  gap: var(--grid-gap);
  background: var(--border);
}

.grid-strict > * {
  background: var(--bg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* === CATEGORIES GRID === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.category-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: all 0.4s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 15%, transparent 50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.category-card:hover img {
  filter: saturate(1);
  transform: scale(1.05);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.category-card-title {
  display: block;
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  padding: 1.25rem;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
}

.category-card:hover .category-card-title {
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* === PRODUCT CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: transparent;
}

.card {
  background: var(--bg);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.card:hover {
  border-color: var(--gray-600);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg);
  filter: saturate(0.6);
  transition: filter 0.3s;
}

.card:hover .card-image {
  filter: saturate(1);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid var(--border);
}

.card-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.card-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
  color: var(--text-muted);
  font-size: 0.8rem;
}
/* === FILTER TABS === */
.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  width: fit-content;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: all 0.15s;
}

.filter-tab:last-child { border-right: none; }

.filter-tab:hover {
  color: var(--text);
  background: var(--bg-card);
}

.filter-tab.active {
  color: var(--bg);
  background: var(--text);
}

/* === GALLERY GRID === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: transparent;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  filter: saturate(1);
  transform: scale(1.02);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.gallery-item:hover::before {
  border-color: var(--gray-500);
}

.gallery-item::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  color: var(--text);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--gray-700);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  border-color: var(--text);
}
/* === FORMS === */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  transition: border-color 0.15s;
}

.form-input::placeholder { color: var(--gray-600); }

.form-input:focus {
  outline: none;
  border-color: var(--text);
}

textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.order-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border: 1px solid var(--border);
  max-width: 480px;
  margin: 0 auto;
}

.order-form h3 {
  font-family: 'Namu', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: lowercase;
  margin-bottom: 2rem;
}

/* === CONTACT GRID === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 1px;
}

.contact-card {
  background: var(--bg);
  padding: 2rem;
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--text);
  text-transform: lowercase;
}

.contact-card h3 svg {
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.contact-card p, .contact-card a {
  color: var(--text-muted);
  line-height: 2;
  font-size: 0.85rem;
}

.contact-card a:hover { color: var(--text); }

/* === MAP === */
.map-container {
  border: 1px solid var(--border);
  height: 400px;
  background: var(--bg-card);
  position: relative;
}

.map-container iframe,
.map-container #map {
  width: 100%;
  height: 100%;
  border: 0;
}
/* === ABOUT PAGE === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.about-text {
  background: var(--bg);
  padding: 3rem;
}

.about-text h2 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-transform: lowercase;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.about-stat {
  background: var(--bg);
  padding: 2rem;
  text-align: center;
}

.about-stat-value {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.about-cta {
  background: var(--bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-cta-text {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-transform: lowercase;
}

/* === PRODUCT DETAIL === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.product-image {
  background: var(--bg);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  background: var(--bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.product-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 2rem;
}

/* === PRICE TABLE === */
.price-section {
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}

.price-section h3 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 1.5rem 2rem;
  text-transform: lowercase;
  border-bottom: 1px solid var(--border);
}

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

.price-table th, .price-table td {
  padding: 1rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover { background: var(--bg-card); }
/* === FOOTER === */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.footer-section {
  background: var(--bg);
  padding: 3rem 2rem;
}

.footer-section h4 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--text);
  text-transform: lowercase;
}

.footer-section p, .footer-section a {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 2;
  display: block;
}

.footer-section a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-icon svg { width: 32px; height: 32px; color: var(--text); }
.success-page h1 { 
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: lowercase;
}
.success-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* === UTILITIES === */
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1px; }
.gap-2 { gap: 2px; }

/* Headings */
h1, h2, h3, .logo, .section-title {
  font-family: 'Namu', system-ui, sans-serif;
  letter-spacing: 0.02em;
}
/* === RESPONSIVE - TABLET === */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  
  .header-inner {
    padding: 1rem 1.5rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero tablet */
  .hero-split {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  
  .hero-content {
    position: relative;
    padding: 2.5rem 1.5rem;
    order: 2;
    min-height: auto;
  }
  
  .hero-image-wrapper {
    position: relative;
    left: 0;
    height: 50vh;
    min-height: 300px;
    order: 1;
    width: 100%;
  }
  
  .hero-image-frame {
    inset: -10%;
  }
  
  .hero-image {
    transform: scale(1.1);
  }
  
  .hero-image:hover {
    transform: scale(1.12);
  }
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  
  /* Header mobile */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }
  
  .nav.active { display: flex; }
  
  .nav a {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border);
  }
  
  .nav a:last-child { border-bottom: none; }
  
  .header-contacts { display: none; }
  .mobile-toggle { display: flex; }
  
  /* Section header mobile */
  .section-header {
    display: block;
  }
  
  .section-header::after { display: none; }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  /* Grids mobile */
  .categories-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-section {
    padding: 2rem 1rem;
  }
  
  /* Hero mobile */
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .hero-stat-value {
    font-size: 1.5rem;
  }
  
  .hero-stat-label {
    font-size: 0.65rem;
  }
  
  .hero-image-wrapper {
    height: 40vh;
    min-height: 250px;
  }
  
  /* Forms mobile */
  .order-form {
    padding: 1.5rem;
  }
  
  /* Filter tabs mobile */
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
  }
  
  .filter-tab {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
  }
  
  /* Buttons mobile */
  .btn { padding: 0.75rem 1.5rem; }
  .btn-lg { padding: 0.875rem 2rem; }
}

/* === RESPONSIVE - SMALL MOBILE === */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    aspect-ratio: 4/3;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .hero-stat {
    min-width: 80px;
  }
}
/* === ADMIN STYLES === */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar h2 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.admin-nav a {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  border-left: 2px solid transparent;
}

.admin-nav a:hover { color: var(--text); background: var(--gray-800); }
.admin-nav a.active { color: var(--text); border-left-color: var(--text); background: var(--gray-800); }

.admin-content { flex: 1; margin-left: 240px; padding: 2rem; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h1 { 
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: lowercase;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

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

.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.admin-table tr:hover { background: var(--gray-800); }

/* Column sizing */
.admin-table .col-id,
.admin-table .col-img,
.admin-table .col-order,
.admin-table .col-stock,
.admin-table .col-actions { 
  width: 1%; 
  white-space: nowrap; 
}

.admin-table .col-order,
.admin-table .col-stock { 
  text-align: center; 
}

/* Actions cell */
.admin-table .actions-cell {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.admin-table .actions-cell form {
  display: inline;
  margin: 0;
}

.admin-table .btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg);
  padding: 1.5rem;
}

.stat-card h3 {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card .stat-value {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  color: var(--text);
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.badge-new { border-color: var(--gray-400); color: var(--gray-400); }
.badge-process { border-color: var(--gray-500); color: var(--gray-500); }
.badge-done { background: var(--text); border-color: var(--text); color: var(--bg); }
.badge-cancel { border-color: var(--gray-600); color: var(--gray-600); }

/* === ADMIN LOGIN === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  width: 100%;
  max-width: 380px;
}

.login-card h1 {
  font-family: 'Namu', system-ui, sans-serif;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

/* Admin responsive */
@media (max-width: 1024px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

/* Legacy slider styles (hidden) */
.hero, .slider, .slide, .slider-nav, .slider-dot, .slider-btn, .slider-arrow { display: none; }
.hero-slider { display: none; }

/* === ORDER FORM IMPROVED === */
.order-form {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 600px;
}

.order-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.order-form h3 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: lowercase;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-note {
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* === POW CAPTCHA WIDGET === */
.pow-captcha-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.pow-captcha-widget:hover {
  border-color: var(--gray-600);
}

.captcha-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-600);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.captcha-check {
  width: 14px;
  height: 14px;
  opacity: 0;
  color: var(--text);
  transition: opacity 0.2s;
}

/* Состояние решения - пульсация рамки */
.captcha-checkbox.solving {
  animation: captcha-pulse 1s ease-in-out infinite;
}

@keyframes captcha-pulse {
  0%, 100% { 
    border-color: var(--gray-600);
    transform: scale(1);
  }
  50% { 
    border-color: var(--text);
    transform: scale(1.05);
  }
}

/* Решено */
.captcha-checkbox.solved {
  border-color: var(--text);
  background: var(--text);
  animation: none;
}

.captcha-checkbox.solved .captcha-check {
  opacity: 1;
  color: var(--bg);
}

.captcha-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.captcha-status {
  font-size: 0.875rem;
  color: var(--text);
  transition: color 0.2s;
}

.captcha-checkbox.solving + .captcha-text .captcha-status {
  color: var(--text-muted);
}

.captcha-brand {
  font-size: 0.6rem;
  color: var(--gray-600);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === PRODUCTS PAGE IMPROVED === */
.products-page {
  padding: 2rem 0 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  text-transform: lowercase;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb-sep {
  color: var(--gray-600);
}

.breadcrumb-current {
  color: var(--text);
}

.page-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.page-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
}

.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.products-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--gray-600);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-900);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6);
  transition: all 0.4s ease;
}

.product-card:hover .product-card-image img {
  filter: saturate(1);
  transform: scale(1.05);
}

/* Image Placeholder with X */
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--gray-700);
}

.product-card-overlay {
  display: none;
}

.view-link {
  display: none;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-card-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.product-card-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.product-card-stock {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
}

.product-card-stock.in-stock {
  border-color: var(--gray-500);
  color: var(--gray-400);
}

.product-card-stock.on-order {
  border-color: var(--gray-700);
  color: var(--gray-500);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed var(--border);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.empty-icon svg {
  width: 100%;
  height: 100%;
  color: var(--gray-600);
}

.empty-state h3 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* === PRODUCT DETAIL PAGE IMPROVED === */
.product-page {
  padding: 2rem 0 5rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.product-image-section {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-900);
  border: 1px solid var(--border);
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-900);
}

.product-image-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--gray-700);
}

.product-info-section {
  display: flex;
  flex-direction: column;
}

.product-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-category-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
}

.product-stock {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border: 1px solid;
}

.product-stock.in-stock {
  border-color: var(--gray-500);
  color: var(--gray-400);
}

.product-stock.on-order {
  border-color: var(--gray-700);
  color: var(--gray-500);
}

.product-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.product-price {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 2rem;
  color: var(--text);
}

.product-price.price-request {
  font-size: 1.25rem;
  color: var(--text-muted);
}

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

.product-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-specs-block {
  margin-bottom: 2rem;
}

.specs-title {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: lowercase;
  margin-bottom: 1rem;
  color: var(--text);
}

.specs-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: lowercase;
}

.spec-value {
  font-size: 0.8rem;
  color: var(--text);
  text-align: right;
}

.product-variants-block {
  margin-bottom: 2rem;
}

.variants-table {
  border: 1px solid var(--border);
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.variant-row:last-child {
  border-bottom: none;
}

.variant-color {
  font-size: 0.85rem;
  color: var(--text);
}

.variant-thickness {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.variant-price {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
}

/* Order Section */
.order-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.order-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.order-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.order-form-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.order-form-header h3 {
  font-family: 'Namu', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: lowercase;
  margin: 0 0 0.5rem;
}

.order-form-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.order-form-body .form-group {
  margin-bottom: 1.25rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.captcha-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-image-section {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 768px) {
  .products-page,
  .product-page {
    padding: 1.5rem 0 3rem;
  }
  
  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }
  
  .products-count {
    text-align: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card-image {
    aspect-ratio: 16/10;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .order-form-container {
    padding: 1.5rem;
  }
}
