:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5c665e;
  --line: #d9ded4;
  --paper: #fbfaf5;
  --band: #eef3e7;
  --accent: #b43d22;
  --accent-dark: #842b1a;
  --gold: #d99a22;
  --mint: #537d62;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 28, 20, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--accent);
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--band);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-button {
  min-width: 48px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.lang-button.is-active {
  color: var(--white);
  background: var(--mint);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 760px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(18, 15, 10, 0.76), rgba(18, 15, 10, 0.34) 48%, rgba(18, 15, 10, 0.06));
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  max-width: 780px;
  min-height: inherit;
  padding: 72px clamp(18px, 6vw, 72px) 112px;
  color: var(--white);
}

.subhero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 40px;
}

.subhero h1 {
  color: var(--ink);
}

.subhero > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.catalog-search {
  margin-top: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 8vw, 86px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

p {
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 28px;
  font-size: clamp(17px, 2vw, 22px);
}

.search-panel {
  max-width: 620px;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-row input,
.search-row button {
  min-height: 46px;
  border-radius: 6px;
  font: inherit;
}

.search-row input {
  width: 100%;
  border: 1px solid transparent;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
}

.search-row button {
  border: 0;
  padding: 0 22px;
  color: var(--white);
  background: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 32px;
}

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

.quick-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.quick-grid p,
.panel p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.fact-item {
  min-height: 104px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact-item strong {
  display: block;
  margin-bottom: 8px;
}

.fact-item span {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(320px, 1.25fr);
  gap: 40px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.panel ol {
  margin: 18px 0 0;
  padding-left: 22px;
}

.panel li {
  margin: 12px 0;
  line-height: 1.55;
}

.customer-list,
.task-list {
  display: grid;
  gap: 12px;
}

.customer-item,
.task-item {
  padding: 16px;
  background: #f7f5ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.customer-item strong,
.task-item strong {
  display: block;
  margin-bottom: 5px;
}

.customer-item span,
.task-item span {
  color: var(--muted);
  line-height: 1.5;
}

.ad {
  width: min(1120px, calc(100% - 32px));
  min-height: 96px;
  margin: 28px auto 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #f2efe4, #f2efe4 12px, #ece7d9 12px, #ece7d9 24px);
  border: 1px dashed #c7bfa9;
  border-radius: 8px;
  text-align: center;
}

.ad-inline {
  margin-bottom: 56px;
}

.footer {
  padding: 28px 16px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}

.sources {
  padding-top: 0;
}

.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.screenshot-strip img,
.shop-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-strip img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.count-pill,
.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: var(--accent-dark);
  background: #fff5e1;
  border: 1px solid #ead2a4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.shop-catalog {
  display: grid;
  gap: 18px;
}

.shop-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-shot {
  margin: 0 0 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--band);
}

.shop-card h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.shop-card > p {
  max-width: 860px;
  color: var(--muted);
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 18px;
}

.shop-detail-grid section {
  padding: 16px;
  background: #f7f5ed;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-detail-grid h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.shop-detail-grid ul,
.shop-detail-grid ol {
  margin: 0;
  padding-left: 20px;
}

.shop-detail-grid li,
.shop-detail-grid p {
  color: var(--muted);
  line-height: 1.55;
}

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

.source-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: var(--accent-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

mark {
  color: inherit;
  background: rgba(217, 154, 34, 0.32);
  border-radius: 4px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(18, 15, 10, 0.72), rgba(18, 15, 10, 0.28));
  }

  .quick-grid,
  .split,
  .two-columns,
  .fact-grid,
  .shop-detail-grid,
  .screenshot-strip {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 660px;
  }

  .hero-overlay {
    padding-inline: 16px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 24px, 1120px);
    padding: 44px 0;
  }
}
