:root {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --ink: #151b24;
  --muted: #5d6570;
  --line: #dfe3e8;
  --brand: #9d0b32;
  --brand-dark: #7d0828;
  --soft-brand: #f7e8ed;
  --shadow: 0 15px 38px rgba(21, 27, 36, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 62% 16%, #ffffff 0 24%, rgba(248, 249, 250, 0) 44%), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header,
.hero,
.section,
.bottom-strip {
  width: min(964px, calc(100% - 60px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 28px;
  height: 28px;
  border: 6px solid var(--brand);
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin-left: 76px;
  font-size: 12px;
  font-weight: 650;
}

.site-nav a {
  padding: 12px 0;
}

.site-nav a:hover,
.site-nav a.active,
.section-head a:hover,
.article-card a:hover,
.project-card a:hover {
  color: var(--brand);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta {
  width: 120px;
  min-width: 120px;
  padding: 0 14px;
  background: var(--brand-dark);
  color: white;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(125, 8, 40, 0.18);
}

.mini-icon,
.line-icon,
.project-icon {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: 462px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  align-items: start;
  gap: 28px;
  padding: 0 0 12px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin-top: 22px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.34;
  letter-spacing: 0;
}

.lead {
  max-width: 382px;
  color: #303844;
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
}

.btn.primary {
  width: 220px;
  min-width: 220px;
  padding: 0 12px;
  background: linear-gradient(135deg, var(--brand), #b70e3a);
  color: white;
}

.btn.secondary {
  width: 158px;
  min-width: 158px;
  padding: 0 12px;
  background: white;
  border-color: #c9ced5;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 24px;
  margin-top: 54px;
  font-size: 10px;
  color: #29313b;
}

.trust-row div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 96px;
  white-space: nowrap;
}

.trust-row strong,
.trust-row small {
  display: block;
  font-weight: 500;
}

.trust-row small {
  color: var(--muted);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: 190px;
  top: 31px;
  width: 330px;
  height: 360px;
  pointer-events: none;
}

.hero-visual .house {
  width: 325px;
  margin-left: 8px;
  filter: drop-shadow(0 20px 26px rgba(15, 23, 42, 0.12));
}

.hero-visual .blocks {
  position: absolute;
  width: 205px;
  right: 36px;
  bottom: -50px;
  filter: drop-shadow(0 24px 24px rgba(15, 23, 42, 0.18));
}

.calculator {
  position: relative;
  z-index: 3;
  width: 288px;
  padding: 20px 24px 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator h2 {
  margin-bottom: 17px;
  font-size: 16px;
}

.calculator label {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  color: #3f4751;
  font-size: 12px;
}

select,
input {
  width: 100%;
  height: 31px;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 0 12px;
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 30px 30px;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 6px;
}

.stepper input {
  border: 0;
}

.stepper button {
  border: 0;
  border-left: 1px solid #d9dee5;
  background: white;
  color: #303844;
  font-size: 17px;
  cursor: pointer;
}

.calc-result {
  display: block;
  margin: 10px 0 10px;
  padding: 13px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
}

.calc-result span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 750;
}

.calc-result strong {
  display: block;
  font-size: 31px;
  line-height: 1.1;
}

.thermal-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.thermal-result div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e0e5eb;
  border-radius: 7px;
  background: #f8fafc;
}

.thermal-result span,
.thermal-result small {
  display: block;
  color: #667285;
  font-size: 10px;
  line-height: 1.25;
}

.thermal-result strong {
  display: block;
  margin: 3px 0 1px;
  color: #151b24;
  font-size: 21px;
  line-height: 1;
}

.thermal-result p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7e8ed;
  color: #7d0828;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.thermal-result p.meets-standard {
  background: #e9f7ef;
  color: #146c43;
}

.thermal-values {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e0e5eb;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f8fafc;
}

.thermal-values span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #4b5562;
  font-size: 11px;
  white-space: nowrap;
}

.thermal-values strong {
  color: #151b24;
  font-size: 17px;
  line-height: 1;
}

.energy-scale {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  padding: 0;
  border: 1px solid #e0e5eb;
  border-radius: 0 0 7px 7px;
  background: white;
}

.energy-scale span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e0e5eb;
  color: #667285;
  font-size: 11px;
  font-weight: 850;
}

.energy-scale span:first-child {
  border-left: 0;
}

.energy-scale span.active {
  background: var(--brand);
  color: white;
}

.thermal-result > div:not(.thermal-values):not(.energy-scale) {
  display: none;
}

.thermal-result > p {
  margin-top: 7px;
  text-align: center;
}

.btn.full {
  width: 100%;
  min-width: 0;
  min-height: 43px;
}

.note {
  margin: 10px 0 0;
  color: #8a929d;
  font-size: 12px;
}

.section {
  padding: 10px 0;
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.18;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.section-head a,
.article-card a,
.project-card a {
  color: var(--brand);
  font-size: 14px;
  font-weight: 850;
}

.project-card a {
  font-size: 12px;
}

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

.article-card,
.project-card,
.reasons {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-card {
  overflow: hidden;
  height: 278px;
  min-height: 0;
}

.article-card img {
  width: 100%;
  height: 106px;
  object-fit: cover;
}

.article-card > *:not(img) {
  margin-left: 14px;
  margin-right: 14px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 10px;
  color: #7a838f;
  font-size: 9px;
}

.article-meta span {
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--brand);
  color: white;
  font-size: 9px;
  font-weight: 850;
}

.article-card h3 {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.article-card p {
  color: #3f4751;
  font-size: 12px;
}

.article-card a {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  height: 200px;
  min-height: 0;
  padding: 23px 128px 20px 22px;
  overflow: hidden;
}

.project-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.project-card p {
  color: #3f4751;
  font-size: 12px;
}

.project-card img {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 155px;
}

.reasons {
  height: 134px;
  overflow: hidden;
  padding: 14px 18px 16px;
}

.reasons h2 {
  margin-bottom: 10px;
}

.reason-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.reason-row div {
  min-height: 62px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.reason-row div:first-child {
  border-left: 0;
}

.reason-row span {
  display: block;
  color: var(--brand);
  font-size: 22px;
}

.reason-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.reason-row p {
  margin: 0;
  color: #4a535f;
  font-size: 9px;
  line-height: 1.35;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(190px, 1fr) 350px;
  gap: 20px;
  height: auto;
  min-height: 156px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #b30d3a 0%, var(--brand-dark) 64%, #edf0f3 64%);
  color: white;
}

.section.cta {
  height: auto;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 24px;
}

.cta-panel > * {
  min-width: 0;
  min-height: 0;
}

.cta-copy {
  padding: 20px 0 18px 26px;
}

.cta-copy h2 {
  margin-bottom: 6px;
  font-size: 24px;
  white-space: nowrap;
}

.cta-copy p {
  max-width: 410px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-list {
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.cta-list li {
  margin: 8px 0;
}

.cta-panel img {
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn.cta-btn,
.btn.ghost {
  min-width: 170px;
  min-height: 40px;
  padding: 0 18px;
  border-color: rgba(255, 255, 255, 0.36);
  color: white;
}

.btn.cta-btn {
  background: #d3184d;
}

.btn.ghost {
  background: transparent;
}

.cta .cta-actions {
  gap: 14px;
  margin-top: 18px;
}

.bottom-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.section.cta + .bottom-strip {
  margin-top: 24px;
}

.reasons {
  height: auto;
  overflow: visible;
  padding: clamp(24px, 2.6vw, 34px);
}

.reasons h2,
.reasons > h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 2.5vw, 40px);
}

.reason-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.reason-row div {
  min-height: 150px;
  padding: 18px 18px 16px;
  border-left: 1px solid var(--line);
}

.reason-row div:first-child {
  border-left: 0;
}

.reason-row span {
  margin-bottom: 10px;
  font-size: 24px;
}

.reason-row strong {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.reason-row p {
  color: #4a535f;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .reason-row {
    grid-template-columns: 1fr;
  }

  .reason-row div {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .reason-row div:first-child {
    border-top: 0;
  }
}

.bottom-strip div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}

.bottom-strip span {
  grid-row: span 2;
  color: var(--ink);
  font-size: 26px;
}

.bottom-strip strong {
  display: block;
  font-size: 12px;
}

.bottom-strip small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    z-index: 10;
    top: 74px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: min(440px, 100%);
    height: 330px;
    order: 2;
    margin-top: 8px;
  }

  .calculator {
    width: min(520px, 100%);
    order: 3;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 42px;
    font-size: 12px;
  }

  .article-grid,
  .bottom-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .reason-row,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding-right: 220px;
  }

  .reason-row div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0;
  }

  .reason-row div:first-child {
    border-top: 0;
  }

  .cta-panel {
    background: linear-gradient(135deg, #b30d3a, var(--brand-dark));
  }

  .cta-copy,
  .cta-list {
    padding-inline: 26px;
  }

  .cta-list {
    padding-bottom: 4px;
  }

  .cta-panel img {
    height: 210px;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .bottom-strip {
    width: min(100% - 28px, 964px);
  }

  .site-header {
    min-height: 74px;
    gap: 12px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 9px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .btn.primary,
  .btn.secondary {
    width: 100%;
    min-width: 0;
  }

  .trust-row,
  .article-grid,
  .project-grid,
  .bottom-strip {
    grid-template-columns: 1fr;
  }

  .trust-row {
    gap: 18px;
    margin-top: 34px;
  }

  .trust-row div {
    grid-template-columns: 24px 1fr;
  }

  .hero-visual {
    height: 280px;
  }

  .hero-visual .house {
    width: 300px;
  }

  .hero-visual .blocks {
    width: 235px;
    right: 10px;
  }

  .calculator {
    padding: 22px;
  }

  .calculator label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    min-height: 380px;
    padding: 24px;
  }

  .project-card img {
    right: 12px;
    width: min(260px, 72%);
  }

  .cta-copy {
    padding-top: 24px;
  }

  .cta-copy h2 {
    font-size: 26px;
  }

  .cta-actions {
    margin-top: 24px;
  }
}

/* Article detail demo */
.article-page .site-header,
.article-page .section,
.article-page .bottom-strip {
  width: min(925px, calc(100% - 64px));
}

.article-page .article-layout {
  width: min(830px, calc(100% - 64px));
}

.article-page .site-nav {
  margin-left: 86px;
}

.article-hero {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  color: white;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 16, 24, 0.78), rgba(11, 16, 24, 0.42) 42%, rgba(11, 16, 24, 0.06));
}

.article-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.article-hero-copy {
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 50%;
  width: min(925px, calc(100% - 64px));
  transform: translateX(-50%);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 12px;
}

.article-hero-meta span {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--brand);
  font-size: 10px;
  font-weight: 850;
}

.article-hero h1 {
  max-width: 460px;
  margin-bottom: 18px;
  color: white;
  font-size: 36px;
  line-height: 1.18;
}

.article-hero p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.58;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 70px;
  margin: 30px auto 22px;
}

.article-content {
  font-size: 12px;
  line-height: 1.45;
}

.article-content > p:first-child {
  margin-bottom: 18px;
  font-size: 13px;
}

.article-content h2 {
  margin: 15px 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.check-list {
  display: grid;
  gap: 4px;
  margin: 5px 0 13px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.price-table-wrap {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #d2d7de;
  border-radius: 5px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.price-table th {
  padding: 7px 12px;
  background: var(--brand);
  color: white;
  text-align: left;
}

.price-table td {
  padding: 5px 12px;
  border-top: 1px solid #dfe3e8;
}

.price-table th:first-child,
.price-table td:first-child {
  white-space: nowrap;
}

.price-table td + td,
.price-table th + th {
  border-left: 1px solid #dfe3e8;
}

.article-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 10px 13px;
  border-radius: 5px;
  background: #f0f1f3;
  color: #3f4751;
  font-size: 11px;
}

.article-note span {
  color: var(--brand);
  font-weight: 850;
}

.article-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.toc-card,
.side-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.toc-card {
  padding: 17px 20px;
  background: #f8e4ea;
}

.toc-card h2,
.side-card h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.toc-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.toc-card a:hover {
  color: var(--brand);
}

.side-card {
  padding: 18px 20px;
  background: white;
}

.side-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.side-card p {
  margin-bottom: 14px;
  color: #3f4751;
  font-size: 11px;
}

.side-card .btn {
  min-height: 42px;
  font-size: 12px;
}

.article-page .related-articles {
  margin-top: -22px;
}

.article-page .related-articles .article-card {
  height: 180px;
}

.article-page .related-articles .article-card img {
  height: 76px;
}

.article-page .related-articles .article-card h3 {
  margin-bottom: 0;
  font-size: 13px;
}

.article-page .related-articles .article-card p {
  display: none;
}

.article-page .related-articles .article-card a {
  margin-top: 12px;
}

.article-page .section.cta {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .article-page .site-header,
  .article-page .section,
  .article-page .bottom-strip {
    width: min(100% - 32px, 925px);
  }

  .article-page .article-layout {
    width: min(100% - 32px, 830px);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-hero-copy {
    width: min(100% - 32px, 860px);
  }

  .article-hero h1 {
    font-size: 31px;
  }
}

/* Contact page demo */
.contact-page .site-header,
.contact-page .contact-hero,
.contact-page .contact-layout,
.contact-page .contact-benefits,
.contact-page .contact-project-cta,
.contact-page .bottom-strip {
  width: min(1000px, calc(100% - 52px));
  margin-inline: auto;
}

.contact-page .site-nav {
  margin-left: 88px;
}

.contact-hero {
  position: relative;
  min-height: 208px;
  display: grid;
  grid-template-columns: minmax(0, 410px) 1fr;
  align-items: center;
  overflow: hidden;
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #5b6470;
  font-size: 13px;
}

.breadcrumbs strong {
  color: var(--brand);
}

.contact-hero h1 {
  margin-bottom: 8px;
  font-size: 48px;
  line-height: 1.05;
}

.contact-hero p {
  max-width: 380px;
  color: #37404b;
  font-size: 17px;
  line-height: 1.58;
}

.contact-hero img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 540px;
  height: 208px;
  object-fit: cover;
  object-position: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 22px;
  align-items: start;
  margin-top: 10px;
}

.contact-main {
  display: grid;
  gap: 20px;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.office-card,
.contact-form-card,
.contact-benefits,
.contact-project-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 34px rgba(21, 27, 36, 0.08);
}

.office-card {
  min-height: 320px;
  padding: 20px;
}

.office-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 7px;
  background: var(--brand);
  color: white;
  font-size: 28px;
}

.office-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.office-card p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin-bottom: 15px;
  color: #303844;
  font-size: 13px;
}

.office-card p span {
  color: var(--brand);
  font-size: 20px;
}

.office-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.office-actions .btn {
  min-width: 116px;
  min-height: 40px;
  font-size: 12px;
}

.office-actions .btn.secondary {
  width: 138px;
  min-width: 138px;
}

.map-card {
  height: 318px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 27, 36, 0.08);
  background: #dfe8e2;
}

.map-card img,
.interactive-map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(21, 27, 36, 0.16);
}

.leaflet-control-zoom a {
  color: #1f2933;
  font-weight: 800;
}

.map-marker {
  width: 28px;
  height: 28px;
  position: relative;
  display: block;
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 6px;
  background: var(--brand);
  box-shadow: 0 8px 16px rgba(125, 8, 40, 0.28);
}

.map-marker::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: white;
}

.leaflet-popup-content-wrapper {
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(21, 27, 36, 0.18);
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 13px;
}

.map-label {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(21, 27, 36, 0.18);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.map-label small {
  display: block;
  color: #4b5562;
  font-size: 10px;
  font-weight: 700;
}

.contact-form-card {
  min-height: 678px;
  padding: 28px;
}

.form-heading {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.form-heading > span {
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.form-heading h2 {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 20px;
}

.form-heading p {
  color: #4b5562;
  font-size: 13px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  position: relative;
  display: block;
}

.contact-form label span {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 13px;
  color: #8b94a0;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 0 16px 0 42px;
}

.contact-form select {
  padding-left: 16px;
}

.contact-form textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

.message-field span {
  top: 15px;
}

.contact-form .btn {
  min-height: 52px;
  margin-top: 16px;
  font-size: 16px;
}

.privacy-note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  margin: 22px 0 0;
  color: #67717e;
  font-size: 12px;
  line-height: 1.45;
}

.contact-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  height: 120px;
  overflow: hidden;
  align-items: center;
  padding: 18px 36px;
  box-shadow: none;
}

.contact-benefits div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.contact-benefits div:first-child {
  border-left: 0;
  padding-left: 0;
}

.contact-benefits span {
  grid-row: span 2;
  color: var(--brand);
  font-size: 36px;
}

.contact-benefits strong {
  font-size: 15px;
}

.contact-benefits p {
  margin: 0;
  color: #5a6470;
  font-size: 12px;
}

.contact-project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 440px;
  height: 176px;
  min-height: 176px;
  margin-top: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #b40b3a, var(--brand-dark));
  color: white;
}

.contact-project-copy {
  padding: 24px 30px;
}

.contact-project-copy h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.contact-project-copy p {
  max-width: 450px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.contact-project-actions {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.contact-project-actions .btn {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.34);
}

.contact-project-actions .btn.primary {
  width: 245px;
  min-width: 245px;
  background: #b70e3a;
}

.contact-project-actions .btn.ghost {
  width: 145px;
  min-width: 145px;
  color: white;
}

.contact-project-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-page .bottom-strip {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .contact-page .site-header,
  .contact-page .contact-hero,
  .contact-page .contact-layout,
  .contact-page .contact-benefits,
  .contact-page .contact-project-cta,
  .contact-page .bottom-strip {
    width: min(100% - 32px, 1000px);
  }

  .contact-hero {
    grid-template-columns: 1fr;
    min-height: 420px;
    align-items: start;
    padding-top: 34px;
  }

  .contact-hero img {
    width: 100%;
    opacity: 0.32;
  }

  .contact-layout,
  .office-grid,
  .contact-benefits,
  .contact-project-cta {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    min-height: 0;
  }

  .contact-benefits div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0;
  }

  .contact-benefits div:first-child {
    border-top: 0;
  }

  .contact-project-cta img {
    height: 210px;
  }
}

.site-nav li {
  list-style: none;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 12px;
  font-weight: 800;
}

/* Fluid layout refinements for the WordPress theme */
.site-header,
.hero,
.section,
.bottom-strip {
  width: min(1240px, calc(100% - clamp(32px, 6vw, 96px)));
}

.site-header {
  min-height: clamp(78px, 7vw, 104px);
  gap: clamp(18px, 3vw, 44px);
}

.site-nav {
  gap: clamp(18px, 2.1vw, 34px);
  margin-left: clamp(24px, 4vw, 72px);
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(440px, 0.95fr) minmax(300px, 360px);
  gap: clamp(32px, 6vw, 76px);
  padding-block: clamp(24px, 4vw, 56px) clamp(36px, 5vw, 68px);
}

.hero-copy {
  max-width: 580px;
}

h1 {
  font-size: clamp(34px, 3.1vw, 52px);
  line-height: 1.12;
}

.lead {
  max-width: 520px;
  font-size: clamp(15px, 1.1vw, 18px);
}

.hero-visual {
  right: clamp(260px, 29vw, 390px);
  top: clamp(42px, 6vw, 78px);
  width: clamp(360px, 30vw, 520px);
  height: clamp(380px, 31vw, 520px);
}

.hero-visual .house {
  width: clamp(340px, 29vw, 500px);
}

.hero-visual .blocks {
  width: clamp(220px, 19vw, 330px);
  right: clamp(4px, 3vw, 42px);
}

.calculator {
  width: min(100%, 360px);
  padding: clamp(22px, 2.2vw, 30px);
}

.section {
  padding-block: clamp(24px, 4vw, 56px);
}

.section-head {
  align-items: end;
  margin-bottom: clamp(18px, 2vw, 28px);
}

.section-head h1,
.section-head h2,
.projects > h2,
.reasons > h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.12;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  white-space: nowrap;
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(22px, 2.3vw, 34px);
  align-items: stretch;
}

.article-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: auto;
  min-height: clamp(380px, 34vw, 460px);
  padding: clamp(16px, 1.5vw, 22px);
  gap: 0;
  overflow: hidden;
}

.article-card-media {
  display: block;
  margin: 0 0 clamp(18px, 1.7vw, 24px) !important;
}

.article-card-media img,
.article-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.article-card > *:not(img):not(.article-card-media) {
  margin-left: 0;
  margin-right: 0;
}

.article-meta {
  margin: 0 0 16px;
  min-height: 24px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  line-height: 1;
}

.article-card h3 {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.32;
}

.article-card h3 a {
  color: var(--brand);
  font-size: inherit;
  line-height: inherit;
}

.article-card p {
  margin: 0 0 18px;
  color: #3f4751;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
}

.article-card .article-card-link {
  align-self: end;
  margin: 0;
  font-size: 14px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(22px, 2.5vw, 36px);
}

.project-card {
  height: auto;
  min-height: 260px;
  padding: clamp(24px, 2.4vw, 34px) clamp(150px, 13vw, 210px) clamp(24px, 2.4vw, 34px) clamp(24px, 2.4vw, 34px);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    width: min(560px, 100%);
    height: 400px;
    order: 2;
  }

  .calculator {
    order: 3;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .bottom-strip {
    width: min(100% - 28px, 1240px);
  }

  .article-card {
    min-height: 0;
  }
}

/* Polished desktop composition */
.brand strong {
  font-size: clamp(22px, 1.5vw, 28px);
  letter-spacing: 0;
}

.brand small {
  margin-top: 5px;
  color: #3b4350;
  font-size: clamp(11px, 0.75vw, 13px);
  line-height: 1.15;
  letter-spacing: 3px;
}

.hero {
  isolation: isolate;
  grid-template-columns: minmax(390px, 0.92fr) minmax(280px, 410px) minmax(320px, 360px);
  align-items: center;
  gap: clamp(28px, 3.5vw, 54px);
  padding-block: clamp(38px, 5vw, 76px) clamp(42px, 5vw, 74px);
}

.hero-copy {
  z-index: 3;
  max-width: 610px;
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: clamp(22px, 2.4vw, 34px);
  color: #171d28;
  font-size: clamp(46px, 4.15vw, 68px);
  line-height: 1.03;
  font-weight: 850;
}

.lead {
  color: #1f2937;
  font-size: clamp(17px, 1.18vw, 20px);
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  z-index: 1;
  right: auto;
  top: auto;
  width: 100%;
  height: clamp(420px, 35vw, 560px);
  order: initial;
  overflow: visible;
  pointer-events: none;
}

.hero-visual .house {
  width: min(100%, 410px);
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  object-position: left center;
  clip-path: inset(0 78px 0 0);
  filter: drop-shadow(0 22px 28px rgba(15, 23, 42, 0.1));
}

.hero-visual .blocks {
  width: clamp(245px, 22vw, 360px);
  right: clamp(-30px, -1.5vw, -12px);
  bottom: clamp(4px, 1vw, 18px);
}

.calculator {
  z-index: 4;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 58px rgba(21, 27, 36, 0.12);
}

.trust-row {
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(44px, 4.5vw, 70px);
  color: #1d2633;
  font-size: 12px;
}

.trust-row div {
  min-width: 0;
  white-space: normal;
}

.trust-row strong {
  font-weight: 800;
}

.trust-row small {
  margin-top: 2px;
  color: #384352;
  font-size: 11px;
}

.line-icon {
  font-size: 14px;
  line-height: 1.1;
}

.articles .section-head {
  position: relative;
  margin-top: 26px;
}

.articles .section-head::before {
  content: "NAUJAUSIAI IS NEOPORO";
  position: absolute;
  left: 0;
  top: -28px;
  color: #2f2530;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 5px;
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.article-card {
  min-height: 600px;
  padding: 0;
  border-color: #eadfe3;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(65, 35, 47, 0.06);
}

.article-card:first-child {
  border-color: #1f1720;
}

.article-card-media {
  margin: 0 !important;
}

.article-card-media img,
.article-card > img {
  aspect-ratio: 16 / 11;
  border-radius: 18px 18px 0 0;
}

.article-card > *:not(img):not(.article-card-media) {
  margin-left: clamp(24px, 2vw, 34px);
  margin-right: clamp(24px, 2vw, 34px);
}

.article-meta {
  display: flex;
  justify-content: flex-start;
  gap: clamp(18px, 1.8vw, 34px);
  margin-top: 28px;
  margin-bottom: 28px;
  color: #8b7782;
  font-size: 14px;
  font-weight: 750;
}

.article-meta span {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 14px;
  text-transform: none;
}

.article-meta span:last-child {
  color: #9b8792;
}

.article-card h3 {
  margin-bottom: 22px;
  font-size: clamp(22px, 1.55vw, 28px);
  line-height: 1.18;
}

.article-card h3 a {
  color: #2a1b25;
}

.article-card p {
  color: #6c5964;
  font-size: clamp(16px, 1.08vw, 18px);
  line-height: 1.65;
}

.article-card .article-card-link {
  margin-bottom: 32px;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 850;
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  }

  .hero-visual {
    display: none;
  }
}

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

  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card {
    min-height: 0;
  }
}

/* Front page final polish */
body.home,
body.front-page {
  background:
    radial-gradient(circle at 56% 8%, rgba(255, 255, 255, 0.98) 0 22%, rgba(248, 249, 250, 0) 46%),
    #f8f9fa;
}

body.home .site-header,
body.home .hero,
body.home .section,
body.home .bottom-strip,
body.front-page .site-header,
body.front-page .hero,
body.front-page .section,
body.front-page .bottom-strip {
  width: min(1320px, calc(100% - clamp(32px, 5.4vw, 96px)));
}

body.home .site-header,
body.front-page .site-header {
  min-height: 92px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

body.home .brand-mark,
body.front-page .brand-mark {
  width: 34px;
  height: 34px;
}

body.home .brand strong,
body.front-page .brand strong {
  font-size: 26px;
  line-height: 0.95;
}

body.home .brand small,
body.front-page .brand small {
  color: #2e3744;
  font-size: 12px;
  letter-spacing: 3.4px;
}

body.home .site-nav,
body.front-page .site-nav {
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  margin-left: 0;
  font-size: 14px;
  font-weight: 800;
}

body.home .header-cta,
body.front-page .header-cta {
  width: auto;
  min-width: 154px;
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 8px;
  background: #9b0731;
  font-size: 15px;
}

body.home .hero,
body.front-page .hero {
  grid-template-columns: minmax(430px, 1.05fr) minmax(300px, 390px) minmax(330px, 370px);
  gap: clamp(28px, 3.3vw, 50px);
  align-items: center;
  padding-block: clamp(44px, 5.4vw, 82px) clamp(48px, 5.2vw, 80px);
}

body.home .hero-copy,
body.front-page .hero-copy {
  max-width: 640px;
}

body.home .eyebrow,
body.front-page .eyebrow {
  margin-bottom: 24px;
  font-size: 15px;
  letter-spacing: 0;
}

body.home .hero-copy h1,
body.front-page .hero-copy h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(48px, 4.05vw, 70px);
  line-height: 1.03;
}

body.home .lead,
body.front-page .lead {
  max-width: 590px;
  color: #202a37;
  font-size: clamp(17px, 1.18vw, 20px);
  line-height: 1.75;
}

body.home .hero-actions,
body.front-page .hero-actions {
  gap: 20px;
  margin-top: 36px;
}

body.home .btn.primary,
body.front-page .btn.primary {
  width: auto;
  min-width: 236px;
  min-height: 56px;
  padding-inline: 22px;
  border-radius: 8px;
  background: #b50b3d;
  font-size: 15px;
}

body.home .btn.secondary,
body.front-page .btn.secondary {
  width: auto;
  min-width: 180px;
  min-height: 56px;
  padding-inline: 22px;
  border-color: #cdd4dd;
  border-radius: 8px;
  color: #121927;
  font-size: 15px;
}

body.home .hero-visual,
body.front-page .hero-visual {
  display: block;
  position: relative;
  width: 100%;
  height: clamp(440px, 36vw, 560px);
  overflow: visible;
}

body.home .hero-visual .house,
body.front-page .hero-visual .house {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  clip-path: none;
  border-radius: 0;
}

body.home .hero-visual .blocks,
body.front-page .hero-visual .blocks {
  width: clamp(250px, 21vw, 340px);
  right: -18px;
  bottom: 18px;
}

body.home .calculator,
body.front-page .calculator {
  max-width: 370px;
  padding: 30px;
  border: 1px solid rgba(223, 227, 232, 0.72);
  border-radius: 10px;
}

body.home .calculator h2,
body.front-page .calculator h2 {
  margin-bottom: 24px;
  font-size: 19px;
}

body.home .calculator label,
body.front-page .calculator label {
  grid-template-columns: 92px 1fr;
  gap: 14px;
  margin-bottom: 13px;
  color: #273141;
  font-size: 13px;
}

body.home select,
body.home input,
body.front-page select,
body.front-page input {
  height: 38px;
  font-size: 13px;
}

body.home .calc-result,
body.front-page .calc-result {
  margin-block: 18px 10px;
  padding: 17px;
  border-radius: 8px;
}

body.home .calc-result strong,
body.front-page .calc-result strong {
  font-size: 36px;
}

body.home .note,
body.front-page .note {
  color: #667285;
  font-size: 13px;
}

body.home .trust-row,
body.front-page .trust-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  max-width: 560px;
  margin-top: 46px;
  color: #182231;
  font-size: 13px;
}

body.home .trust-row div,
body.front-page .trust-row div {
  gap: 12px;
}

body.home .trust-row strong,
body.front-page .trust-row strong {
  font-size: 13px;
}

body.home .trust-row small,
body.front-page .trust-row small {
  color: #334155;
  font-size: 12px;
}

body.home .articles,
body.front-page .articles {
  padding-top: clamp(42px, 5vw, 74px);
}

body.home .articles .section-head,
body.front-page .articles .section-head {
  margin-top: 28px;
  margin-bottom: 28px;
}

body.home .articles .section-head::before,
body.front-page .articles .section-head::before {
  top: -31px;
  color: #251d26;
  font-size: 13px;
  letter-spacing: 5.5px;
}

body.home .section-head h2,
body.front-page .section-head h2 {
  font-size: clamp(34px, 3vw, 48px);
}

body.home .section-head a,
body.front-page .section-head a {
  color: #8f1736;
  font-size: 16px;
  font-weight: 850;
}

body.home .article-grid,
body.front-page .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 38px);
}

body.home .article-card,
body.front-page .article-card {
  min-height: 610px;
  border-radius: 18px;
  background: #fff;
}

body.home .article-card-media img,
body.front-page .article-card-media img {
  aspect-ratio: 16 / 11;
  border-radius: 18px 18px 0 0;
}

body.home .article-meta,
body.front-page .article-meta {
  flex-wrap: wrap;
  row-gap: 6px;
  margin-top: 28px;
  margin-bottom: 24px;
}

body.home .article-card h3,
body.front-page .article-card h3 {
  margin-bottom: 22px;
}

body.home .article-card p,
body.front-page .article-card p {
  max-width: 34ch;
}

body.home .projects,
body.front-page .projects {
  padding-top: clamp(56px, 6vw, 86px);
}

body.home .projects > h2,
body.front-page .projects > h2 {
  margin-bottom: 26px;
}

body.home .project-grid,
body.front-page .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 36px);
}

body.home .project-card,
body.front-page .project-card {
  min-height: 300px;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(21, 27, 36, 0.06);
}

@media (max-width: 1220px) {
  body.home .hero,
  body.front-page .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  }

  body.home .hero-visual,
  body.front-page .hero-visual {
    display: none;
  }
}

@media (max-width: 980px) {
  body.home .article-grid,
  body.front-page .article-grid,
  body.home .project-grid,
  body.front-page .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home .site-header,
  body.home .hero,
  body.home .section,
  body.home .bottom-strip,
  body.front-page .site-header,
  body.front-page .hero,
  body.front-page .section,
  body.front-page .bottom-strip {
    width: min(100% - 28px, 1320px);
  }

  body.home .hero,
  body.front-page .hero,
  body.home .article-grid,
  body.front-page .article-grid,
  body.home .project-grid,
  body.front-page .project-grid {
    grid-template-columns: 1fr;
  }

  body.home .hero-copy h1,
  body.front-page .hero-copy h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  body.home .trust-row,
  body.front-page .trust-row {
    grid-template-columns: 1fr;
  }
}

/* Requested front page tightening */
body.home .site-header,
body.front-page .site-header {
  min-height: 76px;
  gap: clamp(18px, 2.4vw, 34px);
}

body.home .site-nav,
body.front-page .site-nav {
  justify-content: flex-start;
  gap: clamp(16px, 1.45vw, 25px);
  font-size: 13px;
}

body.home .hero,
body.front-page .hero {
  padding-block: clamp(28px, 3.8vw, 58px) clamp(42px, 4.8vw, 70px);
}

body.home .hero-copy h1,
body.front-page .hero-copy h1 {
  max-width: 480px;
  margin-bottom: 22px;
  font-size: clamp(34px, 2.78vw, 46px);
  line-height: 1.12;
}

body.home .lead,
body.front-page .lead {
  max-width: 520px;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.68;
}

body.home .hero-actions,
body.front-page .hero-actions {
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

body.home .hero-actions .btn,
body.front-page .hero-actions .btn {
  white-space: nowrap;
}

body.home .hero-actions .btn.primary,
body.front-page .hero-actions .btn.primary {
  min-width: 226px;
  min-height: 54px;
  padding-inline: 18px;
}

body.home .hero-actions .btn.secondary,
body.front-page .hero-actions .btn.secondary {
  width: auto;
  min-width: 172px;
  min-height: 54px;
  padding-inline: 18px;
}

body.home .hero-actions .btn.primary,
body.front-page .hero-actions .btn.primary {
  width: auto;
}

body.home .hero-actions .btn.secondary,
body.front-page .hero-actions .btn.secondary {
  width: auto;
}

body.home .trust-row,
body.front-page .trust-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

body.home .trust-row div,
body.front-page .trust-row div {
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5d9de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(21, 27, 36, 0.05);
}

body.home .line-icon,
body.front-page .line-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f7e8ed;
}

body.home .hero-visual .blocks,
body.front-page .hero-visual .blocks {
  display: none;
}

body.home .article-card,
body.front-page .article-card {
  min-height: 540px;
  border-radius: 14px;
}

body.home .article-card-media img,
body.front-page .article-card-media img {
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 0 0;
}

body.home .article-card > *:not(img):not(.article-card-media),
body.front-page .article-card > *:not(img):not(.article-card-media) {
  margin-left: clamp(20px, 1.65vw, 28px);
  margin-right: clamp(20px, 1.65vw, 28px);
}

body.home .article-meta,
body.front-page .article-meta {
  margin-top: 24px;
  margin-bottom: 18px;
  font-size: 13px;
}

body.home .article-meta span,
body.front-page .article-meta span {
  font-size: 13px;
}

body.home .article-card h3,
body.front-page .article-card h3 {
  margin-bottom: 16px;
  font-size: clamp(20px, 1.38vw, 24px);
}

body.home .article-card p,
body.front-page .article-card p {
  max-width: 36ch;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.55;
}

body.home .article-card .article-card-link,
body.front-page .article-card .article-card-link {
  margin-bottom: 26px;
}

@media (max-width: 720px) {
  body.home .hero-copy h1,
  body.front-page .hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  body.home .hero-actions,
  body.front-page .hero-actions {
    flex-wrap: wrap;
  }

  body.home .hero-actions .btn.primary,
  body.home .hero-actions .btn.secondary,
  body.front-page .hero-actions .btn.primary,
  body.front-page .hero-actions .btn.secondary {
    width: 100%;
    min-width: 0;
  }

  body.home .trust-row,
  body.front-page .trust-row {
    grid-template-columns: 1fr;
  }
}

/* Article page refinement */
body.article-page .article-hero {
  min-height: 300px;
}

body.article-page .article-hero-copy {
  width: min(100% - 48px, 980px);
}

body.article-page .article-hero h1 {
  max-width: 660px;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.08;
}

body.article-page .article-layout {
  width: min(1120px, calc(100% - 64px));
  grid-template-columns: minmax(0, 690px) 280px;
  gap: clamp(42px, 5vw, 84px);
  margin-top: 42px;
}

body.article-page .article-content {
  color: #121923;
  font-size: 17px;
  line-height: 1.75;
}

body.article-page .article-content > p:first-child {
  margin-bottom: 24px;
  color: #202a36;
  font-size: 18px;
  line-height: 1.7;
}

body.article-page .article-content p {
  margin: 0 0 20px;
}

body.article-page .article-content h2 {
  margin: 34px 0 12px;
  color: #071426;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.2;
}

body.article-page .article-content h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

body.article-page .article-content ul,
body.article-page .article-content ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

body.article-page .article-content li {
  margin: 8px 0;
}

body.article-page .price-table {
  font-size: 15px;
}

body.article-page .price-table th,
body.article-page .price-table td {
  padding: 12px 14px;
}

body.article-page .article-note {
  margin: 22px 0 26px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
}

body.article-page .article-sidebar {
  gap: 14px;
}

body.article-page .toc-card,
body.article-page .side-card {
  border-radius: 8px;
}

body.article-page .toc-card {
  padding: 22px 24px;
}

body.article-page .side-card {
  padding: 24px;
}

body.article-page .toc-card h2,
body.article-page .side-card h2 {
  font-size: 20px;
  line-height: 1.25;
}

body.article-page .toc-card ol,
body.article-page .side-card p {
  font-size: 14px;
  line-height: 1.55;
}

body.article-page .side-card .btn {
  min-height: 48px;
  font-size: 14px;
}

body.article-page .related-articles {
  width: min(1120px, calc(100% - 64px));
  margin-top: 22px;
}

body.article-page .related-articles .section-head.compact {
  margin-bottom: 18px;
}

body.article-page .related-articles .section-head.compact h2 {
  font-size: clamp(24px, 2vw, 32px);
}

body.article-page .related-articles .article-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 320px));
  gap: 18px;
  justify-content: start;
}

body.article-page .related-articles .article-card,
body.article-page .related-articles .article-card:first-child {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  height: auto;
  padding: 0;
  border-color: #e5dce0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 34, 46, 0.05);
}

body.article-page .related-articles .article-card-media {
  margin: 0 !important;
}

body.article-page .related-articles .article-card-media img,
body.article-page .related-articles .article-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

body.article-page .related-articles .article-card > *:not(img):not(.article-card-media) {
  margin-left: 18px;
  margin-right: 18px;
}

body.article-page .related-articles .article-meta {
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 12px;
  color: #8b7782;
  font-size: 12px;
}

body.article-page .related-articles .article-meta span {
  color: var(--brand-dark);
  font-size: 12px;
}

body.article-page .related-articles .article-card h3 {
  margin-bottom: 22px;
  font-size: 16px;
  line-height: 1.35;
}

body.article-page .related-articles .article-card p {
  display: none;
}

body.article-page .related-articles .article-card .article-card-link {
  align-self: end;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--brand-dark);
  font-size: 13px;
}

body.article-page .section.cta {
  width: min(1120px, calc(100% - 64px));
  margin-top: 36px;
}

.cta .cta-actions .btn.cta-btn:only-child {
  min-width: 190px;
}

@media (max-width: 900px) {
  body.article-page .article-layout,
  body.article-page .related-articles,
  body.article-page .section.cta {
    width: min(100% - 32px, 760px);
  }

  body.article-page .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.article-page .article-content {
    font-size: 16px;
  }
}

/* Article page visual corrections */
body.article-page .site-header {
  width: min(1320px, calc(100% - clamp(32px, 5.4vw, 96px)));
}

body.article-page .site-nav {
  margin-left: 0;
  justify-self: center;
}

body.article-page .article-hero {
  height: clamp(300px, 22vw, 360px);
  min-height: 0;
  background: #101722;
}

body.article-page .article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

body.article-page .article-hero-copy {
  top: 50%;
  transform: translate(-50%, -50%);
}

body.article-page .related-articles .article-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 320px));
  gap: 20px;
}

body.article-page .related-articles .article-card,
body.article-page .related-articles .article-card:first-child {
  grid-template-rows: auto auto auto auto;
  border-color: #e8e1e4;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 24, 33, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.article-page .related-articles .article-card:hover {
  transform: translateY(-2px);
  border-color: #d8c9cf;
  box-shadow: 0 18px 36px rgba(18, 24, 33, 0.09);
}

body.article-page .related-articles .article-card-media img,
body.article-page .related-articles .article-card > img {
  aspect-ratio: 16 / 7.5;
}

body.article-page .related-articles .article-card > *:not(img):not(.article-card-media) {
  margin-left: 20px;
  margin-right: 20px;
}

body.article-page .related-articles .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 10px;
  color: #7d8793;
  font-size: 11px;
  font-weight: 750;
}

body.article-page .related-articles .article-meta time {
  color: #68727f;
}

body.article-page .related-articles .article-meta span {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f7e8ed;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
}

body.article-page .related-articles .article-meta span:last-child {
  display: none;
}

body.article-page .related-articles .article-card h3 {
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
  line-height: 1.32;
}

body.article-page .related-articles .article-card h3 a {
  color: inherit;
}

body.article-page .related-articles .article-card h3 a:hover {
  color: var(--brand-dark);
}

body.article-page .related-articles .article-card .article-card-link {
  justify-self: start;
  align-self: start;
  margin-top: 0;
  margin-bottom: 20px;
  padding-top: 2px;
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  body.article-page .site-header {
    width: min(100% - 32px, 760px);
  }

  body.article-page .site-nav {
    justify-self: auto;
  }
}

/* Unified site navigation */
.site-header,
body.home .site-header,
body.front-page .site-header,
body.article-page .site-header,
body.contact-page .site-header {
  width: min(1320px, calc(100% - clamp(32px, 5.4vw, 96px)));
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.brand,
body.home .brand,
body.front-page .brand {
  gap: 12px;
}

.brand-mark,
body.home .brand-mark,
body.front-page .brand-mark {
  width: 25px;
  height: 25px;
  border-width: 6px;
}

.brand strong,
body.home .brand strong,
body.front-page .brand strong {
  color: #071426;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small,
body.home .brand small,
body.front-page .brand small,
body.article-page .brand small,
body.contact-page .brand small {
  margin-top: 4px;
  color: #4f5b68;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.4px;
}

.site-nav,
body.home .site-nav,
body.front-page .site-nav,
body.article-page .site-nav,
body.contact-page .site-nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 2.2vw, 34px);
  margin-left: 0;
  font-size: 13px;
  line-height: 1;
}

.site-nav a,
body.home .site-nav a,
body.front-page .site-nav a,
body.article-page .site-nav a,
body.contact-page .site-nav a {
  padding: 12px 0;
  color: #071426;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand);
}

.header-cta,
body.home .header-cta,
body.front-page .header-cta,
body.article-page .header-cta,
body.contact-page .header-cta {
  display: none;
}

@media (max-width: 900px) {
  .site-header,
  body.home .site-header,
  body.front-page .site-header,
  body.article-page .site-header,
  body.contact-page .site-header {
    width: min(100% - 32px, 1320px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav,
  body.home .site-nav,
  body.front-page .site-nav,
  body.article-page .site-nav,
  body.contact-page .site-nav {
    position: absolute;
    z-index: 10;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open,
  body.home .site-nav.open,
  body.front-page .site-nav.open,
  body.article-page .site-nav.open,
  body.contact-page .site-nav.open {
    display: flex;
  }
}

/* Contact purchase page */
body.contact-page {
  background: #f8f9fa;
}

body.contact-page .contact-hero,
body.contact-page .contact-layout,
body.contact-page .bottom-strip {
  width: min(1180px, calc(100% - clamp(32px, 5.4vw, 96px)));
}

body.contact-page .contact-benefits,
body.contact-page .contact-project-cta {
  display: none;
}

body.contact-page .contact-hero {
  min-height: 300px;
  grid-template-columns: minmax(0, 560px) 1fr;
  margin-top: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 24, 33, 0.06);
}

body.contact-page .contact-hero-copy {
  padding: 44px 0 44px 46px;
}

body.contact-page .contact-hero h1 {
  max-width: 540px;
  margin-bottom: 14px;
  color: #071426;
  font-size: clamp(38px, 3.5vw, 56px);
  line-height: 1.04;
}

body.contact-page .contact-hero p {
  max-width: 500px;
  color: #3f4751;
  font-size: 18px;
  line-height: 1.62;
}

body.contact-page .contact-hero img {
  right: 0;
  width: 52%;
  height: 100%;
  opacity: 1;
  object-position: center;
}

body.contact-page .contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0 45%, rgba(255, 255, 255, 0.78) 58%, rgba(255, 255, 255, 0.08));
}

body.contact-page .contact-hero-copy {
  z-index: 1;
}

.contact-section-head {
  margin-bottom: 18px;
}

.contact-section-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-section-head h2 {
  color: #071426;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.15;
}

body.contact-page .contact-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  margin-top: 34px;
}

body.contact-page .contact-main {
  gap: 22px;
}

body.contact-page .office-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.contact-page .office-card,
body.contact-page .contact-form-card,
body.contact-page .map-card {
  border-radius: 8px;
  border-color: #e2e7ee;
  box-shadow: 0 14px 36px rgba(18, 24, 33, 0.055);
}

body.contact-page .office-card {
  min-height: 0;
  padding: 24px;
}

.office-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

body.contact-page .office-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 8px;
  background: #f7e8ed;
  color: var(--brand);
  font-size: 22px;
}

body.contact-page .office-card h2 {
  margin: 0;
  color: #071426;
  font-size: 22px;
  line-height: 1.1;
}

.office-card-head small {
  display: block;
  margin-top: 4px;
  color: #68727f;
  font-size: 13px;
  font-weight: 750;
}

.office-details {
  display: grid;
  gap: 13px;
  margin: 0;
}

.office-details div {
  display: grid;
  gap: 3px;
}

.office-details dt {
  color: #7d8793;
  font-size: 12px;
  font-weight: 800;
}

.office-details dd {
  margin: 0;
  color: #24303d;
  font-size: 15px;
  line-height: 1.45;
}

.office-details a {
  color: var(--brand-dark);
  font-weight: 800;
}

body.contact-page .office-actions {
  gap: 10px;
  margin-top: 24px;
}

body.contact-page .office-actions .btn {
  min-height: 42px;
  min-width: 0;
  width: auto;
  padding: 0 18px;
  font-size: 13px;
}

body.contact-page .office-actions .btn.secondary {
  min-width: 0;
  width: auto;
  border-color: #d6dde6;
  color: #111827;
}

body.contact-page .map-card {
  height: 360px;
}

body.contact-page .contact-form-card {
  min-height: 0;
  padding: 28px;
  position: sticky;
  top: 24px;
}

body.contact-page .form-heading {
  grid-template-columns: 36px 1fr;
  gap: 13px;
  margin-bottom: 22px;
}

body.contact-page .form-heading h2 {
  margin-bottom: 7px;
  color: #071426;
  font-size: 24px;
}

body.contact-page .form-heading p {
  color: #4b5562;
  font-size: 14px;
  line-height: 1.55;
}

body.contact-page .contact-form {
  gap: 13px;
}

body.contact-page .contact-form label span {
  position: static;
  display: block;
  margin-bottom: 6px;
  color: #4b5562;
  font-size: 12px;
  font-weight: 850;
}

body.contact-page .contact-form input,
body.contact-page .contact-form select,
body.contact-page .contact-form textarea {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
}

body.contact-page .contact-form textarea {
  min-height: 118px;
  padding-top: 12px;
}

body.contact-page .contact-form .btn {
  margin-top: 8px;
}

body.contact-page .privacy-note {
  display: block;
  margin-top: 16px;
  color: #68727f;
  font-size: 12px;
}

@media (max-width: 980px) {
  body.contact-page .contact-layout,
  body.contact-page .office-grid {
    grid-template-columns: 1fr;
  }

  body.contact-page .contact-form-card {
    position: static;
  }
}

@media (max-width: 720px) {
  body.contact-page .contact-hero,
  body.contact-page .contact-layout,
  body.contact-page .bottom-strip {
    width: min(100% - 28px, 1180px);
  }

  body.contact-page .contact-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  body.contact-page .contact-hero-copy {
    padding: 30px 24px;
  }

  body.contact-page .contact-hero img {
    position: relative;
    width: 100%;
    height: 180px;
  }

  body.contact-page .contact-hero::after {
    display: none;
  }
}
