/* Skylux.kz — светлая тема */
:root {
  --bg: #faf9f7;
  --bg-alt: #f3f1ec;
  --bg-card: #ffffff;
  --text: #1c1c1e;
  --text-muted: #6b6560;
  --gold: #a67c2e;
  --gold-light: #8a6520;
  --gold-dim: rgba(166, 124, 46, 0.1);
  --border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--gold); }
.logo-mark { color: var(--gold); font-size: 1.2rem; }
.logo-dot { color: var(--gold); font-weight: 400; }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 169, 98, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}
.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #c9a962 0%, #a67c2e 100%);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 124, 46, 0.3);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-head h2,
.section-title-sm {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  margin: 0;
}
.section-head p { color: var(--text-muted); margin: 0; }
.link-more { font-weight: 500; }

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text);
  transition: all var(--transition);
}
.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--text);
}
.category-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--gold-dim);
  border-radius: 50%;
}
.category-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.cat-filter-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
  opacity: 0.85;
}
.category-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.category-card span { font-size: 0.85rem; color: var(--text-muted); }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
/* Каталог: 4 товара в ряд */
.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1280px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Каталог: компактные карточки — имя и цена под фото */
.product-card--catalog .product-card-image {
  aspect-ratio: unset;
  height: auto;
  max-height: none;
  line-height: 0;
}
.product-card--catalog .product-card-image img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.product-card--catalog .product-card-body {
  padding: 0.75rem 0.85rem 1rem;
}
.product-card--catalog .product-card-name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}
.product-card--catalog .product-card-name a {
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card--catalog .product-card-name a:hover {
  color: var(--gold);
}
.product-card--catalog .product-card-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

/* Каталог: категории в один ряд */
.catalog-search {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.catalog-search input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
.catalog-search input:focus {
  outline: none;
  border-color: var(--gold);
}
.cat-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}
.cat-filter-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 88px;
  max-width: 120px;
  padding: 0.85rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  text-align: center;
  transition: all var(--transition);
}
.cat-filter-chip:hover,
.cat-filter-chip.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}
.cat-filter-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gold-dim);
  border-radius: 50%;
}
.cat-filter-chip-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.cat-filter-chip-icon--all {
  font-size: 1.25rem;
  color: var(--gold);
}
.cat-filter-chip-label {
  line-height: 1.25;
  font-weight: 500;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover {
  border-color: rgba(166, 124, 46, 0.35);
  box-shadow: var(--shadow);
}
.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-body { padding: 1.25rem; }
.product-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0.35rem 0;
  font-weight: 600;
}
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--gold-light); }
.product-card-sku { font-size: 0.8rem; color: var(--text-muted); }
.product-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.75rem;
}
.product-card-price-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.cta-inner p { color: var(--text-muted); margin: 0; max-width: 50ch; }

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero-sm { padding: 3rem 0 2rem; }
.page-hero-icon {
  margin-bottom: 0.75rem;
}
.page-hero-icon img {
  width: 56px;
  height: 56px;
  padding: 10px;
  background: var(--gold-dim);
  border-radius: 50%;
  box-sizing: content-box;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}
.page-hero p { color: var(--text-muted); margin: 0; }

/* Catalog table */
.catalog-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.catalog-table thead {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.catalog-table th {
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.catalog-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.catalog-table tbody tr:last-child td { border-bottom: none; }
.catalog-table tbody tr:hover { background: rgba(166, 124, 46, 0.04); }
.col-photo { width: 100px; }
.col-article { width: 120px; color: var(--text-muted); }
.col-price { width: 140px; text-align: right; white-space: nowrap; }
.catalog-table th.col-price { text-align: right; }

.catalog-row-photo img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.catalog-row-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.catalog-row-title:hover { color: var(--gold); }
.catalog-row-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.catalog-row-article {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.catalog-row-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.catalog-cards-mobile { display: none; }

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.search-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}
.search-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}
.pagination a.active,
.pagination a:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* Product page */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-gallery {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 1;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0.5rem 0 1rem;
  font-weight: 600;
}
.product-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0.25rem 0; }
.product-price-block { margin: 2rem 0; }
.price-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.product-price-large {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-light);
  font-weight: 600;
}
.product-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-card h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 28ch; }
.site-footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0; }
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .product-detail,
  .contacts-grid,
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--catalog .product-card-image img { max-height: 140px; }
}
@media (max-width: 400px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
