:root {
  --ink: #12343b;
  --muted: #52656b;
  --green: #087f6b;
  --green-dark: #066353;
  --background: #f5f8fa;
  --line: #dce5e7;
  --white: #ffffff;
  --mint: #e5f3ed;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 48px)); margin: auto; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 20px; background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; }
.logo {
  display: inline-flex; align-items: center;
  font-size: 26px; font-weight: 800; letter-spacing: -1px;
}
.logo span { color: var(--green); }
.logo .logo-symbol {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-right: 10px;
  border-radius: 11px; background: var(--ink); color: white;
}
.navigation { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.navigation a:hover { color: var(--green); }
.connection {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #87969b; }
.connection.connected .connection-dot { background: var(--green); }
.connection.failed .connection-dot { background: #b45309; }

.hero { background: var(--background); padding: 70px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px; }
h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.06; letter-spacing: -3px; }
.hero-description { max-width: 440px; margin: 26px 0 30px; color: var(--muted); font-size: 17px; }
.button {
  display: inline-flex; justify-content: center; align-items: center;
  gap: 20px; min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 14px; font-weight: 700;
}
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: white; border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--background); }
.button:disabled { opacity: .45; cursor: default; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.hero-notes span::before { content: "✓"; color: var(--green); margin-right: 7px; }
.hero-visual { overflow: hidden; border-radius: 28px; background: #dbe9e3; }
.visual-topline {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; font-size: 10px; font-weight: 800; letter-spacing: 2px;
}
.visual-topline span:last-child { font-size: 22px; }
.hero-visual img { width: 100%; height: 310px; object-fit: cover; }
.visual-caption { padding: 22px 26px; display: flex; flex-direction: column; }
.visual-caption span { font-size: 13px; color: var(--muted); }
.visual-caption strong { font-size: 20px; letter-spacing: -.4px; }

.categories-section, .catalog-section { padding: 64px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 8px; }
h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.2; letter-spacing: -1px; }
.section-heading > p { max-width: 310px; color: var(--muted); font-size: 14px; }
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category {
  display: flex; gap: 14px; align-items: center;
  padding: 22px 18px; border: 1px solid var(--line); border-radius: 14px;
}
.category img { width: 44px; height: 44px; object-fit: contain; }
.category h3 { font-size: 14px; }
.category p { margin-top: 3px; font-size: 11px; color: var(--muted); }

.catalog-section { background: var(--background); }
.catalog-message { padding: 48px 24px; text-align: center; border: 1px dashed #b9cbcf; border-radius: var(--radius); }
.empty-symbol {
  display: grid; place-items: center; width: 56px; height: 56px;
  margin: 0 auto 18px; border-radius: 16px;
  background: var(--mint); color: var(--green); font-size: 28px;
}
.catalog-message h3 { font-size: 22px; }
.catalog-message p { max-width: 440px; margin: 10px auto 0; color: var(--muted); font-size: 14px; }
.catalog-message button { margin-top: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.product-photo { height: 240px; background: #e8eeef; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.product-body { padding: 22px; }
.product-category { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.product-body h3 { margin: 8px 0; font-size: 18px; line-height: 1.4; }
.product-location { color: var(--muted); font-size: 13px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.product-price { font-size: 24px; font-weight: 800; letter-spacing: -.7px; }
.condition { padding: 5px 9px; border-radius: 6px; font-size: 11px; background: var(--mint); color: var(--green-dark); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.pagination span { font-size: 13px; color: var(--muted); }

.how-section { padding: 76px 0; }
.how-section h2 { max-width: 680px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.step-number { color: var(--green); font-size: 12px; font-weight: 800; }
.steps h3 { margin: 12px 0 8px; font-size: 19px; }
.steps p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer p, .footer a:last-child { font-size: 12px; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { gap: 32px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .navigation { gap: 16px; }
  .hero-visual img { height: 270px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; gap: 12px; flex-wrap: wrap; padding: 14px 0; }
  .logo { font-size: 23px; }
  .connection { margin-left: auto; }
  .navigation { order: 3; width: 100%; margin: 0; font-size: 12px; }
  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  h1 { letter-spacing: -2px; }
  .hero-description { font-size: 16px; }
  .hero-visual img { height: 250px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .categories-section, .catalog-section { padding: 42px 0; }
  .category { padding: 16px 12px; gap: 10px; }
  .category img { width: 32px; height: 32px; }
  .category h3 { font-size: 12px; }
  .category p { display: none; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .how-section { padding: 48px 0; }
  .footer-inner { flex-direction: column; align-items: start; gap: 12px; }
  .pagination { gap: 10px; }
  .pagination .button { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
