@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap');

:root {
  --ink: #1c2a34;
  --muted: #667178;
  --paper: #f4f1eb;
  --paper-deep: #e9e3d9;
  --card: #fffdf9;
  --line: #d6cec1;
  --accent: #b56e3f;
  --accent-dark: #7b452b;
  --shadow: 0 18px 50px rgba(28, 42, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Sawarabi Mincho', 'Yu Gothic', YuGothic, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  color: #fff;
  background: rgba(20, 29, 35, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 46px;
}

.site-nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #fff;
  font-family: 'Oswald', 'Yu Gothic', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #e7b27f;
}

main {
  padding-top: 72px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(780px, calc(100vh - 72px));
  padding: 110px 28px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background-color: #29353a;
  background-image: url('https://marmo-hub.tokyo/image/d84a72f935e1b6c47f2e9613/676e0d523fe109099852636.jpg_md');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: -10px;
  z-index: 0;
  content: '';
  background: inherit;
  filter: grayscale(100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: '';
  background: linear-gradient(135deg, rgba(14, 22, 26, 0.83), rgba(14, 22, 26, 0.34));
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8b783;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.hero__lead {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: 'Yu Gothic', YuGothic, sans-serif;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--light {
  color: var(--ink);
  background: #fffdf9;
}

.button--light:hover,
.button--light:focus-visible {
  background: #e8b783;
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--ink);
  background: #fffdf9;
}

.button--dark {
  color: #fff;
  background: var(--ink);
}

.button--dark:hover,
.button--dark:focus-visible {
  background: var(--accent-dark);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 112px 28px;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.45;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
}

.about-media {
  margin: 0;
  overflow: hidden;
  background: #dad3c8;
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy > p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list span {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.process-section,
.preview-section,
.products-section {
  max-width: 1280px;
}

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

.process-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(28, 42, 52, 0.06);
}

.process-card__image {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 10px;
  background: var(--paper-deep);
}

.process-card__image img {
  width: 100%;
  height: auto;
}

.process-card figcaption {
  padding: 22px 20px 25px;
}

.process-card__number {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.process-card h3 {
  margin: 8px 0 8px;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.5;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: center;
}

.marmo-3d-viewer {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e5e0d7;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.marmo-3d-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-placeholder {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.viewer-placeholder__label {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.viewer-placeholder p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.preview-copy__label {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.preview-copy h3 {
  margin: 0 0 18px;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.5;
}

.preview-copy > p:not(.preview-copy__label):not(.viewer-status) {
  margin: 0 0 24px;
  color: var(--muted);
}

.viewer-status {
  min-height: 1.8em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.products-section {
  padding-top: 100px;
}

.product-grid {
  display: grid;
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.product-card__image {
  min-height: 100%;
  background: #ded7cc;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.product-card__body {
  padding: clamp(28px, 5vw, 54px);
}

.product-card__kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.product-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.5;
}

.product-card__body > p {
  margin: 0;
  color: var(--muted);
}

.spec-list,
.shipping-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0 0 0 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-stack {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.price-panel {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  background: #f1e7db;
}

.price-panel__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.price-panel__value {
  margin: 2px 0 0;
  font-family: 'Oswald', 'Yu Gothic', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
}

.price-panel__value span {
  font-family: 'Yu Gothic', YuGothic, sans-serif;
  font-size: 0.84rem;
}

.price-panel__note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.price-panel--secondary {
  border-left-color: var(--ink);
  background: #e6e3dc;
}

.adjustment-note {
  padding: 16px 20px;
  border: 1px dashed var(--accent);
  background: #fffaf3;
}

.adjustment-note strong {
  font-size: 0.95rem;
  font-weight: 400;
}

.adjustment-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.shipping-list {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.catalog-heading {
  margin: 92px 0 28px;
  text-align: center;
}

.catalog-heading h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.catalog-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.standard-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.standard-card__image {
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background: #ded7cc;
}

.standard-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.standard-card:hover .standard-card__image img {
  transform: scale(1.04);
}

.standard-card__body {
  padding: 24px;
}

.standard-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 400;
}

.standard-card h3 span {
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
}

.standard-card p {
  min-height: 5.5em;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.standard-card strong {
  color: var(--accent-dark);
  font-family: 'Oswald', 'Yu Gothic', sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.catalog-note {
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.contact-section {
  padding-top: 32px;
  padding-bottom: 112px;
}

.contact-card {
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  text-align: center;
  background: var(--ink);
}

.contact-card .eyebrow {
  color: #e8b783;
}

.contact-card h2 {
  margin-bottom: 16px;
}

.contact-card > p:not(.eyebrow) {
  max-width: 600px;
  margin: 0 auto 28px;
  color: #d4dce0;
}

.site-footer {
  padding: 24px 28px;
  color: #c7d0d4;
  background: #141d23;
  font-size: 0.75rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-nav ul {
    gap: 14px;
  }

  .about-grid,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .about-copy {
    max-width: 720px;
  }

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

  .preview-copy {
    max-width: 620px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__image img {
    min-height: 0;
    max-height: 440px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
    padding: 0 16px;
  }

  .brand img {
    height: 38px;
  }

  .site-nav ul {
    gap: 10px;
  }

  .site-nav li:nth-child(-n + 2) {
    display: none;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  main {
    padding-top: 62px;
  }

  .hero {
    min-height: 680px;
    padding: 90px 20px;
    background-attachment: scroll;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(280px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .section {
    padding: 76px 20px;
  }

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

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

  .marmo-3d-viewer {
    min-height: 360px;
  }

  .standard-card p {
    min-height: 0;
  }

  .contact-section {
    padding-top: 0;
    padding-bottom: 76px;
  }
}

/* Marmo engraver page: compact process and future 3D preview */
.process-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(28, 42, 52, 0.07);
}

.showcase-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-deep);
}

.showcase-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 4vw, 38px);
}

.showcase-card__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.showcase-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
}

.showcase-card__description {
  margin: 18px 0 0;
  color: var(--muted);
}

.flow-list {
  display: grid;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list li > span {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.flow-list strong {
  display: block;
  font-weight: 400;
}

.flow-list p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.use-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f1e7db;
  font-size: 0.88rem;
}

.use-note strong {
  color: var(--ink);
  font-weight: 400;
}

.emboss-notes {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 22px 0 0 1.2em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.product-card {
  grid-template-columns: 1fr;
}

.product-card__media {
  padding: clamp(16px, 3vw, 30px);
  background: var(--paper-deep);
}

.product-card__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card__image {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.product-card__image img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.model-placeholder {
  display: flex;
  min-height: 100%;
  aspect-ratio: 4 / 3;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed var(--accent);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 249, 0.6);
}

.model-placeholder__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.model-placeholder strong {
  color: var(--ink);
  font-family: 'Oswald', 'Yu Gothic', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
}

.model-placeholder__status {
  max-width: 16em;
  margin: 12px 0 0;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .process-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .product-card__media-grid {
    grid-template-columns: 1fr;
  }

  .model-placeholder {
    min-height: 260px;
  }
}

/* Marmo engraver layout refinement: keep every surface inside the viewport. */
html,
body {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
}

body {
  margin: 0;
}

main {
  width: 100%;
  min-width: 0;
}

figure {
  margin: 0;
}

.site-header {
  width: 100%;
  min-width: 0;
  padding-inline: clamp(16px, 4vw, 52px);
}

.brand,
.site-nav {
  min-width: 0;
}

.brand img {
  display: block;
  width: auto;
  max-width: min(160px, 30vw);
  height: 46px;
}

.site-nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section {
  width: 100%;
  max-width: 1340px;
  min-width: 0;
  margin-inline: auto;
  padding: clamp(72px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.process-section,
.products-section {
  max-width: 1340px;
  margin-inline: auto;
}

.process-showcase {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.showcase-card {
  min-width: 0;
}

.showcase-card__media {
  display: grid;
  min-width: 0;
  min-height: 220px;
  max-height: 400px;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 12px;
}

.showcase-card__media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.showcase-card__body {
  min-width: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
  min-width: 0;
}

.custom-column,
.ready-made-column {
  min-width: 0;
}

.column-heading {
  margin: 0 0 18px;
}

.column-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.column-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.45;
}

.column-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-grid {
  min-width: 0;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: 3px;
}

.product-card__media {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
}

.product-card__media-grid {
  min-width: 0;
}

.product-card__image {
  min-width: 0;
  margin: 0;
}

.product-card__image img {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__image figcaption {
  padding: 8px 12px;
}

.model-preview {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.model-placeholder {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed var(--accent);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 253, 249, 0.6);
}

.model-placeholder strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.model-trigger {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.model-trigger:hover,
.model-trigger:focus-visible {
  color: #fff;
  background: var(--accent);
}

.product-card__body {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
}

.product-card__body h3 {
  overflow-wrap: anywhere;
}

.spec-list,
.shipping-list {
  overflow-wrap: anywhere;
}

.standard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.standard-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: 3px;
}

.standard-card__image {
  min-width: 0;
}

.standard-card__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.standard-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
}

.standard-card h3,
.standard-card p {
  overflow-wrap: anywhere;
}

.standard-card p {
  min-height: 0;
}

.standard-card strong {
  margin-top: auto;
}

.standard-card .model-trigger {
  margin-top: 16px;
}

.catalog-note {
  max-width: 60em;
  margin-inline: 0;
  text-align: left;
}

.model-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.model-dialog::backdrop {
  background: rgba(14, 22, 26, 0.78);
}

.model-dialog__surface {
  padding: clamp(18px, 3vw, 30px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.model-dialog__header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.model-dialog__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.model-dialog__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
}

.model-dialog__close {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
  font: inherit;
  cursor: pointer;
}

.model-dialog__close:hover,
.model-dialog__close:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.model-dialog__viewer {
  position: relative;
  min-height: min(62vw, 560px);
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e5e0d7;
}

.model-dialog__viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.model-dialog__placeholder {
  display: grid;
  min-height: min(62vw, 560px);
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.model-dialog__placeholder p {
  margin: 0;
}

.model-dialog__status {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .custom-column,
  .ready-made-column {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .process-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card__media {
    max-height: 400px;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
    padding-inline: 16px;
  }

  .brand img {
    max-width: 120px;
    height: 38px;
  }

  .site-nav ul {
    gap: 8px;
  }

  .site-nav a {
    font-size: 0.74rem;
  }

  main {
    padding-top: 62px;
  }

  .product-card__media-grid,
  .standard-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card__media {
    min-height: 0;
  }

  .model-dialog__header {
    align-items: flex-start;
  }
}
