:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5f6b67;
  --line: #d8dfdc;
  --panel: #ffffff;
  --paper: #f6f7f4;
  --soft: #eef4ef;
  --brand: #126b57;
  --brand-dark: #0c4e40;
  --accent: #b95f45;
  --gold: #b9934d;
  --shadow: 0 18px 46px rgba(30, 47, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 223, 220, 0.86);
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: max-content;
}

.brand span {
  font-size: 20px;
  font-weight: 800;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #34413d;
  font-size: 14px;
}

.nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  font-weight: 700;
}

.hero,
.section,
.recommendation-section,
.site-footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

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

.buyer-path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.buyer-path span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #34413d;
  font-size: 12px;
  font-weight: 900;
}

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

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary:hover,
.application:hover,
.collection-card:hover {
  border-color: var(--brand);
}

.button.full {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 0;
}

.stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.stats dt {
  font-size: 24px;
  font-weight: 900;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel,
.assistant-card,
.recommendation-section,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-head,
.recommendation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head span {
  color: var(--brand);
  font-weight: 900;
}

.panel-head strong {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.buyer-line {
  margin: 20px 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #fff7f1;
  color: #4d3b32;
  line-height: 1.55;
}

.mini-result {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mini-result ul {
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 800;
}

.section {
  padding: 74px 0;
}

.compact-section {
  padding-top: 34px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head p,
.section-copy p,
.about p {
  color: var(--muted);
  line-height: 1.7;
}

.collection-grid,
.application-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.collection-card,
.result-card,
.fabric-item {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.collection-card p,
.result-card p,
.fabric-item p {
  color: var(--muted);
  line-height: 1.58;
}

.collection-card {
  cursor: pointer;
}

.compact-grid .collection-card {
  min-height: 140px;
}

.collection-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.category-hero {
  min-height: calc(100vh - 72px);
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
}

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

.check-list li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.assistant-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

label {
  color: #33413d;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 107, 87, 0.13);
}

.recommendation-section {
  padding: 24px;
}

.browser-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 210px 150px;
  gap: 12px;
  margin-bottom: 14px;
}

.browser-meta {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.fabric-item {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.fabric-item small {
  display: block;
  padding: 14px 14px 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.fabric-item h3 {
  margin: 8px 14px;
  font-size: 16px;
  line-height: 1.25;
}

.fabric-item p,
.fabric-item .spec-line {
  margin-left: 14px;
  margin-right: 14px;
}

.fabric-item .spec-line {
  margin-bottom: 14px;
  font-size: 12px;
}

.inquire-fabric {
  width: calc(100% - 28px);
  min-height: 40px;
  margin: 0 14px 14px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #f3faf7;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.result-card .inquire-fabric {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.inquire-fabric:hover {
  background: var(--brand);
  color: white;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
}

.pagination span {
  min-width: 132px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.recommendation-head {
  margin-bottom: 18px;
}

.recommendation-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.result-card {
  min-height: 190px;
  overflow: hidden;
  padding: 0;
}

.result-card small {
  display: block;
  padding: 18px 18px 0;
  color: var(--brand);
  font-weight: 900;
}

.result-card h3,
.result-card p,
.result-card .spec-line {
  margin-left: 18px;
  margin-right: 18px;
}

.fabric-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  object-fit: cover;
}

.fabric-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.spec-line {
  margin-top: 12px;
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #34413d;
  font-size: 13px;
  line-height: 1.55;
}

.inquiry-output {
  margin-top: 16px;
  background: #fbfcfa;
  line-height: 1.55;
}

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

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

.guide-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.guide-card:hover {
  border-color: var(--brand);
}

.guide-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.application {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid,
.buyer-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

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

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

.process-grid article,
.buyer-grid div,
.faq-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.process-grid strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.process-grid p,
.buyer-grid p,
.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch;
}

.support-card,
.support-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.support-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
  background: #f1f7f4;
}

.support-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card p,
.support-grid p {
  color: var(--muted);
  line-height: 1.65;
}

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

.support-grid p {
  margin-bottom: 0;
}

.showroom-section {
  display: grid;
  gap: 18px;
}

.showroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.showroom-grid figure,
.texture-strip figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.showroom-grid img,
.texture-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-feature {
  min-height: 430px;
}

.showroom-stack {
  display: grid;
  gap: 14px;
}

.showroom-stack figure {
  min-height: 208px;
}

.showroom-grid figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(24, 32, 31, 0.16);
}

.showroom-grid figcaption span,
.texture-strip figcaption {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.showroom-grid figcaption strong {
  color: var(--ink);
  line-height: 1.25;
}

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

.texture-strip figure {
  display: grid;
  grid-template-rows: 210px auto;
}

.texture-strip figcaption {
  padding: 12px 14px;
  background: var(--panel);
}

.inquiry {
  padding-bottom: 90px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-wide {
  grid-column: 1 / -1;
}

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

.form-actions .button {
  width: 100%;
}

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

.contact-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.contact-card:hover {
  border-color: var(--brand);
}

.contact-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer div:last-child {
  display: flex;
  gap: 16px;
  color: var(--brand);
  font-weight: 800;
}

.quick-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(216, 223, 220, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(30, 47, 42, 0.12);
  backdrop-filter: blur(12px);
}

.quick-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.quick-contact a:first-child {
  background: var(--brand);
  color: white;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 25, 23, 0.58);
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(840px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 24px;
}

.modal-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--soft);
  object-fit: cover;
}

.modal-content small {
  color: var(--brand);
  font-weight: 900;
}

.modal-content h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4vw, 40px);
}

.modal-content p {
  color: var(--muted);
  line-height: 1.65;
}

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

.modal-spec {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.modal-spec b {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.modal-spec span {
  display: block;
  margin-top: 5px;
  font-weight: 800;
}

.open-detail {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.open-detail:hover h3,
.fabric-title-button:hover {
  color: var(--brand);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .support-layout,
  .showroom-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .collection-grid,
  .result-grid,
  .fabric-grid,
  .process-grid,
  .buyer-grid,
  .faq-grid,
  .guide-grid,
  .support-grid,
  .texture-strip,
  .contact-grid,
  .application-grid,
  .inquiry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showroom-feature,
  .showroom-stack figure {
    min-height: 320px;
  }

  .browser-tools {
    grid-template-columns: 1fr;
  }

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

  .modal-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .hero,
  .section,
  .recommendation-section,
  .site-footer {
    width: min(100vw - 24px, 1180px);
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .site-footer,
  .recommendation-head,
  .pagination,
  .assistant-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .assistant-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .stats,
  .collection-grid,
  .result-grid,
  .fabric-grid,
  .process-grid,
  .buyer-grid,
  .faq-grid,
  .guide-grid,
  .support-grid,
  .texture-strip,
  .contact-grid,
  .application-grid,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .showroom-feature,
  .showroom-stack figure {
    min-height: 260px;
  }

  .texture-strip figure {
    grid-template-rows: 240px auto;
  }

  .quick-contact {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: stretch;
  }

  .quick-contact a {
    flex: 1;
  }

  .section {
    padding: 52px 0;
  }
}
