:root {
  color-scheme: light;
  --ink: #101820;
  --ink-soft: #26323d;
  --muted: #63717c;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --surface-strong: #eef4f2;
  --line: #d8dfdd;
  --accent: #0f8f63;
  --accent-strong: #0a6f4b;
  --warning: #ffb238;
  --coral: #e95f3f;
  --blue: #2563a9;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
  --radius: 8px;
  --radius-small: 6px;
  --header-height: 78px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

code {
  padding: 2px 5px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-small);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.admin-header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(22px, calc((100% - var(--container)) / 2));
  background: rgba(247, 246, 241, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 223, 221, 0.86);
  position: sticky;
  top: 0;
  z-index: 12;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 178, 56, 0.95), rgba(15, 143, 99, 0.95)),
    var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.brand-name,
.brand-tagline {
  display: block;
}

.brand-name {
  font-weight: 850;
  line-height: 1.1;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.nav-links,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: var(--radius-small);
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.mobile-nav a:hover {
  background: var(--surface-strong);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 22px 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  align-items: center;
  gap: 42px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-weight: 850;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: 4.4rem;
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 760px;
}

.hero-lede {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 680px;
}

.hero-actions,
.button-row,
.card-actions,
.admin-header-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button,
.icon-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button {
  padding: 12px 18px;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

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

.button.primary:hover {
  background: #1f2b35;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost,
.button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 24, 32, 0.24);
}

.button.danger {
  background: #fff5f2;
  color: #9d2b19;
  border-color: #f2c4b8;
}

.button.compact {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.trust-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span,
.chip-row span,
.stock-pill,
.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--line);
}

.trust-strip span {
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.hero-main-image {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 24, 32, 0.12);
}

.hero-device-card {
  position: absolute;
  width: 210px;
  min-height: 92px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 24, 32, 0.14);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.16);
  animation: float-card 5s ease-in-out infinite;
}

.hero-device-card span,
.hero-device-card strong {
  display: block;
}

.hero-device-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-device-card strong {
  margin-top: 6px;
  font-size: 1.06rem;
  line-height: 1.18;
}

.hero-card-one {
  left: -22px;
  bottom: 48px;
}

.hero-card-two {
  right: -10px;
  top: 62px;
  animation-delay: 1.2s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.quick-search,
.catalog-section,
.service-section,
.feature-band,
.faq-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 22px;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--line);
}

.quick-search h2,
.section-heading h2,
.feature-copy h2,
.admin-panel h1,
.admin-panel h2,
.form-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.quick-search h2,
.section-heading h2,
.feature-copy h2 {
  font-size: 2.35rem;
  line-height: 1.05;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.search-field input,
.select-field select,
.field input,
.field select,
.field textarea,
.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
}

.search-field input,
.select-field select,
.admin-search input {
  min-height: 52px;
  padding: 0 16px;
}

.search-field input:focus,
.select-field select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 143, 99, 0.12);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-tab {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--surface);
  font-weight: 850;
}

.category-tab.active,
.category-tab:hover {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

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

.product-card,
.process-card,
.admin-panel,
.product-form,
.preview-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 99, 0.45);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.12);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-strong);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  background: #fff8e8;
  color: #7d4a00;
  border-color: rgba(255, 178, 56, 0.52);
}

.product-media .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-content h3 {
  margin: 10px 0 8px;
  line-height: 1.18;
  font-size: 1.22rem;
}

.product-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.chip-row {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.chip-row span {
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-price-row strong,
.dialog-price strong,
.preview-card strong {
  display: block;
  font-size: 1.38rem;
  line-height: 1;
}

.product-price-row del,
.dialog-price del {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-price-row small {
  display: block;
  color: var(--accent-strong);
  font-weight: 800;
  margin-top: 3px;
}

.stock-pill {
  background: #edf7f3;
  color: var(--accent-strong);
  border-color: rgba(15, 143, 99, 0.22);
  white-space: nowrap;
}

.card-actions {
  margin-top: 16px;
}

.card-actions .button {
  flex: 1;
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  margin-top: 6px;
}

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

.process-card {
  padding: 22px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 900;
}

.process-card h3 {
  margin: 0 0 8px;
}

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

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  max-width: none;
  padding-left: max(22px, calc((100% - var(--container)) / 2));
  padding-right: max(22px, calc((100% - var(--container)) / 2));
}

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

.feature-copy .section-kicker {
  color: var(--warning);
}

.feature-copy p {
  color: #d8e0df;
}

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

.feature-stats div {
  min-height: 122px;
  padding: 18px;
  display: grid;
  align-content: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.feature-stats strong {
  font-size: 1.8rem;
}

.feature-stats span {
  color: #d8e0df;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr;
  gap: 34px;
  padding: 42px max(22px, calc((100% - var(--container)) / 2));
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-copy {
  color: var(--muted);
  max-width: 420px;
}

.site-footer address,
.footer-links {
  display: grid;
  gap: 4px;
  align-content: start;
}

.footer-links a {
  color: var(--accent-strong);
  font-weight: 800;
}

.product-dialog {
  width: min(1080px, calc(100% - 28px));
  max-height: min(820px, calc(100svh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.product-dialog::backdrop {
  background: rgba(16, 24, 32, 0.66);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(16, 24, 32, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--surface);
}

.dialog-gallery {
  padding: 22px;
  background: var(--surface-strong);
}

.dialog-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

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

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

.dialog-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.dialog-details {
  padding: 28px;
  overflow: auto;
  max-height: min(820px, calc(100svh - 28px));
}

.dialog-details h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.05;
}

.dialog-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.dialog-price span {
  color: var(--accent-strong);
  font-weight: 850;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.detail-list div {
  padding: 12px;
  background: var(--surface-strong);
  border-radius: var(--radius-small);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 3px 0 0;
  font-weight: 750;
}

.spec-block h3,
.contact-card h3,
.upload-panel h3 {
  margin: 0 0 8px;
}

.spec-block ul {
  margin: 0;
  padding-left: 20px;
}

.contact-card {
  margin-top: 22px;
  padding: 18px;
}

.contact-card.focus {
  border-color: rgba(15, 143, 99, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 143, 99, 0.1);
}

.contact-card p {
  color: var(--muted);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Admin */
.admin-body {
  background: #eef4f2;
}

.admin-header {
  background: rgba(255, 255, 255, 0.94);
}

.admin-shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.admin-panel,
.product-form {
  padding: 18px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.admin-panel h1,
.admin-panel h2 {
  font-size: 1.35rem;
}

.admin-note,
.admin-status,
.admin-empty {
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-status[data-type="error"] {
  color: #9d2b19;
}

.admin-list-heading,
.form-heading,
.upload-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  color: #fff;
  background: var(--ink);
}

.icon-button.light {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.category-form {
  display: grid;
  gap: 10px;
}

.category-form .field {
  margin-top: 10px;
}

.category-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-item strong,
.category-item small {
  display: block;
}

.category-item small {
  color: var(--muted);
}

.field span,
.check-field span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
}

.field textarea {
  resize: vertical;
}

.button-row.wrap {
  flex-wrap: wrap;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-search {
  margin: 12px 0;
}

.admin-product-list {
  display: grid;
  gap: 8px;
  max-height: 470px;
  overflow: auto;
  padding-right: 2px;
}

.admin-product-button {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.admin-product-button.active,
.admin-product-button:hover {
  border-color: rgba(15, 143, 99, 0.55);
  background: #f5fbf8;
}

.admin-product-button img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.admin-product-button strong,
.admin-product-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-button small {
  color: var(--muted);
  margin-top: 2px;
}

.admin-editor {
  min-width: 0;
}

.product-form {
  background: var(--surface);
}

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

.span-2 {
  grid-column: span 2;
}

.upload-panel {
  margin-top: 14px;
  padding: 16px;
  background: #f8fbfa;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.upload-panel p {
  margin: 0;
  color: var(--muted);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.preview-panel {
  margin: 18px 0;
}

.preview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
}

.preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-small);
  background: var(--surface-strong);
}

.preview-card h3 {
  margin: 10px 0 6px;
  font-size: 1.35rem;
}

.preview-card p {
  color: var(--muted);
}

.preview-card ul {
  margin: 0;
  padding-left: 20px;
}

.form-actions {
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .mobile-nav.open {
    display: grid;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 11;
    padding: 12px 22px 18px;
    background: rgba(247, 246, 241, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-visual,
  .hero-main-image {
    min-height: 430px;
    height: 430px;
  }

  .quick-search,
  .feature-band,
  .site-footer,
  .admin-shell {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .site-header,
  .admin-header {
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .hero,
  .quick-search,
  .catalog-section,
  .service-section,
  .faq-section,
  .admin-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 2.52rem;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-visual,
  .hero-main-image {
    min-height: 340px;
    height: 340px;
  }

  .hero-device-card {
    width: 184px;
    min-height: 82px;
    padding: 13px;
  }

  .hero-card-one {
    left: 10px;
    bottom: 16px;
  }

  .hero-card-two {
    right: 10px;
    top: 16px;
  }

  .quick-search h2,
  .section-heading h2,
  .feature-copy h2 {
    font-size: 1.82rem;
  }

  .section-heading,
  .form-heading,
  .upload-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel,
  .product-grid,
  .process-grid,
  .feature-stats,
  .dialog-layout,
  .detail-list,
  .form-grid,
  .preview-card {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .product-dialog {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
  }

  .dialog-details {
    max-height: none;
  }

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

  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card-actions .button,
  .form-actions .button,
  .admin-header-actions .button {
    width: 100%;
  }

  .admin-header-actions {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.16rem;
  }

  .hero-actions .button,
  .trust-strip span {
    width: 100%;
  }

  .hero-device-card {
    position: static;
    width: 100%;
    margin-top: 8px;
    animation: none;
  }

  .hero-visual {
    height: auto;
    min-height: 0;
  }

  .hero-main-image {
    height: 260px;
    min-height: 260px;
  }
}
