:root {
  --ivory: #f8f4ea;
  --milk: #fffdf7;
  --linen: #efe5d2;
  --ink: #27231d;
  --muted: #6d6252;
  --gold: #c6a24b;
  --green: #263f2b;
  --green-light: #36583c;
  --burgundy: #7f2428;
  --wb: #cb11ab;
  --ozon: #005bff;
  --line: rgba(148, 114, 45, 0.32);
  --shadow: 0 18px 50px rgba(52, 38, 20, 0.12);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffdf8 0%, var(--ivory) 44%, #f5ecd9 100%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea { transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:active { transform: translateY(1px); }

.reference-first-screen {
  position: relative;
  width: 100%;
  height: clamp(506px, 34.4vw, 660px);
  overflow: hidden;
  background: #fffdf7;
  border-bottom: 1px solid var(--line);
}
.reference-first-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.2) 0%, rgba(255, 253, 247, 0.08) 29%, rgba(255, 253, 247, 0) 42%);
  pointer-events: none;
}
.hero-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 12.4vw, 238px);
  top: 50%;
  width: min(500px, 34vw);
  transform: translateY(-48%);
}
.hero-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 3.3vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  text-shadow: 0 1px 18px rgba(255, 253, 247, 0.9);
}
.hero-content p {
  margin: 18px 0 18px;
  color: #4d463d;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(255, 253, 247, 0.9);
}
.ornament-line {
  position: relative;
  width: min(360px, 100%);
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--line), var(--gold), var(--line));
}
.ornament-line::after {
  content: "✥";
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0;
  transform: translate(-50%, -50%);
  background: transparent;
  color: var(--gold);
  font-size: 20px;
}
.hero-cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  border-radius: var(--radius);
}
.hero-cta:hover, .hero-cta:focus-visible { background: var(--green-light); box-shadow: 0 8px 22px rgba(38, 63, 43, 0.2); }
.hero-cta::after {
  content: "→";
  color: #d4bc75;
  font-size: 26px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 110px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 20px clamp(42px, 5vw, 86px);
  background: rgba(255, 253, 247, 0.94);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--gold); font-size: 48px; line-height: 1; }
.brand strong { display: block; font-size: 25px; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font: 12px/1.3 Arial, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); font-size: 16px; white-space: nowrap; }
.top-nav a, .cart-link { color: var(--ink); text-decoration: none; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.cart-link:hover, .cart-link:focus-visible { color: var(--green); }
.header-actions { justify-self: end; display: inline-flex; align-items: center; }
.cart-link { position: relative; display: inline-block; padding: 8px; }
.cart-count { position: absolute; top: -3px; right: -5px; min-width: 24px; height: 24px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 50%; font: 12px/1 Arial, sans-serif; }
.cart-icon { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.catalog-section { padding: 58px clamp(18px, 4vw, 64px) 74px; background: var(--milk); }
.section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-head span, .section-kicker, .product-category {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.section-head h1, .faq-section h2, .cart-panel h2, .checkout-form h2 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}
.section-head p, .faq-section p, .empty-cart { color: var(--muted); line-height: 1.6; }

.filters {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}
.filters label, .checkout-form label { display: grid; gap: 8px; }
.filters span, .checkout-form label span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filters input, .filters select, .checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 15px;
}
.filters input:focus, .filters select:focus, .checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus,
.inquiry-form input:focus, .inquiry-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 162, 75, 0.14);
  outline: none;
}
.category-pills { max-width: 1180px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.category-pills button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.category-pills button.active { background: var(--green); color: #fff; border-color: var(--green); }
.category-pills button:not(.active):hover { border-color: var(--green); background: rgba(38, 63, 43, 0.05); }

.product-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  display: grid;
  background: #fffaf0;
  border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(52, 38, 20, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.product-card:hover { border-color: rgba(148, 114, 45, 0.52); box-shadow: 0 12px 30px rgba(52, 38, 20, 0.1); transform: translateY(-2px); }
.image-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  background: linear-gradient(180deg, #efe1c6, #f8f1e2);
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.image-button img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.product-info { display: flex; flex-direction: column; min-height: 224px; padding: 18px 20px 20px; }
.product-card h3 { margin: 8px 0 16px; font-size: 22px; line-height: 1.22; font-weight: 400; }
.product-card h3 button { border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer; }
.product-card h3 button:hover { color: var(--green); }
.product-card dl, .product-modal dl { display: grid; gap: 9px; margin: 0; color: var(--muted); }
dt { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
dd { margin: 0; }
.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.product-buy strong, .product-modal strong, .cart-total strong { color: var(--burgundy); font-size: 24px; font-weight: 400; }
.product-buy button, .load-more, .submit-order, #modalCart {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.product-buy button:hover, .submit-order:hover, #modalCart:hover { background: var(--green-light); }
.product-buy button:hover, .submit-order:hover, #modalCart:hover { box-shadow: 0 6px 16px rgba(38, 63, 43, 0.18); }
.load-more { margin: 34px auto 0; background: transparent; color: var(--green); display: flex; }
.load-more:hover { background: rgba(38, 63, 43, 0.06); border-color: var(--green); }
.load-more[hidden] { display: none; }
.marketplace-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px auto 0; }
.marketplace-links[hidden] { display: none; }
.marketplace-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius); color: #fff; padding: 10px 18px; text-decoration: none; font-family: Arial, sans-serif; font-size: 14px; font-weight: 600; }
.marketplace-links .marketplace-link--wb { background: var(--wb); border-color: var(--wb); }
.marketplace-links .marketplace-link--ozon { background: var(--ozon); border-color: var(--ozon); }
.marketplace-links .marketplace-link--wb:hover, .marketplace-links .marketplace-link--wb:focus-visible { background: #a5008a; border-color: #a5008a; box-shadow: 0 6px 18px rgba(203, 17, 171, 0.18); }
.marketplace-links .marketplace-link--ozon:hover, .marketplace-links .marketplace-link--ozon:focus-visible { background: #0048cc; border-color: #0048cc; box-shadow: 0 6px 18px rgba(0, 91, 255, 0.18); }
.modal-marketplace-links { justify-content: flex-start; margin: 0; }

.faq-section, .cart-checkout, .admin-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  padding: 74px clamp(18px, 5vw, 78px);
}
.faq-section {
  display: block;
  background: linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(248, 244, 234, 0.96)), radial-gradient(circle at 18% 12%, rgba(198, 162, 75, 0.16), transparent 24rem);
}
.faq-heading { max-width: 1120px; margin: 0 auto 28px; }
.faq-heading p { max-width: 760px; margin-bottom: 0; }
.faq-layout { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.faq-list { display: grid; align-content: start; gap: 10px; }
.faq-list details { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf7; box-shadow: 0 5px 18px rgba(52, 38, 20, 0.05); overflow: hidden; }
.faq-list details:hover, .faq-list details[open] { border-color: rgba(148, 114, 45, 0.58); }
.faq-list summary { cursor: pointer; color: var(--green); font-size: 19px; line-height: 1.25; padding: 15px 18px; }
.faq-list summary::marker { color: var(--gold); }
.faq-list p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.6; }
.faq-layout .inquiry-form { margin-top: 0; }
.inquiry-form { display: grid; gap: 14px; margin-top: 32px; border-top: 1px solid var(--gold); padding-top: 28px; }
.inquiry-form h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; line-height: 1.18; }
.inquiry-form p { margin: 0; }
.inquiry-form label, .marketplace-admin-form label { display: grid; gap: 7px; }
.inquiry-form label span, .marketplace-admin-form label span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.inquiry-form input, .inquiry-form textarea, .marketplace-admin-form input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf7; color: var(--ink); padding: 12px 14px; font-family: Arial, sans-serif; font-size: 15px; }
.inquiry-form textarea { min-height: 100px; resize: vertical; }
.inquiry-form button, .marketplace-admin-form button { min-height: 48px; justify-self: start; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--green); color: #fff; padding: 11px 24px; font-family: Arial, sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; }
.inquiry-form button:hover, .marketplace-admin-form button:hover { background: var(--green-light); }
.inquiry-form button:disabled { opacity: 0.65; cursor: wait; }
.inquiry-form .form-status { min-height: 1.4em; font-size: 14px; color: var(--green); }
.inquiry-form .form-status.error { color: var(--burgundy); }
.form-trap { position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.cart-checkout { background: var(--ivory); align-items: start; }
.cart-panel, .checkout-form { background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: 0 8px 28px rgba(52, 38, 20, 0.06); }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cart-item img { width: 68px; height: 82px; object-fit: cover; }
.quantity { display: inline-grid; grid-template-columns: 32px 36px 32px; align-items: center; border: 1px solid var(--line); border-radius: 4px; }
.quantity button { height: 34px; border: 0; background: transparent; cursor: pointer; }
.quantity button:hover { background: rgba(38, 63, 43, 0.07); }
.quantity span { text-align: center; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comment-field { margin-top: 14px; }
.checkout-form textarea { min-height: 96px; resize: vertical; }
.submit-order { width: 100%; margin-top: 18px; }
.wholesale-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: clamp(24px, 4vw, 60px); padding: 74px clamp(18px, 5vw, 78px); background: #e9e5db; }
.wholesale-intro h2 { margin: 10px 0 16px; font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.08; }
.wholesale-intro p { max-width: 520px; color: var(--muted); line-height: 1.6; }
.wholesale-form { margin: 0; padding: 0; border: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 26px clamp(18px, 4vw, 64px); background: #1f1a14; color: rgba(255, 253, 247, 0.78); }
.footer strong { color: #fffdf7; }
.footer a { color: #d8bd72; text-decoration: none; }

.admin-page { background: var(--ivory); }
.admin-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: #fffdf7;
  border-bottom: 1px solid var(--line);
}
.admin-site-link { color: var(--green); text-decoration: none; border: 1px solid var(--line); padding: 12px 18px; }
.admin-shell { max-width: 1240px; margin: 0 auto; padding: 42px 20px 72px; }
.admin-login {
  max-width: 920px;
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 12px 34px rgba(52, 38, 20, 0.08);
}
.admin-login[hidden], .admin-workspace[hidden] { display: none; }
.admin-login h1 { margin: 8px 0 14px; font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1.05; }
.admin-login p { color: var(--muted); line-height: 1.55; }
.admin-login-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fffaf0;
  padding: 20px;
}
.admin-login-form label { display: grid; gap: 8px; }
.admin-login-form label span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  padding: 11px 12px;
}
.admin-login-form button, .admin-logout {
  min-height: 44px;
  border: 1px solid var(--gold);
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
}
.admin-title { position: relative; margin-bottom: 22px; padding-right: 130px; }
.admin-title h1 { margin: 8px 0 0; font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1.05; }
.admin-logout { position: absolute; right: 0; top: 10px; background: #fffdf7; color: var(--green); }
.admin-status { min-height: 24px; margin: 16px 0 0; color: var(--green); line-height: 1.45; }
.admin-status.error { color: var(--burgundy); }
.admin-tabs { display: inline-flex; gap: 8px; margin-bottom: 22px; border: 1px solid var(--line); background: #fffdf7; padding: 6px; }
.admin-tabs button {
  min-width: 140px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}
.admin-tabs button.active { background: var(--green); color: #fff; }
.admin-panel { display: none; border: 1px solid var(--line); background: #fffdf7; padding: clamp(20px, 3vw, 34px); box-shadow: 0 12px 34px rgba(52, 38, 20, 0.08); }
.admin-panel.active { display: block; }
.marketplace-admin-form { display: grid; gap: 16px; max-width: 700px; }
.marketplace-admin-form button { margin-top: 5px; }
.inquiry-row p { white-space: pre-wrap; line-height: 1.5; margin: 10px 0 0; }
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-panel-head h2 { margin: 0 0 8px; font-size: 34px; font-weight: 400; }
.admin-panel-head p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-panel-head button, .admin-row-actions button {
  min-height: 42px;
  border: 1px solid var(--gold);
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
}
.admin-table { display: grid; gap: 10px; }
.admin-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fffaf0;
  padding: 12px;
}
.admin-product-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-product-cell img { width: 58px; height: 58px; object-fit: cover; border: 1px solid var(--line); background: #f4ead8; }
.admin-table-row strong { display: block; font-size: 20px; font-weight: 400; line-height: 1.25; }
.admin-table-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.admin-row-actions button:last-child { background: #fffdf7; color: var(--burgundy); border-color: rgba(127, 36, 40, 0.35); }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 26, 20, 0.62);
}
.admin-modal[hidden] { display: none; }
.admin-edit-form {
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--gold);
  background: #fffdf7;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.admin-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.admin-modal-head h2 { margin: 0; font-size: 34px; font-weight: 400; }
.admin-modal-head button { width: 42px; height: 42px; border: 1px solid var(--line); background: #fffaf0; font-size: 28px; cursor: pointer; }
.admin-edit-form label { display: grid; gap: 8px; margin-bottom: 14px; }
.admin-edit-form label span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-edit-form input, .admin-edit-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--ink);
  padding: 11px 12px;
}
.admin-edit-form textarea { min-height: 96px; resize: vertical; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}
.upload-preview > div {
  min-height: 118px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  background: #fffaf0;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}
.upload-preview img { max-width: 100%; max-height: 130px; object-fit: contain; }

.admin-section {
  display: block;
  background: #fffdf7;
}
.admin-tools {
  max-width: 1180px;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-backup {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 16px 18px;
}
.admin-backup summary {
  cursor: pointer;
  color: var(--green);
  font-size: 18px;
}
.admin-tools button, .import-button, .admin-actions button, .admin-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fffaf0;
  color: var(--green);
  padding: 10px 15px;
  cursor: pointer;
}
.import-button { position: relative; display: inline-flex; align-items: center; overflow: hidden; }
.import-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-layout {
  max-width: 1180px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}
.admin-form, .admin-list-panel {
  border: 1px solid var(--line);
  background: #fffaf0;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 30px rgba(52, 38, 20, 0.07);
}
.admin-form h3, .admin-list-panel h3 { margin: 0 0 18px; font-size: 28px; font-weight: 400; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form label { display: grid; gap: 8px; margin-bottom: 14px; }
.admin-form span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-form input, .admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}
.admin-form textarea { min-height: 90px; resize: vertical; }
.wide-field { grid-column: 1 / -1; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.admin-actions button:first-child {
  border-color: var(--gold);
  background: var(--green);
  color: #fff;
}
.admin-list { display: grid; gap: 10px; max-height: 540px; overflow: auto; padding-right: 4px; }
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}
.admin-row strong { display: block; font-weight: 400; line-height: 1.25; }
.admin-row small { display: block; color: var(--muted); margin-top: 3px; }
.faq-admin-layout { margin-top: 38px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 19, 13, 0.62);
}
.modal-backdrop[hidden] { display: none; }
.product-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1fr);
  overflow: auto;
  background: var(--milk);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  border-radius: 8px;
}
.product-modal > div { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 44px); }
.modal-gallery { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: clamp(16px, 2vw, 24px); background: linear-gradient(180deg, #efe1c6, #fbf5e9); }
.modal-image-stage { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #f6eddc; }
.modal-image-stage img, .modal-image-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal-image-stage video { background: #17120d; }
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-thumbs {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-color: var(--gold) #fffaf0;
}
.gallery-thumbs button {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
}
.gallery-thumbs button.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(38, 63, 43, 0.14); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.admin-extra-photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.admin-extra-photo { position: relative; width: 76px; height: 76px; border: 1px solid var(--line); }
.admin-extra-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-extra-photo button { position: absolute; top: 0; right: 0; width: 24px; height: 24px; border: 0; background: var(--green); color: white; cursor: pointer; }
.video-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #263f2b;
  color: #fffdf7;
  font-size: 26px;
}
.close-modal { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255, 253, 247, 0.94); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.close-modal:hover { background: #fffdf7; border-color: var(--gold); }
.product-video-block { display: grid; gap: 10px; }
.video-frame {
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #efe1c6, #fffaf0);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: minmax(230px, 1fr) auto; height: auto; min-height: 110px; padding: 12px 34px; gap: 8px 16px; }
  .top-nav { display: flex; grid-row: 2; grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-checkout, .wholesale-section, .admin-layout { grid-template-columns: 1fr; }
  .reference-first-screen { height: 528px; }
  .hero-content { left: 34px; width: min(470px, 52vw); }
}
@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 10px 16px; }
  .top-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: calc(100vw - 32px); padding-bottom: 5px; }
  .brand strong { font-size: 19px; }
  .brand small { display: none; }
  .filters, .product-grid, .form-grid, .product-modal, .admin-form-grid, .faq-layout { grid-template-columns: 1fr; }
  .catalog-section, .faq-section, .cart-checkout, .wholesale-section, .admin-section { padding-left: 16px; padding-right: 16px; }
  .wholesale-form .form-grid { grid-template-columns: 1fr; }
  .marketplace-links a { width: 100%; }
  .reference-first-screen::before { background: linear-gradient(180deg, rgba(255, 253, 247, 0.55) 0%, rgba(255, 253, 247, 0.18) 45%, rgba(255, 253, 247, 0) 72%); }
  .reference-first-screen { height: 572px; }
  .hero-content { top: 38px; left: 18px; right: 18px; width: auto; transform: none; }
  .hero-content h1 { font-size: 43px; }
  .hero-content p { font-size: 20px; margin: 20px 0; }
  .modal-image-stage { min-height: 360px; }
  .admin-row { grid-template-columns: 1fr; }
  .admin-panel-head, .admin-table-row { grid-template-columns: 1fr; display: grid; }
  .admin-row-actions { justify-content: stretch; }
  .admin-row-actions button, .admin-panel-head button { width: 100%; }
  .upload-preview { grid-template-columns: 1fr; }
  .admin-login { grid-template-columns: 1fr; }
  .admin-title { padding-right: 0; }
  .admin-logout { position: static; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
