@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font:
    16px/1.5 "Inter Tight",
    system-ui,
    sans-serif;
  color: #484848;
  background: #fbfbfb;
  --green: #417b5d;
  --dark: #2f5b44;
  --border: #dce3dd;
  --muted: #67716a;
  --yellow: #f2bf3a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: white;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}
button:hover,
.button:hover {
  background: var(--dark);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.quiet {
  background: white;
  color: var(--dark);
  border-color: var(--border);
}
.quiet:hover {
  background: #eff5f0;
}
.danger {
  color: #973c35;
  background: white;
  border-color: #dfb9b6;
}
header {
  max-width: 1240px;
  margin: auto;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}
.brand {
  font-size: 23px;
  letter-spacing: 0.08em;
  font-weight: 750;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-weight: 350;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
main {
  max-width: 1100px;
  margin: 38px auto;
  padding: 0 28px;
}
h1 {
  font-size: clamp(29px, 4.4vw, 42px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
}
h3 {
  font-size: 18px;
  margin: 8px 0;
}
p {
  margin: 8px 0 16px;
}
a {
  color: var(--dark);
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
}
.muted,
.help {
  color: var(--muted);
}
.help {
  font-size: 13px;
}
.login {
  max-width: 530px;
  margin: 65px auto;
}
.panel,
.line,
.request-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 18px 0;
}
.panel .panel {
  box-shadow: none;
  padding: 18px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-grid button {
  background: white;
  color: var(--dark);
  text-align: left;
  justify-content: flex-start;
  min-height: 82px;
  padding: 20px;
  border-color: var(--border);
}
.product-grid button:hover {
  border-color: var(--green);
  background: #f0f6f1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 18px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #acb9b0;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin-right: 9px;
}
.check {
  display: flex;
  align-items: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row.spread {
  justify-content: space-between;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 28px 0;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.steps span {
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 13px;
  background: #edf1ed;
}
.steps .active {
  background: var(--dark);
  color: white;
}
.saved {
  min-height: 24px;
  font-size: 13px;
  color: var(--green);
}
.badge {
  display: inline-block;
  background: #edf4ee;
  color: var(--dark);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
}
.badge.attention {
  background: #fff3cc;
  color: #6c5310;
}
.demo {
  font-size: 12px;
  background: #fff5d7;
  color: #705612;
  text-align: center;
  padding: 9px 16px;
}
.line {
  padding: 20px;
}
.line-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.line-summary p {
  margin: 5px 0;
}
.line-summary .amount {
  white-space: nowrap;
  font-size: 21px;
  font-weight: 600;
  color: var(--dark);
}
.line-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.line-actions button {
  padding: 10px 15px;
}
.review-line {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.review-line:last-child {
  padding-bottom: 0;
}
.request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}
.request-card h2 {
  margin: 0 0 8px;
}
.spec {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
dl {
  margin: 0;
}
dt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
ul.files {
  padding-left: 20px;
}
li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.timeline {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  list-style: none;
}
.timeline li {
  padding: 4px 0 12px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}
.editor-list button {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.editor-param {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 20px;
}
.form-error {
  color: #a0332a;
}
#notice {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  max-width: calc(100% - 24px);
  background: #fff3e6;
  border: 1px solid #dfb99b;
  padding: 18px;
  border-radius: 12px;
  z-index: 30;
  box-shadow: 0 4px 30px #0002;
}
#notice .row {
  margin-top: 12px;
}
footer {
  max-width: 1100px;
  margin: 50px auto 24px;
  padding: 0 28px;
  color: var(--muted);
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #a9c4ae;
  outline-offset: 3px;
}
.empty {
  padding: 42px 24px;
  text-align: center;
  background: #f0f5f0;
  border-radius: 14px;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8f6;
  padding: 20px;
  border-radius: 10px;
}
.subnav {
  margin-bottom: 24px;
}
.catalog-code {
  font-size: 13px;
  min-height: 180px;
}
.stat {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
}
@media (max-width: 800px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-list {
    display: flex;
    overflow: auto;
    gap: 8px;
  }
  .editor-list button {
    width: auto;
    flex-shrink: 0;
  }
}
@media (max-width: 600px) {
  header {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .brand {
    font-size: 20px;
  }
  header nav {
    justify-content: flex-end;
  }
  header nav button {
    padding: 8px 12px;
    font-size: 13px;
  }
  main {
    margin: 24px auto;
    padding: 0 16px;
  }
  .login {
    margin: 36px auto;
  }
  .panel {
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    gap: 9px;
  }
  .product-grid button {
    font-size: 14px;
    padding: 14px;
  }
  .line {
    padding: 16px;
  }
  .line-summary {
    display: block;
  }
  .line-summary .amount {
    margin-top: 10px;
  }
  .request-card {
    grid-template-columns: 1fr;
  }
  .actions > button {
    flex: 1;
  }
  .steps span {
    font-size: 12px;
    padding: 6px 9px;
  }
  h1 {
    margin-bottom: 20px;
  }
  .line-actions button {
    flex: 1;
    padding: 10px 8px;
  }
  .demo {
    font-size: 11px;
  }
  footer {
    padding: 0 16px;
  }
  .row.mobile-stack {
    display: block;
  }
  .row.mobile-stack > * {
    margin-bottom: 10px;
  }
}

.steps button {
  white-space: normal;
  padding: 0.6rem 0.8rem;
}
.steps button.active {
  background: var(--green, #256548);
  color: white;
}
.price-panel {
  border-color: #d3ded4;
  background: #f2f7f1;
}
.price-change {
  padding: 12px;
  border-left: 3px solid #94622b;
  background: #fff6e6;
}
.total {
  font-size: 1.5rem;
}
details.panel > summary {
  cursor: pointer;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
[hidden] {
  display: none !important;
}

.price-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
}
@media (max-width: 600px) {
  .price-entry {
    grid-template-columns: 1fr;
  }
  .subnav {
    flex-wrap: wrap;
  }
  .editor-list {
    max-height: 350px;
    overflow: auto;
  }
}
