:root {
  --ink: #151811;
  --ink-soft: #24291f;
  --muted: #6d6a60;
  --paper: #eee4d5;
  --paper-soft: #f7f0e7;
  --surface: #fffdf8;
  --surface-soft: #e7dccb;
  --line: #d8cab7;
  --green: #657e5d;
  --green-dark: #465b40;
  --green-soft: #dfe8d7;
  --sand: #998a73;
  --white: #ffffff;
  --danger: #8a4a3d;
  --warning: #9a7b3f;
  --shadow: 0 28px 70px rgba(21, 24, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fffdf8 0, #f3ebdf 560px, var(--paper) 100%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 34px));
  min-height: 68px;
  padding: 7px 12px 7px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 202, 183, 0.9);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 50px rgba(21, 24, 17, 0.12);
  backdrop-filter: blur(18px);
}

.site-header {
  display: none;
}

.site-header.is-scrolled {
  box-shadow: 0 20px 54px rgba(21, 24, 17, 0.17);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .brand,
.footer-brand {
  padding: 5px 12px 5px 6px;
  background: var(--ink);
  border-radius: 8px;
}

.brand-logo {
  width: clamp(184px, 20vw, 252px);
  height: auto;
}

.site-header .brand,
.footer-brand {
  flex-direction: column;
  align-items: flex-start;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: rgba(231, 220, 203, 0.64);
  border: 1px solid rgba(216, 202, 183, 0.86);
  border-radius: 9px;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--green);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-cta {
  min-height: 42px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button-primary,
.header-cta:hover {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: min(100svh, 56.25vw, 1080px);
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(21, 24, 17, 0.58), rgba(21, 24, 17, 0.08) 18%, rgba(21, 24, 17, 0.08) 82%, rgba(21, 24, 17, 0.58)),
    url("assets/habitar-hero-layout-hq.webp") center center / cover no-repeat,
    #151811;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% center;
  transform: none;
}

.hero-shade {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100vw, calc(100svh * 16 / 9), 1920px);
  height: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  color: var(--white);
}

.hero-editorial {
  position: absolute;
  inset: 0;
}

.hero-logo-line {
  position: absolute;
  top: 8.3%;
  left: 13.2%;
  width: 23.2%;
  min-height: 0;
  padding: 0;
  border: 0;
}

.hero-logo-line img {
  width: 100%;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.28));
}

.hero-index-nav {
  position: absolute;
  top: 26%;
  right: 3%;
  display: grid;
  width: 17.4%;
  background: transparent;
}

.hero-index-nav a {
  display: flex;
  min-height: 40px;
  align-items: center;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.66);
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.08;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hero-index-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-editorial p {
  position: absolute;
  left: 31%;
  bottom: 15.3%;
  width: 55%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  font-weight: 790;
  font-size: clamp(0.78rem, 1.18vw, 1.12rem);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 14px;
  color: #d7c6ad;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-copy h2,
.split-layout h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.9rem;
}

.hero-copy {
  max-width: 710px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.22rem;
}

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

.hero-actions-main {
  position: absolute;
  left: 22.5%;
  right: 22.5%;
  bottom: 4.4%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 0;
  gap: 8px;
}

.hero-actions-main .button {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  border-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: rgba(21, 24, 17, 0.34);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
  backdrop-filter: blur(5px);
}

.hero-actions-main .button-primary {
  background: rgba(101, 126, 93, 0.68);
}

.hero-terrain-menu {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.hero-terrain-menu summary {
  display: flex;
  width: 100%;
  list-style: none;
  cursor: pointer;
}

.hero-terrain-menu summary::-webkit-details-marker {
  display: none;
}

.hero-terrain-options {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  display: grid;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(21, 24, 17, 0.72);
  backdrop-filter: blur(8px);
}

.hero-terrain-options a {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
}

.hero-terrain-options a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, 100%);
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
}

.hero-stats div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: var(--white);
  font-size: 1.42rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-nav-band {
  position: absolute;
  left: 7.5%;
  right: 7.5%;
  bottom: 4.8%;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.hero-nav-band::before,
.hero-nav-band::after {
  display: none;
}

.hero-nav-buttons a,
.hero-nav-band a {
  display: flex;
  min-height: clamp(34px, 3.9vw, 48px);
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(24, 26, 20, 0.58);
  color: var(--white);
  font-size: clamp(0.68rem, 0.95vw, 0.96rem);
  font-weight: 870;
  line-height: 1.04;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(7px);
  box-shadow: 0 12px 32px rgba(21, 24, 17, 0.18);
}

.hero-nav-buttons a:hover,
.hero-nav-band a:hover {
  background: rgba(101, 126, 93, 0.54);
}

.intro-grid article,
.steps-grid article,
.brand-story-grid article,
.catalog-detail-grid article,
.system-grid article,
.terrain-card,
.model-card,
.pip-grid article,
.legal-cards article,
.risk-panel,
.calculator,
.contact-form,
.model-feature,
.facade-showcase,
.interior-showcase,
.room-showcase,
.tourism-interior,
.tourism-cluster,
.studio-showcase {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.intro-grid article {
  min-width: 0;
  min-height: 108px;
  padding: 15px 16px;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 253, 248, 0.52);
  box-shadow: 0 18px 44px rgba(21, 24, 17, 0.12);
  backdrop-filter: blur(13px);
}

.intro-grid span,
.steps-grid span,
.pip-grid span,
.timeline span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
}

.intro-grid span {
  width: 28px;
  height: 28px;
  font-size: 0.66rem;
}

.intro-grid h2,
.steps-grid h3,
.terrain-card h3,
.model-card h3,
.pip-grid h3,
.legal-cards h3,
.timeline h3,
.risk-panel h3,
.model-feature h3,
.facade-showcase h3,
.interior-showcase h3,
.room-showcase h3,
.tourism-interior h3,
.tourism-cluster h3,
.studio-showcase h3 {
  margin: 16px 0 8px;
}

.intro-grid h2 {
  font-size: clamp(0.92rem, 1vw, 1.1rem);
  line-height: 1.08;
}

.intro-grid p,
.steps-grid p,
.catalog-detail-grid p,
.system-grid p,
.terrain-card p,
.model-card p,
.pip-grid p,
.legal-cards p,
.timeline p,
.risk-panel p,
.model-feature p,
.facade-showcase p,
.interior-showcase p,
.room-showcase p,
.tourism-interior p,
.tourism-cluster p,
.studio-showcase p,
.split-layout p,
.contact-copy p {
  color: var(--muted);
  overflow-wrap: break-word;
  white-space: normal;
}

.intro-grid p,
.service-hub-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.intro-grid p {
  font-size: clamp(0.74rem, 0.76vw, 0.84rem);
  line-height: 1.36;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.74fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.contact-copy h2,
.split-layout h2 {
  max-width: 780px;
  font-size: 2.85rem;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.steps-grid,
.pip-grid,
.legal-cards,
.service-flow {
  display: grid;
  gap: 16px;
}

.steps-grid,
.service-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid article,
.pip-grid article,
.legal-cards article,
.service-flow article {
  padding: 24px;
}

.service-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-flow article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.service-flow span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.service-flow h3 {
  margin: 16px 0 8px;
}

.service-flow p {
  margin: 0;
  color: var(--muted);
}

.service-highlight {
  background: var(--ink) !important;
  color: var(--white);
}

.service-highlight strong {
  display: block;
  margin: 10px 0;
  color: #eadcc9;
  font-size: 2.1rem;
  line-height: 1;
}

.service-highlight p {
  color: rgba(255, 255, 255, 0.74);
}

.services-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-hub-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.service-hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 126, 93, 0.45);
  background: rgba(255, 253, 248, 0.88);
}

.service-hub-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.service-hub-card h3 {
  margin: 24px 0 8px;
}

.service-hub-card p {
  margin: 0;
  color: var(--muted);
}

.service-hub-card-wide {
  grid-column: span 2;
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
  backdrop-filter: blur(14px);
}

.request-panel-alt {
  background: rgba(238, 228, 213, 0.86);
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
}

.request-form h3,
.request-form p {
  grid-column: 1 / -1;
}

.brand-guide-section {
  background: var(--surface);
}

.brand-story-grid,
.catalog-detail-grid,
.system-grid,
.process-strip {
  display: grid;
  gap: 16px;
}

.brand-story-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.brand-story-grid article,
.catalog-detail-grid article,
.system-grid article {
  padding: 26px;
}

.brand-story-main {
  background: var(--ink) !important;
  color: var(--white);
}

.brand-story-main p {
  color: rgba(255, 255, 255, 0.78);
}

.brand-story-grid h3,
.catalog-detail-grid h3,
.system-grid h3 {
  margin: 16px 0 8px;
}

.catalog-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.catalog-detail-grid span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.system-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.legacy-system-grid {
  display: none;
}

.system-build-section {
  margin-top: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

.wall-system-grid {
  display: grid;
  gap: 18px;
}

.wall-system-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(21, 24, 17, 0.08);
}

.wall-system-card figure {
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.45), rgba(224, 218, 204, 0.22));
  overflow: hidden;
}

.wall-system-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  transform: scale(1.28);
}

.wall-system-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.wall-system-card h3 {
  margin: 12px 0 8px;
}

.wall-system-card p {
  color: var(--muted);
  font-weight: 750;
}

.build-methods {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.build-method-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 44px rgba(21, 24, 17, 0.08);
  overflow: hidden;
}

.build-method-detail summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}

.build-method-detail summary::-webkit-details-marker {
  display: none;
}

.build-method-detail summary::after {
  content: "+";
  margin-left: auto;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.build-method-detail[open] summary::after {
  content: "-";
}

.build-method-detail summary span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.build-method-detail summary strong {
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.1;
}

.build-method-body {
  padding: 0 22px 22px 74px;
}

.build-method-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.build-method-body p + p {
  margin-top: 10px;
}

.method-section-title {
  margin: 22px 0 14px;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.4vw, 1.34rem);
}

.build-method-body .wall-system-grid,
.build-method-body .expanded-system-grid,
.build-method-body .method-benefit-grid {
  margin-top: 16px;
}

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

.method-benefit-grid article {
  padding: 16px;
  border: 1px solid rgba(101, 126, 93, 0.18);
  border-radius: 8px;
  background: rgba(224, 218, 204, 0.24);
}

.method-benefit-grid h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.method-benefit-grid p {
  font-size: 0.94rem;
}

.expanded-system-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clean-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.clean-list li + li {
  margin-top: 9px;
}

.process-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 18px;
}

.process-strip article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.process-strip strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.process-strip span {
  display: block;
  margin: 4px 0;
  font-weight: 900;
}

.process-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-table {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.08);
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(110px, 0.34fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-head {
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.pricing-row strong {
  color: var(--green-dark);
}

.pricing-head strong {
  color: var(--white);
}

.search-section,
.models-section,
.rehab-section,
.submit-section {
  background: linear-gradient(180deg, var(--surface), var(--paper-soft));
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.terrain-request-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
}

.terrain-request-layout > div:first-child {
  display: grid;
  gap: 18px;
}

.terrain-request-layout h2 {
  margin: 0;
  font-size: clamp(2.08rem, 4vw, 3.3rem);
  line-height: 1.03;
}

.terrain-request-layout p {
  margin: 0;
  color: var(--muted);
}

.terrain-request-steps {
  display: grid;
  gap: 10px;
}

.terrain-request-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
}

.terrain-request-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.terrain-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.terrain-choice-actions .button {
  min-height: 44px;
}

.terrain-search-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.terrain-search-form label {
  min-width: 0;
}

.terrain-search-form input,
.terrain-search-form select {
  min-height: 48px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(101, 126, 93, 0.28);
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.terrain-grid,
.construction-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-grid,
.model-gallery-list {
  display: grid;
  gap: 28px;
}

.model-group {
  display: grid;
  gap: 14px;
}

.model-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.model-group-heading span {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
}

.model-group-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.model-group-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  width: min(820px, 100%);
  margin-inline: auto;
}

.terrain-card,
.model-card,
.construction-types article {
  display: grid;
  overflow: hidden;
}

.construction-types {
  margin-top: 22px;
}

.construction-types article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.construction-types span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
}

.construction-types h3 {
  margin: 16px 0 8px;
}

.construction-types p {
  margin: 0;
  color: var(--muted);
}

.type-warning {
  max-width: 980px;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.model-card .card-image {
  aspect-ratio: 16 / 10;
  max-height: min(52vh, 430px);
  background: #f7f4ee;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.model-carousel img,
.plan-map-images img,
.plan-map-plan img {
  cursor: zoom-in;
}

.model-carousel img {
  object-fit: contain;
  transform: none;
  transition: transform 220ms ease, opacity 180ms ease;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(21, 24, 17, 0.66);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.carousel-button:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(21, 24, 17, 0.88);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(21, 24, 17, 0.68);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.terrain-card:hover .card-image img,
.model-card:hover .card-image img {
  transform: scale(1.045);
}

.model-card:hover .model-carousel img {
  transform: none;
}

.card-body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.card-topline,
.meta-row,
.badge-row,
.model-versions,
.config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-topline {
  justify-content: space-between;
}

.card-topline-price-only {
  justify-content: flex-end;
}

.price,
.model-price {
  color: var(--green);
  font-weight: 900;
}

.model-price {
  max-width: 58%;
  text-align: right;
  font-size: 0.84rem;
  line-height: 1.25;
  display: grid;
  gap: 2px;
}

.card-topline-price-only .model-price {
  max-width: 100%;
}

.model-price span {
  display: block;
  white-space: nowrap;
}

.structure-price-grid {
  display: grid;
  gap: 8px;
}

.structure-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(101, 132, 91, 0.2);
  border-radius: 8px;
  background: var(--paper-soft);
}

.structure-price-trigger {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.structure-price-trigger:hover,
.structure-price-trigger:focus-visible {
  border-color: rgba(101, 132, 91, 0.48);
  background: rgba(101, 132, 91, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.structure-price span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.structure-price small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.structure-price strong {
  color: var(--green-dark);
  font-size: 0.9rem;
  white-space: nowrap;
}

.structure-price-detail {
  display: block;
  padding: 0;
  overflow: hidden;
}

.structure-price-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.structure-price-detail summary::-webkit-details-marker {
  display: none;
}

.structure-price-detail summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(101, 132, 91, 0.14);
  color: var(--green-dark);
  font-weight: 900;
}

.structure-price-detail[open] summary::after {
  content: "−";
}

.structure-price-detail summary strong {
  justify-self: end;
}

.structure-detail-copy {
  display: grid;
  gap: 10px;
  padding: 4px 12px 14px;
  border-top: 1px solid rgba(101, 132, 91, 0.18);
}

.structure-detail-copy p,
.structure-detail-copy li {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.55;
}

.structure-detail-copy p,
.structure-detail-copy ul {
  margin: 0;
}

.structure-detail-copy ul {
  padding-left: 18px;
}

.structure-detail-copy h5 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.structure-detail-cta {
  color: var(--green-dark) !important;
  font-weight: 900 !important;
}

body.price-modal-open {
  overflow: hidden;
}

body.image-modal-open {
  overflow: hidden;
}

.price-modal[hidden] {
  display: none;
}

.image-modal[hidden] {
  display: none;
}

.price-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 34px);
}

.price-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 19, 15, 0.64);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 19, 15, 0.78);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.price-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(248, 246, 239, 0.96);
  box-shadow: 0 28px 90px rgba(16, 19, 15, 0.34);
}

.image-modal-card {
  position: relative;
  width: min(1180px, 100%);
  max-height: 92vh;
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 14px;
  background: rgba(248, 246, 239, 0.96);
  box-shadow: 0 28px 90px rgba(16, 19, 15, 0.42);
}

.price-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(101, 132, 91, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(16, 19, 15, 0.72);
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-card h3 {
  margin: 0;
  padding-right: 48px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0;
}

.image-modal-card figure {
  display: grid;
  gap: 9px;
  min-height: 0;
  margin: 0;
}

.image-modal-card img {
  width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  background: var(--ink);
}

.image-modal-card figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.login-access {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}

.login-access summary {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(21, 24, 17, 0.72);
  box-shadow: 0 16px 38px rgba(21, 24, 17, 0.24);
  cursor: pointer;
  list-style: none;
  backdrop-filter: blur(12px);
}

.login-access summary::-webkit-details-marker {
  display: none;
}

.login-access svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-access-menu {
  position: absolute;
  right: 0;
  bottom: 56px;
  display: grid;
  min-width: 176px;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  background: rgba(21, 24, 17, 0.84);
  box-shadow: 0 20px 46px rgba(21, 24, 17, 0.22);
  backdrop-filter: blur(14px);
}

.login-access-menu a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.login-access-menu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.price-modal-card h3 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: 0;
}

.price-modal-value {
  color: var(--green-dark);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 900;
}

.price-modal-description {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.7;
}

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

.price-modal-columns section {
  padding: 18px;
  border: 1px solid rgba(101, 132, 91, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.price-modal-columns h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.price-modal-columns ul {
  margin: 0;
  padding-left: 18px;
}

.price-modal-columns li {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.personalization-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(101, 132, 91, 0.22);
  border-radius: 8px;
  background: rgba(101, 132, 91, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.model-included {
  border: 1px solid rgba(101, 132, 91, 0.24);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.model-included summary {
  min-height: 44px;
  padding: 12px 14px;
  background: rgba(101, 132, 91, 0.1);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.model-included-content {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.model-included-content h4 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.model-included-content p,
.model-included-content li {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.model-included-content p {
  margin: 0;
}

.model-included-content ul {
  margin: 0;
  padding-left: 18px;
}

.model-included-content li + li {
  margin-top: 6px;
}

.model-included-note {
  padding: 12px;
  border-radius: 8px;
  background: var(--paper-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.warning {
  background: #eee1c9;
  color: var(--warning);
}

.badge.dark {
  background: var(--ink);
  color: var(--white);
}

.badge.risk {
  background: #ead6cf;
  color: var(--danger);
}

.meta-row span,
.model-versions span,
.feature-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

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

.card-actions-single {
  grid-template-columns: 1fr;
}

.card-actions .button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.button-quiet {
  background: var(--surface-soft);
  color: var(--ink);
}

.button-quiet:hover {
  background: var(--line);
}

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

.formula-box,
.quiet-note {
  margin-top: 20px;
}

.formula-box {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 900;
}

.quiet-note {
  color: var(--muted);
}

.calculator {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.estimate-box {
  display: grid;
  gap: 5px;
  padding: 19px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink), #45593f);
  color: var(--white);
}

.estimate-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-box strong {
  font-size: 2rem;
}

.estimate-box small {
  color: rgba(255, 255, 255, 0.72);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.mini-table th,
.mini-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mini-table th {
  background: var(--paper-soft);
}

.rehab-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rehab-estimator,
.rehab-copy article {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.rehab-estimator {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.rehab-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rehab-checks legend {
  padding: 0 7px;
  color: var(--ink);
  font-weight: 900;
}

.rehab-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.rehab-checks input {
  width: auto;
}

.rehab-estimate {
  display: grid;
  gap: 5px;
  padding: 19px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ink), #45593f);
  color: var(--white);
}

.rehab-estimate span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rehab-estimate strong {
  font-size: 2rem;
}

.rehab-estimate small {
  color: rgba(255, 255, 255, 0.72);
}

.rehab-copy {
  display: grid;
  gap: 14px;
}

.rehab-copy article {
  padding: 22px;
}

.rehab-copy h3 {
  margin: 0 0 8px;
}

.rehab-copy p {
  margin: 0;
  color: var(--muted);
}

.model-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
}

.catalog-note,
.model-question-panel,
.price-editor {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.catalog-note h3,
.model-question-panel h3,
.price-editor h3 {
  margin: 12px 0 8px;
  font-size: 1.55rem;
}

.catalog-note p,
.model-question-panel p,
.price-editor p {
  margin: 0;
  color: var(--muted);
}

.compact-contact-form {
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.model-question-panel .compact-contact-form,
.rehab-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.rehab-request-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
}

.rehab-request-form h3,
.rehab-request-form p {
  grid-column: 1 / -1;
}

.catalog-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.catalog-note-tags span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.price-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.price-editor-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.price-editor-row span {
  color: var(--ink);
  font-weight: 900;
}

.price-editor-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.price-editor-row input {
  min-height: 40px;
  padding: 9px 10px;
}

.plan-map {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.plan-map-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  width: min(920px, 100%);
  margin-inline: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.plan-map-plan,
.plan-map-images figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.plan-map-plan img,
.plan-map-images img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.plan-map-plan img {
  aspect-ratio: 1 / 1;
  max-height: 360px;
  object-fit: contain;
}

.plan-map-images {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.model-detail-copy {
  grid-column: 2;
  padding: 20px;
  border: 1px solid rgba(101, 132, 91, 0.2);
  border-radius: 8px;
  background: var(--paper-soft);
}

.model-detail-copy h4 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.model-detail-copy p {
  margin: 0;
  color: var(--muted);
}

.model-detail-copy p + p {
  margin-top: 11px;
}

.model-detail-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(101, 132, 91, 0.22);
}

.model-detail-section h5 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.model-detail-list {
  color: var(--muted);
  font-size: 0.9rem;
}

.model-price-note {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(101, 132, 91, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.model-price-note strong {
  color: var(--green-dark);
  font-size: 1.15rem;
}

.model-detail-cta {
  margin-top: 18px !important;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(101, 132, 91, 0.12);
  color: var(--ink) !important;
  font-weight: 850;
}

.plan-map-images img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-fit: contain;
}

.plan-map figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-map-plan figcaption {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.first-model-feature {
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(247, 240, 231, 0.96));
}

.tourism-model-feature {
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 0.86fr);
  align-items: center;
}

.tourism-plan-feature {
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 0.7fr);
  align-items: center;
}

.tourism-studio-feature {
  grid-template-columns: minmax(280px, 0.76fr) minmax(320px, 0.7fr);
  align-items: center;
}

.tourism-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
  align-items: center;
}

.tourism-cluster figure {
  margin: 0;
}

.tourism-cluster img {
  width: 100%;
  max-height: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.tourism-cluster figcaption,
.tourism-interior figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tourism-interior {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
  align-items: center;
}

.tourism-interior figure {
  margin: 0;
}

.tourism-interior img {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.studio-showcase {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding: 28px;
}

.studio-gallery-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.studio-gallery-grid figure {
  display: grid;
  gap: 9px;
  margin: 0;
}

.studio-featured img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.studio-gallery-stack {
  display: grid;
  gap: 18px;
}

.studio-gallery-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.studio-gallery-grid figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.feature-actions .button {
  min-height: 42px;
  padding: 10px 13px;
  font-size: 0.88rem;
}

.feature-plan {
  margin: 0;
}

.feature-plan img {
  width: 100%;
  max-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.feature-plan figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.facade-showcase {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding: 28px;
}

.facade-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.62fr);
  gap: 28px;
  align-items: end;
}

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

.facade-grid figure {
  display: grid;
  gap: 9px;
  margin: 0;
}

.facade-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.facade-grid figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.interior-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 28px;
  margin-top: 22px;
  padding: 28px;
  align-items: center;
}

.interior-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.interior-gallery figure {
  display: grid;
  gap: 9px;
  margin: 0;
}

.interior-gallery img {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.interior-gallery figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.room-showcase {
  display: grid;
  gap: 22px;
  margin-top: 22px;
  padding: 28px;
}

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

.room-gallery figure {
  display: grid;
  gap: 9px;
  margin: 0;
}

.room-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.room-gallery figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-configurator {
  display: grid;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.model-configurator h3 {
  margin: 16px 0 8px;
  font-size: 1.7rem;
}

.model-configurator p {
  color: var(--muted);
}

.configurator-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.configurator-panel {
  display: grid;
  gap: 16px;
}

.module-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.module-list legend {
  padding: 0 7px;
  color: var(--ink);
  font-weight: 900;
}

.module-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.module-list input {
  width: auto;
}

.configurator-result {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.configurator-result figure {
  margin: 0;
}

.configurator-result img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: cover;
}

.configurator-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper-soft);
}

.configurator-summary h4 {
  margin: 0;
  font-size: 1.35rem;
}

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

.config-metrics span {
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.config-metrics strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.config-actions .button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.customization-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 24px 58px rgba(21, 24, 17, 0.1);
}

.customization-preview h3 {
  margin: 16px 0 8px;
  font-size: 1.7rem;
}

.customization-preview p {
  color: var(--muted);
}

.customization-preview figure {
  margin: 0;
}

.customization-preview img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.customization-preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.feature-specs {
  display: grid;
  gap: 10px;
}

.feature-specs strong {
  margin-right: 6px;
  color: var(--ink);
}

.pip-section {
  background: var(--ink);
  color: var(--white);
}

.pip-section .section-heading > p,
.pip-section p {
  color: rgba(255, 255, 255, 0.72);
}

.pip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pip-grid article,
.legal-cards article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.pip-comparison {
  display: grid;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span,
.comparison-row strong {
  padding: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.comparison-row strong {
  color: var(--white);
}

.comparison-head {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.comparison-head span {
  color: var(--white);
}

.legal-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.map-library {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.map-library h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.map-library p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.map-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.map-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 850;
}

.risk-panel {
  padding: 24px;
}

.risk-panel dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.risk-panel div {
  padding: 14px;
  border-radius: 8px;
  background: var(--paper-soft);
}

.risk-panel dt {
  font-weight: 900;
}

.risk-panel dd {
  margin: 5px 0 0;
  color: var(--muted);
}

.workflow-section {
  background: var(--surface);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.timeline article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
}

.contact-copy p {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
}

.terrain-form input[type="file"] {
  background: var(--paper-soft);
}

.full-span {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.mini-fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mini-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.consent input {
  width: auto;
  margin-top: 5px;
}

.site-footer {
  padding: 34px 0 24px;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.footer-inner p,
.legal-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.legal-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 253, 248, 0.98);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-index-nav {
    top: 25.4%;
    right: 3.2%;
    width: 18.7%;
  }

  .hero-index-nav a {
    min-height: clamp(24px, 4.05vw, 45px);
    padding: clamp(3px, 0.7vw, 7px) 0;
    border-bottom-width: 1px;
    font-size: clamp(0.64rem, 1.22vw, 1rem);
    line-height: 1.03;
  }

  .hero-editorial p {
    left: 24%;
    bottom: 15%;
    width: 70%;
    font-size: clamp(0.76rem, 1.45vw, 1.08rem);
  }

  .hero-actions-main {
    left: 18%;
    right: 18%;
    gap: 8px;
  }

  .hero-actions-main .button {
    min-height: clamp(34px, 4.3vw, 44px);
    padding: 7px 10px;
    font-size: clamp(0.72rem, 1.35vw, 0.96rem);
    line-height: 1.05;
    text-align: center;
  }

  .hero-terrain-menu summary {
    min-height: clamp(34px, 4.3vw, 44px);
  }

  .section-heading,
  .split-layout,
  .contact-layout,
  .rehab-layout,
  .configurator-grid,
  .configurator-result,
  .customization-preview,
  .brand-story-grid,
  .system-grid,
  .wall-system-card,
  .model-feature,
  .catalog-note,
  .model-question-panel,
  .price-editor,
  .request-panel,
  .terrain-request-layout,
  .plan-map-card,
  .facade-heading,
  .interior-showcase,
  .tourism-interior,
  .tourism-cluster,
  .studio-gallery-grid,
  .map-library {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .studio-featured img {
    min-height: auto;
  }

  .model-detail-copy,
  .plan-map-images {
    grid-column: auto;
  }

  .search-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps-grid,
  .service-flow,
  .terrain-grid,
  .model-group-grid,
  .plan-map-images,
  .catalog-detail-grid,
  .process-strip,
  .price-editor-list,
  .construction-types,
  .facade-grid,
  .pip-grid,
  .legal-cards,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-group-grid,
  .plan-map-images {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-system-grid,
  .expanded-system-grid,
  .request-form,
  .method-benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .service-hub-card-wide {
    grid-column: auto;
  }
}

@media (min-width: 1600px) {
  .hero-index-nav a {
    min-height: 58px;
    border-bottom-width: 3px;
    font-size: 1.46rem;
  }

  .hero-editorial p {
    font-size: 1.18rem;
  }

  .hero-actions-main .button {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .hero-terrain-options a {
    min-height: 40px;
    font-size: 0.92rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    top: 12px;
    width: min(100% - 24px, 720px);
    min-height: 60px;
  }

  .brand-logo {
    width: 174px;
  }

  .site-nav {
    inset: 72px 12px auto 12px;
  }

  .hero {
    height: 56.25vw;
    min-height: 0;
    padding: 0;
    background: #f4f4f2;
  }

  .hero-content {
    width: min(100vw, 1366px);
    height: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center center;
  }

  .hero-logo-line {
    top: 8.3%;
    left: 13.2%;
    width: 23.2%;
  }

  .hero-index-nav {
    top: 24.7%;
    right: 3.2%;
    left: auto;
    width: 26.2%;
  }

  .hero-index-nav a {
    min-height: clamp(14px, 3.75vw, 26px);
    padding: clamp(1px, 0.45vw, 4px) 0;
    border-bottom-width: 1px;
    font-size: clamp(0.47rem, 1.78vw, 0.8rem);
    line-height: 1;
  }

  .hero-editorial p {
    left: 4%;
    bottom: 15.1%;
    width: 92%;
    font-size: clamp(0.5rem, 1.9vw, 0.9rem);
  }

  .hero-actions-main {
    left: 10%;
    right: 10%;
    bottom: 4.4%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3px, 1.1vw, 8px);
  }

  .hero-actions-main .button {
    min-height: clamp(18px, 5vw, 34px);
    padding: clamp(2px, 1vw, 7px) clamp(3px, 1.3vw, 10px);
    font-size: clamp(0.52rem, 2vw, 0.82rem);
    line-height: 1.05;
  }

  .hero-terrain-menu summary {
    min-height: clamp(18px, 5vw, 34px);
  }

  .hero-terrain-options {
    bottom: calc(100% + 6px);
    padding: 4px;
  }

  .hero-terrain-options a {
    min-height: clamp(12px, 4.3vw, 32px);
    padding: 3px 4px;
    font-size: clamp(0.28rem, 1.55vw, 0.72rem);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .hero-actions,
  .result-line,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .button {
    width: 100%;
  }

  .hero-stats,
  .intro-grid,
  .services-hub-grid,
  .request-panel,
  .request-form,
  .search-panel,
  .terrain-search-form,
  .brand-story-grid,
  .catalog-detail-grid,
  .system-grid,
  .process-strip,
  .steps-grid,
  .service-flow,
  .terrain-grid,
  .model-group-grid,
  .plan-map-images,
  .price-editor-list,
  .construction-types,
  .method-benefit-grid,
  .facade-grid,
  .interior-gallery,
  .room-gallery,
  .pip-grid,
  .legal-cards,
  .timeline,
  .contact-form,
  .config-metrics,
  .mini-fieldset {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 7px;
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .intro-grid article {
    min-height: 76px;
    padding: 10px 11px;
  }

  .intro-grid span {
    width: 23px;
    height: 23px;
    font-size: 0.54rem;
  }

  .intro-grid h2 {
    margin: 7px 0 3px;
    font-size: clamp(0.76rem, 3vw, 0.92rem);
  }

  .intro-grid p {
    font-size: clamp(0.6rem, 2.25vw, 0.72rem);
    line-height: 1.28;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .structure-price {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .build-method-detail summary {
    min-height: 58px;
    padding: 15px 16px;
  }

  .build-method-detail summary span {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .build-method-body {
    padding: 0 16px 18px;
  }

  .method-benefit-grid article {
    padding: 13px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row span,
  .comparison-row strong {
    padding: 14px 16px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .contact-copy h2,
  .split-layout h2 {
    font-size: 2.08rem;
  }

  .brand-guide-section .section-heading h2 {
    font-size: clamp(1.58rem, 6.4vw, 2.02rem);
    line-height: 1.08;
  }

  .brand-guide-section .section-heading {
    gap: 16px;
    margin-bottom: 26px;
  }

  .brand-guide-section .section-heading > p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .full-span {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .hero-index-nav {
    right: 2.6%;
    left: auto;
    width: 27.8%;
  }

  .hero-index-nav a {
    min-height: clamp(13px, 3.86vw, 21px);
    padding-block: 1px;
    font-size: clamp(0.46rem, 1.88vw, 0.7rem);
  }

  .hero-editorial p {
    left: 2%;
    bottom: 15%;
    width: 96%;
    font-size: clamp(0.48rem, 2.05vw, 0.78rem);
  }

  .hero-actions-main {
    left: 4%;
    right: 4%;
    gap: 4px;
  }

  .hero-actions-main .button,
  .hero-terrain-menu summary {
    min-height: clamp(19px, 5.6vw, 30px);
  }

  .hero-actions-main .button {
    padding-inline: 4px;
    font-size: clamp(0.5rem, 2.08vw, 0.72rem);
  }

  .intro-grid article {
    min-height: 70px;
    padding: 9px 10px;
  }

  .intro-grid h2 {
    font-size: clamp(0.72rem, 2.85vw, 0.86rem);
  }

  .intro-grid p {
    font-size: clamp(0.56rem, 2.08vw, 0.66rem);
  }
}

@media (max-width: 380px) {
  .hero-index-nav {
    top: 24.4%;
    right: 2.4%;
    width: 28.6%;
  }

  .hero-index-nav a {
    min-height: clamp(12px, 3.85vw, 18px);
    font-size: clamp(0.46rem, 1.95vw, 0.66rem);
  }

  .hero-editorial p {
    bottom: 14.9%;
    font-size: clamp(0.5rem, 2.1vw, 0.74rem);
  }

  .hero-actions-main {
    left: 3%;
    right: 3%;
  }
}

@media (max-width: 720px) {
  .price-modal,
  .image-modal {
    padding: 14px;
  }

  .price-modal-card,
  .image-modal-card {
    max-height: 88vh;
    gap: 14px;
    padding: 22px 16px 18px;
    border-radius: 12px;
  }

  .price-modal-close,
  .image-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  .price-modal-card h3,
  .image-modal-card h3 {
    padding-right: 38px;
    font-size: 1.45rem;
  }

  .price-modal-description,
  .image-modal-card figcaption {
    font-size: 0.88rem;
  }

  .price-modal-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .price-modal-columns section {
    padding: 14px;
  }

  .price-modal-columns li {
    font-size: 0.86rem;
  }

  .image-modal-card img {
    max-height: 70vh;
  }

  .login-access {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .login-access summary {
    width: 38px;
    height: 38px;
    background: rgba(21, 24, 17, 0.66);
  }

  .login-access svg {
    width: 19px;
    height: 19px;
  }

  .login-access-menu {
    bottom: 50px;
    min-width: 164px;
  }
}

@media (max-width: 320px) {
  .hero-index-nav {
    top: 24.2%;
    right: 2.2%;
    width: 29.4%;
  }

  .hero-index-nav a {
    min-height: 9px;
    font-size: 4.8px;
    line-height: 1;
  }

  .hero-editorial p {
    bottom: 14.7%;
    font-size: 5.2px;
  }

  .hero-actions-main {
    left: 2.5%;
    right: 2.5%;
    gap: 3px;
  }

  .hero-actions-main .button,
  .hero-terrain-menu summary {
    min-height: 15px;
  }

  .hero-actions-main .button {
    padding: 2px 3px;
    font-size: 5.2px;
    line-height: 1.04;
  }

  .hero-terrain-options a {
    min-height: 16px;
    font-size: 5px;
  }

  .intro-grid article {
    min-height: 118px;
    padding: 10px;
  }

  .intro-grid span,
  .steps-grid span,
  .pip-grid span,
  .timeline span {
    width: 22px;
    height: 22px;
    font-size: 0.5rem;
  }

  .intro-grid h2 {
    margin: 8px 0 4px;
    font-size: 0.66rem;
    line-height: 1.12;
  }

  .intro-grid p {
    font-size: 0.48rem;
    line-height: 1.32;
  }

  .section-heading h2,
  .contact-copy h2,
  .split-layout h2 {
    font-size: 1.28rem;
  }

  .brand-guide-section .section-heading h2 {
    font-size: 1.22rem;
  }
}

@media (max-width: 900px) {
  .hero-nav-band {
    left: 5%;
    right: 5%;
    bottom: 4.2%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-nav-band a {
    min-height: 42px;
    padding: 8px 9px;
    font-size: clamp(0.72rem, 1.9vw, 0.92rem);
  }

  .model-group-grid {
    width: min(720px, 100%);
  }

  .model-card .card-image {
    max-height: 380px;
  }

  .plan-map-card {
    width: min(760px, 100%);
  }
}

@media (max-width: 560px) {
  .hero {
    height: 72vw;
    min-height: 268px;
    background:
      linear-gradient(90deg, rgba(21, 24, 17, 0.52), rgba(21, 24, 17, 0.06) 18%, rgba(21, 24, 17, 0.06) 82%, rgba(21, 24, 17, 0.52)),
      url("assets/habitar-hero-layout-hq.webp") center center / cover no-repeat,
      #151811;
  }

  .hero-nav-band {
    left: 4%;
    right: 4%;
    bottom: 4%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-nav-band a {
    min-height: 38px;
    padding: 7px 8px;
    font-size: clamp(0.68rem, 3vw, 0.84rem);
    line-height: 1.05;
  }

  .hero-editorial p {
    white-space: nowrap;
  }

  .model-card .card-image {
    max-height: 310px;
  }

  .plan-map-plan img,
  .plan-map-images img {
    max-height: 300px;
  }
}

@media (max-width: 360px) {
  .hero-nav-band a {
    min-height: 36px;
    font-size: 0.66rem;
  }
}

/* Topo Habitar Consciente - versao estabilizada */
.hero {
  display: block;
  height: clamp(300px, 31vw, 520px);
  min-height: 0;
  background: #151811;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-content.container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  color: var(--white);
}

.hero-editorial {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-logo-line {
  position: absolute;
  top: 3.5%;
  left: 4.6%;
  width: clamp(270px, 38vw, 620px);
  padding: 0;
  border: 0;
}

.hero-logo-line img {
  width: 100%;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.42));
}

.hero-nav-band {
  position: absolute;
  left: clamp(18px, 3vw, 58px);
  right: clamp(18px, 3vw, 58px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  padding: 0;
  overflow: visible;
  background: transparent;
}

.hero-nav-band::before,
.hero-nav-band::after {
  display: none;
}

.hero-nav-band a,
.hero-nav-buttons a {
  display: flex;
  min-height: clamp(38px, 3.3vw, 52px);
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: rgba(24, 25, 19, 0.68);
  color: var(--white);
  font-size: clamp(0.68rem, 0.78vw, 0.92rem);
  font-weight: 850;
  line-height: 1.04;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.hero-nav-band a:hover,
.hero-nav-buttons a:hover {
  background: rgba(101, 126, 93, 0.72);
}

@media (max-width: 900px) {
  .hero {
    height: clamp(280px, 52vw, 460px);
  }

  .hero-logo-line {
    top: 5%;
    left: 5%;
    width: clamp(190px, 46vw, 360px);
  }

  .hero-nav-band {
    left: 4%;
    right: 4%;
    bottom: 5%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-nav-band a,
  .hero-nav-buttons a {
    min-height: 40px;
    padding: 7px 8px;
    font-size: clamp(0.68rem, 1.65vw, 0.88rem);
  }
}

@media (max-width: 560px) {
  .hero {
    height: clamp(295px, 76vw, 390px);
  }

  .hero-media img {
    object-position: 47% center;
  }

  .hero-logo-line {
    top: 5.8%;
    left: 5.5%;
    width: clamp(160px, 50vw, 245px);
  }

  .hero-nav-band {
    left: 4%;
    right: 4%;
    bottom: 4.5%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-nav-band a,
  .hero-nav-buttons a {
    min-height: 34px;
    padding: 6px 7px;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
  }
}

@media (max-width: 360px) {
  .hero {
    height: 310px;
  }

  .hero-logo-line {
    width: 158px;
  }

  .hero-nav-band a,
  .hero-nav-buttons a {
    min-height: 32px;
    font-size: 0.58rem;
  }
}

/* Ordem e afinação final do topo */
main {
  display: flex;
  flex-direction: column;
}

main > .section {
  order: 20;
}

main > .hero {
  order: 0;
}

main > .brand-guide-section {
  order: 1;
}

main > .models-section {
  order: 2;
}

main > #terrenos {
  order: 3;
}

main > #credito,
main > #vender-comprar,
main > #procuro-terreno,
main > #indice,
main > #validacao-tecnica,
main > #reabilitacao {
  order: 4;
}

main > #como-funciona {
  order: 5;
}

main > #partilhar {
  order: 6;
}

.hero-media img {
  object-position: center 40%;
  filter: brightness(0.86) contrast(1.08) saturate(1.06);
}

.hero-logo-line {
  top: 2.6%;
  left: 4.1%;
  width: clamp(310px, 42vw, 700px);
}

@media (max-width: 900px) {
  .hero-media img {
    object-position: center 38%;
  }

  .hero-logo-line {
    top: 4%;
    left: 4.8%;
    width: clamp(220px, 52vw, 410px);
  }
}

@media (max-width: 560px) {
  .hero-media img {
    object-position: center 36%;
  }

  .hero-logo-line {
    top: 5%;
    left: 5%;
    width: clamp(175px, 58vw, 265px);
  }
}

/* Reposicao da apresentacao lateral preferida */
.hero {
  display: flex;
  height: min(100svh, 56.25vw, 1080px);
  min-height: 0;
  background: #151811;
}

.hero-media img {
  object-position: center center;
  filter: brightness(0.94) contrast(1.03) saturate(1.03);
}

.hero-content.container {
  position: relative;
  width: min(100vw, calc(100svh * 16 / 9), 1920px);
  height: 100%;
  max-width: none;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.hero-logo-line {
  top: 8%;
  left: 12.2%;
  width: clamp(180px, 21vw, 390px);
}

.hero-index-nav {
  position: absolute;
  top: 26%;
  right: 3.1%;
  z-index: 4;
  display: grid;
  width: 18.5%;
  padding: 0;
  background: transparent;
}

.hero-index-nav a {
  display: flex;
  min-height: clamp(34px, 3.6vw, 64px);
  align-items: center;
  padding: 7px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.66);
  color: var(--white);
  font-size: clamp(0.76rem, 1.2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.08;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.hero-index-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-nav-band {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    height: clamp(300px, 56.25vw, 520px);
  }

  .hero-content.container {
    width: 100vw;
  }

  .hero-logo-line {
    top: 8%;
    left: 11.5%;
    width: clamp(150px, 24vw, 245px);
  }

  .hero-index-nav {
    top: 25%;
    right: 3.2%;
    width: 23%;
  }

  .hero-index-nav a {
    min-height: clamp(26px, 4.1vw, 44px);
    font-size: clamp(0.62rem, 1.65vw, 1rem);
  }
}

@media (max-width: 560px) {
  .hero {
    height: 56.25vw;
    min-height: 232px;
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-logo-line {
    top: 7.5%;
    left: 11%;
    width: clamp(112px, 31vw, 165px);
  }

  .hero-index-nav {
    top: 24%;
    right: 3%;
    width: 27%;
  }

  .hero-index-nav a {
    min-height: clamp(18px, 5vw, 28px);
    padding: 3px 0;
    border-bottom-width: 1px;
    font-size: clamp(0.48rem, 2.45vw, 0.7rem);
    line-height: 1.04;
  }
}

@media (max-width: 360px) {
  .hero {
    min-height: 210px;
  }

  .hero-index-nav a {
    min-height: 17px;
    font-size: 0.45rem;
  }
}

/* Hero fixo ao desenho da imagem inicial: imagem, logotipo e menu usam o mesmo quadro 16:9. */
.hero {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100svh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151811;
}

.hero-media,
.hero-shade,
.hero-content.container {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100vw, 1920px);
  height: 100%;
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #151811;
}

.hero-content.container {
  z-index: 3;
  aspect-ratio: auto;
  pointer-events: none;
}

.hero-logo-line,
.hero-index-nav {
  pointer-events: auto;
}

.hero-logo-line {
  top: 5.3%;
  left: 13.1%;
  width: 21.2%;
  min-width: 0;
  max-width: none;
}

.hero-index-nav {
  top: 28.2%;
  right: 0.8%;
  width: 17.4%;
}

.hero-index-nav a {
  min-height: clamp(18px, 3.35vw, 62px);
  padding: 0;
  font-size: clamp(0.48rem, 1.16vw, 1.35rem);
  line-height: 1.05;
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-content.container {
    width: 100vw;
  }

  .hero-logo-line {
    top: 5.5%;
    left: 12.8%;
    width: 22.2%;
  }

  .hero-index-nav {
    top: 27.2%;
    right: 1%;
    width: 19.2%;
  }

  .hero-index-nav a {
    min-height: clamp(17px, 3.55vw, 36px);
    font-size: clamp(0.46rem, 1.68vw, 0.9rem);
  }
}

@media (max-width: 560px) {
  .hero {
    height: 68vw;
    min-height: 285px;
    max-height: none;
    aspect-ratio: auto;
  }

  .hero-media,
  .hero-shade {
    width: 121vw;
  }

  .hero-content.container {
    width: 100vw;
  }

  .hero-media img {
    object-position: 45% center;
  }

  .hero-logo-line {
    top: 6.4%;
    left: 8.2%;
    width: 26.4%;
  }

  .hero-index-nav {
    top: 26%;
    right: 1.6%;
    width: 36%;
  }

  .hero-index-nav a {
    display: block;
    min-height: 0;
    padding: 3px 0;
    border-bottom-width: 1px;
    font-size: clamp(0.42rem, 2.12vw, 0.62rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 390px) {
  .hero-logo-line {
    left: 8.4%;
    width: 27.4%;
  }

  .hero-index-nav {
    right: 1.6%;
    width: 37%;
  }

  .hero-index-nav a {
    padding: 2px 0;
    font-size: clamp(0.39rem, 2.12vw, 0.56rem);
  }
}

/* Contencao mobile: impede que blocos antigos alarguem a pagina e desloquem o hero. */
@media (max-width: 720px) {
  html,
  body,
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container:not(.hero-content) {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-content.container {
    width: 100vw;
    max-width: none;
  }

  .section-heading,
  .section-heading h2,
  .section-heading p,
  .brand-guide-section h2,
  .brand-guide-section p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .intro-section .section-heading h2 {
    font-size: clamp(2rem, 9.2vw, 2.85rem);
    line-height: 1.08;
  }

  .intro-section .section-heading > p {
    font-size: clamp(1rem, 4.4vw, 1.25rem);
    line-height: 1.55;
  }
}

/* Ajuste final do topo: mantém o desenho da imagem, mas prende tudo ao ecrã. */
.hero-logo-line {
  top: 2.7%;
  left: 13.6%;
  width: 22%;
}

.hero-index-nav {
  top: 29.4%;
  right: 0.55%;
  width: 17.1%;
}

@media (max-width: 900px) {
  .hero-logo-line {
    top: 4.6%;
    left: 12.2%;
    width: 23%;
  }

  .hero-index-nav {
    top: 27.4%;
    right: 0.6%;
    width: 20.4%;
  }
}

@media (max-width: 560px) {
  .hero {
    height: 64vw;
    min-height: 265px;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .hero-media,
  .hero-shade,
  .hero-content.container {
    left: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    transform: translateX(-50%);
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-logo-line {
    top: 4.8%;
    left: 8.6%;
    width: 30%;
  }

  .hero-index-nav {
    top: 25.6%;
    right: 1%;
    width: 36%;
  }

  .hero-index-nav a {
    display: block;
    min-height: 0;
    padding: 2px 0;
    border-bottom-width: 1px;
    font-size: clamp(0.43rem, 2.18vw, 0.62rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
  }

  .brand-guide-section .section-heading {
    grid-template-columns: 1fr;
  }

  .brand-guide-section .section-heading,
  .brand-guide-section .section-heading > div,
  .brand-guide-section .section-heading h2,
  .brand-guide-section .section-heading > p {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .brand-guide-section .section-heading h2 {
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.08;
  }

  .brand-guide-section .section-heading > p {
    font-size: clamp(1rem, 4.2vw, 1.18rem);
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 64vw;
    min-height: 250px;
  }

  .hero-logo-line {
    top: 4.9%;
    left: 8.2%;
    width: 30%;
  }

  .hero-index-nav {
    top: 25.8%;
    right: 1%;
    width: 36%;
  }

  .hero-index-nav a {
    padding: 2px 0;
    font-size: clamp(0.4rem, 2.1vw, 0.54rem);
  }
}

/* Menu final em botoes inferiores: mais harmonioso em PC, tablet e telefone. */
.hero-index-nav {
  top: auto;
  right: auto;
  bottom: 4.3%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: min(84vw, 1080px);
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(21, 24, 17, 0.26);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.hero-index-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(21, 24, 17, 0.62);
  color: #fff;
  font-size: clamp(0.62rem, 0.78vw, 0.9rem);
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  overflow-wrap: normal;
  word-break: normal;
}

.hero-index-nav a:hover {
  background: rgba(101, 126, 93, 0.76);
}

@media (max-width: 900px) {
  .hero-index-nav {
    bottom: 4%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: min(86vw, 680px);
    padding: 6px;
  }

  .hero-index-nav a {
    min-height: 34px;
    padding: 6px;
    font-size: clamp(0.6rem, 1.6vw, 0.82rem);
  }
}

@media (max-width: 560px) {
  .hero {
    height: 72vw;
    min-height: 292px;
  }

  .hero-logo-line {
    top: 5%;
    left: 8.4%;
    width: 30%;
  }

  .hero-index-nav {
    bottom: 4.5%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: calc(100vw - 28px);
    padding: 5px;
    border-radius: 8px;
  }

  .hero-index-nav a {
    min-height: 31px;
    padding: 5px 4px;
    font-size: clamp(0.54rem, 2.15vw, 0.66rem);
    line-height: 1.03;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 76vw;
    min-height: 286px;
  }

  .hero-index-nav {
    width: calc(100vw - 22px);
    gap: 4px;
    padding: 4px;
  }

  .hero-index-nav a {
    min-height: 30px;
    font-size: clamp(0.48rem, 2.2vw, 0.58rem);
  }
}

/* Correção móvel: prende a grelha dos botões dentro do ecrã. */
@media (max-width: 560px) {
  .hero-index-nav {
    left: 12px;
    right: auto;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    transform: none;
    box-sizing: border-box;
  }

  .hero-index-nav a {
    box-sizing: border-box;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .hero-index-nav {
    left: 10px;
    width: min(340px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }
}

/* Hero final com a imagem enviada: sem camadas extra, sem logotipo duplicado. */
.hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: hidden;
  background: #10140f;
}

.hero-media {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  transform: none !important;
  display: block;
}

.hero-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none !important;
}

.hero-shade,
.hero-editorial,
.hero-logo-line {
  display: none !important;
}

.hero-content.container {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  pointer-events: none;
}

.hero-index-nav {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 5.1% !important;
  left: 50% !important;
  display: flex !important;
  align-items: stretch !important;
  gap: clamp(4px, 0.7vw, 9px) !important;
  width: min(76vw, 1040px) !important;
  max-width: calc(100vw - 32px) !important;
  padding: clamp(4px, 0.65vw, 8px) !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(22, 25, 18, 0.28) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  pointer-events: auto;
}

.hero-index-nav a {
  display: flex !important;
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: clamp(24px, 2.9vw, 42px) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 5px !important;
  background: rgba(22, 25, 18, 0.62) !important;
  color: #fff !important;
  font-size: clamp(0.38rem, 1vw, 0.86rem) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.44) !important;
  box-sizing: border-box;
}

.hero-index-nav a:hover {
  background: rgba(101, 126, 93, 0.76) !important;
}

@media (max-width: 700px) {
  .hero-index-nav {
    bottom: 4.2% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    gap: 2px !important;
    width: min(290px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 3px !important;
    border-radius: 6px !important;
  }

  .hero-index-nav a {
    min-height: 28px !important;
    padding: 3px 2px !important;
    font-size: clamp(0.35rem, 1.72vw, 0.58rem) !important;
    line-height: 0.95 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 390px) {
  .hero-index-nav {
    bottom: 3.7% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(280px, calc(100vw - 18px)) !important;
    max-width: calc(100vw - 18px) !important;
  }

  .hero-index-nav a {
    min-height: 27px !important;
    font-size: clamp(0.32rem, 1.6vw, 0.48rem) !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}
