:root {
  --gold: #ddbe3d;
  --gold-dark: #cbac2e;
  --black: #111111;
  --paper: #f7f7f5;
  --text: #2b1b12;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(221, 190, 61, 0); }
  50% { box-shadow: 0 0 22px rgba(221, 190, 61, .32); }
}
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s ease, transform .48s ease;
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(1px);
  display: grid;
  place-items: center;
}
.global-loading-overlay[hidden] { display: none; }
.loading-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e5e7eb;
  border-top-color: #ddbe3d;
  border-radius: 999px;
  animation: spin .8s linear infinite, glowPulse 1.8s ease-in-out infinite;
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #000; border-bottom: 1px solid var(--gold);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 16px; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: #fff; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px; /* hover bridge to prevent dropdown flicker */
}
.nav-dropdown > a { display: inline-block; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(520px, 86vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  padding: 14px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  z-index: 120;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
}
.nav-dropdown-col h5 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 0.9rem;
}
.nav-dropdown-col a {
  display: block;
  color: #1f2937;
  font-size: 0.88rem;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease;
}
.nav-dropdown-col a:hover {
  background: #f8fafc;
  color: #b45309;
}
.nav-dropdown-col a.active {
  background: #fff7ed;
  color: #b45309;
}
.nav-products-list {
  display: grid;
  gap: 6px;
}
.nav-dropdown-col a.nav-category-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  align-items: center;
}
.nav-category-item img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}
.nav-category-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dropdown-col a.nav-product-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav-product-item img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}
.nav-product-item span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-empty {
  display: block;
  color: #6b7280;
  font-size: .82rem;
  padding: 6px 0;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: #0b0b0b;
  color: #fff;
  cursor: pointer;
}
.menu-toggle i { font-size: 1rem; }
.search-mini { position: relative; }
.search-mini input { background: transparent; border: 1px solid #444; color: #fff; padding: 8px 10px; border-radius: 6px; }
.search-preview {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, 86vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  z-index: 120;
}
.search-preview-list { max-height: 420px; overflow: auto; }
.search-preview-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
}
.search-preview-item:hover { background: #f8fafc; }
.search-preview-item.active {
  background: #eef2ff;
  outline: 1px solid #c7d2fe;
}
.search-preview-item:last-child { border-bottom: 0; }
.search-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #eef2f7;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.search-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-preview-type {
  display: inline-block;
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  margin-bottom: 4px;
}
.search-preview-title {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}
.search-preview-sub {
  font-size: .8rem;
  color: #6b7280;
  margin-top: 2px;
}
.search-preview-empty {
  padding: 12px;
  color: #6b7280;
  font-size: .85rem;
}
.lang-switch { display: inline-flex; border: 1px solid #4b5563; border-radius: 8px; overflow: hidden; }
.lang-switch a { color: #d1d5db; padding: 7px 10px; font-size: 0.85rem; font-weight: 700; }
.lang-switch a + a { border-left: 1px solid #4b5563; }
.lang-switch a.active { background: #ddbe3d; color: #111; }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 140;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100vh;
  background: #0c0c0d;
  color: #f9fafb;
  z-index: 141;
  transform: translateX(100%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #2f2f31;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #2f2f31;
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
}
.mobile-nav-links {
  display: grid;
  padding: 10px;
  gap: 6px;
}
.mobile-nav-links a {
  padding: 10px 11px;
  border-radius: 9px;
  color: #f3f4f6;
}
.mobile-nav-links a:hover {
  background: #1f1f22;
  color: #ddbe3d;
}
.mobile-nav-cats {
  padding: 10px;
  border-top: 1px solid #2f2f31;
  overflow: auto;
}
.mobile-nav-cats h5 {
  margin: 2px 0 8px;
  color: #ddbe3d;
  font-size: .86rem;
}
.mobile-nav-cats a {
  display: block;
  font-size: .9rem;
  color: #d1d5db;
  padding: 8px 0;
}
.hero {
  position: relative; min-height: 520px; display: grid; place-items: center;
  color: #fff; text-align: center;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(64,35,10,.7), rgba(0,0,0,.2)); }
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); margin: 0 0 16px; }
.hero p { color: #f8ede3; font-size: 1.1rem; line-height: 1.65; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; }
.btn-gold { background: var(--gold); color: #000; }
.btn-outline { border-color: #ddd; }
.section { padding: 56px 0; }
.section.soft { background: var(--paper); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 3rem); margin: 0 0 14px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { border: 1px solid #ececec; border-radius: 12px; overflow: hidden; background: #fff; }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  border-color: #d5b64b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}
.hero-content { animation: fadeUp .6s ease both; }
.card .body { padding: 16px; }
.card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.color-tile { border-radius: 10px; overflow: hidden; border: 1px solid #e6e6e6; }
.color-tile .swatch { height: 120px; }
.color-tile .body {
  padding: 14px 16px 12px;
  text-align: center;
}
.color-tile .body strong {
  display: block;
  line-height: 1.2;
}
.color-tile .body .meta {
  margin-top: 4px;
}
.footer { background: #111; color: #eee; padding: 52px 0 30px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 22px; }
.footer a { color: #d1d5db; }
.footer a:hover { color: #fff; }
.meta { color: var(--muted); font-size: 0.92rem; }
.pager {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.pager a {
  border: 1px solid #d4d9e2;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  transition: all .18s ease;
}
.pager a:hover {
  border-color: #c6a12b;
  color: #c6a12b;
  background: #fffbeb;
}
.pager .current {
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  border: 1px solid #111827;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.form-grid { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; border: 1px solid #d6d6d6; border-radius: 8px; padding: 10px 12px; font-size: 0.95rem;
}
textarea { min-height: 120px; }

/* Enhanced select */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-color: #fff;
  border-color: #c7cfdc;
  color: #1f2937;
  line-height: 1.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364728b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:hover {
  border-color: #94a3b8;
}
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Searchable select widget */
.search-select {
  position: relative;
}
.search-select-trigger {
  width: 100%;
  border: 1px solid #c7cfdc;
  border-radius: 10px;
  padding: 10px 44px 10px 12px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364728b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center / 18px 18px;
  color: #111827;
  cursor: pointer;
}
.search-select-trigger:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.search-select-panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #d6dbe6;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
  padding: 8px;
}
.search-select-filter {
  margin-bottom: 8px;
}
.search-select-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #edf0f5;
  border-radius: 8px;
}
.search-select-option {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 9px 10px;
  font-size: .92rem;
  color: #111827;
  cursor: pointer;
}
.search-select-option:hover,
.search-select-option.active {
  background: #eff6ff;
  color: #1d4ed8;
}
.search-select-empty {
  padding: 10px;
  font-size: .88rem;
  color: #6b7280;
}
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.badge { display: inline-block; background: #f4f4f5; border-radius: 999px; padding: 4px 11px; font-size: .85rem; }

@media (min-width: 901px) {
  .two-col.detail-two-col {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 24px;
    align-items: start;
  }
  .detail-two-col aside {
    width: 100%;
    max-width: 340px;
    justify-self: end;
  }
}

.formula-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 160;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ddbe3d, #c89d1f);
  color: #111;
  font-weight: 800;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  cursor: pointer;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.formula-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(0, 0, 0, .32);
}
.formula-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(560px, 94vw);
  background: #fff;
  box-shadow: -16px 0 36px rgba(0, 0, 0, .22);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 180;
  display: flex;
  flex-direction: column;
}
.formula-drawer.open { transform: translateX(0); }
.formula-drawer-head {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 14px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.formula-drawer-head h3 { margin: 0; font-size: 1.1rem; }
.formula-drawer-head p { margin: 5px 0 0; font-size: .86rem; color: #6b7280; }
.formula-close-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.formula-drawer-body {
  padding: 12px 14px 16px;
  overflow: auto;
}
.drawer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 14px 0;
}
.drawer-tab {
  border: 1px solid #d7deea;
  background: #fff;
  color: #374151;
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 700;
  cursor: pointer;
}
.drawer-tab.active {
  border-color: #d1a925;
  background: #fffbeb;
  color: #8a6510;
}
.drawer-panel { display: none; }
.drawer-panel.active { display: block; }
.formula-drawer-body .form-row {
  margin-bottom: 14px;
}
.formula-drawer-body .form-row label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #1f2937;
}
.formula-drawer-body input,
.formula-drawer-body textarea {
  border-radius: 12px;
  border-color: #ccd4df;
}
.formula-drawer-body textarea {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.formula-drawer-body textarea::placeholder {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #6b7280;
  font-weight: 500;
}
.sim-upload-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfd8e4;
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfe;
}
.sim-upload-box .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sim-file-name {
  color: #4b5563;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.formula-results {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.formula-results > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #edf1f5;
  font-size: .9rem;
}
.formula-results > div:last-child { border-bottom: 0; }
.formula-results strong { color: #111827; }
.simulation-results {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.simulation-results h4 {
  margin: 0 0 6px;
  font-size: .88rem;
}
.simulation-results img {
  width: 100%;
  height: 138px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: none;
}
.sim-empty {
  height: 138px;
  border: 1px dashed #d5dbe5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: .85rem;
  background: #f9fafb;
}
.simulation-results.loading .sim-empty {
  position: relative;
  color: transparent;
  border-style: solid;
  overflow: hidden;
}
.simulation-results.loading .sim-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 40%, #eef2f7 60%);
  background-size: 300% 100%;
  animation: simShimmer 1.1s linear infinite;
}
@keyframes simShimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
.hl {
  background: #fff1a8;
  color: #111827;
  border-radius: 4px;
  padding: 0 2px;
}
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar-inner { min-height: 74px; }
  .logo img { height: 48px; }
  .search-mini input { width: 132px; }
  .topbar-actions { gap: 8px; }
  .menu-toggle { display: grid; place-items: center; }
  .lang-switch a { padding: 7px 9px; font-size: .8rem; }
  .two-col { grid-template-columns: 1fr; }
  .detail-two-col { grid-template-columns: 1fr !important; }
  .detail-breadcrumb {
    line-height: 1.55;
    word-break: break-word;
    font-size: .9rem;
  }
  .detail-two-col aside {
    order: 2;
  }
  .detail-two-col main {
    order: 1;
  }
  .detail-suggest-item {
    align-items: flex-start !important;
  }
  .detail-suggest-item img {
    width: 52px !important;
    height: 52px !important;
  }
  .detail-suggest-item span {
    font-size: 1rem;
    line-height: 1.35;
  }
  .card img {
    height: 190px;
  }
  .section {
    padding: 36px 0;
  }
  .section h2 {
    margin-bottom: 10px;
  }
  .home-hero {
    min-height: 540px !important;
  }
  .hero-content {
    max-width: 94%;
    padding: 0 2px;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.5rem);
    line-height: 1.15;
  }
  .hero p {
    font-size: .98rem;
    line-height: 1.55;
  }
  .home-about-media img {
    height: 180px !important;
  }
  .home-space-item {
    height: 320px !important;
  }
  .home-space-item h2 {
    font-size: 1.5rem;
  }
  .home-space-item p {
    font-size: .92rem;
    margin: 6px 10px 0;
    line-height: 1.5;
  }
  .about-hero-image {
    height: 320px !important;
    margin-top: 14px !important;
  }
  .about-feature-image,
  .about-core-image {
    height: 280px !important;
  }
  .contact-name-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .pager {
    margin-top: 20px;
    gap: 8px;
  }
  .pager a,
  .pager .current {
    padding: 8px 12px;
    font-size: .9rem;
  }
  .footer {
    padding-top: 38px;
  }
  .formula-fab { bottom: 12px; right: 12px; }
  .formula-drawer { width: min(94vw, 94vw); }
  .simulation-results { grid-template-columns: 1fr; }
  .sim-upload-box { flex-wrap: wrap; }
}

@media (max-width: 390px) {
  .container {
    width: min(1200px, 94vw);
  }
  .topbar-inner {
    min-height: 68px;
    gap: 8px;
  }
  .logo img {
    height: 42px;
  }
  .search-mini input {
    width: 112px;
    padding: 7px 9px;
    font-size: .88rem;
  }
  .lang-switch a {
    padding: 6px 8px;
    font-size: .74rem;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 8.6vw, 2rem);
  }
  .hero p {
    font-size: .9rem;
  }
  .section {
    padding: 30px 0;
  }
  .card .body {
    padding: 12px;
  }
  .card img {
    height: 170px;
  }
  .color-tile .swatch {
    height: 110px;
  }
  .detail-suggest-item span {
    font-size: .94rem;
  }
  .badge {
    font-size: .78rem;
    padding: 3px 9px;
  }
  .formula-fab {
    width: 48px;
    height: 48px;
  }
  .formula-drawer-head h3 {
    font-size: 1rem;
  }
  .formula-drawer-head p {
    font-size: .8rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: min(1200px, 94vw);
  }
  .topbar-inner {
    gap: 12px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: .92rem;
  }
  .search-mini input {
    width: 170px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .two-col.detail-two-col {
    grid-template-columns: 1.35fr .9fr;
    gap: 20px;
  }
  .about-hero-image {
    height: 460px !important;
  }
  .about-feature-image,
  .about-core-image {
    height: 420px !important;
  }
  .home-space-item {
    height: 420px !important;
  }
  .formula-drawer {
    width: min(640px, 86vw);
  }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .topbar {
    position: static;
  }
  .topbar-inner {
    min-height: 58px;
    gap: 8px;
  }
  .logo img {
    height: 38px;
  }
  .search-mini input {
    width: 126px;
    padding: 6px 8px;
    font-size: .84rem;
  }
  .lang-switch a {
    padding: 5px 8px;
    font-size: .74rem;
  }
  .menu-toggle {
    width: 34px;
    height: 34px;
  }
  .hero {
    min-height: 340px !important;
  }
  .hero h1 {
    font-size: clamp(1.45rem, 4vw, 2rem);
    margin-bottom: 8px;
  }
  .hero p {
    font-size: .9rem;
    line-height: 1.45;
  }
  .section {
    padding: 24px 0;
  }
  .card img {
    height: 140px;
  }
  .home-space-item {
    height: 230px !important;
  }
  .about-hero-image {
    height: 240px !important;
  }
  .about-feature-image,
  .about-core-image {
    height: 220px !important;
  }
  .mobile-nav-drawer {
    width: min(320px, 90vw);
  }
  .formula-fab {
    width: 46px;
    height: 46px;
    bottom: 10px;
    right: 10px;
  }
  .formula-drawer {
    width: min(520px, 92vw);
  }
  .formula-drawer-head {
    padding: 10px 12px;
  }
  .formula-drawer-body {
    padding: 10px 12px 12px;
  }
  .formula-results > div {
    padding: 7px 10px;
    font-size: .85rem;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .container {
    width: min(1280px, 95vw);
  }
  .topbar-inner {
    min-height: 74px;
    gap: 12px;
  }
  .logo img {
    height: 50px;
  }
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: .92rem;
  }
  .search-mini input {
    width: 190px;
  }
  .lang-switch a {
    padding: 7px 9px;
    font-size: .8rem;
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
  .card img {
    height: 200px;
  }
  .two-col.detail-two-col {
    grid-template-columns: 1.55fr .9fr;
    gap: 20px;
  }
  .detail-suggest-item img {
    width: 54px !important;
    height: 54px !important;
  }
  .home-space-item {
    height: 360px !important;
  }
  .about-hero-image {
    height: 420px !important;
  }
  .about-feature-image,
  .about-core-image {
    height: 390px !important;
  }
  .formula-drawer {
    width: min(700px, 72vw);
  }
}
