[data-warmmet-calculator] {
  --wm-ink: #2b202b;
  --wm-accent: #762272;
  --wm-accent-dark: #60165c;
  --wm-accent-deep: #4d1049;
  --wm-accent-soft: #f5eaf4;
  --wm-input: #fff9e9;
  --wm-panel: #faf7fa;
  --wm-border: #e5d9e4;
  --wm-muted: #716471;
  --wm-danger: #9f2f2f;
  --wm-shadow: 0 18px 50px rgba(74, 21, 70, .14);
  color: var(--wm-ink);
  font-family: Inter, Arial, sans-serif;
}

[data-warmmet-calculator], [data-warmmet-calculator] * { box-sizing: border-box; }
.wm-standalone-body { margin: 0; background: #f7f3f7; }
.wm-page { min-height: 100vh; padding: 24px; background: #f7f3f7; }
.wm-calculator { max-width: 1480px; margin: 0 auto; background: #fff; border: 1px solid #eadfea; border-top: 4px solid #883285; border-radius: 20px; box-shadow: var(--wm-shadow); overflow: hidden; }
.wm-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; padding: 27px 30px; color: #fff; background: linear-gradient(135deg, var(--wm-accent-deep), #6d1d69 62%, #883285); }
.wm-brand { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: linear-gradient(180deg, #fff, #ead4e9); font-size: 13px; font-weight: 950; letter-spacing: .08em; }
.wm-brand span { background: linear-gradient(180deg, #62165d, #883285); background-clip: text; -webkit-background-clip: text; color: transparent; }
.wm-eyebrow { margin: 0 0 8px; color: #f0d9ee; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.wm-hero h1 { margin: 0; max-width: 760px; font-size: clamp(25px, 3vw, 42px); line-height: 1.06; }
.wm-hero-side { display: grid; justify-items: end; gap: 11px; }
.wm-hero-note { max-width: 360px; margin: 0; color: #f5e8f4; line-height: 1.45; }
.wm-domain { color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; }
.wm-grid { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(330px, 1.2fr) minmax(320px, .95fr); gap: 1px; background: var(--wm-border); }
.wm-card { min-width: 0; padding: 24px; background: #fff; }
.wm-card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -24px -24px 20px; padding: 13px 18px; color: #fff; background: var(--wm-accent-dark); font-size: 16px; font-weight: 800; }
.wm-fields { display: grid; gap: 11px; }
.wm-field { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.15fr); align-items: center; gap: 12px; }
.wm-field label { font-size: 13px; font-weight: 750; line-height: 1.25; }
.wm-field select, .wm-field input { width: 100%; min-height: 41px; padding: 8px 10px; border: 1px solid #e5d6a9; border-radius: 9px; outline: none; background: var(--wm-input); color: var(--wm-ink); font: inherit; }
.wm-field select:focus, .wm-field input:focus { border-color: var(--wm-accent); box-shadow: 0 0 0 3px rgba(118,34,114,.16); }
.wm-field--stack { grid-template-columns: 1fr; gap: 5px; }
.wm-help { margin: 4px 0 0; color: #6a777a; font-size: 12px; line-height: 1.4; }
.wm-divider { height: 1px; margin: 7px 0; background: var(--wm-border); }
.wm-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-check { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border: 1px solid var(--wm-border); border-radius: 9px; background: #fff; font-size: 12px; }
.wm-check input { accent-color: var(--wm-accent); }
.wm-media { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; min-height: 330px; }
.wm-media > div { min-width: 0; }
.wm-radiator-view { display: grid; place-items: center; min-width: 0; padding: 18px; border-radius: 14px; background: linear-gradient(180deg, #fff, #f6f8f8); border: 1px solid var(--wm-border); }
.wm-radiator-view img { max-width: 100%; max-height: 330px; object-fit: contain; }
.wm-gallery-trigger { position: relative; display: grid; width: 100%; height: 100%; min-height: 280px; place-items: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.wm-gallery-trigger img { display: block; width: 100%; height: 330px; max-width: 100%; object-fit: contain; }
.wm-zoom-label { position: absolute; right: 10px; bottom: 8px; padding: 6px 9px; border-radius: 999px; background: rgba(77,16,73,.88); color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s ease; }
.wm-gallery-trigger:hover .wm-zoom-label, .wm-gallery-trigger:focus-visible .wm-zoom-label { opacity: 1; }
.wm-image-watermark { position: absolute; left: 9px; bottom: 8px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.84); color: #60165c; font-size: 10px; font-weight: 950; letter-spacing: .05em; box-shadow: 0 2px 8px rgba(74,21,70,.12); pointer-events: none; }
.wm-thumbnails { display: flex; gap: 8px; margin-top: 10px; padding-bottom: 3px; overflow-x: auto; }
.wm-thumbnail { flex: 0 0 62px; width: 62px; height: 52px; padding: 4px; border: 1px solid var(--wm-border); border-radius: 9px; background: #fff; cursor: pointer; }
.wm-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.wm-thumbnail--active { border-color: var(--wm-accent); box-shadow: 0 0 0 2px rgba(118,34,114,.16); }
.wm-placeholder { color: #849194; text-align: center; line-height: 1.5; }
.wm-accessories { display: flex; flex-direction: column; gap: 10px; }
.wm-accessory { display: grid; place-items: center; min-height: 92px; padding: 7px; border: 1px solid var(--wm-border); border-radius: 12px; background: #fff; }
.wm-accessory img { max-width: 100%; max-height: 88px; object-fit: contain; }
.wm-accessory--button { width: 100%; cursor: pointer; }
.wm-lightbox { position: fixed; z-index: 2147483000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(32, 8, 30, .9); backdrop-filter: blur(6px); }
.wm-lightbox-dialog { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; width: min(1100px, 94vw); height: min(820px, 90vh); min-height: 0; padding: 28px 64px 18px; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
.wm-lightbox-dialog > img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.wm-lightbox-close, .wm-lightbox-arrow { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(96,22,92,.94); color: #fff; cursor: pointer; }
.wm-lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 28px; line-height: 1; }
.wm-lightbox-arrow { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 38px; }
.wm-lightbox-arrow--prev { left: 10px; }
.wm-lightbox-arrow--next { right: 10px; }
.wm-lightbox-caption { min-width: 0; padding-top: 10px; color: var(--wm-muted); text-align: center; font-size: 14px; line-height: 1.3; }
.wm-lightbox-brand { position: absolute; left: 18px; top: 18px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.88); color: #60165c; font-size: 11px; font-weight: 950; letter-spacing: .06em; }
.wm-room { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--wm-accent-soft); }
.wm-room h3 { margin: 0 0 12px; font-size: 14px; }
.wm-summary { display: grid; gap: 0; border: 1px solid var(--wm-border); border-radius: 14px; overflow: hidden; }
.wm-summary-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, .85fr); gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--wm-border); background: var(--wm-panel); }
.wm-summary-row:last-child { border-bottom: 0; }
.wm-summary-row span:first-child { font-size: 12px; font-weight: 750; }
.wm-summary-row strong { text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.wm-summary-row--total { color: #fff; background: var(--wm-accent-dark); }
.wm-summary-row--warn strong { color: var(--wm-danger); }
.wm-status { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--wm-accent-soft); font-weight: 800; line-height: 1.35; }
.wm-status--warn { color: var(--wm-danger); background: #fff0ee; }
.wm-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.wm-button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 11px; cursor: pointer; background: var(--wm-accent); color: #fff; font: inherit; font-weight: 800; }
.wm-button:hover { background: var(--wm-accent-dark); }
.wm-button--ghost { color: var(--wm-accent-dark); background: var(--wm-accent-soft); }
.wm-options { padding: 0 24px 28px; }
.wm-options-title { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin: 0 -24px 16px; padding: 14px 24px; color: #fff; background: var(--wm-accent-dark); }
.wm-options-title h2 { margin: 0; font-size: 17px; }
.wm-options-title span { font-size: 12px; opacity: .86; }
.wm-option-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wm-option { position: relative; display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid var(--wm-border); border-radius: 13px; cursor: pointer; background: #fff; text-align: left; color: inherit; }
.wm-option:hover { border-color: var(--wm-accent); transform: translateY(-1px); }
.wm-option--selected { border: 2px solid var(--wm-accent); background: var(--wm-accent-soft); }
.wm-option--recommended::before { content: "Рекомендован"; position: absolute; right: 9px; top: 9px; padding: 4px 7px; border-radius: 999px; background: #d9c7ed; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.wm-option-name { padding-right: 72px; font-size: 13px; font-weight: 800; line-height: 1.3; }
.wm-option-meta { color: #6a777a; font-size: 11px; }
.wm-option-price { color: var(--wm-accent-dark); font-size: 16px; font-weight: 900; }
.wm-empty { padding: 24px; border: 1px dashed var(--wm-border); border-radius: 12px; color: #6a777a; text-align: center; }
.wm-toast { min-height: 20px; margin-top: 8px; color: var(--wm-accent-dark); font-size: 12px; font-weight: 750; }
.wm-footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 24px; color: #fff; background: #60165c; }
.wm-footer strong { letter-spacing: .08em; }
.wm-footer span { color: #f0d9ee; font-size: 12px; }

@media (max-width: 1050px) {
  .wm-grid { grid-template-columns: 1fr 1fr; }
  .wm-card--result { grid-column: 1 / -1; }
  .wm-option-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wm-page { padding: 0; }
  .wm-calculator { border-radius: 0; }
  .wm-hero { display: block; padding: 22px 18px; }
  .wm-hero-side { justify-items: start; margin-top: 13px; }
  .wm-hero-note { margin-top: 12px; }
  .wm-grid { grid-template-columns: 1fr; }
  .wm-card--result { grid-column: auto; }
  .wm-card { padding: 18px; }
  .wm-card-title { margin: -18px -18px 16px; }
  .wm-field { grid-template-columns: 1fr; gap: 5px; }
  .wm-media { grid-template-columns: 1fr; }
  .wm-gallery-trigger { min-height: 220px; }
  .wm-lightbox { padding: 10px; }
  .wm-lightbox-dialog { width: 96vw; height: 84vh; padding: 48px 40px 16px; }
  .wm-lightbox-arrow { width: 38px; height: 38px; font-size: 30px; }
  .wm-accessories { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wm-option-list { grid-template-columns: 1fr; }
  .wm-options { padding: 0 14px 22px; }
  .wm-options-title { display: block; margin: 0 -14px 12px; padding: 12px 14px; }
  .wm-options-title span { display: block; margin-top: 5px; }
  .wm-footer { display: grid; gap: 5px; }
}
