:root {
  --ink: #2d2d2d;
  --muted: #555;
  --line: #e3e0db;
  --soft: #fafafa;
  --green: #31aa45;
  --green-dark: #238638;
  --blue: #00a3df;
  --amber: #b54708;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
}
.promo-bar {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 13px 16px;
  font-size: 17px;
  font-weight: 700;
}
.page { max-width: 1200px; margin: 0 auto; padding: 42px 42px 56px; }
header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
  padding-bottom: 0;
}
.brand-lockup {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.brand-logo {
  width: min(260px, 46vw);
  height: auto;
  display: block;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.shop-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #cfcac3;
  color: #333;
  text-decoration: none;
  font-weight: 700;
}
.shop-link:hover { border-color: var(--blue); color: var(--blue); }
h1 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  color: #2b2b2b;
}
p { margin: 0; }
.muted { color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}
.panel-body { padding: 24px; }
.section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #2e2e2e;
}
.section-title-spaced { margin-top: 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 15px; font-weight: 400; margin-bottom: 8px; color: #333; }
input, select, textarea, button {
  font: inherit;
  border: 1px solid #d4d0ca;
  border-radius: 0;
  background: white;
  color: var(--ink);
}
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 13px; }
textarea { min-height: 86px; resize: vertical; }
button {
  min-height: 44px;
  height: auto;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
button.primary { background: var(--green); border-color: var(--green); color: white; }
button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
button.secondary { background: white; border-color: var(--blue); color: var(--blue); }
button.secondary:hover { background: var(--blue); color: white; }
button.ghost { background: white; border-color: #cfcac3; color: #333; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.product-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 0;
  padding: 15px;
  text-align: left;
  min-height: 86px;
  box-shadow: none;
}
.product-card:hover { border-color: var(--blue); }
.product-card.active {
  border-color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}
.product-card.disabled { opacity: .56; cursor: not-allowed; }
.product-name { font-weight: 700; margin-bottom: 7px; font-size: 15px; }
.product-meta { font-size: 13px; color: var(--muted); }
.product-help { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.product-controls {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
.product-controls label { font-size: 12px; margin-bottom: 5px; }
.product-controls input, .product-controls select { min-height: 38px; padding: 8px 10px; font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.services { display: grid; gap: 10px; }
.checkline {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  font-size: 14px;
}
.checkline input { min-height: auto; width: auto; }
.checkline span small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.logo-box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px dashed #cfcac3;
  border-radius: 0;
  padding: 14px;
  background: #fbfaf8;
}
.logo-preview {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
}
.suggestion {
  margin-top: 10px;
  border-left: 3px solid var(--blue);
  background: #f1fbff;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}
.logo-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.logo-details label { font-size: 12px; margin-bottom: 5px; }
.logo-details input, .logo-details select { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.summary {
  position: sticky;
  top: 12px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eeeae4;
  font-size: 14px;
}
.row:last-child { border-bottom: 0; }
.summary-lines { display: grid; gap: 8px; margin: 12px 0; }
.summary-line {
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}
.summary-line strong { display: block; font-size: 14px; margin-bottom: 3px; }
.summary-line-meta,
.summary-line-price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.summary-line-price { color: var(--ink); font-weight: 800; }
.note {
  font-size: 13px;
  line-height: 1.42;
  color: var(--muted);
  margin-top: 14px;
}
.warning {
  color: var(--amber);
  font-weight: 800;
}
.actions { display: grid; gap: 10px; margin-top: 18px; }
.send-help {
  border-left: 3px solid var(--blue);
  background: #f1fbff;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #334;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-panel { margin-bottom: 16px; }
.contact-panel .panel-body { padding-bottom: 18px; }
.service-mode { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.service-mode .checkline { cursor: pointer; align-items: start; }
.service-mode .checkline:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.service-mode small { color: var(--muted); font-weight: 400; line-height: 1.35; }
.rental-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rental-card { min-height: 180px; }
.rental-controls { grid-template-columns: 1fr; }
.tariff-line { margin-top: 9px; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.tariff-info { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.calculator-intro { margin: -8px 0 18px; }
[hidden] { display: none !important; }
.print-quote { display: none; }
@media (max-width: 920px) {
  header, .grid, .two, .contact-grid, .service-mode, .logo-details { grid-template-columns: 1fr; }
  .brand-lockup { align-items: flex-start; flex-direction: column; }
  .top-actions { justify-content: flex-start; }
  .summary { position: static; }
}
@media print {
  body { background: white; }
  .page, .promo-bar { display: none !important; }
  .print-quote {
    display: block;
    padding: 18mm 14mm;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
  }
  .print-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 2px solid var(--green);
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .print-logo { width: 190px; height: auto; display: block; }
  .print-title { text-align: right; }
  .print-title h1 { font-size: 25px; margin: 0 0 8px; font-family: var(--serif); }
  .print-title p { font-size: 12px; color: #555; }
  .print-section { margin: 16px 0; break-inside: avoid; }
  .print-section h2 { font-size: 16px; margin: 0 0 8px; font-family: var(--serif); }
  .print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 12px; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .print-table th {
    background: #f3f8f4;
    border: 1px solid #d8ddd8;
    padding: 7px;
    text-align: left;
  }
  .print-table td {
    border: 1px solid #e2e2e2;
    padding: 7px;
    vertical-align: top;
  }
  .print-total {
    display: grid;
    justify-items: end;
    gap: 4px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 800;
  }
  .print-note { font-size: 10px; color: #555; line-height: 1.4; margin-top: 16px; }
  .mockup-section { break-inside: auto; }
  .mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
  .mockup-card { border: 1px solid #d8ddd8; padding: 8px; font-size: 11px; break-inside: avoid; }
  .mockup-stage { position: relative; width: 100%; margin-top: 6px; }
  .mockup-template { display: block; width: 100%; height: auto; }
  .mockup-artwork { position: absolute; object-fit: contain; left: 34%; top: 40%; width: 33%; height: 22%; }
  .mockup-CUP10 .mockup-artwork { left: 39%; top: 41%; width: 32%; height: 22%; }
  .mockup-CUP30 .mockup-artwork { left: 33%; top: 42%; width: 34%; height: 24%; }
  .mockup-CUP50 .mockup-artwork { left: 33%; top: 40%; width: 35%; height: 24%; }
}
