:root {
  --ink: #15211b;
  --ink-soft: #536158;
  --forest-950: #0d241b;
  --forest-900: #123126;
  --forest-800: #173b2d;
  --forest-700: #23523f;
  --forest-100: #e5efe9;
  --orange: #f47a42;
  --orange-dark: #d95e2c;
  --amber: #d7a84b;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --white: #fff;
  --line: #dfe5df;
  --success: #16734a;
  --danger: #b43838;
  --shadow-sm: 0 6px 20px rgba(21, 33, 27, .07);
  --shadow-md: 0 18px 55px rgba(21, 33, 27, .13);
  --radius-sm: .75rem;
  --radius: 1.2rem;
  --radius-lg: 1.8rem;
  --container: 1180px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(244, 122, 66, .42); outline-offset: 3px; }
::selection { color: var(--white); background: var(--forest-700); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .7rem 1rem;
  color: white;
  background: var(--forest-900);
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }
.site-container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; }
.section--compact { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--white { background: var(--paper); }
.section--dark { color: white; background: var(--forest-950); }
.section-heading { max-width: 730px; margin-bottom: 2.4rem; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h1, .section-heading h2, .page-title {
  margin: .4rem 0 .8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.section-heading p { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 1.06rem; }
.section-heading--center p { margin-inline: auto; }
.eyebrow {
  margin: 0;
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section--dark .eyebrow { color: #ffad83; }
.muted { color: var(--ink-soft); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.topbar { color: #e6eee9; background: var(--forest-950); font-size: .82rem; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar p { margin: 0; }
.topbar__links { display: flex; align-items: center; gap: 1rem; }
.topbar a:hover { color: white; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 59, 45, .09);
  background: rgba(255, 253, 248, .94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .72rem; min-width: max-content; }
.brand__mark { width: 44px; height: 44px; }
.brand__name { display: block; font-size: 1.15rem; font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.brand__tagline { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .61rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link, .nav-dropdown__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem .82rem;
  color: #34453a;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: .91rem;
  font-weight: 700;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-dropdown__button:hover { color: var(--forest-900); background: var(--forest-100); }
.nav-link--accent { color: white; background: var(--forest-800); }
.nav-link--accent:hover { color: white; background: var(--forest-700); }
.nav-dropdown { position: relative; }
.nav-dropdown__button svg { width: 15px; height: 15px; }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  width: 270px;
  transform: translateX(-50%) translateY(-5px);
  padding: .65rem;
  visibility: hidden;
  opacity: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: .18s ease;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.nav-dropdown__menu a { display: block; padding: .65rem .8rem; border-radius: .65rem; color: var(--ink-soft); font-size: .9rem; font-weight: 650; }
.nav-dropdown__menu a:hover { color: var(--forest-900); background: var(--forest-100); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.install-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  color: var(--forest-800);
  background: transparent;
  border: 1px solid #bac9c0;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
}
.install-button:hover { background: var(--forest-100); }
.install-button svg { width: 17px; height: 17px; }
.menu-button { display: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; }
.menu-button svg { width: 22px; height: 22px; }
.mobile-menu { padding: .4rem 1rem 1.2rem; border-top: 1px solid var(--line); }
.mobile-menu__links { display: grid; gap: .25rem; }
.mobile-menu a, .mobile-menu button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: .7rem .85rem; border: 0; border-radius: .7rem; color: var(--ink); background: transparent; font-weight: 700; text-align: left; }
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--forest-100); }
.mobile-menu__categories { display: grid; grid-template-columns: repeat(2, 1fr); padding: .35rem; }
.mobile-menu__categories a { min-height: 40px; color: var(--ink-soft); font-size: .82rem; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .8rem;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { color: white; background: var(--orange); box-shadow: 0 10px 24px rgba(244, 122, 66, .24); }
.button--primary:hover { background: var(--orange-dark); }
.button--secondary { color: var(--forest-900); background: white; border-color: var(--line); }
.button--secondary:hover { background: var(--forest-100); }
.button--dark { color: white; background: var(--forest-800); }
.button--dark:hover { background: var(--forest-700); }
.button--ghost { color: var(--forest-800); background: transparent; border-color: #aebfb5; }
.button--danger { color: white; background: var(--danger); }
.button--full { width: 100%; }
.button svg { width: 18px; height: 18px; }

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 114px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--forest-950);
}
.hero__media { position: absolute; inset: 0; background: url('/static/images/background/3.jpeg') center/cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 21, .96) 0%, rgba(8, 28, 21, .83) 42%, rgba(8, 28, 21, .25) 77%, rgba(8, 28, 21, .14) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 680px; padding: 6.3rem 0; }
.hero__badge { width: fit-content; display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; padding: .45rem .75rem; color: #eaf4ee; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); border-radius: 999px; font-size: .78rem; font-weight: 750; }
.hero__badge span { width: 7px; height: 7px; border-radius: 50%; background: #7fe0a5; box-shadow: 0 0 0 5px rgba(127,224,165,.12); }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.065em; }
.hero h1 em { display: block; color: #ff9c6d; font-family: Georgia, serif; font-weight: 500; }
.hero__lead { max-width: 600px; margin: 1.55rem 0 2rem; color: #d4e0d9; font-size: clamp(1rem, 2vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.4rem; padding: 0; list-style: none; color: #c8d7cf; font-size: .86rem; font-weight: 650; }
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 17px; height: 17px; color: #7fe0a5; }

.utility-strip { position: relative; z-index: 4; margin-top: -2.2rem; }
.utility-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.utility-item { display: flex; gap: 1rem; padding: 1.3rem 1.5rem; }
.utility-item + .utility-item { border-left: 1px solid var(--line); }
.utility-item__icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--orange-dark); background: #fff0e8; border-radius: .75rem; }
.utility-item__icon svg { width: 21px; height: 21px; }
.utility-item strong, .utility-item span { display: block; }
.utility-item strong { font-size: .93rem; }
.utility-item span { margin-top: .13rem; color: var(--ink-soft); font-size: .79rem; }

.search-panel { padding: 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.search-form { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(180px, .75fr) auto; gap: .8rem; align-items: end; }
.field { display: grid; gap: .45rem; }
.field label { color: #33473b; font-size: .8rem; font-weight: 800; }
.field input, .field select, .field textarea,
input.app-input, select.app-input, textarea.app-input {
  width: 100%;
  min-height: 49px;
  padding: .75rem .9rem;
  color: var(--ink);
  background: white;
  border: 1px solid #cad4ce;
  border-radius: .72rem;
  box-shadow: 0 1px 0 rgba(21,33,27,.03);
}
.field textarea, textarea.app-input { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
input.app-input:focus, select.app-input:focus, textarea.app-input:focus { outline: 0; border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(35,82,63,.1); }
.field__hint { color: var(--ink-soft); font-size: .75rem; }

.catalog-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin: 1.5rem 0 .8rem; }
.catalog-toolbar__label { color: var(--ink-soft); font-size: .78rem; font-weight: 750; }
.view-toggle { display: inline-flex; padding: .25rem; background: #e9eee9; border: 1px solid #d5ddd7; border-radius: .72rem; }
.view-toggle__button { min-height: 38px; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; color: var(--ink-soft); background: transparent; border: 0; border-radius: .5rem; font-size: .78rem; font-weight: 800; }
.view-toggle__button:hover { color: var(--forest-900); }
.view-toggle__button.is-active { color: var(--forest-900); background: var(--paper); box-shadow: 0 2px 8px rgba(21,33,27,.1); }
.view-toggle__button svg { width: 17px; height: 17px; }
.product-catalog { min-height: 1px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #f1f2ed; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__placeholder { width: 64px; height: 64px; color: #93a097; }
.product-card__badge { position: absolute; top: .8rem; left: .8rem; padding: .33rem .6rem; color: var(--forest-900); background: rgba(255,255,255,.9); border-radius: 999px; font-size: .68rem; font-weight: 800; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.product-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem; }
.product-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.product-card__description { display: -webkit-box; margin: .55rem 0 1rem; overflow: hidden; color: var(--ink-soft); font-size: .88rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; }
.product-card__price { color: var(--forest-800); font-size: 1.15rem; font-weight: 850; }
.stock { display: inline-flex; align-items: center; gap: .35rem; color: var(--success); font-size: .73rem; font-weight: 800; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--out { color: var(--danger); }
.product-card__action { margin-top: 1rem; }
.product-catalog[data-view="list"] .product-grid { grid-template-columns: 1fr; gap: .85rem; }
.product-catalog[data-view="list"] .product-card { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); }
.product-catalog[data-view="list"] .product-card__media { min-height: 190px; aspect-ratio: auto; }
.product-catalog[data-view="list"] .product-card__body { padding: 1.15rem 1.3rem; }
.product-catalog[data-view="list"] .product-card__description { margin-bottom: .75rem; -webkit-line-clamp: 3; }
.product-catalog[data-view="list"] .product-card__action { width: fit-content; min-width: 150px; }
.empty-state { padding: 3.5rem 1rem; text-align: center; color: var(--ink-soft); background: var(--paper); border: 1px dashed #b8c5bd; border-radius: var(--radius); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin-top: 2rem; }
.pagination button { min-width: 43px; min-height: 43px; padding: .55rem .75rem; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: .65rem; font-weight: 750; }
.pagination button:hover, .pagination button.is-current { color: white; background: var(--forest-800); border-color: var(--forest-800); }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.category-card { position: relative; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.category-card::after { content: ""; position: absolute; right: -28px; bottom: -38px; width: 110px; height: 110px; background: var(--forest-100); border-radius: 50%; transition: .25s ease; }
.category-card:hover { color: white; background: var(--forest-800); border-color: var(--forest-800); transform: translateY(-3px); }
.category-card:hover::after { background: rgba(255,255,255,.08); transform: scale(1.25); }
.category-card__number { color: var(--orange-dark); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.category-card h3 { position: relative; z-index: 1; margin: 1.5rem 0 .3rem; font-size: 1.1rem; }
.category-card p { position: relative; z-index: 1; margin: 0; color: var(--ink-soft); font-size: .79rem; line-height: 1.45; }
.category-card:hover p { color: #ccdad2; }
.category-card__arrow { position: absolute; z-index: 2; right: 1.2rem; bottom: 1.2rem; font-size: 1.4rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { padding: 1.6rem; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.feature-card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1.2rem; color: #ffae87; background: rgba(244,122,66,.12); border-radius: .8rem; }
.feature-card__icon svg { width: 23px; height: 23px; }
.feature-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.feature-card p { margin: 0; color: #bdccc4; font-size: .9rem; }
.cta-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.7rem, 4vw, 3.2rem); color: white; background: linear-gradient(135deg, var(--forest-800), var(--forest-950)); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.cta-panel h2 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.cta-panel p { max-width: 650px; margin: 0; color: #c6d4cc; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0; color: white; background: var(--forest-950); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .55fr); align-items: end; gap: 3rem; }
.page-hero h1 { max-width: 780px; margin: .5rem 0 0; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .97; letter-spacing: -.06em; }
.page-hero p { margin: 0; color: #c7d5ce; font-size: 1.05rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 1.5rem; align-items: start; }
.surface { padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.surface h2, .surface h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field--full { grid-column: 1 / -1; }
.info-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.info-list li:last-child { padding-bottom: 0; border: 0; }
.info-list__icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--orange-dark); background: #fff0e8; border-radius: .7rem; }
.info-list__icon svg { width: 20px; height: 20px; }
.info-list strong, .info-list span { display: block; }
.info-list span { color: var(--ink-soft); font-size: .88rem; }
.notice { padding: .9rem 1rem; border: 1px solid; border-radius: .75rem; font-size: .88rem; }
.notice--success { color: #115b3b; background: #e7f6ed; border-color: #b7dfc7; }
.notice--error { color: #8a2929; background: #fff0ef; border-color: #efc1be; }
.notice--warning { color: #79520a; background: #fff8dc; border-color: #ebd486; }
.notice--info { color: #1d5366; background: #eaf7fb; border-color: #b9dce7; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value-card { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.value-card__number { color: var(--orange-dark); font-size: .75rem; font-weight: 850; }
.value-card h3 { margin: 1rem 0 .5rem; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.chat-shell { width: min(calc(100% - 2rem), 980px); min-height: calc(100vh - 170px); display: flex; flex-direction: column; margin: 2rem auto; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; color: white; background: var(--forest-900); }
.chat-header__identity { display: flex; align-items: center; gap: .8rem; }
.chat-header__icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--forest-900); background: #ffac84; border-radius: .8rem; }
.chat-header h1 { margin: 0; font-size: 1.15rem; }
.chat-header p { margin: .1rem 0 0; color: #c4d5cc; font-size: .76rem; }
.chat-quota { padding: .35rem .65rem; color: #e6f2eb; background: rgba(255,255,255,.1); border-radius: 999px; font-size: .74rem; font-weight: 750; }
.chat-notice { margin: 1rem 1rem 0; }
.chat-messages { flex: 1; min-height: 380px; max-height: 58vh; overflow-y: auto; padding: 1.2rem; background: linear-gradient(#fbfaf5, #f6f4ed); }
.chat-empty { max-width: 500px; margin: 5rem auto; text-align: center; color: var(--ink-soft); }
.chat-empty__icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem; color: var(--orange-dark); background: #fff0e8; border-radius: 1rem; }
.chat-bubble { max-width: min(78%, 680px); margin-bottom: 1rem; padding: .85rem 1rem; border-radius: 1rem; white-space: pre-wrap; box-shadow: 0 5px 16px rgba(21,33,27,.06); }
.user-message { margin-left: auto; color: white; background: var(--forest-700); border-bottom-right-radius: .3rem; }
.ai-message { margin-right: auto; background: white; border: 1px solid var(--line); border-bottom-left-radius: .3rem; }
.chat-composer { padding: 1rem; background: white; border-top: 1px solid var(--line); }
.chat-composer__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: .6rem; }
.chat-composer textarea { width: 100%; min-height: 50px; max-height: 170px; padding: .78rem .9rem; resize: vertical; border: 1px solid #c8d2cc; border-radius: .8rem; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: .8rem; }
.icon-button svg { width: 20px; height: 20px; }
.icon-button--send { color: white; background: var(--orange); }
.icon-button--quiet { color: var(--ink-soft); background: #eef2ee; }
.quota-overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(13,36,27,.84); }
.quota-card { max-width: 430px; padding: 2rem; text-align: center; background: white; border-radius: var(--radius); }

.admin-shell main { background: #f1f4f1; }
.admin-shell .site-header { position: relative; }
.admin-shell .bg-white { border-color: var(--line); }
.admin-shell .rounded-lg { border-radius: var(--radius); }
.admin-shell .shadow, .admin-shell .shadow-lg, .admin-shell .shadow-sm { box-shadow: var(--shadow-sm); }
.admin-shell table { overflow: hidden; border-radius: var(--radius-sm); }
.admin-shell thead { background: #e8eeea !important; }
.admin-shell tbody { background: white; }
.admin-shell th { color: #516158 !important; font-weight: 800 !important; letter-spacing: .08em !important; }
.admin-shell td { border-color: #e7ebe8 !important; }
.admin-shell tr:hover td { background: #fbfcfa; }
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-shell select, .admin-shell textarea { min-height: 46px; border: 1px solid #c6d1ca; border-radius: .7rem !important; }
.admin-shell input[type="file"] { padding: .55rem; border: 1px dashed #aebdb4; border-radius: .7rem; }
.admin-shell .bg-green-500, .admin-shell .bg-green-600 { background-color: var(--forest-800) !important; }
.admin-shell .hover\:bg-green-600:hover, .admin-shell .hover\:bg-green-700:hover { background-color: var(--forest-700) !important; }
.admin-shell .text-green-500, .admin-shell .text-green-600 { color: var(--success) !important; }
.admin-shell .min-h-screen { min-height: calc(100vh - 160px); }
.admin-stat { position: relative; overflow: hidden; }
.admin-stat::after { content: ""; position: absolute; right: -30px; bottom: -35px; width: 120px; height: 120px; background: var(--forest-100); border-radius: 50%; }
.admin-page { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.admin-page__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.admin-page__title { margin: .25rem 0 0 !important; color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.6rem) !important; line-height: 1.05; letter-spacing: -.04em; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.admin-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: .5rem .8rem; color: var(--ink-soft); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 750; }
.admin-tabs a:hover, .admin-tabs a[aria-current="page"] { color: white; background: var(--forest-800); border-color: var(--forest-800); }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat { padding: 1.4rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-stat__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; }
.admin-stat__label { margin: 0; color: var(--ink-soft); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.admin-stat__value { margin: .3rem 0 0; font-size: 2.2rem; font-weight: 850; line-height: 1; }
.admin-stat__icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--forest-800); background: var(--forest-100); border-radius: .75rem; }
.admin-stat__icon svg { width: 22px; height: 22px; }
.admin-stat__link { position: relative; z-index: 1; display: inline-block; margin-top: 1.2rem; color: var(--forest-700); font-size: .82rem; font-weight: 800; }
.admin-panel { margin-bottom: 1.5rem; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.admin-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.admin-panel__head h2 { margin: 0; font-size: 1.05rem; }
.admin-panel__body { padding: 1.25rem; }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.login-page { min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 3rem 1rem; background: radial-gradient(circle at top right, #dce9e0, transparent 38%), #f1f4f1; }
.login-card { width: min(100%, 450px); padding: clamp(1.5rem, 4vw, 2.4rem); background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.login-card__mark { width: 58px; height: 58px; margin-bottom: 1.3rem; }
.login-card h1 { margin: 0; font-size: 2rem; line-height: 1.05; letter-spacing: -.04em; }
.login-card__intro { margin: .6rem 0 1.5rem; color: var(--ink-soft); font-size: .9rem; }
.login-form { display: grid; gap: 1rem; }

.site-footer { color: #d5e1da; background: var(--forest-950); }
.footer__main { display: grid; grid-template-columns: 1.2fr .7fr .7fr .9fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer__brand { max-width: 310px; }
.footer__logo { display: flex; align-items: center; gap: .75rem; color: white; }
.footer__logo img { width: 46px; height: 46px; }
.footer__logo strong { font-size: 1.15rem; }
.footer__brand p { color: #9eb1a7; font-size: .88rem; }
.footer__title { margin: .2rem 0 1rem; color: white; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.footer__links { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; color: #aebeb5; font-size: .88rem; }
.footer__links a:hover { color: white; }
.footer__contact { display: grid; gap: .65rem; }
.footer__contact a { display: flex; gap: .55rem; align-items: flex-start; color: #c2d0c8; font-size: .88rem; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: #89a095; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; }

.install-dialog { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; background: rgba(7,24,18,.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.install-dialog__card { width: min(100%, 440px); padding: 1.6rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.install-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.install-dialog__brand { display: flex; align-items: center; gap: .8rem; }
.install-dialog__brand img { width: 52px; height: 52px; }
.install-dialog__brand h2 { margin: 0; font-size: 1.15rem; }
.install-dialog__brand p { margin: .1rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--ink-soft); background: #edf1ed; border: 0; border-radius: 50%; }
.install-steps { margin: 1.35rem 0 0; padding-left: 1.4rem; color: var(--ink-soft); font-size: .9rem; }
.install-steps li + li { margin-top: .65rem; }

.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--forest-950); }
.offline-card { width: min(100%, 560px); padding: clamp(1.6rem, 5vw, 3.4rem); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.offline-card h1 { margin: .4rem 0 .8rem; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
.offline-card p:not(.eyebrow) { color: var(--ink-soft); }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-container { width: min(calc(100% - 1.25rem), var(--container)); }
  .topbar__inner { min-height: 34px; justify-content: center; }
  .topbar__inner > p { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; }
  .header__inner { min-height: 68px; gap: .7rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand { min-width: 0; gap: .55rem; }
  .brand__wordmark { min-width: 0; }
  .brand__name { font-size: .96rem; white-space: nowrap; }
  .brand__tagline { display: block; margin-top: .18rem; font-size: .56rem; }
  .header-actions .install-button { width: 42px; padding: 0; justify-content: center; }
  .header-actions .install-button span { display: none; }
  .hero { min-height: 650px; }
  .hero__media { background-position: 58% center; }
  .hero__media::after { background: linear-gradient(90deg, rgba(8,28,21,.97), rgba(8,28,21,.73)); }
  .hero__content { padding: 5.2rem 0 7rem; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .utility-strip { margin-top: -3.4rem; }
  .utility-strip__inner { grid-template-columns: 1fr; }
  .utility-item { padding: .95rem 1rem; }
  .utility-item + .utility-item { border-left: 0; border-top: 1px solid var(--line); }
  .search-form { grid-template-columns: 1fr; }
  .catalog-toolbar { margin-top: 1rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-card { border-radius: .85rem; }
  .product-card:hover { transform: none; }
  .product-card__media { aspect-ratio: 1 / 1; }
  .product-card__media img { padding: .35rem; }
  .product-card__badge { top: .4rem; left: .4rem; max-width: calc(100% - .8rem); overflow: hidden; padding: .22rem .4rem; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
  .product-card__body { padding: .7rem; }
  .product-card h3 { display: -webkit-box; min-height: 2.2em; overflow: hidden; font-size: .84rem; line-height: 1.1; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .product-catalog[data-view="grid"] .product-card__description { display: none; }
  .product-card__meta { align-items: flex-start; flex-direction: column; gap: .25rem; margin-top: .55rem; }
  .product-card__price { font-size: .9rem; }
  .product-card__price small { font-size: .62rem; }
  .stock { font-size: .61rem; }
  .stock::before { width: 5px; height: 5px; }
  .product-card__action { min-height: 38px; margin-top: .55rem; padding: .45rem .35rem; border-radius: .58rem; font-size: .7rem; }
  .product-catalog[data-view="list"] .product-grid { gap: .65rem; }
  .product-catalog[data-view="list"] .product-card { grid-template-columns: 112px minmax(0, 1fr); }
  .product-catalog[data-view="list"] .product-card__media { min-height: 148px; }
  .product-catalog[data-view="list"] .product-card__body { padding: .75rem .8rem; }
  .product-catalog[data-view="list"] .product-card h3 { min-height: auto; font-size: .94rem; }
  .product-catalog[data-view="list"] .product-card__description { display: -webkit-box; margin: .35rem 0 .5rem; font-size: .72rem; line-height: 1.35; -webkit-line-clamp: 2; }
  .product-catalog[data-view="list"] .product-card__meta { align-items: center; flex-direction: row; margin-top: auto; }
  .product-catalog[data-view="list"] .product-card__action { width: fit-content; min-width: 0; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 160px; }
  .feature-grid, .value-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .page-hero__inner, .content-grid { grid-template-columns: 1fr; }
  .page-hero__inner { gap: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { align-items: flex-start; flex-direction: column; }
  .chat-shell { width: 100%; min-height: calc(100vh - 102px); margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .chat-messages { max-height: none; }
  .chat-bubble { max-width: 88%; }
  .admin-page { width: min(calc(100% - 1.25rem), var(--container)); }
  .admin-page__head { align-items: flex-start; flex-direction: column; }
  .admin-stats, .admin-actions { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .brand__name { font-size: .88rem; }
  .brand__tagline { font-size: .52rem; }
  .brand__mark { width: 36px; height: 36px; }
  .header-actions { gap: .35rem; }
  .catalog-toolbar__label { display: none; }
  .category-grid { grid-template-columns: 1fr; }
  .footer__main { grid-template-columns: 1fr; }
  .mobile-menu__categories { grid-template-columns: 1fr; }
  .chat-header { padding: 1rem; }
  .chat-header__icon { display: none; }
  .chat-composer__row { grid-template-columns: minmax(0,1fr) auto; }
  .chat-composer__row .icon-button--quiet { grid-row: 2; }
}

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

@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}
