:root {
  --ink: #151515;
  --ink-soft: #3c3d3d;
  --paper: #f7f5ef;
  --paper-soft: #eeece4;
  --line: #d9d5ca;
  --white: #ffffff;
  --accent: #29443b;
  --accent-deep: #173229;
  --wine: #6d2f3b;
  --steel: #61717a;
  --gold: #b6955b;
  --danger: #9d3434;
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.12);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 42px;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
body:not(.home-page) .site-header {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 1px 0 rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(16px);
}

.brand-mark,
.admin-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: max-content;
}

.brand-mark span,
.admin-logo span {
  font-size: 20px;
}

.brand-mark small,
.admin-logo small {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.78;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
}

.language-switch select {
  min-width: 118px;
  border: 0;
  padding: 7px 12px;
  color: inherit;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  outline: 0;
}

.language-switch select option {
  color: var(--ink);
  background: var(--white);
}

.header-cta {
  justify-self: end;
  border: 1px solid currentColor;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.28));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 150px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(56px, 8vw, 120px);
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.66);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
}

.btn-light {
  color: var(--ink);
  background: var(--paper-soft);
  border-color: var(--line);
}

.btn-danger {
  color: var(--white);
  background: var(--danger);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  padding: 0;
  background: var(--line);
}

.intro-strip div {
  padding: 36px 42px;
  background: var(--paper);
}

.intro-strip span,
.service-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
}

.intro-strip p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-heading-inline {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.editorial-copy h2,
.contact-panel h2,
.story-layout h2,
.inquiry-band h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 58px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-tile {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.04), rgba(21, 21, 21, 0.68));
}

.category-tile img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.category-tile-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.category-tile span {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

.category-tile:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.editorial-band,
.story-layout,
.inquiry-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.editorial-image img {
  height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
}

.editorial-copy p,
.contact-panel p,
.story-text p,
.inquiry-band p {
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

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

.wide-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 21, 21, 0.05);
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-card div {
  padding: 18px;
}

.product-card span {
  color: var(--steel);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.inquiry-band {
  width: 100%;
  padding: 96px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--accent-deep);
}

.inquiry-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.compact-hero {
  min-height: 52vh;
}

.page-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 140px 0 66px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-bar a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.42);
}

.filter-bar a.is-active,
.filter-bar a:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.category-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 38px;
}

.category-directory article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.category-directory h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.category-directory p {
  min-height: 72px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.category-accordion {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.category-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.category-accordion-toggle:hover,
.category-accordion-toggle:focus-visible {
  color: var(--accent);
}

.category-accordion-toggle:focus-visible {
  outline: 2px solid rgba(41, 68, 59, 0.28);
  outline-offset: 4px;
}

.category-accordion-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.category-accordion-icon::before,
.category-accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.category-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.category-accordion-toggle[aria-expanded="true"] .category-accordion-icon {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.category-accordion-toggle[aria-expanded="true"] .category-accordion-icon::after {
  display: none;
}

.category-accordion-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 16px;
}

.category-accordion-panel[hidden] {
  display: none;
}

.subcategory-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.2;
}

.subcategory-chip:hover,
.subcategory-chip:focus-visible,
.subcategory-chip.is-active {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.product-results-heading {
  margin: 10px 0 26px;
}

.product-results-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.gallery-main {
  height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.gallery-thumbs button.is-active {
  border-color: var(--accent);
}

.gallery-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-panel {
  align-self: start;
  position: sticky;
  top: 110px;
}

.detail-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 4vw, 64px);
}

.product-en {
  color: var(--steel);
  font-size: 17px;
}

.detail-description {
  color: var(--ink-soft);
}

.spec-list,
.detail-list {
  margin: 32px 0;
}

.spec-list div,
.detail-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt,
.detail-list dt {
  color: var(--steel);
}

.spec-list dd,
.detail-list dd {
  margin: 0;
}

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

.feature-list li {
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.service-grid,
.craft-grid,
.metric-grid,
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-grid article,
.craft-grid article,
.admin-panel,
.metric-grid article,
.login-card,
.install-page {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(21, 21, 21, 0.05);
}

.service-grid article {
  padding: 42px;
}

.service-grid h2 {
  font-size: 30px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.process-line div {
  padding: 28px 20px;
  text-align: center;
  background: var(--white);
}

.craft-grid article {
  overflow: hidden;
}

.craft-grid img {
  height: 360px;
  object-fit: cover;
}

.craft-grid h3,
.craft-grid p {
  padding: 0 24px;
}

.craft-grid h3 {
  margin-top: 24px;
}

.craft-grid p {
  padding-bottom: 28px;
  color: var(--ink-soft);
}

.quote-section {
  width: 100%;
  padding: 110px max(20px, calc((100vw - 980px) / 2));
  color: var(--white);
  background: var(--wine);
}

.quote-section p {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.16;
}

.inquiry-layout {
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 110px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink-soft);
}

.inquiry-form {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 68, 59, 0.12);
}

.form-submit {
  width: 100%;
}

.alert {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius);
}

.alert p {
  margin: 0;
}

.alert p + p {
  margin-top: 6px;
}

.alert-success {
  color: #164136;
  background: #dcebe5;
}

.alert-error {
  color: #7c2020;
  background: #f1dedb;
}

.legal-page,
.empty-state,
.install-page {
  max-width: 820px;
  padding-top: 160px;
}

.legal-page h1,
.empty-state h1,
.install-page h1 {
  font-size: 54px;
}

.compact-empty {
  max-width: none;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
}

.compact-empty h2 {
  font-size: 32px;
}

.install-config {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.floating-inquiry {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding: 52px max(20px, calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer-brand {
  display: block;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.admin-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f2f0ea;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  color: var(--white);
  background: var(--ink);
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 42px;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.76);
}

.admin-sidebar a.is-active,
.admin-sidebar a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  padding: 38px;
}

.admin-topbar,
.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 42px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.metric-grid article {
  padding: 28px;
}

.metric-grid span {
  color: var(--steel);
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
  line-height: 1;
}

.admin-panel {
  padding: 28px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--steel);
  font-size: 13px;
}

.table-action {
  color: var(--accent);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-new {
  color: #7a4111;
  background: #f5e2c8;
}

.status-progress {
  color: #163f68;
  background: #d8e8f4;
}

.status-success {
  color: #164136;
  background: #dcebe5;
}

.status-muted {
  color: #555;
  background: #e7e5df;
}

.admin-filter {
  display: grid;
  grid-template-columns: 1fr 180px 180px auto auto;
  gap: 12px;
  margin-bottom: 22px;
}

.admin-filter input,
.admin-filter select {
  background: var(--white);
}

.admin-detail-grid {
  margin-bottom: 22px;
}

.admin-edit-form {
  max-width: 720px;
}

.content-editor h2 {
  margin: 0;
  font-size: 28px;
}

.content-editor p {
  margin: 8px 0 0;
  color: var(--steel);
}

.content-editor-toolbar,
.content-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.content-language-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f6f1;
}

.content-language-switch a,
.content-section-nav a {
  color: var(--steel);
  font-weight: 700;
}

.content-language-switch a {
  padding: 8px 12px;
  border-radius: 6px;
}

.content-language-switch a.is-active {
  color: var(--white);
  background: var(--ink);
}

.content-editor-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.content-section-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.content-section-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f6f1;
}

.content-section-nav a.is-active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.content-editor-form {
  display: grid;
  gap: 18px;
}

.content-field {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.content-field span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.content-field small {
  color: var(--steel);
  font-size: 12px;
  font-family: Consolas, Monaco, monospace;
  font-weight: 500;
}

.content-field em {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: 12px;
  font-style: normal;
}

.media-form {
  display: grid;
  gap: 24px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.media-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8e4db;
}

.media-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.media-card h3 {
  margin: 0;
  font-size: 18px;
}

.media-card small {
  color: var(--steel);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
}

.media-card em {
  color: var(--steel);
  font-size: 12px;
  font-style: normal;
}

.media-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.delete-form {
  margin-top: 18px;
}

.empty-text {
  margin: 0;
  color: var(--steel);
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(21, 21, 21, 0.58), rgba(21, 21, 21, 0.58)),
    var(--login-bg, url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1800&q=82")) center/cover;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
}

.login-card h1 {
  font-size: 42px;
}

@media (max-width: 1080px) {
  .category-grid,
  .category-directory,
  .product-grid,
  .wide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-band,
  .story-layout,
  .inquiry-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .contact-panel {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-filter {
    grid-template-columns: 1fr 1fr;
  }

  .content-editor-layout {
    grid-template-columns: 1fr;
  }

  .content-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: auto auto;
    padding: 16px 18px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 18px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .language-switch {
    justify-self: start;
    width: max-content;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 120px 0 56px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .intro-strip,
  .service-grid,
  .craft-grid,
  .admin-detail-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading-inline {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .category-directory,
  .product-grid,
  .wide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile {
    min-height: 240px;
  }

  .category-directory p {
    min-height: 0;
  }

  .editorial-image img,
  .gallery-main {
    height: 460px;
  }

  .form-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .inquiry-form {
    padding: 24px;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
  }

  .admin-main {
    padding: 22px;
  }

  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

  .admin-filter,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .content-editor-toolbar,
  .content-form-actions,
  .content-field span {
    align-items: stretch;
    flex-direction: column;
  }

  .content-section-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 46px;
  }

  .category-grid,
  .category-directory,
  .product-grid,
  .wide-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 280px;
  }

  .spec-list div,
  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .floating-inquiry {
    width: 56px;
    height: 56px;
  }
}
