:root {
  --bg: #f3eee6;
  --surface: #fffdf9;
  --surface-2: #f8f1e7;
  --surface-3: #ead9c5;
  --ink: #2a211b;
  --muted: #6f6258;
  --line: #ddcfc0;
  --brand: #8b5a38;
  --brand-dark: #553828;
  --brand-deep: #3e2a20;
  --accent: #c97a3d;
  --accent-soft: #f7e5d3;
  --sand: #d6b48c;
  --warning-bg: #fff4df;
  --warning-line: #d89a3e;
  --shadow: 0 20px 55px rgba(73, 49, 34, .10);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
main, .site-header, .site-footer { width: 100%; max-width: 100%; min-width: 0; }
img, svg { max-width: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(92,62,43,.025) 79px 80px),
    var(--bg);
  line-height: 1.58;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(243,238,230,.94);
  border-bottom: 1px solid rgba(221,207,192,.92);
}
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--brand));
  color: #fffaf3;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; padding: 9px 11px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.55); }

.container { width: min(var(--max), calc(100% - 32px)); max-width: 100%; min-width: 0; margin: 0 auto; }
.breadcrumbs { padding-top: 22px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { margin-left: 5px; }

.hero { padding: 24px 0 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr); gap: 26px; align-items: end; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--accent-soft);
  border: 1px solid #ead0b7;
  padding: 7px 11px;
  border-radius: 999px;
}
h1 {
  margin: 13px 0 12px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.01;
  letter-spacing: -.055em;
  max-width: 900px;
}
.lead { max-width: 790px; margin: 0; font-size: clamp(17px, 2vw, 20px); color: #574b43; }

.trust-card {
  background: rgba(255,253,249,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.trust-card strong { display: block; margin-bottom: 5px; font-size: 16px; }
.trust-card p { margin: 0; color: var(--muted); font-size: 14px; }
.trust-list { display: grid; gap: 9px; margin-top: 14px; }
.trust-item { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.tick { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand); font-weight: 900; }

.calculator-section { padding: 14px 0 48px; }
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 22px; align-items: start; }
.panel {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 6px; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.panel-intro { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.segmented.segmented--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.segmented label { cursor: pointer; min-width: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbf7f1;
  font-weight: 760;
  font-size: 14px;
  line-height: 1.25;
}
.segmented input:checked + span { color: #fffaf4; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 16px rgba(139,90,56,.18); }
.segmented input:focus-visible + span { outline: 3px solid rgba(201,122,61,.28); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.input-wrap { position: relative; }
.input-wrap input, .field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d8c7b6;
  border-radius: 12px;
  background: #fffdfa;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}
.input-wrap input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,122,61,.12); }

.unit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.unit-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #faf5ee;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}
.unit-row button:hover { border-color: #c7ad96; color: var(--ink); }
.unit-row button.is-active { color: #fffaf4; background: var(--brand); border-color: var(--brand); }
.unit-row button:focus-visible { outline: 3px solid rgba(201,122,61,.28); outline-offset: 2px; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.preset {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #faf5ee;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
}
.preset:hover { border-color: var(--accent); background: var(--accent-soft); }

.result-card {
  position: sticky;
  min-width: 0;
  max-width: 100%;
  top: 88px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 45%),
    linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: #fffaf3;
  border-radius: var(--radius);
  padding: 28px;
  min-height: 300px;
  box-shadow: 0 24px 58px rgba(66,43,31,.23);
}
.result-card::after {
  content: '';
  position: absolute;
  right: -38px;
  top: -38px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 44px rgba(255,255,255,.018);
  pointer-events: none;
}
.result-card-title { margin: 0 0 20px; font-size: 15px; color: rgba(255,250,243,.76); font-weight: 800; }
.result { display: grid; gap: 5px; position: relative; z-index: 1; }
.result strong { font-size: clamp(42px, 5vw, 58px); line-height: .98; letter-spacing: -.045em; }
.result strong.result-message { font-size: clamp(30px, 4vw, 42px); }
.result b { font-size: 25px; }
.result small { color: rgba(255,250,243,.75); }
.result-kicker { color: rgba(255,250,243,.72); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 820; }
.result-kicker--space { margin-top: 13px; }
.result-divider { height: 1px; background: rgba(255,255,255,.18); margin: 16px 0; }
.formula-box { overflow-wrap: anywhere; word-break: normal; position: relative; z-index: 1; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.10); color: rgba(255,250,243,.90); font-size: 13px; }

.quick-answer {
  border: 1px solid #e1c7aa;
  background: linear-gradient(135deg, #fffaf2, #f5e7d7);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 20px;
}
.quick-answer strong { display: block; margin-bottom: 4px; font-size: 16px; }
.quick-answer p { margin: 0; color: #5f5045; }
#concrete-context-example { transition: border-color .16s ease, background .16s ease; }

.content-section { padding: 36px 0; }
.content-section h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.content-section h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.02em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.prose { font-size: 16px; }
.prose p { margin: 0 0 16px; color: #584c43; }
.note { border-left: 3px solid var(--warning-line); background: var(--warning-bg); padding: 16px 18px; border-radius: 0 14px 14px 0; font-size: 14px; color: #665036; }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--brand-dark); font-weight: 900; }
.step strong { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14px; }

.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 18px; }
.example-card strong { display: block; margin-bottom: 5px; }
.example-card span { color: var(--muted); font-size: 14px; }

.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(73,49,34,.05); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #efe3d5; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b584b; }
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fff9f1; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 790; padding: 18px 34px 18px 0; position: relative; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--brand); font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.related a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.related a:hover { transform: translateY(-2px); border-color: #c99c78; background: #fff9f2; }
.related strong { display: block; margin-bottom: 6px; }
.related span { color: var(--muted); font-size: 13px; }

.home-hero { padding: 70px 0 30px; }
.home-hero h1 { max-width: 970px; }
.home-grid { padding: 24px 0 68px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.home-card { text-decoration: none; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.home-card:hover { transform: translateY(-3px); border-color: #c99c78; }
.home-card small { color: var(--brand); font-weight: 800; }
.home-card h2 { margin: 10px 0 8px; font-size: 22px; }
.home-card p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { margin-top: 34px; border-top: 1px solid var(--line); padding: 25px 0 34px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero-grid, .calculator-shell, .content-grid { grid-template-columns: 1fr; }
  .result-card { position: static; min-height: auto; }
  .related, .home-grid, .example-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(38px, 10vw, 56px); }
}

@media (max-width: 620px) {
  .container, .header-inner { width: min(calc(100% - 20px), var(--max)); max-width: calc(100% - 20px); }
  .panel, .result-card, .trust-card { padding: 20px; border-radius: 19px; }
  .fields { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .hero { padding-top: 20px; }
  .segmented, .segmented.segmented--two { grid-template-columns: 1fr; }
  .segmented span { min-height: 46px; }
  .unit-row button { min-height: 46px; font-size: 15px; }
  .home-hero { padding-top: 52px; }
  .breadcrumbs { padding-top: 17px; }
}

/* Эталон калькулятора: живая схема и полезные блоки */
.calculator-aside { display: contents; }
.calculator-aside .result-card { position: static; }
.visual-card {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
  background: linear-gradient(145deg, #fffdf9 0%, #f3e8dc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 2px;
}
.visual-card-head h2 { margin: 2px 0 0; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.visual-kicker, .section-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.visual-live {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #dfc6ad;
  border-radius: 999px;
  color: #705542;
  background: rgba(255,253,249,.68);
  font-size: 12px;
  font-weight: 720;
}
.concrete-diagram {
  width: 100%;
  height: 330px;
  display: block;
  margin-top: 2px;
  overflow: visible;
}
.diagram-shape {
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transform-origin: center;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.diagram-shape.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dimension-control { cursor: pointer; outline: none; }
.dimension-lines line { stroke: #6c4a36; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: stroke .16s ease, stroke-width .16s ease; }
.dimension-lines text {
  fill: #4b3427;
  font-size: 14px;
  font-weight: 820;
  paint-order: stroke;
  stroke: #f7eee4;
  stroke-width: 5px;
  stroke-linejoin: round;
  transition: fill .16s ease, font-size .16s ease;
}
.dimension-control:hover line,
.dimension-control:focus-visible line,
.dimension-control.is-linked-highlight line { stroke: var(--accent); stroke-width: 2; }
.dimension-control:hover text,
.dimension-control:focus-visible text,
.dimension-control.is-linked-highlight text { fill: var(--accent); font-size: 15px; }
.dimension-control:focus-visible { filter: drop-shadow(0 0 4px rgba(201,122,61,.22)); }
.field.is-linked-highlight label { color: var(--brand); }
.field.is-linked-highlight .input-wrap input { border-color: var(--accent); background: #fff9f1; box-shadow: 0 0 0 4px rgba(201,122,61,.14); }
.diagram-count {
  fill: #6d594b;
  font-size: 13px;
  font-weight: 740;
  text-anchor: middle;
}
.visual-note { margin: -2px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.formula-label { display: block; margin-bottom: 4px; color: rgba(255,250,243,.68); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 820; }
.result-reserve { margin-top: 4px; }
.result b.result-no-reserve { font-size: 21px; }
.content-section--tight { padding-top: 18px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
}
.section-head h2 { margin-top: 4px; }
.section-head > p { max-width: 500px; margin: 0 0 4px; color: var(--muted); }
.calc-examples { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.calc-example {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
}
.calc-example h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.25; }
.calc-example p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.calc-example-visual { position: relative; height: 78px; border-radius: 14px; background: #f5e8da; overflow: hidden; }
.calc-example-visual--slab::before,
.calc-example-visual--beam::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 24px;
  height: 26px;
  transform: skewY(-7deg);
  border-radius: 4px;
  background: linear-gradient(145deg, #d6b18d, #966345);
  box-shadow: 10px 11px 0 rgba(96,61,42,.18);
}
.calc-example-visual--beam::before { left: 9px; right: 9px; height: 19px; top: 29px; }
.calc-example-visual--cylinder::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 54px;
  left: 27px;
  top: 13px;
  border-radius: 50% / 12%;
  background: linear-gradient(90deg, #9b6545, #d0a27d 48%, #805039);
}
.calc-example-visual--cylinder::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 10px;
  left: 27px;
  top: 10px;
  border-radius: 50%;
  background: #e2c2a3;
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  font-weight: 820;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-button:hover { color: var(--brand-dark); }
.text-button:focus-visible { outline: 3px solid rgba(201,122,61,.25); outline-offset: 4px; border-radius: 4px; }

.two-blocks { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 24px; align-items: start; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.check-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
}
.check-card > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.check-card h3 { margin: 1px 0 4px; font-size: 15px; }
.check-card p { margin: 0; color: var(--muted); font-size: 13px; }
.conversion-card {
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: #fffaf3;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(66,43,31,.18);
}
.conversion-card .section-kicker { color: #efcfb4; }
.conversion-card h2 { margin: 4px 0 8px; font-size: 25px; }
.conversion-card > p { margin: 0 0 14px; color: rgba(255,250,243,.82); font-size: 14px; }
.conversion-list { display: grid; gap: 2px; }
.conversion-list div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.13); }
.conversion-list span { color: rgba(255,250,243,.74); }
.conversion-list b { font-size: 14px; }
.example-card h3 { margin: 0 0 5px; }

@media (max-width: 980px) {
  .calc-examples { grid-template-columns: 1fr; }
  .two-blocks { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .calculator-aside { display: contents; }
  .visual-card { grid-column: auto; }
  .section-head { display: block; }
  .section-head > p { margin-top: -6px; }
  .concrete-diagram { height: 300px; }
}

@media (max-width: 620px) {
  .visual-card { padding: 20px 14px 16px; }
  .visual-card-head { display: block; }
  .visual-live { display: inline-flex; margin-top: 9px; }
  .concrete-diagram { height: 270px; margin-inline: 0; width: 100%; max-width: 100%; overflow: hidden; }
  .dimension-lines text { font-size: 13px; stroke-width: 6px; }
  .check-grid { grid-template-columns: 1fr; }
  .calc-example { grid-template-columns: 78px 1fr; gap: 13px; padding: 14px; }
  .calc-example-visual { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .diagram-shape { transition: none; }
}


/* v6 — эталонные визуализации пиломатериалов, арматуры и обоев */
.segmented.segmented--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-divider { height: 1px; background: var(--line); margin: 24px 0 20px; }
.form-subtitle { margin: 0 0 14px; font-size: 17px; letter-spacing: -.015em; }
.pattern-fields { margin-top: -4px; margin-bottom: 17px; }
.source-note { overflow-wrap: anywhere; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px !important; line-height: 1.5; }
.material-diagram { display: block; width: 100%; height: 320px; margin-top: 4px; overflow: visible; }
.material-diagram .dimension-lines line { stroke: #75503a; stroke-width: 1.5; }
.material-diagram .dimension-lines text,
.material-diagram .diagram-count {
  fill: #3f2d22;
  font-size: 14px;
  font-weight: 850;
  paint-order: stroke;
  stroke: #fff8f0;
  stroke-width: 7px;
  stroke-linejoin: round;
}
.material-diagram .dimension-control { cursor: pointer; outline: none; }
.material-diagram .dimension-control:hover text,
.material-diagram .dimension-control:focus-visible text { fill: var(--brand); }
.preset.is-selected { background: var(--accent-soft); border-color: #c89469; color: var(--brand-dark); }
.interactive-table tbody tr[tabindex] { cursor: pointer; transition: background .14s ease, box-shadow .14s ease; }
.interactive-table tbody tr[tabindex]:focus-visible { outline: 3px solid rgba(201,122,61,.24); outline-offset: -3px; }
.interactive-table tbody tr.is-selected-row { background: #f6e8d9; }
.calc-example-visual--board::before {
  content:'';
  position:absolute;
  left:11px;
  right:11px;
  top:30px;
  height:16px;
  background: linear-gradient(180deg,#b97843,#80502f);
  box-shadow: 7px -7px 0 #d9b181, 14px -14px 0 #c89563;
  transform: skewY(-4deg);
  border-radius:3px;
}
.calc-example-visual--board-wide::before { height:20px; top:28px; }
.calc-example-visual--rebar::before {
  content:'';
  position:absolute;
  left:10px;
  right:10px;
  top:34px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(180deg,#aaa098,#5c5652,#837a73);
  box-shadow: 0 0 0 1px rgba(63,55,49,.2);
}
.calc-example-visual--rebar::after {
  content:'';
  position:absolute;
  left:18px;
  right:18px;
  top:31px;
  height:16px;
  background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(235,225,216,.72) 10px 13px, transparent 13px 22px);
}
.calc-example-visual--rebar-mid::before { height:14px; top:32px; }
.calc-example-visual--rebar-thick::before { height:18px; top:30px; }
.wallpaper-diagram [data-wallpaper-walls] { transition: opacity .18s ease; }
.wallpaper-diagram rect, .wallpaper-diagram path, .boards-diagram polygon, .rebar-diagram rect, .rebar-diagram line {
  transition: all .18s ease;
}

@media (min-width: 1000px) {
  .home-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .segmented.segmented--three { grid-template-columns: 1fr; }
  .material-diagram { height: 270px; margin-inline: 0; width: 100%; max-width: 100%; overflow: hidden; }
  .boards-diagram { height: 255px; }
  .rebar-diagram { height: 245px; }
  .wallpaper-diagram { height: 260px; }
}
