:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --text: #151515;
  --muted: #7b7b76;
  --line: #e6e2db;
  --accent: #4d7cff;
  --accent-soft: rgba(77,124,255,.12);
  --shadow: 0 18px 46px rgba(18, 18, 18, 0.07);
  --radius-lg: 26px;
  --container: 1380px;
  --header-h: 76px;
}

body.dark-mode {
  --bg: #0d0f12;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --text: #f3f5f7;
  --muted: #9aa1aa;
  --line: #232831;
  --accent: #7ea1ff;
  --accent-soft: rgba(126,161,255,.16);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; }
button, input, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

[data-lang="am"] { display:none; }
body.lang-am [data-lang="ru"] { display:none; }
body.lang-am [data-lang="am"] { display:inline; }

.site-header {
  position: sticky;
  top:0;
  z-index:30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom:1px solid color-mix(in srgb, var(--line) 92%, transparent);
}

.site-header__inner {
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.logo { font-size: 28px; font-weight: 800; letter-spacing:.08em; }
.logo span { color: var(--accent); }

.site-nav ul {
  list-style:none;
  display:flex;
  margin:0;
  padding:0;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.site-nav a {
  padding:10px 14px;
  border-radius:999px;
  color:var(--muted);
  transition:.18s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  background: var(--surface);
  color:var(--text);
  box-shadow: var(--shadow);
}

.header-actions { display:flex; align-items:center; gap:10px; }

.toggle-btn {
  min-width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--line);
  background: var(--surface);
  color:var(--text);
  cursor:pointer;
}

.page-hero { padding:38px 0 24px; }

.page-hero__panel {
  background: linear-gradient(135deg,#111319,#2f333a);
  color:#fff;
  border-radius:34px;
  padding:38px;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}

.page-hero__panel::before,
.page-hero__panel::after {
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}

.page-hero__panel::before {
  width:340px;
  height:340px;
  right:-60px;
  top:-100px;
  background: radial-gradient(circle, rgba(126,161,255,.22) 0%, rgba(126,161,255,0) 72%);
}

.page-hero__panel::after {
  width:260px;
  height:260px;
  left:-60px;
  bottom:-80px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 75%);
}

.eyebrow {
  display:inline-flex;
  min-height:34px;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:13px;
}

.page-hero h1 {
  margin:14px 0 12px;
  font-size: clamp(34px, 6vw, 62px);
  line-height:1.02;
  letter-spacing:-.05em;
  max-width:900px;
}

.page-hero p {
  margin:0;
  max-width:900px;
  color: rgba(255,255,255,.78);
  line-height:1.75;
}

.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }

.btn,
.action-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
}

.btn--primary { background:#fff; color:#101217; }
.btn--secondary { background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.16); }
.btn--surface,
.action-btn--ghost { background:var(--surface); color:var(--text); border-color:var(--line); }

.section { padding:18px 0 54px; }
.section-title { margin:0 0 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing:-.04em; }
.section-text { margin:0; color: var(--muted); line-height:1.75; }

.grid-2,
.grid-3,
.grid-4,
.stat-grid,
.collection-preview-grid,
.catalog-grid,
.detail-spec-grid {
  display:grid;
  gap:18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4,
.collection-preview-grid,
.stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card,
.detail-gallery,
.detail-info {
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-card,
.feature-card,
.project-card,
.collection-card,
.stat-card { padding:22px; }

.stat-card strong { display:block; font-size:30px; letter-spacing:-.04em; }
.stat-card span { color:var(--muted); font-size:14px; }

.about-layout { display:grid; grid-template-columns:1.1fr .9fr; gap:18px; }

.check-list {
  list-style:none;
  margin:18px 0 0;
  padding:0;
  display:grid;
  gap:10px;
}

.check-list li {
  padding-left:24px;
  position:relative;
  color:var(--muted);
  line-height:1.65;
}

.check-list li::before {
  content:"•";
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:700;
}

.collection-card { display:grid; gap:12px; transition:.18s ease; }
.collection-card:hover { transform: translateY(-2px); }

.collection-card__image {
  aspect-ratio:1/.72;
  display:grid;
  place-items:center;
  background: var(--surface-2);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
}

.collection-card__image img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:10px;
}

.collection-card__title { font-size:14px; font-weight:600; text-align:center; }

.project-card { display:grid; gap:14px; }
.project-card__meta { display:flex; gap:8px; flex-wrap:wrap; }

.pill {
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 10px;
  border-radius:999px;
  background: var(--surface-2);
  color: var(--muted);
  border:1px solid var(--line);
  font-size:12px;
}

.project-card h3,
.feature-card h3,
.about-card h3 {
  margin:0;
  font-size:24px;
  letter-spacing:-.03em;
}

.project-card p,
.feature-card p,
.about-card p {
  margin:0;
  color: var(--muted);
  line-height:1.7;
}

.footer { padding:28px 0 50px; color:var(--muted); }
.footer__inner {
  padding-top:22px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.catalog-page .page-hero__panel { padding-bottom:28px; }
.catalog-shell { padding:10px 0 56px; }

.collection-strip-wrap {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:16px;
}

.collection-strip-title { font-size:16px; font-weight:700; }
.collection-strip-sub { color: var(--muted); font-size:14px; }

/* FIXED MINI STRIP */
.collection-strip {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(98px,112px);
  gap:10px;
  overflow-x:auto;
  padding:2px 0 10px;
}

.collection-strip::-webkit-scrollbar { height:8px; }
.collection-strip::-webkit-scrollbar-thumb {
  background:var(--line);
  border-radius:999px;
}

.collection-pill {
  box-sizing:border-box;
  padding:10px 8px 8px;
  background:transparent;
  border:1px solid transparent;
  border-radius:18px;
  display:grid;
  gap:8px;
  justify-items:center;
  align-content:start;
  cursor:pointer;
  min-height:116px;
  transition:.18s ease;
  overflow:hidden;
}

.collection-pill:hover {
  background:var(--surface);
  border-color:var(--line);
}

.collection-pill.active {
  background:var(--surface);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: var(--shadow);
}

.collection-pill__image {
  box-sizing:border-box;
  width:100%;
  max-width:88px;
  height:62px;
  margin:0;
  border-radius:14px;
  background:transparent;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.collection-pill__image img {
  display:block;
  width:auto;
  height:auto;
  max-width:92%;
  max-height:92%;
  margin:0 auto;
  padding:0;
  object-fit:contain;
  object-position:center center;
}

.collection-pill__label {
  font-size:12px;
  line-height:1.25;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  width:100%;
}

.catalog-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:10px 0 18px;
}

.catalog-toolbar__left,
.catalog-toolbar__right {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.search-input,
.filter-select {
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
  padding:0 14px;
}

.search-input { min-width:320px; }
.filter-select { min-width:160px; }
.toolbar-meta { color:var(--muted); }

.catalog-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; }

.product-card {
  background:var(--surface);
  border:1px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  z-index:2;
}

.product-card.active {
  outline:2px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

.product-card__image-wrap {
  position:relative;
  aspect-ratio:1/1.05;
  background:var(--surface-2);
  border-bottom:1px solid var(--line);
}

.product-card__image {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:20px;
}

.product-ribbon {
  position:absolute;
  right:10px;
  bottom:10px;
  background:var(--accent);
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
}

.product-card__body { padding:12px 16px 18px; }

.product-card__topline,
.product-card__bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.product-card__topline {
  color:var(--muted);
  font-size:12px;
  margin-bottom:8px;
}

.product-card__title {
  margin:0 0 8px;
  font-size:23px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.product-card__collection { color:var(--accent); font-weight:600; font-size:13px; }
.product-card__bottom strong { font-size:18px; }

.product-card__preview {
  position:absolute;
  inset:16px 16px auto auto;
  width:min(74vw,310px);
  padding:14px;
  border:1px solid var(--line);
  border-radius:20px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow:var(--shadow);
  opacity:0;
  transform:translateY(6px);
  pointer-events:none;
  transition:.18s ease;
  z-index:8;
}

.product-card:hover .product-card__preview { opacity:1; transform:translateY(0); }

.product-card__preview img {
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  background:var(--surface-2);
  border-radius:16px;
  padding:12px;
}

.product-card__preview-title { margin-top:10px; font-size:14px; font-weight:700; }
.product-card__preview-text { margin-top:4px; color:var(--muted); font-size:13px; }

.detail-section { padding:22px 0 64px; }
.detail-layout { display:grid; grid-template-columns:1.06fr .94fr; gap:18px; }
.detail-gallery,
.detail-info { overflow:hidden; }

.detail-main-image-wrap {
  position:relative;
  aspect-ratio:1/.82;
  background:var(--surface-2);
}

.detail-main-image {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:30px;
}

.detail-floating-nav {
  position:absolute;
  left:16px;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  justify-content:space-between;
  pointer-events:none;
}

.circle-btn {
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color:var(--text);
  cursor:pointer;
  pointer-events:auto;
}

.detail-ribbon {
  position:absolute;
  right:16px;
  bottom:16px;
  background:var(--accent);
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
}

.detail-thumbs {
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
  padding:16px;
}

.thumb {
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:14px;
  padding:0;
  overflow:hidden;
  cursor:pointer;
}

.thumb.active { outline:2px solid color-mix(in srgb, var(--accent) 36%, transparent); }

.thumb img {
  width:100%;
  aspect-ratio:1/.84;
  object-fit:contain;
  padding:8px;
}

.detail-info { padding:24px; display:grid; gap:16px; }
.detail-tags { display:flex; gap:8px; flex-wrap:wrap; }
.detail-sku { color:var(--muted); font-size:14px; }

.detail-info h2 {
  margin:0;
  font-size: clamp(32px, 4vw, 48px);
  line-height:1.02;
  letter-spacing:-.05em;
}

.detail-description { margin:0; color:var(--muted); line-height:1.75; }
.detail-price { font-size:46px; line-height:1; letter-spacing:-.05em; font-weight:700; }
.detail-actions { display:flex; gap:10px; flex-wrap:wrap; }
.action-btn { background:var(--text); color:var(--bg); }

.detail-spec-grid { grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }

.spec-card {
  background:var(--surface-2);
  border:1px solid var(--line);
  padding:16px;
  border-radius:18px;
}

.spec-card strong {
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}

.detail-swatches-block h3,
.detail-list-block h3 { margin:0 0 12px; font-size:16px; }

.detail-swatches { display:flex; flex-wrap:wrap; gap:10px; }

.swatch {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 12px 6px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface);
  cursor:pointer;
}

.swatch.active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}

.swatch__dot {
  width:24px;
  height:24px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.08);
}

.detail-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
}

.detail-list li {
  display:grid;
  grid-template-columns:160px 1fr;
  gap:14px;
  padding-bottom:10px;
  border-bottom:1px dashed color-mix(in srgb, var(--line) 92%, transparent);
}

.detail-list li:last-child {
  border-bottom:0;
  padding-bottom:0;
}

.empty-state {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:26px;
  color:var(--muted);
}

@media (max-width: 1180px) {
  .grid-4,
  .collection-preview-grid,
  .catalog-grid,
  .stat-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }

  .grid-3,
  .detail-layout,
  .about-layout { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap:wrap; padding:12px 0; }
  .site-nav { order:3; width:100%; }
  .search-input { min-width:0; width:100%; }
  .catalog-toolbar { flex-direction:column; align-items:stretch; }
  .catalog-toolbar__left,
  .catalog-toolbar__right { width:100%; }

  .collection-strip { grid-auto-columns:minmax(92px,104px); }

  .collection-pill__image {
    max-width:82px;
    height:58px;
  }

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

@media (max-width: 680px) {
  .container { width:min(var(--container), calc(100% - 20px)); }
  .page-hero__panel { padding:24px; }

  .grid-4,
  .grid-2,
  .collection-preview-grid,
  .catalog-grid,
  .stat-grid,
  .detail-spec-grid,
  .detail-thumbs { grid-template-columns:1fr; }

  .detail-list li { grid-template-columns:1fr; gap:6px; }
}
