:root {
  --ink: #0b0b0f;
  --muted: #686875;
  --line: #e7e7ed;
  --soft: #f6f6f9;
  --paper: #ffffff;
  --pink: #f1267d;
  --pink-dark: #c90f60;
  --cyan: #26b8d4;
  --yellow: #ffcb05;
  --success: #087d55;
  --shadow: 0 18px 60px rgba(14, 14, 20, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--soft); }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.brand-wrap { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-logo { width: 150px; height: 58px; object-fit: contain; object-position: left center; }
.brand-copy { color: white; display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { color: #bdbdc7; font-size: .84rem; }
.quote-pill {
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 999px;
  padding: 9px 15px 9px 9px;
  color: white;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.quote-pill:hover { background: rgba(255,255,255,.14); }
.quote-pill-count {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); font-size: .85rem;
}
.quote-pill strong { color: var(--yellow); }

main { width: min(1480px, 100%); margin: 0 auto; padding: 34px clamp(18px, 4vw, 58px) 90px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 520px); gap: 36px; align-items: end; }
.eyebrow { margin: 0 0 7px; font-size: .74rem; font-weight: 900; letter-spacing: .12em; color: var(--pink); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.055em; }
.intro > div > p:last-child { margin: 0; max-width: 650px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; }
.discount-card { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 30px rgba(20,20,25,.06); }
.discount-card.active { border-color: rgba(8,125,85,.35); background: #f1fff9; }
.discount-topline { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.discount-topline strong { font-size: .85rem; }
.progress-track { height: 8px; background: #e9e9ef; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); border-radius: inherit; transition: width .25s ease; }
.discount-card.active .progress-track span { background: var(--success); }
.discount-card small { color: var(--muted); line-height: 1.35; }

.service-tabs { display: flex; gap: 10px; margin: 32px 0 22px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.service-tab { flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 12px 15px; color: #4e4e5a; font-weight: 800; }
.service-tab span { color: #9696a1; margin-left: 7px; font-size: .76rem; font-weight: 700; }
.service-tab.active { color: white; background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.service-tab.active span { color: var(--yellow); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.catalog { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.2rem); letter-spacing: -.03em; }
.section-heading > p { margin: 0; max-width: 430px; text-align: right; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(22,22,29,.09); }
.product-card.selected { border-color: rgba(241,38,125,.55); box-shadow: 0 12px 32px rgba(241,38,125,.09); }
.product-image-wrap { height: 190px; padding: 14px; background: linear-gradient(145deg, #fafafd, #f0f0f5); position: relative; }
.product-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.discount-badge { position: absolute; left: 12px; top: 12px; padding: 6px 8px; border-radius: 8px; background: var(--yellow); color: #1e1a00; font-size: .7rem; font-weight: 900; }
.product-content { padding: 16px; }
.product-name { min-height: 44px; margin: 0 0 12px; font-size: .98rem; line-height: 1.35; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.price-main { font-size: 1.3rem; font-weight: 900; letter-spacing: -.025em; }
.price-special { color: var(--success); font-size: .78rem; font-weight: 800; text-align: right; }
.add-button { width: 100%; min-height: 42px; border: 0; border-radius: 11px; background: var(--ink); color: white; font-weight: 800; }
.add-button:hover { background: #27272e; }
.qty-control { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; min-height: 42px; }
.qty-control button { height: 100%; border: 0; background: #f2f2f6; font-size: 1.25rem; font-weight: 800; }
.qty-control button:hover { background: #e8e8ef; }
.qty-control input { width: 100%; border: 0; text-align: center; font-weight: 900; outline: 0; min-width: 0; }

.configurator { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.config-hero { display: grid; grid-template-columns: 330px 1fr; min-height: 340px; }
.config-visual { padding: 28px; background: linear-gradient(145deg, #f2f2f7, #fff); display: grid; place-items: center; }
.config-visual img { width: 100%; max-height: 290px; object-fit: contain; mix-blend-mode: multiply; }
.config-body { padding: clamp(24px, 4vw, 42px); }
.config-body h3 { margin: 0 0 8px; font-size: 1.8rem; }
.config-body > p { color: var(--muted); line-height: 1.5; }
.option-group { margin: 24px 0; }
.option-label { display: block; margin-bottom: 10px; font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.option-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.option-chip { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 13px; font-weight: 750; }
.option-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.config-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.config-price span { display: block; color: var(--muted); font-size: .78rem; }
.config-price strong { font-size: 1.7rem; }
.config-actions { display: flex; gap: 10px; align-items: center; }
.small-qty { width: 118px; }

.quote-panel { position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); max-height: calc(100vh - 126px); overflow: hidden; display: flex; flex-direction: column; }
.quote-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 21px 22px 16px; border-bottom: 1px solid var(--line); }
.quote-panel-head h2 { margin: 0; font-size: 1.35rem; }
.icon-button, .modal-close { border: 0; background: #f1f1f5; border-radius: 50%; width: 38px; height: 38px; font-size: 1.5rem; line-height: 1; }
.close-mobile { display: none; }
.quote-empty { padding: 50px 28px; text-align: center; color: var(--muted); }
.empty-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 15px; background: #f4e7ee; color: var(--pink); font-size: 2rem; }
.quote-empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.quote-empty p { margin: 0; font-size: .88rem; }
.quote-items { padding: 10px 16px; overflow-y: auto; }
.quote-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.quote-item img { width: 58px; height: 58px; border-radius: 11px; object-fit: contain; background: #f3f3f6; }
.quote-item-copy { min-width: 0; }
.quote-item-copy strong { display: block; font-size: .82rem; line-height: 1.25; margin-bottom: 3px; }
.quote-item-copy small { color: var(--muted); font-size: .72rem; }
.quote-item-side { text-align: right; }
.quote-item-side strong { display: block; font-size: .84rem; margin-bottom: 5px; }
.mini-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.mini-actions button { border: 0; width: 26px; height: 26px; border-radius: 7px; background: #eeeef3; font-weight: 900; }
.mini-actions span { min-width: 20px; text-align: center; font-size: .76rem; font-weight: 900; }
.quote-totals { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: #fcfcfd; }
.quote-totals > div { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .86rem; }
.saving-row strong { color: var(--success); }
.quote-totals .grand-total { align-items: baseline; color: var(--ink); margin: 14px 0 5px; }
.grand-total span { font-weight: 900; }
.grand-total strong { font-size: 1.7rem; }
.review-note { color: var(--muted); font-size: .72rem; margin: 0 0 14px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 12px; padding: 0 18px; font-weight: 900; border: 0; }
.primary-button { width: 100%; color: white; background: var(--pink); box-shadow: 0 10px 24px rgba(241,38,125,.2); }
.primary-button:hover { background: var(--pink-dark); }
.secondary-button { color: var(--ink); background: white; border: 1px solid var(--line); }
.text-button { width: 100%; border: 0; background: transparent; color: var(--muted); padding: 12px 8px 0; font-size: .82rem; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,8,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: white; border-radius: 24px; padding: 30px; position: relative; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.modal-close { position: absolute; right: 18px; top: 18px; }
.modal h2 { margin: 0 42px 8px 0; font-size: 1.65rem; line-height: 1.15; }
.modal-lead { color: var(--muted); margin-bottom: 22px; }
.modal form { display: grid; gap: 16px; }
.modal label { display: grid; gap: 7px; font-size: .84rem; font-weight: 800; }
.modal input { width: 100%; min-height: 48px; border: 1px solid #d9d9e1; border-radius: 11px; padding: 0 13px; outline: 0; }
.modal input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(241,38,125,.11); }
.preview-modal { width: min(900px, 100%); }
.preview-heading { display: flex; align-items: end; justify-content: space-between; padding-right: 42px; gap: 18px; }
.preview-heading h2 { margin-bottom: 0; }
.preview-heading > span { padding: 7px 10px; border-radius: 8px; background: var(--soft); font-size: .78rem; font-weight: 800; }
.quote-preview-wrap { margin: 20px 0; max-height: 52vh; overflow: auto; background: #e8e8ed; padding: 14px; border-radius: 14px; text-align: center; }
.quote-preview-wrap img { display: block; width: min(100%, 720px); height: auto; margin: 0 auto; box-shadow: 0 8px 26px rgba(0,0,0,.15); }
.download-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.mobile-summary { position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 55; }
.mobile-summary button { width: 100%; min-height: 62px; border: 0; border-radius: 16px; padding: 10px 16px; color: white; background: var(--ink); box-shadow: 0 14px 45px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: space-between; text-align: left; }
.mobile-summary span { display: flex; flex-direction: column; gap: 2px; }
.mobile-summary small { color: #bdbdc6; }
.mobile-summary > button > strong { color: var(--yellow); font-size: 1.2rem; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white; font-size: .86rem; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 110; box-shadow: 0 12px 32px rgba(0,0,0,.26); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-copy { display: none; }
}
@media (max-width: 860px) {
  body.quote-open { overflow: hidden; }
  .topbar { min-height: 72px; }
  .brand-logo { width: 126px; height: 48px; }
  .quote-pill { display: none; }
  main { padding-top: 24px; }
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .workspace { display: block; }
  .quote-panel { position: fixed; inset: 0 0 0 auto; top: 0; width: min(430px, 100%); max-height: none; height: 100dvh; z-index: 70; border-radius: 0; transform: translateX(105%); transition: transform .24s ease; }
  body.quote-open::before { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); }
  body.quote-open .quote-panel { transform: translateX(0); }
  .close-mobile { display: block; }
  .mobile-summary[hidden] { display: none !important; }
  .mobile-summary { display: block; }
  .section-heading { align-items: start; }
  .section-heading > p { text-align: left; }
  .config-hero { grid-template-columns: 1fr; }
  .config-visual { min-height: 250px; }
}
@media (max-width: 590px) {
  .intro h1 { font-size: 2.6rem; }
  .discount-topline { align-items: start; flex-direction: column; gap: 4px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .product-image-wrap { height: 145px; padding: 9px; }
  .product-content { padding: 12px; }
  .product-name { min-height: 48px; font-size: .86rem; }
  .price-main { font-size: 1.1rem; }
  .price-special { font-size: .68rem; }
  .service-tab { padding: 10px 12px; font-size: .86rem; }
  .config-body { padding: 22px 18px; }
  .config-footer { align-items: stretch; flex-direction: column; }
  .config-actions { display: grid; grid-template-columns: 110px 1fr; }
  .download-actions { grid-template-columns: 1fr; }
  .modal { padding: 26px 20px 20px; border-radius: 20px; }
}

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