:root {
  --ink: #101810;
  --paper: #f4f3ed;
  --lime: #c0f14c;
  --muted: #626961;
  --line: #10181029;
  --deep: #111911;
  --soft: #e5e5dc;
  --circle: rgba(16, 24, 16, 0.045);
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  background: var(--deep);
  min-height: 100%;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--paper);
}

.bg-circles {
  position: fixed;
  left: max(-34vw, -220px);
  top: max(-10vh, -60px);
  width: min(96vw, 560px);
  height: min(96vw, 560px);
  pointer-events: none;
  z-index: 0;
}

.bg-circles img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.14;
  filter: invert(1);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background: transparent;
}

.narrow-column {
  width: min(100%, 420px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.app-nav button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, .24);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.app-nav button.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--lime);
}

.intro {
  padding: 28px 0 20px;
}

.intro-plain {
  border-bottom: 0;
}

.eyebrow,
.flow,
.field > span,
.submit-zone > div,
.request-id,
footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(28px, 8vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}

.intro > p,
.success-card > p {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.flow b { color: #819e33; }

.telegram-warning {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.telegram-warning span { color: #c7cec5; }

.lead-form fieldset {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-form fieldset:disabled { opacity: .62; }

.field {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.field > span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field > span b {
  color: #819e33;
  font-size: 10px;
}

.field > span em {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .28);
  transition: border-color 160ms ease, background 160ms ease;
}

input[type="text"], select { min-height: 52px; padding: 0 14px; }
textarea { min-height: 144px; padding: 14px; line-height: 1.5; resize: vertical; }

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #667e00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192, 241, 76, .22);
}

::placeholder { color: #7f8a7c; opacity: 1; }

.field small {
  position: absolute;
  right: 8px;
  bottom: 25px;
  color: var(--muted);
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.two-columns { display: grid; grid-template-columns: 1fr; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--ink);
}

.consent a { color: var(--ink); text-underline-offset: 3px; }

.submit-zone {
  display: grid;
  gap: 16px;
  margin: 4px -18px 0;
  padding: 18px;
  color: var(--paper);
  background: var(--deep);
}

.submit-zone > div {
  display: grid;
  gap: 5px;
  font-size: 9px;
  letter-spacing: .08em;
}

.submit-zone > div span { color: var(--lime); }
.submit-zone > div strong { color: #c7cec5; font-weight: 500; }

.primary-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 0;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
  cursor: pointer;
}

.primary-button:disabled { cursor: not-allowed; opacity: .42; }
.primary-button:not(:disabled):active { background: #d2ff68; }

.form-error {
  min-height: 52px;
  padding: 14px 0;
  color: #8f2e22;
  font-size: 13px;
  line-height: 1.4;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .08em;
}

.success-shell { display: flex; flex-direction: column; }

.success-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 10px 0 28px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 30px;
  font-weight: 900;
}

.request-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .08em;
}

.request-id strong { font-size: 14px; }

.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;
}

.page-message {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-message-error { color: #8f2e22; }
.page-message-success { color: #4a6b18; }

.catalog {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.catalog-item {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: rgba(255, 255, 255, .34);
  text-align: left;
  cursor: pointer;
}

.catalog-item-head,
.product-detail-head,
.profile-lead-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.catalog-item h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.catalog-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.catalog-item-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-detail {
  margin-top: 8px;
}

.product-detail-summary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.product-detail-body {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-detail-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-detail-actions {
  margin-top: 28px;
}

.product-detail-actions .primary-button {
  width: 100%;
}

.profile {
  margin-top: 8px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
}

.profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--lime);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
}

.profile-card strong {
  display: block;
  font-size: 18px;
}

.profile-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-section {
  margin-top: 28px;
}

.profile-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.profile-lead {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .28);
}

.profile-lead p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.profile-lead time,
.profile-lead-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-lead-id {
  display: inline-block;
  margin-top: 10px;
}

.product-category,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .42);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-price {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.admin-item h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.text-button {
  display: inline-flex;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button:disabled { opacity: .45; cursor: not-allowed; }
.text-button-danger { color: #8f2e22; }

.admin-form,
.admin-list {
  margin-top: 8px;
}

.admin-form h2,
.admin-list h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.admin-form .primary-button {
  width: 100%;
  margin-top: 8px;
}

.field-checkbox .toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  color: var(--muted);
  font-size: 13px;
}

.admin-item {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .34);
  border: 1px solid var(--line);
}

.admin-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-badge.is-live {
  color: var(--ink);
  border-color: #667e00;
  background: rgba(192, 241, 76, .35);
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.admin-page-head {
  padding: 8px 0 20px;
}

.admin-page-head h1 {
  font-size: clamp(24px, 6vw, 36px);
}

.admin-page-head p {
  max-width: 100%;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.admin-hub-grid {
  display: grid;
  gap: 12px;
}

.admin-hub-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: inherit;
  background: rgba(255, 255, 255, .34);
  text-align: left;
  cursor: pointer;
}

.admin-hub-card strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.admin-hub-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-section-nav-home {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.admin-section-nav-current {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, .24);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tabs button.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--lime);
}

.admin-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-preview-image {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

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

.portfolio-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .34);
}

.portfolio-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 16px;
}

.portfolio-card-body h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 4.5vw, 26px);
}

.portfolio-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portfolio-description {
  margin-top: 10px !important;
}

.upload-inline {
  cursor: pointer;
}

button, input, select, textarea { font: inherit; }
button, select, label, input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }

@media (min-width: 620px) {
  .shell { padding-inline: 32px; }
  .intro { padding-top: 52px; }
  .two-columns { grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .submit-zone { margin-inline: -32px; padding: 24px 32px; grid-template-columns: 1fr 260px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

