:root {
  color-scheme: dark;
  --bg: #070a0b;
  --surface: #0e1416;
  --surface-2: #141b1e;
  --surface-3: #1b2428;
  --line: #2b373c;
  --line-soft: #202a2e;
  --text: #f5f7f7;
  --muted: #9eaaae;
  --orange: #ff6900;
  --orange-2: #ff9a00;
  --green: #1ec86d;
  --blue: #36a9ff;
  --gold: #ffb000;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: radial-gradient(circle at 50% -20%, #1a2427 0, var(--bg) 37rem); color: var(--text); font-size: 16px; line-height: 1.45; }
button, input, select { font: inherit; }
button, select, input { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #75c8ff; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: #fff; color: #111; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { max-width: 1540px; margin: 0 auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.brand-lockup { display: flex; align-items: center; gap: 1.5rem; min-width: 0; }
.wordmark { width: 180px; min-width: 180px; height: 82px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #171d1f, #060809); display: grid; grid-template-columns: repeat(3, auto); place-content: center; column-gap: 0; font-size: 2.85rem; font-weight: 1000; line-height: .72; letter-spacing: -.18em; padding-right: .3em; box-shadow: var(--shadow); }
.wordmark .accent { color: var(--orange); }
.wordmark small { grid-column: 1/-1; margin-top: .72rem; color: var(--orange); letter-spacing: .42em; font-size: .75rem; text-align: center; padding-left: .42em; }
.brand-copy { display: flex; flex-direction: column; text-transform: uppercase; line-height: 1; }
.brand-copy > span { font-weight: 800; font-size: 1.35rem; }
.brand-copy strong { font-size: clamp(2.2rem, 4vw, 3.25rem); font-weight: 1000; color: var(--orange); letter-spacing: -.05em; }
.brand-copy em { color: #d7dcde; font-style: normal; }
.brand-copy small { margin-top: .55rem; letter-spacing: .2em; color: #d8dddf; }
.header-actions { display: grid; grid-template-columns: repeat(4, minmax(115px, 1fr)); gap: .7rem; }
.access-card { min-height: 76px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: .1rem .65rem; background: #080c0e; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; text-align: left; }
.access-card > span { grid-row: 1/3; font-size: 1.65rem; }
.access-card strong { font-size: .88rem; }
.access-card small { color: var(--muted); font-size: .74rem; }
.access-card.blue { border-color: #2d7fe5; }.access-card.blue > span { color: var(--blue); }
.access-card.gold { border-color: #cf8400; }.access-card.gold > span { color: var(--gold); }
.access-card.green { background: #0d8c46; border-color: #15b75d; }.access-card.green small { color: #e8fff2; }
.access-card.qr > span { color: #fff; }

.steps { max-width: 1020px; margin: 10px auto 12px; padding: 0 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.steps a { min-width: 0; height: 54px; display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; color: #d6dddf; text-decoration: none; background: linear-gradient(#1c2427, #121719); border: 1px solid var(--line-soft); border-radius: 10px; }
.steps a.active { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #090b0c; }
.steps b { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.13); }
.steps span { min-width: 0; font-weight: 800; font-size: .82rem; line-height: 1.05; }
.steps small { display: block; font-weight: 500; margin-top: .22rem; font-size: .66rem; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-grid { max-width: 1540px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.calculator { min-width: 0; display: grid; gap: 10px; }
.panel-section, .results-section { background: linear-gradient(145deg, rgba(18,25,28,.98), rgba(10,15,17,.98)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.section-title { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 12px; }
.section-title > span { color: var(--orange); font-weight: 1000; font-size: 1.12rem; }
.section-title h1, .section-title h2 { margin: 0; font-size: 1.03rem; text-transform: uppercase; letter-spacing: .01em; }
.section-title p { margin: .18rem 0 0; color: var(--muted); font-size: .82rem; }
.action-title .text-button { margin-left: auto; }
.text-button { background: transparent; color: #f5f7f7; border: 0; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; font-size: .82rem; }

.project-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project-card { min-height: 126px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .15rem; position: relative; overflow: hidden; padding: .8rem; background: linear-gradient(160deg, #364044, #161d20); border: 1px solid #566267; border-radius: 10px; text-align: left; }
.project-card.selected { border: 3px solid var(--orange); background: linear-gradient(160deg, #5c4535, #1a2225 64%); }
.project-card.disabled { opacity: .58; }
.project-card strong { font-size: .95rem; z-index: 1; }
.project-card small { color: #ccd3d5; z-index: 1; }
.project-icon { position: absolute; inset: 10px 10px 44px; opacity: .8; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 24px, #8e9a9e 25px 27px), repeating-linear-gradient(0deg, #283236 0 18px, #566267 19px 21px); }
.lining-icon { background: linear-gradient(90deg, #afb5b5 0 18%, #465155 18% 23%, #232b2e 23% 100%); }
.ceiling-icon { background: repeating-linear-gradient(90deg, #2b3438 0 26px, #818b8f 27px 29px), linear-gradient(#596368, #1d2427); transform: perspective(80px) rotateX(8deg); }

.choice-fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.choice-fieldset legend { font-weight: 800; margin-bottom: .5rem; }
.environment-fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.environment-fieldset legend { grid-column: 1/-1; }
.choice-pill { position: relative; min-height: 62px; }
.choice-pill input { position: absolute; opacity: 0; }
.choice-pill span { height: 100%; display: flex; flex-direction: column; justify-content: center; padding: .65rem .8rem .65rem 2.5rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); }
.choice-pill span::before { content: ''; position: absolute; left: .85rem; width: 16px; height: 16px; border: 2px solid #718086; border-radius: 50%; }
.choice-pill input:checked + span { border-color: var(--orange); background: linear-gradient(100deg, rgba(255,105,0,.17), var(--surface-2)); }
.choice-pill input:checked + span::before { border-color: var(--orange); box-shadow: inset 0 0 0 4px var(--surface-2); background: var(--orange); }
.choice-pill small { color: var(--muted); }

.repeat-list { display: grid; gap: 8px; }
.repeat-card { display: grid; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: #12191c; }
.panel-row { grid-template-columns: minmax(90px, .7fr) 1fr auto 1fr auto; }
.opening-row { grid-template-columns: minmax(80px,.6fr) repeat(5, 1fr) auto; }
.repeat-label { align-self: center; display: flex; align-items: center; gap: .55rem; }
.count-badge { width: 26px; height: 26px; display: grid; place-items: center; background: var(--orange); color: #080a0b; border-radius: 50%; font-weight: 1000; font-size: .78rem; }
.repeat-card label, .field-label { display: grid; gap: .28rem; color: #d6dddf; font-size: .78rem; font-weight: 700; }
.repeat-card label span, .field-label span { color: var(--muted); font-weight: 500; }
input, select { min-height: 42px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #20292d; padding: .5rem .65rem; }
input:hover, select:hover { border-color: #4a5b62; }
.dimension-symbol { align-self: center; color: var(--orange); font-weight: 1000; }
.remove-button { width: 38px; height: 42px; border: 1px solid #5a3434; background: #2a1717; color: #ff9898; border-radius: 8px; }
.add-button { margin-top: 9px; min-height: 42px; padding: .5rem 1rem; border: 1px dashed #59676c; color: #e8edef; background: transparent; border-radius: 8px; }
.add-button span { color: var(--orange); font-size: 1.2rem; }
.subsection { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.subsection-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 10px; }
.subsection-heading h3 { margin: 0; font-size: .95rem; }.subsection-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.switch { display: flex; align-items: center; gap: .55rem; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 46px; height: 26px; display: block; border-radius: 999px; background: #343e42; position: relative; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--orange); }.switch input:checked + span::after { transform: translateX(20px); }

.split-section { display: grid; grid-template-columns: 1.35fr .8fr; gap: 16px; }
.system-card { min-height: 92px; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 1rem; border: 1px solid var(--line); background: #12191c; border-radius: 10px; padding: .75rem; }
.profile-visual { height: 62px; display: flex; justify-content: space-around; align-items: stretch; border-block: 4px solid #a8b0b3; background: #6c452d; }
.profile-visual i { width: 4px; background: #bdc5c7; }
.system-card div:nth-child(2) { display: flex; flex-direction: column; }.system-card small { color: var(--muted); }.system-card strong { font-size: 1.25rem; }.system-card span:not(.approved-badge) { color: #c7d0d3; }
.approved-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 .65rem; color: #111; background: linear-gradient(120deg, var(--orange-2), var(--orange)); border-radius: 999px; font-weight: 1000; font-size: .72rem; white-space: nowrap; }
.mini-title { margin: 0 0 .5rem; font-size: .85rem; text-transform: uppercase; }
.board-summary { height: 92px; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); background: #12191c; border-radius: 10px; padding: .75rem; }
.board-summary > div { display: flex; flex-direction: column; }.board-summary small { color: var(--muted); }
.board-chip { width: 52px; height: 68px; display: grid; place-items: center; border-radius: 5px; font-weight: 1000; background: linear-gradient(145deg, #fff, #aeb5b7); color: #222; box-shadow: inset -6px 0 0 rgba(0,0,0,.12); }
.board-chip.ru { background: linear-gradient(145deg, #b6ffda, #50b987); }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.option-block + .option-block { border-left: 1px solid var(--line-soft); padding-left: 14px; }
.option-block select, .option-block > input { margin-bottom: .6rem; }
.microcopy { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }
.stacked-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stacked-choices label { min-height: 48px; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; background: #151d20; }
.stacked-choices input { width: auto; min-height: auto; accent-color: var(--orange); }
.disabled-choice { opacity: .45; }.disabled-choice small { margin-left: auto; }
.future-section { padding-bottom: 12px; }
.future-cards { display: flex; flex-wrap: wrap; gap: 7px; }
.future-cards span { min-height: 42px; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; background: #182124; border: 1px solid var(--line); border-radius: 8px; color: #d4dcdf; }
.future-cards b { color: var(--orange); font-size: .68rem; text-transform: uppercase; }
.form-error { padding: .8rem 1rem; border: 1px solid #9e3b3b; border-radius: 9px; background: #301717; color: #ffd0d0; }
.calculate-button { width: 100%; min-height: 54px; border: 0; border-radius: 9px; background: linear-gradient(110deg, var(--orange-2), var(--orange)); color: #080a0b; font-weight: 1000; text-transform: uppercase; box-shadow: 0 10px 26px rgba(255,105,0,.18); }
.calculate-button.compact { min-height: 44px; }

.results-section { border-color: #98520d; background: radial-gradient(circle at 80% 0, rgba(255,105,0,.12), transparent 24rem), linear-gradient(145deg, #11191c, #090d0f); }
.results-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.results-heading span:first-child { color: var(--orange); text-transform: uppercase; font-size: .78rem; font-weight: 900; }
.results-heading h2 { margin: .2rem 0; font-size: 1.5rem; }.results-heading p { margin: 0; color: var(--muted); }
.result-legend { display: flex; gap: 1rem; margin: 14px 0 10px; color: var(--muted); font-size: .76rem; }.result-legend span { display: flex; align-items: center; gap: .35rem; }.result-legend i { width: 9px; height: 9px; border-radius: 50%; }.result-legend .need { background: #7e8b90; }.result-legend .buy { background: var(--orange); }.result-legend .surplus { background: var(--green); }
.result-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-card { min-height: 142px; display: flex; flex-direction: column; gap: .2rem; padding: .8rem; border: 1px solid var(--line); background: #121a1d; border-radius: 9px; }
.result-card h3 { margin: 0 0 .35rem; font-size: .9rem; }.result-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; }.result-card strong { font-size: 1.2rem; }.result-card .buy-value { color: var(--orange); }.result-card .surplus-value { margin-top: auto; color: var(--green); font-size: .8rem; }.result-card.secondary { display: none; }.results-section.show-all .result-card.secondary { display: flex; }
.recommendations { display: grid; gap: 8px; margin-top: 10px; }.recommendation { padding: .85rem; border: 1px solid #5c4723; border-radius: 9px; background: #211b10; }.recommendation strong { display: block; color: var(--orange-2); font-size: .8rem; text-transform: uppercase; }.recommendation p { margin: .35rem 0 0; color: #d8d3c8; font-size: .82rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }.result-actions button { min-height: 42px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #182124; }.result-actions button:disabled { opacity: .42; }.quote-button { background: linear-gradient(110deg, var(--orange-2), var(--orange)) !important; color: #080a0b; border-color: transparent !important; font-weight: 900; }

.commercial-column { display: grid; gap: 9px; }
.aside-heading { display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }.aside-heading > span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); }.aside-heading div { display: flex; flex-direction: column; }.aside-heading strong { text-transform: uppercase; font-size: .75rem; }.aside-heading small { color: var(--muted); }
.commercial-stack { display: grid; gap: 8px; }
.commercial-card { min-height: 142px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #f3f3f0 0 45%, #b7c0c2 46% 47%, #1a2326 48%); color: #111; }
.commercial-card::after { content: attr(data-category); position: absolute; right: -12px; top: 12px; transform: rotate(9deg); padding: .35rem 1rem; background: var(--orange); color: #111; font-size: .65rem; font-weight: 1000; }
.commercial-card small { font-size: .68rem; text-transform: uppercase; font-weight: 900; }.commercial-card strong { font-size: .9rem; }.commercial-card span { color: #dce3e5; font-size: .76rem; }
.commercial-card .mock-badge { width: fit-content; margin-top: .45rem; padding: .22rem .45rem; border-radius: 999px; background: #20292d; color: #dfe6e8; font-size: .62rem; }
.disclosure { margin: 0; color: #77868b; font-size: .68rem; }
.rco-cta { min-height: 280px; padding: 1rem; border: 1px solid #92520f; border-radius: 12px; background: radial-gradient(circle at 100% 0, rgba(255,105,0,.27), transparent 12rem), linear-gradient(145deg, #2a2723, #0f1517 60%); }.rco-cta h2 { font-size: 1rem; text-transform: uppercase; }.rco-mini { font-size: 1.65rem; font-weight: 1000; }.rco-mini span { color: var(--orange); }.rco-cta ul { padding-left: 1.1rem; color: #d5dcde; font-size: .82rem; }.rco-cta li::marker { color: var(--orange); }.rco-cta button { width: 100%; min-height: 44px; border-radius: 8px; }

.partners-strip { max-width: 1510px; margin: 12px auto; padding: .75rem 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 11px; background: #0d1315; }.partners-strip > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; min-width: 225px; }.partners-strip > div:first-child > span { grid-row: 1/3; color: var(--orange); font-size: 1.4rem; }.partners-strip strong { text-transform: uppercase; font-size: .8rem; }.partners-strip small { color: var(--muted); font-size: .7rem; }.partner-chips { flex: 1; display: flex; gap: 7px; overflow: hidden; }.partner-chips span { min-width: 130px; min-height: 38px; display: grid; place-items: center; padding: .4rem .7rem; border-radius: 7px; background: #eef0ee; color: #152024; font-weight: 900; font-size: .72rem; }
.site-footer { min-height: 82px; max-width: 1540px; margin: 0 auto; padding: 1rem 20px 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #aeb9bc; border-top: 1px solid var(--line-soft); }.footer-brand { display: flex; flex-direction: column; }.footer-brand strong { color: #fff; font-size: 1.25rem; }.footer-brand strong span { color: var(--orange); }.footer-brand small { text-transform: uppercase; letter-spacing: .1em; }.site-footer p { margin: 0; text-align: center; font-size: .78rem; }

.measure-dialog { width: min(760px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 14px; padding: 0; background: #11181b; color: var(--text); box-shadow: 0 24px 80px #000; }.measure-dialog::backdrop { background: rgba(0,0,0,.72); }.measure-dialog form { padding: 1.25rem; position: relative; }.dialog-close { position: absolute; right: .75rem; top: .75rem; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #192124; }.eyebrow { color: var(--orange); text-transform: uppercase; font-weight: 900; font-size: .74rem; }.measure-dialog h2 { margin: .25rem 2.5rem 1rem 0; }.measure-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.measure-help-grid article { padding: .85rem; border: 1px solid var(--line); border-radius: 9px; background: #182024; }.measure-help-grid h3 { margin: .6rem 0 .2rem; }.measure-help-grid p, .dialog-note { color: var(--muted); font-size: .82rem; }.measure-diagram { height: 86px; display: grid; position: relative; border: 6px solid #9ba5a8; background: #39454a; }.measure-diagram.normal::after { content: ''; position: absolute; width: 40%; height: 45%; left: 30%; top: 27%; border: 4px solid var(--orange); background: #172023; }.measure-diagram.large { grid-template-columns: 1fr 2fr 1fr; gap: 12px; border: 0; background: transparent; }.measure-diagram.large i { background: #39454a; border: 5px solid #9ba5a8; }.measure-diagram.large i:nth-child(2) { height: 28px; }

@media (max-width: 1180px) {
  .site-header { align-items: flex-start; }
  .header-actions { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .page-grid { grid-template-columns: minmax(0, 1fr) 220px; }.left-column { grid-column: 1/-1; order: 3; grid-template-columns: 220px 1fr; }.left-column .commercial-stack { grid-template-columns: repeat(4, 1fr); }.left-column .disclosure { grid-column: 1/-1; }.calculator { order: 1; }.right-column { order: 2; }
}

@media (max-width: 820px) {
  .site-header { flex-direction: column; gap: 1rem; }.brand-lockup { width: 100%; }.wordmark { width: 140px; min-width: 140px; }.brand-copy > span { font-size: 1rem; }.brand-copy strong { font-size: 2rem; }.header-actions { width: 100%; grid-template-columns: repeat(4, 1fr); }.access-card { min-height: 62px; grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; }.access-card > span { display: none; }.steps { overflow-x: auto; grid-template-columns: repeat(6, minmax(125px, 1fr)); padding-bottom: .35rem; scrollbar-width: none; }.steps::-webkit-scrollbar { display: none; }.page-grid { grid-template-columns: 1fr; padding: 0 10px; }.calculator { order: 1; }.right-column { order: 2; grid-template-columns: 1fr 1fr; }.rco-cta { grid-row: span 2; }.left-column { order: 3; grid-template-columns: 1fr; }.left-column .commercial-stack { grid-template-columns: repeat(2, 1fr); }.split-section, .options-grid { grid-template-columns: 1fr; }.option-block + .option-block { border-left: 0; border-top: 1px solid var(--line-soft); padding: 14px 0 0; }.result-cards { grid-template-columns: repeat(2, 1fr); }.opening-row { grid-template-columns: repeat(2, 1fr); }.opening-row .repeat-label { grid-column: 1/-1; }.opening-row .remove-button { position: absolute; right: 20px; }.partners-strip { margin-inline: 10px; flex-direction: column; align-items: stretch; }.partner-chips { flex-wrap: wrap; }.site-footer { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }.site-header { padding: 10px; }.brand-lockup { gap: .8rem; }.wordmark { width: 112px; min-width: 112px; height: 68px; font-size: 2.2rem; }.brand-copy strong { font-size: 1.55rem; }.brand-copy small { font-size: .58rem; line-height: 1.4; }.header-actions { grid-template-columns: 1fr 1fr; }.access-card { min-height: 56px; }.page-grid { padding: 0 8px; }.panel-section, .results-section { padding: 12px; border-radius: 11px; }.project-cards { grid-template-columns: 1fr; }.project-card { min-height: 86px; }.project-icon { inset: 8px 45% 8px 8px; }.environment-fieldset { grid-template-columns: 1fr; }.panel-row { grid-template-columns: 1fr 1fr auto; }.panel-row .repeat-label { grid-column: 1/-1; }.panel-row .dimension-symbol { display: none; }.stacked-choices { grid-template-columns: 1fr; }.system-card { grid-template-columns: 100px 1fr; }.system-card .approved-badge { grid-column: 1/-1; width: fit-content; }.result-cards { grid-template-columns: 1fr; }.result-card.secondary { display: none; }.right-column { grid-template-columns: 1fr; }.left-column .commercial-stack { grid-template-columns: 1fr; }.commercial-card { min-height: 118px; }.measure-help-grid { grid-template-columns: 1fr; }.result-actions button { flex: 1 1 46%; }.site-footer > span { font-size: .72rem; }
}

/* Instalações V1 — integração aditiva, sem alterar o master visual */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.installations-section { padding-bottom: 14px; }
.installation-switcher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.installation-toggle, .installation-coming { min-height: 66px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: .05rem .55rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: #182124; text-align: left; }
.installation-toggle > span, .installation-coming > span { grid-row: 1/3; font-size: 1.35rem; }
.installation-toggle strong, .installation-coming strong { font-size: .82rem; text-transform: uppercase; }
.installation-toggle small, .installation-coming small { color: var(--muted); font-size: .7rem; }
.installation-toggle:hover { border-color: #58686e; }
.installation-toggle[aria-expanded="true"] { border-color: var(--orange); background: linear-gradient(120deg, rgba(255,105,0,.19), #182124 68%); box-shadow: inset 3px 0 0 var(--orange); }
.installation-toggle[aria-expanded="true"] small { color: #ffd4b6; }
.installation-coming { opacity: .55; }
.installation-coming small { color: var(--orange); text-transform: uppercase; font-weight: 800; }
.installation-module { margin-top: 10px; padding: 14px; border: 1px solid #435158; border-radius: 11px; background: linear-gradient(145deg, #151e21, #0e1416); }
.module-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.module-heading h3 { margin: .2rem 0; font-size: 1.05rem; text-transform: uppercase; }
.module-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0 0; padding: 0; border: 0; }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { min-height: 44px; display: grid; place-items: center; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: #192225; font-weight: 900; font-size: .8rem; text-transform: uppercase; }
.segmented-control input:checked + span { color: #0b0d0e; border-color: var(--orange); background: linear-gradient(110deg, var(--orange-2), var(--orange)); }
.module-subsection { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.compact-grid > label, .installation-row label { display: grid; gap: .28rem; color: #d6dddf; font-size: .75rem; font-weight: 750; }
.system-note { margin: 8px 0 0; padding: .65rem .75rem; border-left: 3px solid var(--orange); border-radius: 0 7px 7px 0; background: #11191c; color: #cbd4d6; font-size: .78rem; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 12px 0 8px; }
.list-heading h4 { margin: 0; font-size: .9rem; text-transform: uppercase; }
.list-heading p { margin: .18rem 0 0; color: var(--muted); font-size: .76rem; }
.compact-add { margin: 0; white-space: nowrap; }
.installation-list { display: grid; gap: 8px; }
.installation-row { position: relative; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: #11191c; }
.installation-row.water-row { grid-template-columns: 1.2fr .8fr .7fr 1fr 1fr auto; }
.installation-row.sewer-row { grid-template-columns: 1.2fr .7fr .7fr 1fr 1.1fr auto; }
.installation-row.electric-row { grid-template-columns: 1.15fr .65fr 1fr 1fr auto; }
.installation-row.route-row { grid-template-columns: 1fr .8fr 1.2fr 1fr 1fr auto; }
.installation-row.lighting-row { grid-template-columns: 1.05fr 1fr 1.15fr .75fr 1.15fr auto; }
.installation-row.ac-accessory-row { grid-template-columns: 1.2fr 1fr .7fr auto; }
.installation-row .row-title { align-self: center; display: flex; align-items: center; gap: .45rem; min-width: 0; }
.installation-row .row-title strong { font-size: .8rem; white-space: nowrap; }
.installation-row .remove-button { align-self: end; }
.installation-row .inline-check { min-height: 42px; display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: #20292d; }
.installation-row .inline-check input { min-height: auto; width: auto; accent-color: var(--orange); }
.installation-row .inline-check span { color: #d6dddf; font-size: .7rem; line-height: 1.2; }
.ac-main-grid { max-width: 330px; margin-bottom: 10px; }
.ac-options { display: grid; gap: 8px; }
.option-check { display: flex; align-items: center; gap: .7rem; padding: .75rem; border: 1px solid var(--line-soft); border-radius: 9px; background: #11191c; cursor: pointer; }
.option-check input { width: 19px; height: 19px; min-height: auto; accent-color: var(--orange); }
.option-check span { display: grid; gap: .12rem; }
.option-check strong { font-size: .82rem; text-transform: uppercase; }
.option-check small { color: var(--muted); font-size: .72rem; }
.advanced-disclosure { margin-top: 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: #101719; }
.advanced-disclosure summary { cursor: pointer; padding: .7rem .8rem; color: #dce3e5; font-size: .78rem; font-weight: 800; }
.advanced-disclosure[open] summary { border-bottom: 1px solid var(--line-soft); }
.connection-fields { padding: 8px; }
.point-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.point-shortcuts button, .advanced-button { min-height: 40px; padding: .5rem .7rem; border: 1px solid #56656a; border-radius: 8px; background: #182124; color: #e5ebed; font-size: .76rem; font-weight: 800; }
.point-shortcuts button:hover, .advanced-button:hover { border-color: var(--orange); }
.advanced-button { width: 100%; margin-top: 10px; border-style: dashed; }
.finish-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; }
.finish-shortcuts button { min-height: 42px; padding: .55rem .75rem; border: 1px solid #56656a; border-radius: 8px; background: #182124; color: #e5ebed; font-size: .76rem; font-weight: 800; }
.finish-shortcuts button:hover { border-color: var(--orange); }
.finish-items { display: grid; gap: 10px; margin-top: 10px; }
.finish-item { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: linear-gradient(145deg, #151e21, #0e1416); }
.finish-item-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 10px; }
.finish-item-heading > div { display: flex; align-items: center; gap: .55rem; }
.finish-item-heading strong { font-size: .86rem; text-transform: uppercase; }
.finish-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.finish-fields > label { display: grid; gap: .28rem; color: #d6dddf; font-size: .75rem; font-weight: 750; }
.finish-fields .finish-check { min-height: 46px; }
.finish-grout-fields { grid-column: 1 / -1; }
.finish-result-card .buy-value { color: var(--orange-2); }
.result-groups { display: grid; gap: 12px; }
.result-group { display: grid; gap: 8px; }
.result-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border: 1px solid var(--line-soft); border-radius: 8px; background: #0d1416; }
.result-group-heading h3 { margin: 0; font-size: .82rem; text-transform: uppercase; }
.result-group-heading span { color: var(--muted); font-size: .7rem; }
.result-group .result-cards { display: grid; }
.result-card .origin-tag { width: fit-content; margin-bottom: .3rem; padding: .16rem .38rem; border-radius: 999px; background: #263238; color: #d7e0e2; font-size: .58rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.module-warning { padding: .7rem .8rem; border: 1px solid #755e28; border-radius: 8px; background: #2a2212; color: #f3ddb0; font-size: .78rem; }

@media (max-width: 980px) {
  .installation-row, .installation-row.water-row, .installation-row.sewer-row, .installation-row.electric-row, .installation-row.route-row, .installation-row.lighting-row, .installation-row.ac-accessory-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .installation-row .row-title { grid-column: 1/-1; }
  .installation-row .remove-button { position: absolute; top: 10px; right: 10px; }
}

@media (max-width: 560px) {
  .installation-switcher { grid-template-columns: 1fr 1fr; }
  .installation-module { padding: 11px; }
  .module-heading { align-items: flex-start; }
  .module-heading .approved-badge { font-size: .62rem; }
  .compact-grid, .segmented-control { grid-template-columns: 1fr; }
  .list-heading { align-items: stretch; flex-direction: column; }
  .compact-add { width: 100%; }
  .installation-row, .installation-row.water-row, .installation-row.sewer-row, .installation-row.electric-row, .installation-row.route-row, .installation-row.lighting-row, .installation-row.ac-accessory-row { grid-template-columns: 1fr; padding-top: 46px; }
  .installation-row .row-title { position: absolute; left: 10px; top: 12px; right: 52px; }
  .point-shortcuts { display: grid; grid-template-columns: 1fr 1fr; }
  .point-shortcuts button { min-height: 46px; }
  .finish-shortcuts { display: grid; grid-template-columns: 1fr 1fr; }
  .finish-shortcuts button { min-height: 46px; }
  .finish-fields { grid-template-columns: 1fr; }
  .result-group-heading { align-items: flex-start; flex-direction: column; }
}

/* Affiliate commercial cards */
.commercial-card .commercial-link {
  width: fit-content;
  margin-top: .55rem;
  padding: .38rem .58rem;
  border-radius: 7px;
  background: #20292d;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.commercial-card .commercial-link:hover {
  background: var(--orange);
  color: #111;
  transform: translateY(-1px);
}

.commercial-card .commercial-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* RCO Affiliate Product Card MASTER */
.commercial-card.has-image {
  min-height: 0;
  padding: 0;
  justify-content: initial;
  background: #fff;
  color: #111;
  border-color: #394348;
}

.commercial-card.has-image::after {
  top: 8px;
  right: -10px;
  z-index: 2;
}

.commercial-image {
  height: 145px;
  padding: 10px;
  display: grid;
  place-items: center;
  background: #fff;
}

.commercial-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.commercial-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commercial-card.has-image .commercial-content {
  padding: .7rem;
  background: #151d20;
}

.commercial-card.has-image .commercial-content small {
  color: #ff6900;
}

.commercial-card.has-image .commercial-content strong {
  color: #fff;
  line-height: 1.25;
}

.commercial-card.has-image .commercial-content span {
  color: #aeb9bc;
}

.commercial-card.has-image .commercial-link {
  width: 100%;
  box-sizing: border-box;
  margin-top: .45rem;
  text-align: center;
  background: var(--orange);
  color: #111;
}

.commercial-card.has-image .commercial-link:hover {
  background: #fff;
}

/* =========================================================
   RCO PUBLICIDADE V2 — Mercado Livre offer card
   ========================================================= */

.commercial-card.has-offer {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
  color: #333;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}

.commercial-card.has-offer::after {
  display: none;
}

.commercial-card.has-offer .commercial-publicity {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,.94);
  color: #666;
  border: 1px solid #ddd;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.commercial-card.has-offer .commercial-image {
  height: 180px;
  padding: 14px;
  background: #fff;
}

.commercial-card.has-offer .commercial-content {
  gap: 5px;
  padding: 12px;
  background: #fff;
  color: #333;
  border-top: 1px solid #eee;
}

.commercial-card.has-offer .commercial-content > small {
  color: #666;
  font-size: .65rem;
  font-weight: 700;
  text-transform: none;
}

.commercial-card.has-offer .commercial-product-name {
  color: #333;
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.3;
}

.commercial-seller {
  color: #777;
  font-size: .66rem;
}

.commercial-offer {
  margin-top: 5px;
}

.commercial-old-price {
  color: #999;
  font-size: .72rem;
  text-decoration: line-through;
}

.commercial-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.commercial-card.has-offer .commercial-price {
  color: #222;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
}

.commercial-discount {
  color: #00a650 !important;
  font-size: .72rem !important;
  font-weight: 700;
}

.commercial-installments {
  margin-top: 2px;
  color: #333;
  font-size: .72rem;
}

.commercial-shipping {
  margin-top: 5px;
  color: #00a650;
  font-size: .75rem;
  font-weight: 800;
}

.commercial-card.has-offer .commercial-link {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 9px 8px;
  border-radius: 6px;
  background: #FFE600;
  color: #222;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
}

.commercial-card.has-offer .commercial-link:hover {
  background: #E6CF00;
  color: #222;
}


/* Mercado Livre V2 — preço atual visível sobre card branco */
.commercial-card.has-image.has-offer .commercial-content .commercial-price {
  color: #222 !important;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
}

/* ===== RCO LIVING · SEO CONTENT V1 ===== */

.seo-content {
  margin: 32px auto 0;
  padding: 56px 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,122,0,.10), transparent 28%),
    linear-gradient(180deg, #17191c 0%, #111315 100%);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.seo-content-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.seo-content-inner > .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #ff7a00;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.seo-content-inner > h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.seo-content-inner > p {
  max-width: 850px;
  margin: 0 0 14px;
  color: #c8cbd0;
  font-size: .98rem;
  line-height: 1.7;
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.seo-guide-grid article {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.seo-guide-grid h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 1rem;
}

.seo-guide-grid p {
  margin: 0;
  color: #aeb3b9;
  font-size: .88rem;
  line-height: 1.6;
}

.seo-faq {
  margin-top: 42px;
}

.seo-faq > h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.seo-faq details {
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.seo-faq summary {
  padding: 16px 18px;
  color: #f3f3f3;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.seo-faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: #aeb3b9;
  font-size: .86rem;
  line-height: 1.6;
}

.seo-faq details[open] {
  border-color: rgba(255,122,0,.32);
}

@media (max-width: 720px) {
  .seo-content {
    margin-top: 22px;
    padding: 38px 18px;
  }

  .seo-guide-grid {
    grid-template-columns: 1fr;
  }

  .seo-guide-grid article {
    padding: 18px;
  }
}

/* ===== RCO · COMMERCIAL RESULTS ONLY V1 ===== */
.project-commercial { margin-top: 16px; padding-top: 16px; border-top: 1px solid #6e4a20; }
.project-commercial-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.project-commercial-heading > div:first-child > span { color: #ffe600; font-size: .66rem; font-weight: 900; letter-spacing: .09em; }
.project-commercial-heading h3 { margin: 3px 0; font-size: 1.25rem; }
.project-commercial-heading p { margin: 0; color: var(--muted); font-size: .78rem; }
.project-commercial-summary { min-width: 220px; display: grid; justify-items: end; gap: 3px; text-align: right; }
.project-commercial-summary small { color: #d7dde0; font-size: .7rem; }
.project-commercial-summary b { color: #ffe600; font-size: .72rem; }
.project-commercial-total { color: #fff; font-size: 1.55rem; }
.project-commercial-total.is-empty { font-size: .92rem; }
.project-commercial-loading { padding: 16px; border: 1px dashed #6d7477; border-radius: 10px; color: var(--muted); text-align: center; }
.project-material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-material-card { min-width: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); overflow: hidden; border: 1px solid #ddd; border-radius: 11px; background: #fff; color: #333; }
.project-material-card.is-unvalued { border-color: #806844; background: #f8f5ef; }
.project-material-image { min-height: 180px; display: grid; place-items: center; padding: 9px; border-right: 1px solid #eee; background: #fff; }
.project-material-image img { width: 100%; height: 100%; max-height: 170px; object-fit: contain; }
.project-material-image.is-empty { background: #ece8df; color: #9d8c72; font-weight: 1000; }
.project-material-content { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px; }
.project-material-status { width: fit-content; padding: 3px 6px; border-radius: 999px; background: #e6f6ee; color: #008c46; font-size: .56rem; font-weight: 900; letter-spacing: .06em; }
.is-unvalued .project-material-status { background: #eee5d5; color: #73551f; }
.project-material-content h4 { margin: 0; color: #222; font-size: .88rem; }
.project-material-need { margin: 0; color: #555; font-size: .72rem; }
.project-material-product { display: grid; gap: 1px; padding-top: 4px; border-top: 1px solid #eee; }
.project-material-product strong { font-size: .74rem; font-weight: 600; line-height: 1.25; }
.project-material-product small { color: #777; font-size: .62rem; }
.project-material-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 2px; }
.project-material-buy span { display: grid; gap: 1px; padding: 5px; border-radius: 6px; background: #f5f5f5; }
.project-material-buy small { color: #777; font-size: .58rem; text-transform: uppercase; }
.project-material-buy strong { color: #333; font-size: .7rem; }
.project-material-buy .project-material-subtotal { background: #fff5b5; }
.project-material-buy .project-material-subtotal strong { font-size: .82rem; }
.project-material-reason { margin: auto 0 0; padding: 7px; border-radius: 7px; background: #eee5d5; color: #654b1d; font-size: .68rem; }
.project-material-cta { margin-top: auto; padding: 7px; border-radius: 6px; background: #ffe600; color: #222; text-align: center; text-decoration: none; font-size: .65rem; font-weight: 900; }
.project-material-cta:hover { background: #e6cf00; }
.project-commercial-notice { display: grid; gap: 3px; margin-top: 10px; padding: 10px; border: 1px solid #4c5559; border-radius: 8px; background: #111719; }
.project-commercial-notice p { margin: 0; color: #aeb9bc; font-size: .68rem; }

@media (max-width: 820px) {
  .project-material-grid { grid-template-columns: 1fr; }
  .project-commercial-heading { align-items: flex-start; }
}

@media (max-width: 560px) {
  .project-commercial-heading { display: grid; }
  .project-commercial-summary { min-width: 0; justify-items: start; text-align: left; }
  .project-material-card { grid-template-columns: 88px minmax(0, 1fr); }
  .project-material-image { min-height: 150px; padding: 6px; }
  .project-material-buy { grid-template-columns: 1fr; }
}


/* PAREDE RCO V2 — configuração de faces */
.face-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.face-config .choice-fieldset {
  min-width: 0;
}

.board-summary-chips {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.board-summary-chips .board-chip {
  width: 44px;
}

#face-2-fieldset[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .face-config {
    grid-template-columns: 1fr;
  }

  .board-summary {
    height: auto;
    min-height: 92px;
  }
}

/* Curso grátis — Header V2 */
.header-right {
  flex: 0 1 970px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-right .header-actions {
  width: 100%;
}

.course-banner {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(255,122,0,.65);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,122,0,.16), #0b1012 42%, #0b1012);
  color: #fff;
  text-decoration: none;
}

.course-banner:hover {
  border-color: var(--orange);
  background: linear-gradient(90deg, rgba(255,122,0,.25), #111719 42%, #111719);
}

.course-banner-label {
  color: var(--orange);
  font-size: .65rem;
  font-weight: 1000;
  letter-spacing: .1em;
  white-space: nowrap;
}

.course-banner > strong {
  font-size: .78rem;
}

.course-banner > small {
  color: var(--muted);
  font-size: .68rem;
  font-style: italic;
}

.course-banner > b {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--orange);
  color: #090b0c;
  font-size: .65rem;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .header-right {
    flex: 1 1 540px;
  }

  .course-banner {
    grid-template-columns: auto 1fr auto;
  }

  .course-banner > small {
    display: none;
  }
}

@media (max-width: 820px) {
  .header-right {
    width: 100%;
    flex: none;
  }

  .course-banner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 560px) {
  .course-banner {
    grid-template-columns: 1fr auto;
    gap: 3px 8px;
    padding: 7px 8px;
  }

  .course-banner-label {
    grid-column: 1;
  }

  .course-banner > strong {
    grid-column: 1;
  }

  .course-banner > small {
    display: none;
  }

  .course-banner > b {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* Curso grátis — ajuste visual V3 */
.course-banner {
  min-height: 46px;
  margin-top: 2px;
  padding: 7px 9px 7px 12px;
  border: 1px solid #a95700;
  border-radius: 9px;
  background: linear-gradient(110deg, #211306 0%, #111719 32%, #080c0e 100%);
  box-shadow: inset 4px 0 0 var(--orange);
  line-height: 1.1;
}

.course-banner-label {
  display: inline-grid;
  place-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 5px;
  background: rgba(255,122,0,.14);
  color: #ff8a1c;
  font-size: .64rem;
  font-weight: 1000;
  text-decoration: none;
}

.course-banner > strong {
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.course-banner > small {
  color: #aeb9bc;
  font-size: .67rem;
  text-decoration: none;
}

.course-banner > b {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 13px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff9800, var(--orange));
  color: #090b0c;
  font-size: .66rem;
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

.course-banner,
.course-banner:hover,
.course-banner:visited {
  text-decoration: none;
}

@media (max-width: 560px) {
  .course-banner {
    min-height: 52px;
  }
}

/* Header — logo RCO Living compacto */
@media (min-width: 821px) {
  .wordmark {
    width: 130px;
    min-width: 130px;
    height: 68px;
    font-size: 2.25rem;
  }

  .wordmark small {
    margin-top: .58rem;
    font-size: .62rem;
  }

  .brand-lockup {
    gap: 1rem;
  }
}

/* =========================================================
   RCO ML MOBILE — PRODUCT IMAGE VISIBILITY FIX 20261005
   Solo cards laterales de publicidade en celular
   ========================================================= */
@media (max-width: 560px) {
  .commercial-card.has-offer .commercial-image {
    height: 260px;
    min-height: 260px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
  }

  .commercial-card.has-offer .commercial-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

/* =========================================================
   RCO FORRO V1 — selector visual
   ========================================================= */
.forro-type-fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
  border: 0;
  padding: 0;
}

.forro-type-fieldset legend {
  grid-column: 1 / -1;
  font-weight: 800;
  margin-bottom: .5rem;
}

.forro-choice {
  min-height: 76px;
}

.forro-measure-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 560px) {
  .forro-type-fieldset,
  .forro-measure-grid {
    grid-template-columns: 1fr;
  }
}


/* RCO REVESTIMENTO V1 — selector visual */
.revestimento-type-fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  border: 0;
  padding: 0;
}

.revestimento-type-fieldset legend {
  grid-column: 1 / -1;
  font-weight: 800;
  margin-bottom: .5rem;
}

.revestimento-choice {
  min-height: 82px;
}

.revestimento-measure-grid,
.revestimento-piece-grid {
  grid-template-columns: repeat(2, 1fr);
}

#revestimento-options .subsection:first-of-type {
  margin-top: 14px;
}

#revestimento-family-note:empty {
  display: none;
}

@media (max-width: 820px) {
  .revestimento-type-fieldset {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .revestimento-type-fieldset,
  .revestimento-measure-grid,
  .revestimento-piece-grid {
    grid-template-columns: 1fr;
  }
}
