:root {
  --bg: #0b1020;
  --bg-2: #111827;
  --card: rgba(255, 255, 255, 0.92);
  --card-dark: rgba(17, 24, 39, 0.9);
  --text: #f8fafc;
  --muted: #94a3b8;
  --ink: #111827;
  --ink-muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #40d9ff;
  --accent-2: #7c3aed;
  --accent-3: #22c55e;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: min(1180px, calc(100vw - 40px));
  font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.page-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -12%, rgba(64, 217, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 88% -8%, rgba(124, 58, 237, 0.12), transparent 28rem),
    #f4f7fb;
  min-height: 100vh;
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 55%);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: var(--container);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(8, 13, 26, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.main-nav { display: flex; justify-content: center; gap: 8px; }
.main-nav a, .ghost-link {
  color: rgba(255,255,255,.78);
  padding: 10px 12px;
  border-radius: 999px;
  transition: .18s ease;
  white-space: nowrap;
}
.main-nav a:hover, .ghost-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-button {
  border: 0;
  color: #07111f;
  background: linear-gradient(135deg, var(--accent), #b9f4ff);
  border-radius: 999px;
  padding: 9px 10px 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 12px 34px rgba(64, 217, 255, .28);
}
.cart-button b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17,24,39,.92);
  color: #fff;
}
.burger { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px; background: #fff; border-radius: 10px; }

.section-pad { width: var(--container); margin-inline: auto; padding: 92px 0; }
/* Главная начинается сразу с каталога: hero/промо-блок намеренно удалён. */
.first-section {
  padding-top: 38px;
}
.catalog-section, .split, .wholesale { color: var(--ink); }
.section-head { display: grid; grid-template-columns: 1fr minmax(280px, 430px); align-items: end; gap: 28px; margin-bottom: 30px; }
.section-head-single { grid-template-columns: 1fr; max-width: 920px; }
.section-head p:not(.eyebrow) { color: var(--ink-muted); line-height: 1.65; margin-bottom: 0; }
.section-head.compact { display: block; max-width: 830px; }
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(170px, .6fr));
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
  margin-bottom: 24px;
}
.catalog-toolbar label, .checkout-form label, .lead-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #d8e1ef;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: 0;
  transition: border .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus { border-color: rgba(64,217,255,.9); box-shadow: 0 0 0 4px rgba(64,217,255,.18); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 22px 58px rgba(15,23,42,.14); }
.product-art {
  position: relative;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.7), transparent 8rem),
    linear-gradient(135deg, #eef6ff, #f8fafc);
}
.filament-swatch {
  position: absolute;
  inset: 0;
  background: var(--swatch, linear-gradient(135deg, #40d9ff, #7c3aed));
  opacity: .85;
  mix-blend-mode: multiply;
}
.spool-mini {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 23px, rgba(0,0,0,.82) 24px 36px, transparent 37px),
    repeating-conic-gradient(from 0deg, rgba(10,15,25,.9) 0 8deg, rgba(33,42,58,.95) 8deg 15deg),
    radial-gradient(circle, #111827 0 69%, #020617 70% 100%);
  box-shadow: 0 20px 42px rgba(0,0,0,.25);
}
.spool-mini span {
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  border: 18px solid rgba(255,255,255,.35);
  outline: 9px solid rgba(0,0,0,.25);
}
.product-body { padding: 20px; }
.product-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.pill, .stock { font-size: 12px; line-height: 1; border-radius: 999px; padding: 7px 10px; font-weight: 900; }
.pill { color: #0369a1; background: #e0f2fe; }
.stock { color: #15803d; background: #dcfce7; }
.stock.request { color: #a16207; background: #fef3c7; }
.product-desc { color: var(--ink-muted); line-height: 1.55; min-height: 75px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; }
.specs div { padding: 10px; background: #f7fafc; border-radius: 14px; }
.specs dt { color: var(--ink-muted); font-size: 12px; font-weight: 800; }
.specs dd { margin: 3px 0 0; font-weight: 900; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.price { font-size: 22px; letter-spacing: -.03em; }
.empty-state { text-align: center; background: #fff; border-radius: var(--radius-xl); padding: 44px; box-shadow: 0 14px 36px rgba(15,23,42,.08); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split p { color: var(--ink-muted); line-height: 1.7; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink); line-height: 1.55; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #15803d; font-weight: 900; }
.wholesale-card { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 32px; align-items: start; background: linear-gradient(135deg, #111827, #1e293b); color: #fff; }
.wholesale-card p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.7; }
.lead-form { display: grid; gap: 13px; }
.lead-form label { color: rgba(255,255,255,.75); }
.form-note { font-size: 13px; color: var(--ink-muted); margin: 0; line-height: 1.45; }
.lead-form .form-note { color: rgba(255,255,255,.6); }

.site-footer {
  width: var(--container);
  margin: 0 auto 28px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr .8fr .6fr;
  gap: 28px;
  color: rgba(255,255,255,.72);
  background: #0b1020;
  border-radius: var(--radius-xl);
}
.site-footer h3 { color: #fff; margin-bottom: 14px; }
.site-footer p { max-width: 440px; line-height: 1.7; }
.site-footer a, .site-footer span { display: block; margin: 9px 0; }
.site-footer a:hover { color: #fff; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  background: rgba(2, 6, 23, .56);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cart-drawer[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.cart-panel {
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  color: var(--ink);
  padding: 26px;
  overflow-y: auto;
  box-shadow: -20px 0 80px rgba(0,0,0,.26);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.cart-drawer[aria-hidden="false"] .cart-panel { transform: translateX(0); }
.cart-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.icon-button { border: 0; width: 42px; height: 42px; border-radius: 50%; background: #f1f5f9; color: var(--ink); font-size: 28px; cursor: pointer; }
.cart-items { display: grid; gap: 12px; padding: 20px 0; }
.cart-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: #f8fafc; }
.cart-row-swatch { width: 58px; height: 58px; border-radius: 16px; background: var(--swatch); }
.cart-row h4 { margin: 0 0 4px; font-size: 15px; }
.cart-row p { margin: 0; color: var(--ink-muted); font-size: 13px; }
.qty-controls { display: flex; align-items: center; gap: 7px; }
.qty-controls button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #e2e8f0; cursor: pointer; }
.remove-line { border: 0; color: var(--danger); background: transparent; cursor: pointer; font-size: 12px; margin-top: 8px; padding: 0; }
.cart-summary { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 16px 0; margin-bottom: 18px; }
.cart-summary div { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 8px; }
.cart-summary strong { font-size: 28px; }
.cart-summary small { color: var(--ink-muted); }
.checkout-form { display: grid; gap: 12px; }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .main-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    padding: 16px;
    border-radius: 24px;
    background: rgba(8,13,26,.96);
    border: 1px solid rgba(255,255,255,.12);
  }
  .main-nav.open { display: flex; }
  .ghost-link { display: none; }
  .burger { display: block; }
  .section-head, .catalog-toolbar, .split, .wholesale-card, .site-footer { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --container: min(100vw - 24px, 1180px); }
  .site-header { top: 8px; margin-top: 8px; padding: 10px 10px 10px 14px; gap: 10px; }
  .brand img { width: 132px; }
  .cart-button span { display: none; }
  .section-pad { padding: 62px 0; }
  .first-section { padding-top: 28px; }
  h1 { font-size: 44px; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { padding: 12px; }
  .site-footer { padding: 24px; }
  .cart-panel { padding: 18px; }
}


.brand img {
  width: auto;
  height: 42px;
}
.brand-suffix {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #ffffff;
  line-height: 1;
  margin-top: 2px;
}
.footer-brand .brand-suffix {
  color: #ffffff;
  font-size: 22px;
}
.partial-toolbar {
  grid-template-columns: 1.8fr minmax(180px, .7fr) minmax(180px, .7fr);
}
.source-note {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #eef6ff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.product-art.has-photo {
  min-height: 320px;
  background: #eef2f7;
}
.product-art.has-photo .filament-swatch,
.product-art.has-photo .spool-mini {
  display: none;
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.product-art.has-photo .product-photo {
  display: block;
}
.product-desc {
  min-height: 64px;
}
.price {
  max-width: 230px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.delivery-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
@media (max-width: 680px) {
  .brand img { height: 30px; }
  .brand-suffix { font-size: 18px; letter-spacing: .12em; }
  .partial-toolbar { grid-template-columns: 1fr; }
  .product-art.has-photo { min-height: 260px; }
}
