:root {
  --bg: #f4f8fc;
  --card: #fff;
  --ink: #102033;
  --muted: #5d6c7f;
  --line: #d9e3ef;
  --blue: #1f5eff;
  --blue2: #0b3fc7;
  --orange: #ff8a2a;
  --green: #12845f;
  --red: #d84b38;
  --warn: #b36b00;
  --shadow: 0 16px 42px rgba(20, 42, 72, .09);
  --radius: 18px;
  --max: 1240px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(31, 94, 255, .06) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(0deg, rgba(31, 94, 255, .045) 1px, transparent 1px) 0 0/44px 44px, radial-gradient(circle at 14% 0%, rgba(19, 168, 189, .14), transparent 34%), radial-gradient(circle at 88% 8%, rgba(255, 138, 42, .12), transparent 30%), var(--bg);
  line-height: 1.55
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select {
  font: inherit
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(185, 199, 216, .8)
}

.header-grid {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0d223d, #1f5eff);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(31, 94, 255, .18);
  position: relative
}

.logo-mark:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px) 0 0/8px 8px, linear-gradient(0deg, rgba(255, 255, 255, .15) 1px, transparent 1px) 0 0/8px 8px
}

.logo-mark span {
  position: relative;
  font-size: 17px
}

.logo-text strong {
  display: block;
  font-size: 18px;
  line-height: 1
}

.logo-text small {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #33475f;
  border: 1px solid transparent
}

.main-nav a:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--blue)
}

.main-nav a.active {
  background: #102033;
  color: #fff;
  border-color: #102033
}

.micro-badge {
  font-size: 12px;
  font-weight: 800;
  color: #23425f;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 11px;
  border-radius: 999px
}

.hero {
  padding: 34px 0 22px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch
}

.card,
.hero-copy,
.hero-panel,
.calc-shell,
.form-card,
.canvas-card,
.result-panel,
.seo-card,
.note-card,
.map-shell,
.findings-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(185, 199, 216, .82);
  box-shadow: var(--shadow);
  border-radius: var(--radius)
}

.hero-copy {
  padding: 32px;
  position: relative;
  overflow: hidden
}

.hero-copy:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(31, 94, 255, .18);
  border-radius: 50%
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17467d;
  background: #edf5ff;
  border: 1px solid #cfe1ff;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850
}

.kicker:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 42, .16)
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 18px 0 14px
}

.lead {
  font-size: 18px;
  color: #465a72;
  max-width: 780px;
  margin: 0
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 850;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .18s ease;
  min-height: 46px
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1242c9);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 94, 255, .22)
}

.btn-primary:hover {
  transform: translateY(-1px)
}

.btn-ghost {
  background: #fff;
  color: #102033;
  border: 1px solid var(--line)
}

.btn-soft {
  background: #eef4ff;
  color: #113b7a;
  border: 1px solid #cfe1ff
}

.btn-danger {
  background: #fff2ef;
  color: #a83225;
  border: 1px solid #ffd2ca
}

.hero-panel {
  padding: 22px
}

.blueprint-preview {
  min-height: 270px;
  border-radius: 16px;
  border: 1px solid #c8d5e4;
  background: linear-gradient(90deg, rgba(31, 94, 255, .11) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(0deg, rgba(31, 94, 255, .10) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(135deg, #f9fcff, #eef5ff);
  position: relative;
  overflow: hidden
}

.preview-shape {
  position: absolute;
  left: 18%;
  top: 24%;
  width: 58%;
  height: 42%;
  border: 9px solid #1f5eff;
  background: rgba(31, 94, 255, .08)
}

.preview-shape:before,
.preview-shape:after {
  content: "";
  position: absolute;
  background: #102033;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 1px #102033
}

.preview-shape:before {
  left: -16px;
  top: -16px
}

.preview-shape:after {
  right: -16px;
  bottom: -16px
}

.preview-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: #102033;
  color: #fff;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 850
}

.preview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px
}

.preview-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff
}

.preview-list b {
  display: block;
  font-size: 20px
}

.preview-list span {
  font-size: 12px;
  color: var(--muted)
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 32px
}

.type-card {
  padding: 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: .18s ease;
  position: relative;
  overflow: hidden
}

.type-card:hover {
  transform: translateY(-2px)
}

.type-card.active {
  border-color: #8dafff
}

.type-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef4ff;
  border: 1px solid #cfe1ff;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900
}

.type-card h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.03em
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.calc-shell {
  padding: 18px;
  margin-bottom: 34px
}

.calc-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 16px;
  margin-bottom: 16px
}

.calc-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.045em
}

.calc-title p {
  margin: 6px 0 0;
  color: var(--muted)
}

.calc-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start
}

.form-card {
  padding: 18px;
  box-shadow: none;
  position: sticky;
  top: 92px
}

.form-grid {
  display: grid;
  gap: 13px
}

.field {
  display: grid;
  gap: 6px
}

.field.inline {
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 850;
  color: #33475f
}

.field-note {
  font-size: 12px;
  color: var(--muted)
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdff;
  color: var(--ink);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
  outline: none
}

input:focus,
select:focus {
  border-color: #77a0ff;
  box-shadow: 0 0 0 4px rgba(31, 94, 255, .10);
  background: #fff
}

.checks {
  display: grid;
  gap: 8px
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff
}

.check input {
  width: 17px;
  height: 17px;
  min-height: auto;
  accent-color: var(--blue)
}

.check span {
  font-size: 14px;
  font-weight: 650;
  color: #33475f
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px
}

.form-actions .btn {
  width: 100%
}

.canvas-card {
  padding: 16px;
  box-shadow: none
}

.canvas-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.canvas-title b {
  display: block;
  font-size: 18px
}

.canvas-title span {
  font-size: 13px;
  color: var(--muted)
}

.tools {
  display: flex;
  gap: 7px;
  flex-wrap: wrap
}

.tool {
  border: 1px solid var(--line);
  background: #fff;
  color: #34475f;
  border-radius: 11px;
  padding: 9px 11px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer
}

.tool.active {
  background: #102033;
  border-color: #102033;
  color: #fff
}

.canvas-frame {
  border: 1px solid #c7d4e4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  min-height: 410px
}

.draw-canvas {
  display: block;
  width: 100%;
  height: 460px;
  touch-action: none;
  cursor: crosshair;
  background: #fff
}

.canvas-hint {
  padding: 11px 13px;
  border: 1px solid #cfe1ff;
  background: #f2f7ff;
  color: #315070;
  border-radius: 14px;
  margin-top: 12px;
  font-size: 13px
}

.result-panel {
  margin-top: 18px;
  padding: 18px;
  box-shadow: none
}

.result-panel h3 {
  margin: 0 0 14px;
  font-size: 24px
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px
}

.metric {
  background: #f7faff;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  padding: 13px
}

.metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 850
}

.metric b {
  display: block;
  font-size: 22px;
  letter-spacing: -.04em;
  margin-top: 4px
}

.metric.accent {
  background: #102033;
  color: #fff
}

.metric.accent b,
.metric.accent small {
  color: #fff
}

.recommendations {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.rec {
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  background: #fffdf9;
  padding: 13px
}

.rec strong {
  display: block
}

.rec p {
  margin: 4px 0 0;
  color: #596b80;
  font-size: 14px
}

.seo-card {
  padding: 28px;
  margin-bottom: 34px
}

.seo-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -.045em
}

.seo-card h3 {
  margin: 20px 0 8px
}

.seo-card p,
.seo-card li {
  color: #4c6076
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin: 16px 0 20px
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px
}

.content-table th,
.content-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  color: #31465d
}

.content-table th {
  background: #f4f8ff;
  color: #102033;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850
}

.overview-grid,
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 20px
}

.note-card {
  padding: 18px
}

.note-card b {
  display: block;
  margin-bottom: 8px
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.map-shell {
  padding: 18px;
  margin-bottom: 34px
}

.map-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px
}

.map-sidebar {
  display: grid;
  gap: 14px
}

.map-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px
}

.map-panel h3 {
  margin: 0 0 10px
}

.map-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.layer-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.mini-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px
}

.mini-btn.active {
  background: #102033;
  color: #fff
}

.map-canvas-wrap {
  position: relative
}

.findings-card {
  padding: 18px;
  box-shadow: none;
  margin-top: 18px
}

.finding {
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  background: #fff
}

.finding.error {
  border-left-color: var(--red);
  background: #fff8f6
}

.finding.warning {
  border-left-color: var(--warn);
  background: #fffaf2
}

.finding.ok {
  border-left-color: var(--green);
  background: #f6fffb
}

.finding b {
  display: block
}

.finding p {
  margin: 4px 0;
  color: #4d6177
}

.finding small {
  display: block;
  color: #6b7d91;
  margin-top: 4px
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
  padding: 28px 0;
  color: #5e7188;
  font-size: 14px
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.footer-links a {
  color: #244a7c;
  font-weight: 750
}

.print-sheet {
  display: none
}

.vue-fallback {
  padding: 30px;
  margin: 30px auto;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff
}

.pdf-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 51, .55);
  display: grid;
  place-items: center;
  z-index: 99
}

.pdf-box {
  max-width: 480px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow)
}

.pdf-box h3 {
  margin-top: 0
}

@media(max-width:1040px) {

  .hero-grid,
  .calc-layout,
  .map-layout {
    grid-template-columns: 1fr
  }

  .form-card {
    position: static
  }

  .type-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .container {
    padding: 0 14px
  }

  .hero-copy {
    padding: 24px
  }

  h1 {
    font-size: 36px
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .header-grid {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0
  }

  .header-cta {
    display: none
  }

  .type-grid,
  .overview-grid,
  .note-grid,
  .results-grid,
  .recommendations {
    grid-template-columns: 1fr
  }

  .field.inline {
    grid-template-columns: 1fr
  }

  .draw-canvas {
    height: 390px
  }

  .map-tools {
    grid-template-columns: 1fr
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm
  }

  body {
    background: #fff !important
  }

  body>*:not(.print-sheet) {
    display: none !important
  }

  .print-sheet {
    display: block !important
  }

  .print-sheet img {
    max-width: 100%;
    height: auto
  }

  .print-report {
    font-family: Arial, sans-serif
  }

  .print-report h1 {
    font-size: 24px;
    margin: 0 0 8px
  }

  .print-grid {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 14px
  }

  .print-card {
    border: 1px solid #ccd7e5;
    border-radius: 12px;
    padding: 10px
  }

  .print-card h3 {
    margin: 0 0 8px
  }

  .print-card table {
    width: 100%;
    border-collapse: collapse
  }

  .print-card td {
    border-bottom: 1px solid #edf2f7;
    padding: 5px;
    font-size: 11px
  }

  .print-card td:last-child {
    text-align: right;
    font-weight: 700
  }

  .print-find {
    font-size: 11px;
    margin: 4px 0;
    padding: 5px;
    border-left: 3px solid #ccc
  }

  .print-find.error {
    border-color: #d84b38
  }

  .print-find.warning {
    border-color: #b36b00
  }

  .print-find.ok {
    border-color: #12845f
  }
}

.hero-short {
  padding: 22px 0 16px
}

.compact-hero {
  padding: 26px 30px
}

.compact-hero h1 {
  font-size: clamp(30px, 4vw, 46px)
}

.compact-hero .lead {
  font-size: 16px;
  max-width: 920px
}

.compact-hero:after {
  display: none
}

.two-col-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px
}

.info-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff
}

.info-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -.03em
}

.info-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #4c6076
}

.info-panel li {
  margin: 0 0 6px
}

.mini-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #dbe7f4;
  color: #51657d;
  font-size: 14px;
  margin-top: 12px
}

.seo-card .table-wrap {
  display: block;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin: 16px 0 20px
}

.seo-card table.content-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  min-width: 720px
}

.seo-card .content-table thead {
  display: table-header-group
}

.seo-card .content-table tbody {
  display: table-row-group
}

.seo-card .content-table tr {
  display: table-row
}

.seo-card .content-table th,
.seo-card .content-table td {
  display: table-cell;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  color: #31465d
}

.seo-card .content-table th {
  background: #f4f8ff;
  color: #102033;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850
}

.seo-card .content-table tr:last-child td {
  border-bottom: 0
}

.overview-grid a.note-card {
  color: inherit;
  text-decoration: none
}

@media(max-width:900px) {
  .two-col-info {
    grid-template-columns: 1fr
  }
}

.cross-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px
}

.cross-links .note-card {
  display: block
}

.form-actions a.btn {
  width: 100%
}

@media(max-width:760px) {
  .cross-links {
    grid-template-columns: 1fr
  }
}


/* v15: fixed map controls and blog layout */
.map-panel .btn,
.map-panel .mini-btn {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere
}

.layer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.map-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px
}

#toolBox .field.inline {
  grid-template-columns: 1fr 1fr
}

.map-sidebar .form-actions {
  gap: 9px
}

.map-panel {
  overflow: hidden
}

.blog-hero {
  padding: 34px 0 20px
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 38px
}

.blog-card {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(185, 199, 216, .82);
  border-radius: 18px;
  box-shadow: var(--shadow)
}

.blog-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -.035em
}

.blog-card p {
  margin: 0 0 14px;
  color: #4c6076
}

.blog-card .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #5d6c7f;
  font-size: 13px
}

.article-layout {
  max-width: 980px;
  margin: 0 auto 42px;
  padding: 0 24px
}

.article-card {
  background: #fff;
  border: 1px solid rgba(185, 199, 216, .82);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px
}

.article-card h1 {
  font-size: clamp(34px, 4vw, 52px)
}

.article-card h2 {
  font-size: 30px;
  letter-spacing: -.04em;
  margin: 32px 0 12px
}

.article-card h3 {
  font-size: 22px;
  margin: 24px 0 10px
}

.article-card p,
.article-card li {
  color: #31465d
}

.article-card a {
  color: #0b3fc7;
  text-decoration: underline;
  text-underline-offset: 3px
}

.article-note {
  padding: 14px 16px;
  border: 1px solid #cfe1ff;
  background: #f2f7ff;
  border-radius: 14px;
  margin: 18px 0;
  color: #315070
}

.article-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0
}

.article-cta a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  text-decoration: none
}

.infographic {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fbfdff
}

.infographic svg {
  width: 100%;
  height: auto;
  display: block
}

.source-list {
  font-size: 14px
}

.source-list li {
  margin-bottom: 7px
}

.breadcrumb {
  font-size: 13px;
  color: #5d6c7f;
  margin: 16px 0
}

.breadcrumb a {
  color: #244a7c
}

.article-card .table-wrap {
  box-shadow: none
}

@media(max-width:760px) {

  .blog-grid,
  .article-cta {
    grid-template-columns: 1fr
  }

  .article-card {
    padding: 22px
  }

  .layer-tabs {
    grid-template-columns: 1fr
  }

  .map-tools {
    grid-template-columns: 1fr
  }

  #toolBox .field.inline {
    grid-template-columns: 1fr
  }
}


/* v16: blog article image placeholders and map useful block polish */
.article-image-placeholder {
  width: min(100%, 520px);
  aspect-ratio: 1/1;
  margin: 22px auto 28px;
  border: 1px dashed #b9c7d8;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  display: grid;
  place-items: center;
  text-align: center;
  color: #506278;
  overflow: hidden;
  position: relative
}

.article-image-placeholder div {
  position: relative;
  padding: 18px;
  font-weight: 850;
  color: #102033;
  font-size: 18px
}

.article-image-placeholder span {
  display: block;
  margin-top: 8px;
  font-weight: 500;
  color: #5d6c7f;
  font-size: 14px
}

.map-useful .overview-grid {
  margin-top: 18px
}

.map-useful .table-wrap {
  box-shadow: none
}

.article-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(max-width:640px) {
  .article-image-placeholder {
    width: 100%
  }

  .article-image-placeholder div {
    font-size: 16px
  }
}


/* v17: calculator resize handles, article image and mobile safeguards */
html,
body {
  max-width: 100%;
  overflow-x: hidden
}

.draw-canvas,
canvas {
  max-width: 100%
}

.article-image-placeholder {
  width: 100% !important;
  max-width: 760px !important;
  aspect-ratio: 16/9 !important;
  margin: 22px auto 28px !important
}

.article-image-placeholder::before {
  inset: 14px !important
}

.article-image-placeholder div {
  font-size: 17px !important
}

.article-image-placeholder span {
  font-size: 13px !important
}

.calc-layout,
.map-layout,
.hero-grid {
  min-width: 0
}

.canvas-card,
.canvas-frame,
.map-shell,
.calc-shell,
.form-card,
.article-card,
.seo-card {
  min-width: 0
}

.main-nav a,
.btn,
.tool,
.mini-btn {
  white-space: normal;
  text-align: center
}

@media(max-width:1040px) {

  .hero-grid,
  .calc-layout,
  .map-layout {
    grid-template-columns: 1fr !important
  }

  .form-card {
    position: static !important;
    top: auto !important
  }

  .canvas-frame {
    min-height: 340px !important
  }
}

@media(max-width:760px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important
  }

  .site-header {
    position: relative !important
  }

  .header-grid {
    gap: 12px !important
  }

  .logo {
    min-width: 0 !important
  }

  .main-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 7px !important
  }

  .main-nav a {
    padding: 10px 8px !important;
    font-size: 12px !important
  }

  .hero {
    padding: 22px 0 16px !important
  }

  .hero-copy {
    padding: 22px !important
  }

  .hero-panel {
    display: none !important
  }

  h1 {
    font-size: clamp(30px, 10vw, 38px) !important;
    line-height: 1.05 !important
  }

  .lead {
    font-size: 16px !important
  }

  .calc-head {
    display: block !important
  }

  .calc-head .btn {
    width: 100%;
    margin-top: 12px
  }

  .field.inline,
  #toolBox .field.inline {
    grid-template-columns: 1fr !important
  }

  .tools,
  .layer-tabs,
  .map-tools {
    display: grid !important;
    grid-template-columns: 1fr !important
  }

  .form-actions .btn,
  .map-panel .btn {
    min-height: 44px !important
  }

  .draw-canvas {
    height: 360px !important
  }

  .results-grid {
    grid-template-columns: 1fr 1fr !important
  }

  .recommendations,
  .overview-grid,
  .note-grid,
  .article-cta,
  .blog-grid {
    grid-template-columns: 1fr !important
  }

  .content-table {
    min-width: 560px !important
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .article-layout {
    padding: 0 14px !important;
    margin-bottom: 28px !important
  }

  .article-card {
    padding: 20px !important;
    border-radius: 16px !important
  }

  .article-card h1 {
    font-size: clamp(30px, 9vw, 38px) !important
  }

  .article-card h2 {
    font-size: 24px !important
  }

  .article-image-placeholder {
    aspect-ratio: 16/9 !important;
    width: 100% !important;
    margin: 18px 0 22px !important
  }

  .infographic {
    overflow-x: auto !important
  }

  .footer-grid {
    display: block !important;
    text-align: left !important
  }

  .footer-links {
    margin-top: 12px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important
  }
}

@media(max-width:420px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important
  }

  .main-nav {
    grid-template-columns: 1fr !important
  }

  .results-grid {
    grid-template-columns: 1fr !important
  }

  .content-table {
    min-width: 520px !important
  }

  .kicker {
    font-size: 10px !important;
    letter-spacing: .08em !important
  }
}

/* v18 search articles */
.article-card .article-cta {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px
}

.article-card .article-cta::before {
  content: "Полезные инструменты после изучения норм";
  grid-column: 1/-1;
  font-weight: 900;
  color: #102033;
  margin-bottom: -4px
}

.article-card .lead {
  max-width: 820px
}

@media(max-width:720px) {
  .article-card .article-cta::before {
    margin-bottom: 0
  }

  .article-image-placeholder {
    max-width: 100% !important
  }
}


/* v19: боевой промо-блок, читабельные статьи, PDF-ready layout */
.preview-list div {
  position: relative;
  padding-left: 42px;
  min-height: 76px
}

.preview-list div::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: #eef4ff;
  border: 1px solid #cfe1ff;
  box-shadow: inset 0 0 0 4px rgba(31, 94, 255, .08)
}

.preview-list div:nth-child(1)::before {
  background: #fff7ef;
  border-color: #ffd6ba
}

.preview-list div:nth-child(2)::before {
  background: #effbf7;
  border-color: #bfe9d7
}

.preview-list div:nth-child(3)::before {
  background: #f2f7ff;
  border-color: #cfe1ff
}

.preview-list b {
  font-size: 17px;
  line-height: 1.15
}

.preview-list span {
  display: block;
  margin-top: 4px;
  line-height: 1.25
}

.norm-quote {
  margin: 24px 0 16px;
  padding: 18px 20px;
  border: 1px solid #cfe1ff;
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  background: #f4f8ff;
  color: #273f5b;
  font-size: 16px
}

.norm-quote b {
  display: block;
  color: #102033;
  margin-bottom: 6px
}

.norm-quote p {
  margin: 0;
  color: #31465d
}

.plain-box {
  margin: 16px 0 24px;
  padding: 20px;
  border: 1px solid #dbe7f4;
  border-radius: 16px;
  background: #fffdf8;
  border-left: 5px solid var(--orange)
}

.plain-box h2,
.plain-box h3 {
  margin-top: 0 !important
}

.plain-box p:last-child {
  margin-bottom: 0
}

.plain-box ul {
  margin-top: 8px
}

.article-card .lead+.article-image-placeholder {
  margin-top: 26px
}

.article-card p {
  font-size: 16px;
  line-height: 1.72
}

.article-card li {
  margin-bottom: 7px;
  line-height: 1.65
}

.article-card .table-wrap {
  margin: 22px 0
}

.article-card .source-list {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 16px 34px
}

.article-card .article-image-placeholder {
  max-height: 380px
}

@media(max-width:760px) {
  .preview-list div {
    padding-left: 38px
  }

  .article-card p {
    font-size: 15px;
    line-height: 1.65
  }

  .norm-quote,
  .plain-box {
    padding: 16px
  }

  .article-card .source-list {
    padding-left: 28px
  }
}

/* v20: cleaner map tools and safer downloads */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px
}

.object-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px
}

.object-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: #102033;
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
  padding: 8px 10px;
  transition: .18s ease;
  text-align: center
}

.object-chip:hover {
  border-color: var(--blue);
  color: var(--blue)
}

.object-chip.active {
  background: #102033;
  border-color: #102033;
  color: #fff
}

.map-mode-note {
  padding: 10px 12px;
  border: 1px solid #dbe7f7;
  background: #f7faff;
  border-radius: 14px;
  margin: 8px 0 12px;
  line-height: 1.45
}

.map-dim-grid {
  margin-top: 4px
}

.form-actions .btn:only-child {
  width: 100%
}

@media(max-width:640px) {

  .mode-tabs,
  .object-chip-grid {
    grid-template-columns: 1fr
  }

  .map-dim-grid {
    grid-template-columns: 1fr !important
  }

  .object-chip {
    min-height: 40px
  }

  .map-panel {
    padding: 14px
  }

  .btn {
    white-space: normal
  }
}

/* Final copy/audit polish */
.article-image-placeholder span {
  font-style: normal !important
}

.vue-fallback h1 {
  font-size: 30px;
  margin-top: 0
}

.vue-fallback p {
  color: var(--muted)
}

@media(max-width:640px) {
  .hero-actions .btn {
    width: 100%
  }

  .calc-head .btn {
    width: 100%;
    margin-top: 10px
  }

  .calc-head {
    align-items: stretch
  }

  .article-card .lead {
    font-size: 16px
  }

  .blog-card h2 {
    font-size: 22px
  }
}

/* v22 UX fixes */
.table-wrap th,
.content-table th {
  background: #f4f8ff !important;
  color: #102033 !important;
  box-shadow: none !important
}

.object-tools {
  grid-template-columns: 1fr !important
}

.object-tools .mini-btn {
  border-radius: 999px;
  min-height: 38px
}

@media(min-width:760px) {
  .object-tools {
    grid-template-columns: 1fr 1fr !important
  }

  .object-tools .mini-btn:first-child {
    grid-column: 1/-1
  }
}

.table-summary {
  margin: 14px 0 22px;
  padding: 14px 16px;
  border: 1px solid #cfe1ff;
  background: #f7faff;
  border-radius: 14px;
  color: #31465d
}

.table-summary b {
  color: #102033
}

.table-summary a {
  color: #0b3fc7;
  text-decoration: underline;
  text-underline-offset: 3px
}