:root {
  color-scheme: light;
  --ink: #172018;
  --muted: #5d685e;
  --paper: #fffdf4;
  --surface: #ffffff;
  --line: #e3e6dc;
  --yellow: #f6df16;
  --market-yellow: #ffe600;
  --yellow-soft: #fff8be;
  --red: #b61731;
  --green: #34732f;
  --shadow: 0 18px 50px rgba(37, 50, 37, .10);
}

* { 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;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23,32,24,.1);
  background: rgba(255,253,244,.92);
  backdrop-filter: blur(14px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; }
.brand-mark { display: block; flex: 0 0 auto; width: 48px; height: 48px; overflow: hidden; border: 1px solid #dfca00; border-radius: 14px; background: var(--market-yellow); box-shadow: 0 5px 14px rgba(35,50,35,.10); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 750; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 18px;
  background: var(--ink);
  color: white;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(23,32,24,.16); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-accent { background: var(--red); }
.button-technical { background: #174c2c; color: white; }
.button-technical:hover { background: #0f3d22; color: white; }
.button-market { border-color: #dfca00; background: var(--market-yellow); color: #2d3277; }
.button-market:hover { background: #ffec3d; color: #252a68; }
.button-sales, .button-sales:hover { color: var(--market-yellow); }
.nav-links a.button-market { color: #2d3277; }
.nav-links a.button-market:hover { color: #252a68; }
.nav-links a.button-sales, .nav-links a.button-sales:hover { color: var(--market-yellow); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }

.hero { overflow: hidden; padding: 76px 0 66px; background: radial-gradient(circle at 78% 20%, #fff39a 0, transparent 34%), linear-gradient(145deg, #fffdf4 0%, #fff8c7 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.06em; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.045em; }
h3 { margin-bottom: 8px; line-height: 1.15; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; border: 1px solid rgba(52,115,47,.2); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.65); color: var(--green); font-size: .78rem; font-weight: 850; }
.hero-visual { position: relative; min-width: 0; }
.hero-frame { overflow: hidden; border: 10px solid white; border-radius: 30px; background: #d9f0ef; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.verified-card { position: absolute; right: -14px; bottom: 26px; width: min(260px, 70%); border: 1px solid var(--line); border-radius: 18px; padding: 15px; background: white; box-shadow: var(--shadow); }
.verified-card strong { display: block; }
.verified-card span { color: var(--muted); font-size: .82rem; }

.section { padding: 82px 0; }
.section-white { background: white; }
.section-soft { background: #f4f6ee; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-head p { max-width: 610px; margin-bottom: 0; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 8px 30px rgba(35,50,35,.06); }
.product-media { display: grid; flex: 0 0 360px; width: 100%; min-width: 0; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); padding: 24px; background: linear-gradient(150deg, #fffbea, #f0f4e6); }
.product-media img { display: block; width: 100%; max-width: 430px; height: 312px; object-fit: contain; }
.product-card:nth-child(2) .product-media img { max-width: none; height: 312px; object-fit: cover; border-radius: 14px; }
.product-body { position: relative; z-index: 1; display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 24px; background: var(--surface); }
.product-type { margin-bottom: 8px; color: var(--red); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.product-size { margin-bottom: 12px; color: var(--green); font-weight: 850; }
.product-description { color: var(--muted); font-size: .92rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 18px; padding-top: 10px; }
.tag { border-radius: 999px; padding: 5px 9px; background: #f1f4ec; color: #536054; font-size: .72rem; font-weight: 750; }
.product-actions { display: grid; gap: 8px; }
.source-note { margin-top: 18px; color: var(--muted); font-size: .8rem; }
.market-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; margin-top: 26px; border: 1px solid #e1ce16; border-radius: 22px; padding: 26px; background: linear-gradient(135deg, #fffceb, #fff6a4); }
.market-panel h3 { margin-bottom: 8px; font-size: 1.45rem; }
.market-panel p:not(.eyebrow) { max-width: 720px; margin-bottom: 0; color: #5f5c35; }

.use-grid, .proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use-card, .proof-card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: white; }
.use-card span { display: block; margin-bottom: 18px; font-size: 2rem; }
.use-card p, .proof-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.proof-number { margin-bottom: 8px; color: var(--red); font-size: 2.6rem; font-weight: 950; line-height: 1; }

.cta { padding: 82px 0; background: var(--yellow); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.cta p { max-width: 680px; margin-bottom: 0; color: #4b4a28; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { padding: 46px 0; background: #172018; color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.site-footer p { margin-bottom: 8px; color: rgba(255,255,255,.68); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; }
.footer-links a { color: white; font-size: .9rem; font-weight: 750; }

.selection-bar { position: sticky; bottom: 14px; z-index: 30; width: min(700px, calc(100% - 32px)); margin: 0 auto 18px; border: 1px solid rgba(23,32,24,.16); border-radius: 18px; padding: 12px 14px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.selection-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.selection-count { font-weight: 900; }
.selection-count small { display: block; color: var(--muted); font-weight: 650; }

.page-hero { padding: 60px 0 36px; background: var(--yellow-soft); }
.request-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: white; box-shadow: 0 8px 30px rgba(35,50,35,.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 850; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #ccd2c6; border-radius: 12px; padding: 12px 13px; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(246,223,22,.45); border-color: #77762b; }
.request-items { display: grid; gap: 10px; }
.request-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.request-item img { width: 58px; height: 58px; object-fit: contain; }
.request-item p { margin: 0; font-size: .84rem; }
.request-item small { color: var(--muted); }
.text-button { border: 0; padding: 6px; background: transparent; color: var(--red); font-size: .78rem; font-weight: 850; }
.empty { border: 1px dashed #bec6b8; border-radius: 16px; padding: 22px; color: var(--muted); text-align: center; }
.fine-print { color: var(--muted); font-size: .78rem; }

.catalog-viewer-page { display: flex; min-height: 100vh; flex-direction: column; background: #eef0e8; }
.catalog-toolbar { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 6px 24px rgba(35,50,35,.08); }
.catalog-toolbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.catalog-title-group { display: flex; min-width: 0; align-items: center; gap: 12px; }
.catalog-logo { width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid #dfca00; border-radius: 12px; object-fit: cover; }
.catalog-title { min-width: 0; }
.catalog-title strong { display: block; }
.catalog-title span { display: block; overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-toolbar-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.technical-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.catalog-frame { flex: 1; padding: 16px; }
.catalog-object { display: block; width: 100%; height: calc(100vh - 110px); min-height: 640px; border: 0; border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(35,50,35,.10); }
.catalog-fallback { max-width: 620px; margin: 60px auto; padding: 28px; text-align: center; }

@media (max-width: 900px) {
  .nav-links a:not(.button) { display: none; }
  .hero-grid, .request-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .market-panel { grid-template-columns: 1fr; }
  .market-panel .button { justify-self: start; }
  .cta-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav { min-height: 64px; }
  .brand-text { font-size: .9rem; }
  .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .hero { padding: 52px 0 44px; }
  .hero-grid { gap: 34px; }
  .verified-card { right: 8px; bottom: 14px; }
  .section { padding: 60px 0; }
  .section-head { display: block; }
  .catalog-grid, .use-grid, .proof-grid, .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .product-media { flex-basis: 330px; }
  .product-media img, .product-card:nth-child(2) .product-media img { height: 282px; }
  .selection-inner { align-items: stretch; flex-direction: column; }
  .selection-inner .button { width: 100%; }
  .nav-links a.button-market { display: none; }
  .request-nav { display: inline-flex; }
  .market-panel { padding: 22px; }
  .market-panel .button { width: 100%; }
  .catalog-toolbar-inner { align-items: stretch; flex-direction: column; padding-block: 12px; }
  .catalog-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .technical-toolbar-actions { grid-template-columns: 1fr 1fr; }
  .technical-toolbar-actions .button:last-child { grid-column: 1 / -1; }
  .catalog-frame { padding: 8px; }
  .catalog-object { height: calc(100vh - 148px); min-height: 520px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
