/* Commercial-offer PDF layout — consolidated, single-source styles. */

.vh-offer-page {
  font-family: "Montserrat", Arial, sans-serif !important;
  letter-spacing: .01em;
}

/* Header: two stable columns, with the title and personal contacts kept inside A4. */
.vh-offer-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 250px !important;
  gap: 24px !important;
  align-items: start !important;
}

.vh-offer-header > div:first-child {
  min-width: 0;
}

.vh-offer-title {
  max-width: 410px !important;
  margin: 0 !important;
  font-size: 42px !important;
  line-height: .98 !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.vh-offer-person {
  display: block !important;
  width: 250px;
  min-width: 0;
  justify-self: end;
  text-align: left !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.vh-offer-name {
  font-size: 24px !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: .025em !important;
}

.vh-offer-role {
  margin-top: 6px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: .035em !important;
}

.vh-offer-contacts {
  display: grid !important;
  gap: 8px !important;
  margin-top: 18px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.vh-offer-contact-row {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  white-space: nowrap;
}

.vh-offer-contact-label {
  min-width: 0 !important;
  color: #d88713 !important;
  font-weight: 800 !important;
}

.vh-offer-subtitle {
  max-width: 410px;
  margin-top: 9px !important;
  color: rgba(39, 35, 31, .7) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: .015em !important;
}

.vh-offer-total-price {
  letter-spacing: .018em !important;
}

.vh-offer-options {
  align-items: stretch;
}

.vh-offer-option {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.vh-offer-option > div:last-child {
  position: relative;
  top: 2px;
  font-size: 18px !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

.vh-offer-next {
  width: 100% !important;
  margin-top: 12px !important;
  justify-self: stretch !important;
  color: #181818;
  font-size: 11px !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  letter-spacing: .01em !important;
  text-align: right !important;
  white-space: nowrap;
}

.vh-offer-next span {
  font-weight: 700 !important;
}

/* Two equal-height cards; content inside each card remains in normal flow. */
.vh-offer-event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.vh-offer-event-grid > .vh-offer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vh-offer-card {
  padding: 24px !important;
}

.vh-offer-card--cost {
  min-height: 100%;
  padding-bottom: 16px !important;
}

.vh-offer-section-title {
  margin-bottom: 18px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: .025em !important;
}

.vh-offer-detail,
.vh-offer-cost-row {
  position: relative;
  display: grid !important;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center !important;
  min-height: 42px;
  padding: 10px 0 10px 14px !important;
  border-bottom: 1px dashed rgba(38, 38, 38, .16);
  line-height: 1.4 !important;
}

.vh-offer-detail::before,
.vh-offer-cost-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  border-left: 2px dotted rgba(246, 138, 31, .5);
}

.vh-offer-detail-label,
.vh-offer-cost-row > span {
  align-self: center !important;
  color: #9b6a3a !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.vh-offer-detail-value,
.vh-offer-cost-row > b {
  align-self: center !important;
  justify-self: start !important;
  margin: 0 !important;
  color: #27231f !important;
  font-size: 11px !important;
  line-height: 1.42 !important;
  font-weight: 600 !important;
  text-align: left !important;
}

/* Normal-flow footer: no auto margin, no bottom pinning. */
.vh-offer-cost-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.vh-offer-cost-footer:empty {
  display: none;
}

.vh-offer-additions {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
}

.vh-offer-additions-title {
  display: none !important;
}

.vh-offer-cost-row--optional {
  min-height: 32px !important;
  padding: 6px 0 6px 14px !important;
  opacity: 1 !important;
}

.vh-offer-cost-row--optional::before {
  top: 7px !important;
  bottom: 7px !important;
  border-left-color: rgba(155, 106, 58, .34) !important;
}

.vh-offer-cost-row--optional > span,
.vh-offer-cost-row--optional .vh-offer-optional-price {
  color: rgba(75, 62, 51, .5) !important;
}

.vh-offer-cost-row--optional > b {
  display: grid !important;
  grid-template-columns: 64px max-content !important;
  column-gap: 7px !important;
  align-items: center !important;
  justify-content: start !important;
  justify-self: start !important;
  min-width: 0;
  white-space: nowrap !important;
}

.vh-offer-optional-price {
  width: 64px !important;
  text-align: left !important;
}

.vh-offer-optional-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 16px;
  padding: 2px 5px;
  border: 1px solid rgba(177, 55, 55, .34);
  border-radius: 999px;
  background: rgba(177, 55, 55, .075);
  color: rgba(145, 43, 43, .86);
  font-size: 6.8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Equipment trial uses one ordinary grid, without absolute or generated layers. */
.vh-offer-equipment-trial {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  row-gap: 2px;
  align-items: start;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}

.vh-offer-equipment-trial-copy {
  display: contents;
}

.vh-offer-equipment-trial h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 5px !important;
  color: #27231f;
  font-size: 11px !important;
  line-height: 1.22 !important;
  font-weight: 800;
  letter-spacing: -.008em !important;
  white-space: nowrap;
}

.vh-offer-equipment-trial-icon {
  grid-column: 1;
  grid-row: 2 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  margin-top: 1px;
  border: 1px solid rgba(246, 138, 31, .3);
  border-radius: 9px !important;
  background: rgba(246, 138, 31, .09);
  color: #cf7a16;
}

.vh-offer-equipment-trial-icon svg {
  display: block;
  width: 16px !important;
  height: 16px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vh-offer-equipment-trial p {
  grid-column: 2;
  margin: 0 !important;
  color: rgba(39, 35, 31, .7);
  font-size: 10.4px !important;
  line-height: 1.43 !important;
  font-weight: 500;
}

.vh-offer-equipment-trial p:first-of-type {
  grid-row: 2;
}

.vh-offer-equipment-trial p:last-of-type {
  grid-row: 3;
}

/* Benefits section. */
.vh-offer-value-card {
  margin-top: 18px !important;
  padding: 18px 22px 20px !important;
  border-radius: 22px;
  border: 1px solid rgba(246, 138, 31, .28);
  background: linear-gradient(135deg, rgba(246, 138, 31, .14), rgba(255, 255, 255, .05)) !important;
}

.vh-offer-value-copy {
  max-width: 100% !important;
  margin: 0 0 18px !important;
}

.vh-offer-value-copy .vh-offer-section-title {
  margin-bottom: 0 !important;
  font-size: 18px !important;
}

.vh-offer-advantages {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 12px !important;
}

.vh-offer-adv {
  position: relative;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title title"
    "icon content" !important;
  column-gap: 11px !important;
  row-gap: 6px !important;
  align-items: start !important;
  min-height: 102px !important;
  padding: 12px 14px !important;
  border: 1px solid #ead7c2;
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.vh-offer-adv-title {
  grid-area: title;
  width: 100%;
  margin: 0 !important;
  color: #27231f;
  font-size: var(--vh-offer-adv-title-size, 11px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.vh-offer-adv-icon {
  grid-area: icon;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border: 1px solid rgba(246, 138, 31, .3);
  border-radius: 9px;
  background: rgba(246, 138, 31, .09);
  color: #cf7a16;
}

.vh-offer-adv-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.vh-offer-adv-content {
  grid-area: content;
  align-self: start;
  min-width: 0;
}

.vh-offer-adv-text {
  margin: 0 !important;
  color: #171717;
  font-size: 10.4px !important;
  line-height: 1.43 !important;
  font-weight: 500;
}

.vh-offer-adv-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: block;
  width: max-content;
  margin: 0 !important;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(246, 138, 31, .1);
  color: #a96316;
  font-size: 8px !important;
  line-height: 1.2 !important;
  font-weight: 700;
  white-space: nowrap;
}

.vh-offer-small-info {
  margin: 7px 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: rgba(39, 35, 31, .42) !important;
  font-size: 9px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-align: right !important;
}
