:root {
  --ink: #24201d;
  --deep: #171514;
  --paper: #fbf7ef;
  --porcelain: #fffdf8;
  --mist: #ebe5db;
  --gold: #b28445;
  --moss: #4f614c;
  --clay: #a36045;
  --plum: #5a405f;
  --line: rgba(36, 32, 29, 0.14);
  --soft-shadow: 0 18px 44px rgba(45, 36, 27, 0.12);
  --deep-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

#new,
#catalog,
#gallery,
#business,
#contacts {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px 38px;
  color: var(--porcelain);
  background: rgba(23, 21, 20, 0.86);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(18px);
}

.site-header > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 50%;
  color: #e7c68f;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.header-action {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.88);
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active,
.header-action:hover,
.header-action:focus-visible {
  background: rgba(255, 253, 248, 0.13);
  color: var(--porcelain);
}

.header-action {
  border: 1px solid rgba(255, 253, 248, 0.32);
  font-weight: 700;
  white-space: nowrap;
}

.header-actions,
.social-links {
  display: flex;
  align-items: center;
}

.header-actions {
  justify-self: end;
  gap: 8px;
}

.social-links {
  gap: 6px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.1);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-link img {
  width: auto;
  height: 26px;
  max-width: 30px;
  object-fit: contain;
}

.social-link:hover {
  border-color: rgba(255, 253, 248, 0.58);
  background: rgba(255, 253, 248, 0.18);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 3px solid #e7c68f;
  outline-offset: 2px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 21, 20, 0.88), rgba(23, 21, 20, 0.42) 50%, rgba(23, 21, 20, 0.82)),
    linear-gradient(180deg, rgba(23, 21, 20, 0.04), rgba(23, 21, 20, 0.62));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 58px;
  margin: 0 auto;
  padding: 72px 0;
  color: var(--porcelain);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.custom-copy h2,
.business-card h2,
.about-copy h2,
.seo-inner h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.65rem;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.92);
  font-size: 1.24rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.catalog-download,
.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.catalog-download:hover,
.catalog-download:focus-visible,
.order-button:hover,
.order-button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--deep);
  background: var(--porcelain);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.button-secondary {
  color: var(--porcelain);
  border: 1px solid rgba(255, 253, 248, 0.46);
  background: rgba(255, 253, 248, 0.08);
}

.button-secondary-dark {
  color: var(--deep);
  border: 1px solid rgba(36, 32, 29, 0.22);
  background: var(--porcelain);
}

.hero-logo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--deep-shadow);
}

.hero-logo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.section-band {
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 470px) 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-heading h2,
.custom-copy h2,
.business-card h2,
.about-copy h2,
.seo-inner h2,
.contact-copy h2 {
  font-size: 3.05rem;
}

.section-heading p,
.custom-copy p,
.business-card p,
.about-copy p,
.seo-inner p,
.contact-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(36, 32, 29, 0.72);
  font-size: 1.08rem;
}

.new-products {
  background: var(--porcelain);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card div {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
}

.spotlight-card span,
.product-type {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spotlight-card h3,
.product-card h3,
.popular-card h3,
.review-card h3 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
}

.spotlight-card h3 {
  font-size: 1.55rem;
}

.spotlight-card p {
  margin: 12px 0 0;
  color: rgba(36, 32, 29, 0.7);
}

.benefits {
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.95), rgba(23, 21, 20, 0.72)),
    url("assets/tray-gold.jpg") center / cover;
}

.benefits-heading p {
  color: rgba(255, 253, 248, 0.74);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(14px);
}

.benefit-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid rgba(231, 198, 143, 0.52);
  border-radius: 50%;
}

.benefit-icon::before {
  content: "";
  width: 16px;
  height: 9px;
  border-left: 2px solid #e7c68f;
  border-bottom: 2px solid #e7c68f;
  transform: rotate(-45deg) translate(1px, -1px);
}

.benefit-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.catalog-section {
  background: linear-gradient(180deg, var(--paper), #f2ece2);
}

.tile-catalog {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1fr);
  align-items: center;
  gap: 34px;
  margin: 0 0 34px;
  padding: 26px;
  border: 1px solid rgba(178, 132, 69, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(235, 229, 219, 0.72)),
    var(--porcelain);
  box-shadow: var(--soft-shadow);
}

.tile-catalog-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1.08;
}

.tile-catalog-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(36, 32, 29, 0.72);
  font-size: 1.03rem;
}

.catalog-download,
.order-button {
  color: var(--porcelain);
  background: var(--deep);
}

.catalog-download {
  margin-top: 24px;
}

.tile-catalog-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--porcelain);
}

.tile-catalog-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--porcelain);
  box-shadow: 0 14px 34px rgba(45, 36, 27, 0.1);
}

.product-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  background: transparent;
}

.product-photo-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-photo-button img {
  transform: scale(1.035);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-card h3 {
  min-height: 58px;
  font-size: 1.28rem;
}

.product-meta {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.product-meta div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
}

.product-meta dt {
  color: rgba(36, 32, 29, 0.52);
  font-size: 0.92rem;
}

.product-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 18px;
}

.swatches::before {
  content: "Цвета";
  margin-right: 2px;
  color: rgba(36, 32, 29, 0.52);
  font-size: 0.92rem;
}

.swatches span {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(36, 32, 29, 0.18);
  border-radius: 50%;
  background: var(--swatch);
}

.order-button {
  width: 100%;
}

.popular {
  background: var(--porcelain);
}

.carousel-controls {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 2rem;
}

.popular-track {
  display: grid;
  grid-auto-columns: minmax(260px, 340px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.popular-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  scroll-snap-align: start;
}

.popular-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.popular-card h3,
.popular-card p {
  margin-right: 18px;
  margin-left: 18px;
}

.popular-card h3 {
  min-height: 52px;
  font-size: 1.22rem;
}

.popular-card p {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 800;
}

.gallery-section {
  background: linear-gradient(180deg, #f2ece2, var(--paper));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-item {
  min-height: 340px;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  border: 0;
  border-radius: 8px;
  background: var(--mist);
  box-shadow: 0 14px 34px rgba(45, 36, 27, 0.1);
}

.gallery-item.is-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 698px;
}

.gallery-item.is-tall {
  grid-row: span 2;
  min-height: 698px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.custom-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 56px;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  color: var(--porcelain);
  background: var(--deep);
}

.custom-copy p,
.business-card p,
.contact-copy p {
  color: rgba(255, 253, 248, 0.76);
}

.custom-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.custom-copy li {
  position: relative;
  padding-left: 28px;
  color: rgba(255, 253, 248, 0.88);
}

.custom-copy li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 13px;
  height: 7px;
  border-left: 2px solid #e7c68f;
  border-bottom: 2px solid #e7c68f;
  transform: rotate(-45deg);
}

.custom-panel img {
  width: 100%;
  max-height: 610px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--deep-shadow);
}

.business {
  background: var(--moss);
}

.business-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 42px;
  border-radius: 8px;
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.28), rgba(23, 21, 20, 0.08)),
    var(--moss);
}

.business-card .button {
  margin-top: 28px;
}

.business-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.business-tags span {
  padding: 12px 15px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  color: var(--porcelain);
  font-weight: 700;
}

.reviews {
  background: var(--porcelain);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.review-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.review-card p {
  margin: 0;
  padding: 20px;
  color: rgba(36, 32, 29, 0.74);
  font-weight: 650;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  align-items: center;
  gap: 70px;
  background: linear-gradient(180deg, var(--paper), #f3eee6);
}

.about img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.about-copy p {
  margin-top: 20px;
}

.seo-directions {
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
  background: var(--clay);
}

.seo-inner {
  color: var(--porcelain);
}

.seo-inner p {
  color: rgba(255, 253, 248, 0.78);
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.seo-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  color: var(--porcelain);
  font-weight: 800;
}

.contact-page {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 500px);
  align-items: center;
  gap: 56px;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.94), rgba(23, 21, 20, 0.72)),
    url("assets/tray-gold.jpg") center / cover;
}

.contact-details {
  display: grid;
  gap: 10px;
  padding: 34px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(16px);
  font-style: normal;
}

.contact-details strong {
  margin-bottom: 8px;
  color: #e9c991;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.contact-details a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  color: var(--porcelain);
}

.contact-details a:last-child {
  border-bottom: 0;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: #e9c991;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 38px;
  color: rgba(255, 253, 248, 0.68);
  background: var(--deep);
}

.site-footer a {
  color: #e9c991;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(10, 9, 8, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-panel {
  position: relative;
  width: min(1060px, 100%);
  height: min(760px, calc(100vh - 56px));
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox-title {
  margin: 0;
  color: var(--porcelain);
  text-align: center;
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--porcelain);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
  background: rgba(23, 21, 20, 0.72);
}

.lightbox-close {
  top: 0;
  right: 0;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.landing-page {
  background: var(--paper);
}

.mini-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 90px max(24px, calc((100vw - 1180px) / 2));
  color: var(--porcelain);
  background-image:
    linear-gradient(90deg, rgba(23, 21, 20, 0.86), rgba(23, 21, 20, 0.48) 50%, rgba(23, 21, 20, 0.16)),
    var(--page-image);
  background-position: center right;
  background-size: cover;
}

.mini-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.05;
}

.mini-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 1.15rem;
}

.mini-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: 42px;
  align-items: start;
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
}

.mini-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.mini-content p,
.mini-content li {
  color: rgba(36, 32, 29, 0.76);
  font-size: 1.05rem;
}

.mini-content ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.admin-page {
  background: #f3eee6;
}

.admin-auth {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 24px;
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.92), rgba(23, 21, 20, 0.72)),
    url("assets/panel-wildflowers.jpg") center / cover;
}

.admin-page.is-auth-locked .admin-auth {
  display: grid;
}

.admin-page.is-auth-locked .admin-topbar,
.admin-page.is-auth-locked .admin-shell {
  display: none;
}

.admin-auth-card {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(23, 21, 20, 0.78);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(18px);
}

.admin-auth-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.08;
}

.admin-auth-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.76);
}

.admin-auth-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 253, 248, 0.82);
  font-weight: 800;
}

.admin-auth-card input {
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: var(--porcelain);
  font: inherit;
}

.admin-auth-error {
  min-height: 22px;
  margin: 0;
  color: #ffd4cb;
  font-weight: 800;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  color: var(--porcelain);
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.admin-topbar-actions,
.admin-actions,
.product-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.admin-hero,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--porcelain);
  box-shadow: var(--soft-shadow);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 28px;
}

.admin-hero h1,
.admin-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.1;
}

.admin-hero h1 {
  font-size: 2.5rem;
}

.admin-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(36, 32, 29, 0.72);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-panel-heading {
  margin-bottom: 4px;
}

.admin-panel h2 {
  font-size: 2rem;
}

.admin-panel label,
.product-form label {
  display: grid;
  gap: 7px;
  color: rgba(36, 32, 29, 0.72);
  font-weight: 700;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid rgba(36, 32, 29, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  font: inherit;
}

.admin-panel textarea {
  resize: vertical;
}

.admin-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-button,
.admin-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  color: var(--porcelain);
  background: var(--deep);
  font-weight: 800;
  text-align: center;
}

.admin-button {
  padding: 11px 18px;
}

.admin-mini-button {
  min-height: 36px;
  padding: 7px 12px;
}

.admin-button-light {
  color: var(--deep);
  background: #e9c991;
}

.admin-button-outline {
  color: var(--deep);
  border: 1px solid rgba(36, 32, 29, 0.18);
  background: var(--porcelain);
}

.admin-topbar .admin-button-outline {
  color: var(--porcelain);
  border-color: rgba(255, 253, 248, 0.32);
  background: transparent;
}

.admin-button-danger {
  color: var(--porcelain);
  background: #8e3f32;
}

.admin-status {
  min-height: 44px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(79, 97, 76, 0.2);
  border-radius: 8px;
  color: var(--moss);
  background: rgba(79, 97, 76, 0.08);
  font-weight: 800;
}

.admin-status[data-tone="error"] {
  color: #8e3f32;
  border-color: rgba(142, 63, 50, 0.28);
  background: rgba(142, 63, 50, 0.08);
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
}

.product-list-wrap {
  display: grid;
  align-content: start;
  gap: 12px;
}

.editor-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(178, 132, 69, 0.24);
  border-radius: 8px;
  color: rgba(36, 32, 29, 0.72);
  background: rgba(178, 132, 69, 0.08);
  font-weight: 650;
}

.product-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.product-list-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
}

.product-list-item.is-active {
  border-color: var(--gold);
  background: rgba(178, 132, 69, 0.1);
}

.product-list-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.product-list-item span,
.product-list-item small,
.product-list-item em {
  grid-column: 2;
}

.product-list-item span {
  font-weight: 800;
}

.product-list-item small {
  color: rgba(36, 32, 29, 0.62);
}

.product-list-item em {
  color: var(--gold);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.product-form {
  display: grid;
  gap: 14px;
}

.product-current {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(79, 97, 76, 0.22);
  border-radius: 8px;
  background: rgba(79, 97, 76, 0.08);
}

.product-current span {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-current strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.admin-preview {
  width: min(360px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.colors-editor {
  display: grid;
  gap: 10px;
}

.colors-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(36, 32, 29, 0.72);
  font-weight: 800;
}

.color-list {
  display: grid;
  gap: 8px;
}

.color-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
}

.color-row input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .hero-inner,
  .tile-catalog,
  .business-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo {
    max-width: 360px;
  }

  .spotlight-grid,
  .benefit-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item.is-large {
    grid-column: span 2;
  }

  .admin-layout,
  .admin-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  #new,
  #catalog,
  #gallery,
  #business,
  #contacts {
    scroll-margin-top: 162px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 18px;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    width: min(100% - 32px, 720px);
    gap: 34px;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 3.15rem;
  }

  .hero-copy {
    font-size: 1.06rem;
  }

  .hero-logo {
    width: min(320px, 100%);
  }

  .section-band,
  .benefits,
  .custom-panel,
  .business,
  .about,
  .seo-directions,
  .contact-page {
    padding: 64px 18px;
  }

  .section-heading,
  .custom-panel,
  .about,
  .contact-page,
  .mini-content {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2,
  .custom-copy h2,
  .business-card h2,
  .about-copy h2,
  .seo-inner h2,
  .contact-copy h2 {
    font-size: 2.35rem;
  }

  .spotlight-grid,
  .benefit-grid,
  .review-grid,
  .product-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-card img {
    height: 260px;
  }

  .gallery-item,
  .gallery-item.is-large,
  .gallery-item.is-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .business-card {
    padding: 28px;
  }

  .mini-hero {
    min-height: 460px;
    padding: 72px 18px;
  }

  .mini-hero h1 {
    font-size: 3rem;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .product-list {
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .nav-links a,
  .header-action {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    font-size: 2.58rem;
  }

  .hero-actions,
  .carousel-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .catalog-download,
  .order-button {
    width: 100%;
  }

  .spotlight-grid,
  .benefit-grid,
  .review-grid,
  .product-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .tile-catalog,
  .business-card {
    padding: 18px;
  }

  .tile-catalog-copy h3 {
    font-size: 1.95rem;
  }

  .product-meta div {
    grid-template-columns: 78px 1fr;
  }

  .popular-track {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .carousel-controls {
    justify-self: stretch;
    flex-direction: row;
  }

  .gallery-item,
  .gallery-item.is-large,
  .gallery-item.is-tall {
    min-height: 420px;
  }

  .contact-details {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 18px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    height: calc(100vh - 28px);
  }

  .admin-shell {
    width: min(100% - 24px, 1220px);
  }

  .admin-hero,
  .admin-panel {
    padding: 18px;
  }

  .admin-hero h1 {
    font-size: 2rem;
  }

  .admin-panel h2 {
    font-size: 1.65rem;
  }

  .admin-two-cols,
  .color-row {
    grid-template-columns: 1fr;
  }

  .admin-topbar-actions,
  .admin-actions,
  .product-form-actions {
    width: 100%;
  }

  .admin-button,
  .admin-mini-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .header-actions,
  .social-links {
    gap: 4px;
  }

  .header-action {
    padding-right: 10px;
    padding-left: 10px;
  }
}
