:root {
  --bg-page: #f7f9fc;
  --bg-card: #ffffff;
  --bg-soft: #eef3f8;
  --bg-ink: #0b1220;
  --text-primary: #111827;
  --text-secondary: #5f6b7a;
  --text-muted: #7b8794;
  --accent-primary: #007aff;
  --accent-signal: #00b8d9;
  --accent-success: #22a06b;
  --accent-warning: #b7791f;
  --border-soft: #d9e2ec;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1180px;
  --content-pad: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-page);
  color: var(--text-primary);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 122, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg-page) 42%, #ffffff 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

body.has-mobile-actions {
  padding-bottom: 0;
}

body.admin-body {
  background: #f4f7fb;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-signal));
  color: white;
  display: grid;
  place-items: center;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.24);
}

.brand small {
  display: block;
  margin-top: -4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.language-control select {
  min-height: 36px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  padding: 6px 8px;
  font-weight: 750;
}

.mobile-action-bar {
  display: none;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .nav-inner,
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .split,
html[dir="rtl"] .product-detail-grid {
  direction: rtl;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.22);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-soft);
}

.btn-dark {
  background: var(--bg-ink);
  color: #ffffff;
}

.btn-link {
  border-color: transparent;
  color: var(--accent-primary);
  padding-left: 0;
  padding-right: 0;
}

.btn-compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 8vw, 96px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 18px;
  max-width: 640px;
}

.page-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0 0 24px;
  max-width: 760px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: clamp(17px, 1.8vw, 22px);
  max-width: 670px;
  margin: 0 0 28px;
}

.hero p {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  max-width: 560px;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.trust-item strong {
  display: block;
  font-size: 20px;
}

.trust-item span {
  color: var(--text-muted);
  font-size: 13px;
}

.product-visual {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 248, 0.8)),
    radial-gradient(circle at 50% 20%, rgba(0, 184, 217, 0.18), transparent 22rem);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.remote-render {
  width: min(260px, 54vw);
  margin: 52px auto 0;
  filter: drop-shadow(0 34px 42px rgba(15, 23, 42, 0.22));
}

.signal-card {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.signal-card strong {
  display: block;
  margin-bottom: 8px;
}

.signal-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.section {
  padding: var(--section) 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section.dark {
  background: var(--bg-ink);
  color: #ffffff;
}

.section.dark p,
.section.dark .section-head p {
  color: #c9d4e5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.page-section h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

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

.procurement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 18px;
}

.card,
.product-card,
.form-panel,
.admin-panel,
.procurement-panel,
.boundary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.card,
.procurement-panel,
.boundary-panel {
  padding: 24px;
}

.card h3,
.product-card h3 {
  margin: 0 0 10px;
  line-height: 1.18;
}

.card p,
.product-card p {
  color: var(--text-secondary);
  margin: 0;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.step-list strong {
  color: var(--text-primary);
}

.step-list span {
  color: var(--text-secondary);
}

.mini-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td,
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--border-soft);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

.mini-table th,
.comparison-table th {
  color: var(--text-secondary);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

.comparison-shell {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  min-width: 980px;
}

.comparison-table td span {
  color: var(--text-muted);
  font-size: 13px;
}

.comparison-table a {
  color: var(--accent-primary);
  font-weight: 800;
}

.rfq-brief {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.rfq-brief h3 {
  margin: 0 0 10px;
}

.rfq-brief ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.product-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  align-items: end;
}

.checkbox-field > label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 11px 12px;
  color: var(--text-secondary);
  font-weight: 750;
}

.product-pagination {
  min-height: 42px;
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: #e8f2ff;
  color: var(--accent-primary);
  margin-bottom: 18px;
}

.product-card {
  overflow: hidden;
}

.product-media {
  min-height: 185px;
  background: linear-gradient(145deg, #eef6ff, #ffffff);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border-soft);
}

.product-media img,
.product-media svg {
  width: 112px;
  height: auto;
}

.product-body {
  padding: 22px;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  border-radius: 999px;
  background: #e8f2ff;
  color: #0759b8;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 9px;
}

.spec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.spec-meta span {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  padding: 7px 9px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.detail-visual {
  min-height: 430px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 34px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.spec-table th {
  width: 220px;
  color: var(--text-secondary);
  background: #f8fafc;
}

.spec-page {
  padding-top: clamp(42px, 6vw, 72px);
}

.spec-document {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 4vw, 42px);
}

.spec-document-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 28px;
  align-items: start;
}

.spec-document-head h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  margin: 0 0 16px;
}

.spec-document-head p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 760px;
}

.spec-document-head img {
  width: 140px;
  justify-self: end;
  filter: drop-shadow(0 20px 28px rgba(15, 23, 42, 0.18));
}

.spec-note {
  margin-top: 18px;
  border: 1px solid #f3c7c7;
  border-radius: var(--radius-sm);
  background: #fff5f5;
  color: #8a1f17;
  padding: 14px;
  font-size: 14px;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--accent-primary);
  font-weight: 750;
  font-size: 14px;
}

.footer-contact {
  margin-bottom: 28px;
}

.footer .footer-contact .notice {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #d7e3f4;
}

.footer .contact-chip {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.form-panel,
.admin-panel {
  padding: clamp(22px, 4vw, 34px);
  min-width: 0;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--text-primary);
  outline: none;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.field input.field-error,
.field select.field-error,
.field textarea.field-error {
  border-color: #d92d20;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.notice {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #eef3f8;
  color: var(--text-secondary);
  font-size: 14px;
}

.notice.success {
  background: #e8f7ef;
  color: #176746;
}

.notice.error {
  background: #fff0f0;
  color: #b42318;
}

.ai-box {
  display: grid;
  gap: 12px;
}

.ai-output {
  min-height: 120px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  padding: 14px;
  color: var(--text-secondary);
}

.ai-output p {
  margin: 0 0 12px;
}

.ai-rfq-action {
  width: fit-content;
}

.page-hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(40px, 6vw, 74px);
}

.page-hero.compact-hero {
  padding: clamp(42px, 6vw, 78px) 0 clamp(28px, 5vw, 54px);
}

.page-hero.compact-hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  max-width: 780px;
}

.page-section {
  padding: 0 0 var(--section);
}

.footer {
  background: var(--bg-ink);
  color: #ffffff;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.footer a,
.footer p {
  color: #c9d4e5;
}

.footer h4 {
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #9fb0c7;
  font-size: 13px;
}

.admin-shell {
  padding: 28px var(--content-pad) 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel h2 {
  margin-top: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-workspace .admin-panel {
  margin-top: 0 !important;
}

.admin-quicknav {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  background: rgba(244, 247, 251, 0.92);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
}

.admin-quicknav a {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
}

.admin-quicknav span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-quicknav a:hover {
  color: var(--accent-primary);
  border-color: rgba(0, 122, 255, 0.35);
}

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

.admin-summary .card {
  box-shadow: none;
}

.admin-summary p {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  min-width: 0;
}

.admin-tools .field,
.admin-tools input,
.admin-tools .notice {
  min-width: 0;
}

.admin-list {
  margin-top: 18px;
  overflow-x: auto;
}

.admin-list p,
.admin-list a,
.admin-list code {
  overflow-wrap: anywhere;
}

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

.admin-runtime-grid p {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-runtime-grid strong,
.admin-runtime-grid span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-runtime-grid strong {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-code-block {
  margin-top: 12px;
  min-width: 0;
}

.admin-code-block pre {
  max-width: 100%;
  margin: 6px 0 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 260px;
}

.asset-table {
  min-width: 760px;
  table-layout: fixed;
}

.asset-bind-control {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.asset-bind-control span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-bind-control select {
  min-height: 38px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  padding: 8px 10px;
  max-width: 100%;
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 14px;
}

table.asset-table {
  min-width: 760px;
  table-layout: fixed;
}

.asset-table .admin-row-actions {
  min-width: 0;
}

.asset-table th,
.asset-table td {
  overflow-wrap: anywhere;
}

.asset-table th:nth-child(1),
.asset-table td:nth-child(1) {
  width: 22%;
}

.asset-table th:nth-child(2),
.asset-table td:nth-child(2) {
  width: 15%;
}

.asset-table th:nth-child(3),
.asset-table td:nth-child(3) {
  width: 22%;
}

.asset-table th:nth-child(4),
.asset-table td:nth-child(4) {
  width: 23%;
}

.asset-table th:nth-child(5),
.asset-table td:nth-child(5) {
  width: 18%;
}

.admin-table-wrap {
  overflow-x: auto;
  width: 100%;
}

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

.admin-table th {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table span {
  color: var(--text-muted);
  font-size: 12px;
}

.empty-state {
  padding: 38px;
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

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

  .hero-grid,
  .product-detail-grid,
  .split,
  .procurement-grid,
  .product-tools,
  .admin-summary,
  .admin-tools,
  .admin-layout,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    gap: 12px;
  }

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

  .admin-quicknav {
    position: sticky;
    top: 64px;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .admin-quicknav a {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .hero {
    min-height: auto;
  }

  .product-detail-grid > div:first-child {
    order: 2;
  }

  .product-detail-grid > div:nth-child(2) {
    order: 1;
  }

  .priority-form {
    order: -1;
  }

  .product-visual {
    min-height: 430px;
  }

  .spec-document-head {
    grid-template-columns: 1fr;
  }

  .spec-document-head img {
    justify-self: start;
  }

  .section-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  body:not(.admin-body) {
    padding-bottom: 74px;
  }

  .nav-actions {
    display: none;
  }

  .language-control {
    width: auto;
    margin-left: auto;
  }

  .language-control select {
    width: auto;
    min-width: 76px;
  }

  .nav-inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .nav-links {
    font-size: 13px;
    gap: 10px;
  }

  body:not(.admin-body) .nav-links a:nth-child(4),
  body:not(.admin-body) .nav-links a:nth-child(6) {
    display: none;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
  }

  .mobile-action-bar a {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-action-bar a:nth-child(4) {
    background: var(--accent-primary);
    color: #ffffff;
  }

  .page-hero h1 {
    font-size: 42px;
  }

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

  .trust-strip,
  .form-grid,
  .step-list li {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .no-print,
  .language-control,
  .hero-actions.no-print {
    display: none !important;
  }

  .page-hero,
  .spec-page {
    padding: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .spec-document {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
}
