:root {
  --bg: #101315;
  --panel: #181d20;
  --panel-strong: #20262a;
  --text: #f2efe8;
  --muted: #b7afa3;
  --accent: #b8f226;
  --accent-strong: #d4ff50;
  --wood: #b57a45;
  --line: rgba(255, 255, 255, 0.12);
  --focus: rgba(184, 242, 38, 0.42);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(181, 122, 69, 0.12), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(184, 242, 38, 0.08), transparent 30%),
    var(--bg);
  font-family: Inter, Manrope, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
  color: #101315;
}

nav { display: flex; gap: 18px; color: var(--muted); }
nav a:hover { color: var(--text); }

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) 0;
}

.hero h1,
.page-intro h1,
.product-header h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(3.4rem, 10vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero p,
.page-intro p,
.summary {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #101315;
  border-color: transparent;
}

.button.secondary {
  background: var(--panel);
  color: var(--text);
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus);
}

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

.workshop-panel {
  min-height: 480px;
  padding: 22px;
  display: grid;
  align-content: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(181, 122, 69, 0.2) 0 18px, rgba(201, 147, 87, 0.25) 18px 36px),
    linear-gradient(160deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.workshop-panel span {
  height: 54px;
  border-radius: 8px;
  background: rgba(16, 19, 21, 0.58);
  border: 1px solid var(--line);
}

.workshop-panel strong {
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 19, 21, 0.72);
}

.section { padding: clamp(42px, 7vw, 86px) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.section h2, .admin-shell h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: 0; }
.section > p, .split > p { color: var(--muted); font-size: 1.05rem; }

.section-heading,
.catalogue-bar,
.admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading a,
.text-button {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.product-card[hidden] { display: none; }
.product-card a { display: grid; gap: 10px; padding: 14px; }
.product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #0b0d0e; }
.product-card span, .price-row span { color: var(--muted); font-size: 0.9rem; }
.product-card h3 { margin: 0; font-size: 1.25rem; }
.product-card p { margin: 0; color: var(--muted); }
.product-card strong, .price-row strong { color: var(--accent); font-size: 1.2rem; }

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process article,
.review-card,
.filters,
.admin-panel,
.login-card,
.buy-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process span { color: var(--accent); font-weight: 900; }
.process p, .site-footer, label, .checkout-note, .empty-state { color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.review-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #0b0d0e;
}

.review-rating {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.review-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.review-card footer {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.review-card footer strong {
  color: var(--text);
}

.page-intro { padding: clamp(42px, 7vw, 78px) 0 32px; }
.catalogue-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; padding-bottom: 70px; }
.filters { position: sticky; top: 16px; display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1214;
  color: var(--text);
  padding: 12px;
}

.tag-filter { display: grid; gap: 9px; }
.tag-filter label,
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.tag-filter input,
.check-row input { width: auto; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  grid-template-areas:
    "gallery header"
    "description buy";
  gap: 24px 36px;
  align-items: start;
  padding: clamp(34px, 6vw, 76px) 0;
}

.gallery {
  grid-area: gallery;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery-track {
  display: flex;
  transition: transform 220ms ease;
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.gallery-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--text);
}

.product-header {
  grid-area: header;
  display: grid;
  align-content: start;
  gap: 18px;
}
.product-header h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); }
.product-description {
  grid-area: description;
  display: grid;
  gap: 16px;
  color: var(--muted);
}
.product-description h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1;
}
.product-description p { margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 16px; }
.buy-panel {
  grid-area: buy;
  position: sticky;
  top: 18px;
}
.stripe-slot { min-height: 92px; padding-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.video-section iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 390px); display: grid; gap: 15px; }
.login-card h1 { margin: 0; }
.admin-shell { padding: 42px 0; }
.admin-section { margin-top: 34px; }
.admin-panel { margin: 16px 0; padding: 0; overflow: hidden; }
.admin-panel summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
  background: var(--panel-strong);
}
.admin-panel-body { display: grid; gap: 16px; padding: 18px; }
.form-grid, .height-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
legend { color: var(--accent); font-weight: 900; }
.form-success { color: var(--accent); font-weight: 900; }
.form-error { color: #fecaca; font-weight: 900; }

.site-footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .section-heading,
  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { width: 100%; justify-content: space-between; }
  .hero,
  .split,
  .catalogue-layout,
  .product-detail,
  .process {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-areas:
      "gallery"
      "header"
      "buy"
      "description";
  }

  .buy-panel { position: static; }

  .hero { min-height: auto; }
  .workshop-panel { min-height: 320px; }
  .filters { position: static; }
  .hero h1, .page-intro h1 { font-size: clamp(3rem, 18vw, 5.4rem); }
}

@media (max-width: 460px) {
  .site-header, .site-footer, main { width: min(100% - 22px, var(--max)); }
  nav { gap: 10px; font-size: 0.94rem; }
  .button { width: 100%; }
  .hero-actions { width: 100%; }
}
