.quote-modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(8, 18, 28, .55); opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity; transition: opacity .2s ease, visibility 0s linear .2s; }
.quote-modal-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease, visibility 0s; }
.quote-modal { width: min(1040px, 100%); max-height: min(90vh, 920px); overflow: auto; padding: clamp(20px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .76); border-radius: 12px; background: rgba(247, 250, 252, .10); box-shadow: 0 24px 50px rgba(8, 20, 32, .52); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); opacity: 0; transform: translateY(12px) scale(.985); will-change: opacity, transform; transition: opacity .24s cubic-bezier(.22,1,.36,1), transform .24s cubic-bezier(.22,1,.36,1); }
.quote-modal-backdrop.is-open .quote-modal { opacity: 1; transform: translateY(0) scale(1); }
.quote-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.quote-modal__head h3 { margin: 0; color: #fff; font-size: clamp(1.2rem, 2.8vw, 1.6rem); font-weight: 600; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.quote-modal__head p { margin: 8px 0 0; color: #f4f9fc; font-size: .94rem; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }
.quote-modal__close { flex: none; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .86); border-radius: 10px; color: #102535; background: rgba(255, 255, 255, .94); font-size: 1.1rem; cursor: pointer; }
.quote-modal__close:hover, .quote-modal__close:focus-visible { color: var(--ink); background: #fff; outline: none; }
.quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr); gap: 28px; }
.quote-form__inputs { display: grid; align-content: start; gap: 14px; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form label { display: grid; gap: 6px; color: #fff; font-size: .84rem; font-weight: 600; text-shadow: 0 1px 7px rgba(0, 0, 0, .7); }
.quote-form input[type="text"], .quote-form input[type="number"], .quote-form select { box-sizing: border-box; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 12px; color: #102535; background: rgba(255, 255, 255, .96); font: inherit; }
.quote-form input:focus-visible, .quote-form select:focus-visible { border-color: #80c5ff; outline: 3px solid rgba(128, 197, 255, .45); }
.quote-option-selector { position: relative; display: block; width: 100%; color: #102535; font-size: .9rem; font-weight: 500; text-shadow: none; }
.quote-option-selector__trigger { display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid #d3e0e8; border-radius: 10px; color: #102535; background: #fff; box-shadow: 0 1px 2px rgba(16, 37, 53, .06); font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.quote-option-selector__trigger::after { color: #42657a; content: "\2304"; font-size: 1rem; line-height: 1; transition: transform .16s ease; }
.quote-option-selector.is-open .quote-option-selector__trigger { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .16); }
.quote-option-selector.is-open .quote-option-selector__trigger::after { transform: rotate(180deg); }
.quote-option-selector__trigger:focus-visible { border-color: #0071e3; outline: 3px solid rgba(0, 113, 227, .24); }
.quote-option-selector__menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; display: grid; width: 100%; max-height: 240px; gap: 2px; overflow-y: auto; padding: 7px; border: 1px solid #cbdbe5; border-radius: 10px; background: #f8fbfd; box-shadow: 0 16px 32px rgba(8, 31, 48, .24), 0 2px 6px rgba(8, 31, 48, .12); opacity: 0; visibility: hidden; transform: translateY(-5px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
.quote-option-selector.is-open .quote-option-selector__menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }
.quote-option-selector__menu button { position: relative; min-height: 34px; padding: 7px 30px 7px 10px; border: 0; border-radius: 7px; color: #233b4d; background: transparent; font: inherit; font-size: .82rem; font-weight: 600; text-align: left; text-shadow: none; cursor: pointer; transition: color .14s ease, background .14s ease; }
.quote-option-selector__menu button:hover, .quote-option-selector__menu button:focus-visible { color: #004f9d; background: #e3f1fc; outline: none; }
.quote-option-selector__menu button[aria-selected="true"] { color: #fff; background: #0071e3; box-shadow: 0 2px 5px rgba(0, 113, 227, .25); }
.quote-option-selector__menu button[aria-selected="true"]::after { position: absolute; top: 50%; right: 10px; content: "\2713"; font-size: .9rem; transform: translateY(-50%); }
.quote-form__submit { justify-self: start; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; color: white; background: var(--blue); font-size: .92rem; font-weight: 700; cursor: pointer; }
.quote-form__submit:hover, .quote-form__submit:focus-visible { background: var(--blue-dark); outline: none; }
.quote-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-form__print { min-height: 42px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 21px; color: #fff; background: rgba(8, 31, 48, .64); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; text-shadow: 0 1px 5px rgba(0, 0, 0, .5); }
.quote-form__print:hover, .quote-form__print:focus-visible { border-color: #80c5ff; color: #fff; background: rgba(0, 113, 227, .7); outline: none; }
.quote-form__print:disabled { cursor: not-allowed; opacity: .6; }
.quote-product-preview { --product-accent-hue: 207; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 250px; margin: 4px 0 0; padding: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .58); border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, .17), rgba(183, 215, 238, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.quote-product-preview svg { width: 100%; height: 100%; overflow: visible; }
.quote-product-preview__grid { fill: none; stroke: rgba(207, 232, 248, .32); stroke-width: 1; }
.quote-product-preview__object { transform-origin: center; animation: quote-product-float 4s ease-in-out infinite alternate; }
.quote-product-preview__object--cover, .quote-product-preview__object--connector { display: none; }
.quote-product-preview[data-product-preview-shape="cover"] .quote-product-preview__object--box, .quote-product-preview[data-product-preview-shape="connector"] .quote-product-preview__object--box { display: none; }
.quote-product-preview[data-product-preview-shape="cover"] .quote-product-preview__object--cover, .quote-product-preview[data-product-preview-shape="connector"] .quote-product-preview__object--connector { display: block; }
.quote-product-preview__side { fill: url(#product-preview-side); }
.quote-product-preview__front { fill: #7591a0; }
.quote-product-preview__accent { fill: hsl(var(--product-accent-hue) 82% 56%); }
.quote-product-preview__top { fill: url(#product-preview-surface); stroke: hsl(var(--product-accent-hue) 58% 50%); stroke-width: 2; }
.quote-product-preview__detail { fill: rgba(255, 255, 255, .84); stroke: rgba(75, 105, 120, .35); stroke-width: 1; }
.quote-product-preview__mark { fill: rgba(8, 31, 48, .82); }
.quote-product-preview__name { fill: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.quote-product-preview__ai { min-height: 0; overflow: hidden; border-radius: 9px; background: rgba(8, 31, 48, .28); }
.quote-product-preview__ai:not([hidden]) { display: grid; gap: 8px; }
.quote-product-preview__ai img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #dce6ec; }
.quote-product-preview__ai img:not([hidden]) { display: block; }
.quote-product-preview__ai p { margin: 0; padding: 10px 12px; color: #eff8fc; font-size: .76rem; font-weight: 600; text-align: center; text-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
.quote-product-preview.has-ai svg { display: none; }
.quote-product-preview figcaption { color: #eff8fc; font-size: .75rem; font-weight: 600; text-align: center; text-shadow: 0 1px 5px rgba(0, 0, 0, .55); }
@keyframes quote-product-float { from { transform: translateY(0) rotateX(0); } to { transform: translateY(-5px) rotateX(1deg); } }
.quote-form__hint { margin: 0; color: #f3f8fb; font-size: .78rem; font-weight: 500; text-shadow: 0 1px 7px rgba(0, 0, 0, .72); }
.quote-form__status { min-height: 1.25em; margin: -4px 0 0; color: #ffe3d9; font-size: .82rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .72); }
.quote-form__status.is-success { color: #c8ffd9; }
.quote-estimate { align-self: stretch; display: grid; align-content: start; gap: 18px; padding: 22px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px rgba(0, 0, 0, .24); }
.quote-estimate__eyebrow { margin: 0; color: #005bb7; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.quote-estimate h4 { margin: 0; color: #102535; font-size: 1.28rem; font-weight: 600; line-height: 1.2; text-align: center; }
.quote-estimate__intro { margin: -8px 0 0; color: #304b5d; font-size: .87rem; font-weight: 500; }
.quote-estimate__intro:empty { display: none; }
.quote-estimate__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.quote-estimate__table th, .quote-estimate__table td { padding: 11px 0; border-bottom: 1px solid rgba(115, 142, 160, .45); text-align: left; }
.quote-estimate__table th { color: #304b5d; font-weight: 600; }
.quote-estimate__table td { color: #101820; text-align: right; font-weight: 600; }
.quote-estimate__total th, .quote-estimate__total td { padding-top: 15px; border-bottom: 0; color: #00518c; font-size: 1rem; }
.quote-print-header, .quote-print-sheet { display: none; }
body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .quote-modal { padding: 16px; border-radius: 12px; }
  .quote-form, .quote-form__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-modal-backdrop, .quote-modal { transition: none; }
  .quote-product-preview__object { animation: none; }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: #fff; }
  body > :not(.quote-modal-backdrop) { display: none !important; }
  .quote-modal-backdrop, .quote-modal-backdrop * { visibility: visible; }
  .quote-modal-backdrop { position: static; display: block; min-height: 0; padding: 0; background: none; opacity: 1; }
  .quote-modal { width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .quote-modal__head, .quote-form, .quote-print-header { display: none; }
  .quote-print-sheet { display: block; color: #101820; font-family: Arial, Helvetica, sans-serif; }
  .quote-print-sheet__header { display: flex; justify-content: space-between; align-items: stretch; gap: 18px; padding: 14px 16px; border: 1px solid #173952; border-top: 4px solid #0071e3; background: #f7fafc; }
  .quote-print-sheet__identity { display: flex; align-items: center; gap: 11px; }
  .quote-print-sheet__monogram { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid #0071e3; border-radius: 50%; color: #0071e3; font-size: 15pt; font-weight: 700; }
  .quote-print-sheet__brand { margin: 0; color: #0071e3; font-size: 20pt; font-weight: 700; letter-spacing: .03em; }
  .quote-print-sheet__subtitle { margin: 1px 0 0; color: #50616d; font-size: 7.5pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .quote-print-sheet__title { margin: 7px 0 0; color: #173952; font-size: 11pt; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .quote-print-sheet__meta { margin: 0; padding-left: 18px; border-left: 1px solid #c6d8e5; color: #50616d; font-size: 8pt; line-height: 1.7; text-align: right; }
  .quote-print-sheet__classification { margin: 0 0 5px; color: #0071e3; font-size: 7pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .quote-print-sheet__intro { margin: 16px 0 10px; color: #50616d; font-size: 9pt; }
  .quote-print-sheet__sections { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .quote-print-sheet__section { margin-top: 0; border: 1px solid #c6d8e5; }
  .quote-print-sheet__section h3 { margin: 0; padding: 8px 10px; color: #fff; background: #173952; font-size: 8.5pt; letter-spacing: .04em; text-transform: uppercase; }
  .quote-print-sheet table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .quote-print-sheet th, .quote-print-sheet td { padding: 8px 10px; border-top: 1px solid #d8e3ea; text-align: left; }
  .quote-print-sheet th { width: 56%; color: #50616d; font-weight: 600; }
  .quote-print-sheet td { color: #101820; font-weight: 700; text-align: right; }
  .quote-print-sheet__total th, .quote-print-sheet__total td { color: #075594; background: #dfeffb; font-size: 10pt; }
  .quote-print-sheet__note { margin: 14px 0 0; padding: 9px 11px; border-left: 3px solid #0071e3; background: #f4f8fb; color: #50616d; font-size: 7.5pt; line-height: 1.45; }
  .quote-print-sheet__footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; padding-top: 9px; border-top: 1px solid #c6d8e5; color: #66737e; font-size: 7.5pt; }
  .quote-print-sheet__contact { margin: 0; line-height: 1.55; }
  .quote-print-sheet__approval { margin: 0; color: #50616d; line-height: 1.55; text-align: right; }
}