@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-strong: #eff1ee;
  --text: #171b1f;
  --muted: #66706f;
  --line: #dfe4df;
  --accent: #f4b41a;
  --accent-dark: #9f6900;
  --green: #1c7c54;
  --charcoal: #20272b;
  --shadow: 0 24px 60px rgba(24, 32, 35, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(31, 39, 43, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.header-phone,
.header-email {
  font-weight: 800;
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(260px, 50vw);
  object-fit: contain;
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
  justify-content: flex-end;
  font-size: 14px;
  line-height: 1.25;
}

.header-phone,
.header-email {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.header-phone:hover,
.header-email:hover,
.site-footer a:hover {
  color: var(--accent-dark);
}

.home-page {
  height: 100svh;
  overflow: hidden;
  background: #101618;
}

.home-header {
  position: fixed;
  right: 0;
  left: 0;
  grid-template-columns: auto 1fr auto;
  background: rgba(255, 255, 255, 0.9);
}

.home-page .site-nav {
  display: flex;
}

.home-scroll {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overscroll-behavior-y: contain;
}

.home-layer {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px) 72px clamp(204px, 16vw, 242px);
  overflow: hidden;
  scroll-snap-align: start;
  background:
    linear-gradient(90deg, rgba(13, 18, 20, 0.92) 0%, rgba(13, 18, 20, 0.7) 42%, rgba(13, 18, 20, 0.16) 78%),
    var(--layer-image) var(--layer-position, center) / cover no-repeat;
  color: #ffffff;
}

.home-layer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(0deg, rgba(13, 18, 20, 0.48), rgba(13, 18, 20, 0));
  pointer-events: none;
}

.layer-content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
}

.layer-kicker,
.layer-content h1,
.layer-content h2,
.layer-content p:not(.layer-kicker),
.layer-content .hero-actions,
.company-stats {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 920ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 920ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-layer.is-visible .layer-kicker,
.home-layer.is-visible .layer-content h1,
.home-layer.is-visible .layer-content h2,
.home-layer.is-visible .layer-content p:not(.layer-kicker),
.home-layer.is-visible .layer-content .hero-actions,
.home-layer.is-visible .company-stats {
  opacity: 1;
  transform: translateY(0);
}

.home-layer.is-visible .layer-kicker {
  transition-delay: 80ms;
}

.home-layer.is-visible .layer-content h1,
.home-layer.is-visible .layer-content h2 {
  transition-delay: 180ms;
}

.home-layer.is-visible .layer-content p:not(.layer-kicker) {
  transition-delay: 300ms;
}

.home-layer.is-visible .layer-content .hero-actions {
  transition-delay: 420ms;
}

.home-layer.is-visible .company-stats {
  transition-delay: 390ms;
}

.layer-kicker {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.layer-content h1,
.layer-content h2 {
  max-width: 680px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
}

.about-layer .layer-content h1 {
  font-size: clamp(56px, 7vw, 92px);
}

.layer-content p:not(.layer-kicker) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, max-content));
  gap: clamp(12px, 2.2vw, 24px);
  margin: 34px 0 0;
}

.company-stats div {
  padding-right: clamp(12px, 2vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.company-stats div:last-child {
  border-right: 0;
}

.company-stats dt {
  color: var(--accent);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 900;
  line-height: 1;
}

.company-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.layer-nav {
  position: fixed;
  top: 50%;
  left: clamp(12px, 2.2vw, 32px);
  z-index: 18;
  display: grid;
  justify-items: center;
  transform: translateY(-42%);
  transition: opacity 240ms ease;
}

.layer-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.layer-nav a {
  display: grid;
  min-width: 126px;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: color 260ms ease;
}

.layer-nav a small {
  max-width: 124px;
  line-height: 1.3;
}

.layer-nav a:focus {
  outline: none;
}

.layer-nav a:focus-visible span {
  box-shadow: 0 0 0 3px rgba(244, 180, 26, 0.26);
}

.layer-nav a + a::before {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 7px 0 10px;
  background: rgba(255, 255, 255, 0.34);
}

.layer-nav a span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1;
  background: rgba(16, 22, 24, 0.28);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.layer-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.layer-nav a:hover,
.layer-nav a.is-active {
  color: var(--accent);
}

.layer-nav a:hover span,
.layer-nav a.is-active span {
  border-color: var(--accent);
  background: var(--accent);
  color: #1d1705;
  transform: scale(1.04);
}

.layer-scroll-hint {
  display: grid;
  margin-top: 42px;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.layer-scroll-hint span {
  position: relative;
  width: 20px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.layer-scroll-hint span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
  animation: scroll-wheel 1.7s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }

  45% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
}

.button-disabled {
  cursor: default;
  opacity: 0.88;
}

.button-disabled:hover {
  transform: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 86vh);
  padding: 96px clamp(20px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 25, 27, 0.9) 0%, rgba(20, 25, 27, 0.68) 38%, rgba(20, 25, 27, 0.12) 74%),
    var(--hero-image, url("/assets/img/hero-mzlf.png")) center / cover no-repeat;
  color: #ffffff;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg), rgba(246, 247, 245, 0));
  pointer-events: none;
}

.page-hero {
  min-height: min(500px, 62vh);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  min-width: 0;
  max-width: 680px;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 100%;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

p,
li,
summary,
dd {
  text-wrap: pretty;
}

.hero p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #1a1400;
  box-shadow: 0 18px 34px rgba(244, 180, 26, 0.28);
}

.button-primary:hover {
  background: #ffc533;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button-full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 580px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 900;
}

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

.service-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.foundation-cards-media .service-card {
  gap: 12px;
  grid-template-rows: auto 64px auto minmax(88px, 1fr) auto;
  align-content: stretch;
  height: 100%;
  min-height: 0;
  padding: 14px;
}

.foundation-cards-media .foundation-card-title {
  display: flex;
  height: 64px;
  align-items: start;
  margin: 0;
  line-height: 1.28;
}

.foundation-cards-media .card-meta {
  display: grid;
  gap: 8px;
  align-content: start;
}

.foundation-cards-media .card-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

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

.card-price,
.card-duration {
  display: inline-flex;
  width: 164px;
  min-height: 34px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #b8dce4;
  border-radius: 999px;
  background: #f4fafb;
  color: #24879c;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.card-price-neutral {
  background: #eef1ef;
  color: var(--muted);
}

@media (max-width: 1120px) and (min-width: 981px) {
  .foundation-cards-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.text-link {
  align-self: end;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 900;
}

.text-link::after {
  content: " →";
}

.foundation-cards-media .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  align-self: end;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #1d1705;
  box-shadow: 0 10px 22px rgba(228, 177, 43, 0.24);
}

.foundation-cards-media .text-link-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--charcoal);
  box-shadow: none;
}

.foundation-cards-media .text-link::after {
  content: "";
}

.split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.split-panels article {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.split-panels article:first-child {
  background: var(--surface-strong);
}

.split-panels p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.hero-price {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(244, 180, 26, 0.42);
  border-radius: 999px;
  background: rgba(244, 180, 26, 0.14);
  color: #fff4c8;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 950;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.hero-price span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 244, 200, 0.35);
  font-size: 15px;
  font-weight: 800;
}

.hero-duration-only span {
  padding-left: 0;
  border-left: 0;
  font-size: 18px;
}

.profile-section {
  background: #ffffff;
}

.foundation-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.profile-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #eef0ef;
  box-shadow: var(--shadow);
}

.profile-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.profile-copy {
  display: grid;
  gap: 16px;
  align-content: center;
}

.price-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-price {
  color: #2e9ab0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 950;
  line-height: 1;
}

.profile-pending {
  color: var(--charcoal);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 900;
}

.profile-duration {
  color: var(--muted);
  font-size: 16px;
}

.profile-copy h2,
.profile-copy p {
  margin: 0;
}

.layer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.layer-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.feature-card,
.work-note,
.document-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.08);
}

.feature-card-dark {
  background: var(--charcoal);
  color: #ffffff;
}

.feature-card ul,
.pros-cons ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card li,
.pros-cons li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.feature-card-dark li {
  color: rgba(255, 255, 255, 0.82);
}

.feature-card li::before,
.pros-cons li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff3c7;
  color: var(--accent-dark);
  font-weight: 900;
}

.feature-card-dark .feature-icon {
  background: var(--accent);
  color: #1d1705;
}

.compact-section {
  padding-top: 10px;
}

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

.foundation-fit-section {
  background: #ffffff;
}

.foundation-pros-cons-section {
  padding-top: 0;
  background: #ffffff;
}

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

.decision-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.08);
}

.decision-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.decision-card h3 span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 950;
}

.decision-icon svg {
  width: 18px;
  height: 18px;
}

.decision-icon-check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-icon-warning svg path:first-child {
  fill: currentColor;
}

.decision-icon-warning svg path:not(:first-child) {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.decision-plus h3 span {
  background: #dff3e8;
  color: #166d49;
}

.decision-minus h3 span {
  background: #fff0d9;
  color: #b36600;
}

.decision-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-card li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.decision-card li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  font-weight: 950;
}

.decision-plus li::before {
  content: "+";
  color: var(--green);
}

.decision-minus li::before {
  content: "−";
  color: #c27200;
}

.foundation-fit-section .decision-card li::before {
  content: "";
  top: 0.22em;
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.foundation-fit-section .decision-plus li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166d49' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.6 4.2 4.2L19 7'/%3E%3C/svg%3E");
}

.foundation-fit-section .decision-minus li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b36600' d='M12 3 2.8 20h18.4L12 3Z'/%3E%3Cpath d='M12 8.4v5.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M12 17.2h.01' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.key-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.key-strip span {
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(36, 135, 156, 0.18);
  border-radius: var(--radius);
  background: #f7fbfb;
  color: #315e65;
  font-weight: 850;
}

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

.pros-cons article {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pros-cons h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.pros-cons h3 span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1d1705;
}

.section {
  padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 52px);
}

.section-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading p,
.two-column > div:first-child p,
.request-layout > div:first-child p,
.contacts-layout > div:first-child p {
  color: var(--muted);
  font-size: 18px;
}

.geology-notice {
  max-width: 920px;
  margin: 0 0 28px;
  padding: clamp(18px, 2.5vw, 24px);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #fff6d8;
  color: var(--charcoal);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.calculator-section {
  padding-top: 24px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 24px;
  align-items: start;
}

.calculator-fields,
.estimate-panel,
.callback-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calculator-fields {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 900;
}

.choice-grid,
.extras-grid,
.field-pair {
  display: grid;
  gap: 12px;
}

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

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

.choice {
  position: relative;
  display: grid;
  min-height: 58px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  background: #fbfcfb;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice:has(input:checked) {
  border-color: #b77b00;
  background: #fff6d8;
  color: var(--text);
}

label {
  display: grid;
  gap: 8px;
  color: #384044;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cfd6d2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(244, 180, 26, 0.25);
}

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

.extras-grid label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.extras-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.single-check {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.single-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.estimate-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
}

.estimate-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-value {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 950;
  line-height: 1;
}

.disclaimer {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.contact-fields {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.contact-fields h3 {
  margin-bottom: 0;
}

.captcha {
  min-height: 44px;
}

.captcha-dev {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.captcha-dev input {
  width: 18px;
  min-height: 18px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.two-column {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.included-section,
.faq-section {
  background: var(--surface);
}

.included-list,
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.included-list article,
.advantages-grid article,
.steps li,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.included-list article,
.advantages-grid article {
  padding: 22px;
}

.included-list p,
.advantages-grid p,
.steps p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-list li {
  min-height: 250px;
}

.steps li {
  padding: 22px;
}

.steps span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 950;
}

.stage-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.stage-photo-grid li {
  position: relative;
  display: grid;
  min-height: 330px;
  align-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 22, 24, 0.16), rgba(15, 22, 24, 0.86)),
    var(--stage-image) center / cover no-repeat;
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.14);
}

.stage-photo-grid li::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.stage-photo-grid span,
.stage-photo-grid h3,
.stage-photo-grid p {
  position: relative;
  margin: 0;
}

.stage-photo-grid span {
  position: absolute;
  top: 22px;
  left: 22px;
  width: max-content;
  margin-bottom: 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #1d1705;
  font-size: 13px;
  font-weight: 950;
}

@media (max-width: 1240px) and (min-width: 981px) {
  .service-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stage-photo-grid h3 {
  color: #ffffff;
  font-size: 21px;
}

.stage-photo-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.service-stage-grid li {
  grid-template-rows: 278px 1fr;
  min-height: 0;
  align-content: stretch;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.service-stage-grid li::before {
  content: none;
}

.service-stage-grid .stage-media {
  position: relative;
  display: grid;
  align-content: end;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(15, 22, 24, 0.16), rgba(15, 22, 24, 0.86)),
    var(--stage-image) center / cover no-repeat;
}

.service-stage-grid p {
  margin: 0;
  padding: 16px 18px 18px;
  background: #ffffff;
  color: var(--muted);
  line-height: 1.55;
}

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

.advantages-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 22px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent-dark);
  font-size: 24px;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  padding-bottom: 20px;
}

.works-section {
  background: #ffffff;
}

.with-actions {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.carousel-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-button:hover {
  border-color: var(--accent);
  background: #fff8df;
  transform: translateY(-1px);
}

.work-carousel {
  --work-card-height: 400px;
  display: grid;
  grid-auto-columns: minmax(280px, 38%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.work-slide {
  position: relative;
  height: var(--work-card-height);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: inherit;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.1);
}

.work-slide:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.work-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-slide-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #172326 0%, #415246 100%);
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  transition: transform 0.3s ease;
}

.work-slide:hover img {
  transform: scale(1.035);
}

.work-slide:hover .work-slide-placeholder {
  transform: scale(1.025);
}

.work-slide-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  width: auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(14, 20, 22, 0.78);
  color: #ffffff;
}

.work-slide-caption strong {
  font-size: 15px;
  font-weight: 950;
}

.work-slide-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 850;
}

.work-drawer {
  display: grid;
  width: 100%;
  min-width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.34s ease, margin-top 0.34s ease;
}

.work-drawer.is-open {
  max-height: 620px;
  margin-top: 16px;
  opacity: 1;
  transform: translateY(0);
}

.work-drawer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.drawer-gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10;
}

.drawer-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-gallery img[hidden],
.drawer-photo-placeholder[hidden] {
  display: none;
}

.drawer-photo-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 46px) clamp(64px, 8vw, 76px);
  background: linear-gradient(135deg, #10191c 0%, #35473a 100%);
  color: #ffffff;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}

.drawer-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
  padding-left: clamp(4px, 2vw, 18px);
}

.drawer-photo-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(14, 20, 22, 0.7);
  color: #ffffff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.drawer-photo-button[hidden] {
  display: none;
}

.drawer-photo-prev {
  left: 12px;
}

.drawer-photo-next {
  right: 12px;
}

.drawer-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 20, 22, 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.drawer-kicker,
.work-drawer h3,
.work-drawer p {
  margin: 0;
}

.drawer-kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.work-drawer h3 {
  padding-right: 48px;
  font-size: clamp(22px, 3vw, 30px);
}

.work-drawer p[data-work-description] {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.76);
}

.works-empty {
  background: var(--surface-strong);
}

@media (max-width: 760px) {
  .work-drawer.is-open {
    max-height: none;
  }

  .work-drawer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    overflow: hidden;
  }

  .drawer-gallery {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .drawer-photo-button {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .drawer-photo-prev {
    left: 10px;
  }

  .drawer-photo-next {
    right: 10px;
  }

  .drawer-photo-count {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .drawer-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .drawer-photo-placeholder {
    min-height: 220px;
    padding-inline: 54px;
    font-size: clamp(20px, 6vw, 24px);
  }

  .drawer-copy {
    gap: 6px;
    padding-left: 0;
  }

  .drawer-kicker {
    font-size: 12px;
  }

  .work-drawer h3 {
    padding-right: 36px;
    font-size: 22px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }
}

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

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 250px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 32, 35, 0.08);
}

.review-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #1d1705;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
}

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

.review-card strong {
  margin-top: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr) minmax(240px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.work-card,
.work-note {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.work-card {
  position: relative;
  min-height: 360px;
  background: var(--charcoal);
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.work-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(14, 20, 22, 0.82);
  color: #ffffff;
}

.work-card figcaption span,
.work-note p {
  color: rgba(255, 255, 255, 0.72);
}

.work-note {
  display: grid;
  align-content: start;
}

.work-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.request-section {
  background: var(--charcoal);
  color: #ffffff;
}

.request-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.request-layout > div:first-child p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-size: 18px;
  font-weight: 800;
}

.contacts-section .contact-panel {
  border-color: var(--line);
  background: var(--surface-strong);
}

.planning-copy {
  max-width: 900px;
}

.planning-copy p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

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

.pricing-lines article {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricing-lines strong {
  color: #2e9ab0;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1;
}

.callback-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: none;
}

.contacts-section {
  background: #ffffff;
}

address {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  font-style: normal;
  font-size: 20px;
  font-weight: 900;
}

address span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 52px) 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #12191b;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.home-footer {
  scroll-snap-align: end;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-logo {
  display: block;
  width: min(260px, 68vw);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.footer-brand strong,
.footer-column h2 {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
}

.footer-brand p {
  max-width: 420px;
  margin-bottom: 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 4px;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 800;
}

.messenger-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.document-page {
  min-height: 60vh;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .home-page .site-header {
    grid-template-columns: auto 1fr;
  }

  .home-page .site-nav {
    display: flex;
  }

  .calculator-grid,
  .two-column,
  .request-layout,
  .contacts-layout,
  .foundation-cards,
  .split-panels,
  .feature-grid,
  .foundation-profile,
  .decision-grid,
  .key-strip,
  .pros-cons,
  .work-grid,
  .stage-photo-grid,
  .review-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .company-stats {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .foundation-cards-media .foundation-card-title {
    height: auto;
    min-height: 0;
  }

  .pricing-lines {
    grid-template-columns: 1fr;
  }

  .work-carousel {
    grid-auto-columns: minmax(280px, 72%);
  }

  .estimate-panel {
    position: static;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 1240px) {
  .site-nav {
    gap: 10px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 64px;
    gap: 12px;
    padding: 10px 18px;
  }

  .brand-logo {
    height: 42px;
    max-width: min(205px, 60vw);
  }

  .brand span:last-child {
    display: none;
  }

  .home-page .site-header {
    grid-template-columns: 1fr;
    padding: 10px 18px;
  }

  .site-nav,
  .home-page .site-nav {
    display: flex;
    grid-column: 1 / -1;
    gap: 8px 14px;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 0;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .header-contacts {
    width: 100%;
    max-width: 100%;
    gap: 2px 14px;
    justify-content: flex-start;
    font-size: 12px;
  }

  .header-phone,
  .header-email {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .footer-brand {
    flex-direction: column;
  }

  .footer-logo {
    width: min(260px, 100%);
  }

  .hero h1 {
    max-width: 330px;
  }

  h1 {
    font-size: clamp(30px, 9vw, 36px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(28px, 8vw, 34px);
    overflow-wrap: break-word;
  }

  .hero {
    min-height: 78vh;
    padding: 74px 18px 92px;
    background:
      linear-gradient(90deg, rgba(20, 25, 27, 0.94) 0%, rgba(20, 25, 27, 0.74) 64%, rgba(20, 25, 27, 0.2) 100%),
      var(--hero-image, url("/assets/img/hero-mzlf.png")) center / cover no-repeat;
  }

  .home-layer {
    padding: 118px 18px 64px;
    background:
      linear-gradient(90deg, rgba(13, 18, 20, 0.94) 0%, rgba(13, 18, 20, 0.78) 64%, rgba(13, 18, 20, 0.28) 100%),
      var(--layer-image) var(--layer-position, center) / cover no-repeat;
  }

  .company-stats {
    gap: 14px;
    margin-top: 20px;
  }

  .company-stats dt {
    font-size: 30px;
  }

  .company-stats dd {
    font-size: 12px;
  }

  .layer-content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .layer-nav {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(16, 22, 24, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    transform: none;
    scrollbar-width: none;
    backdrop-filter: blur(12px);
  }

  .layer-nav::-webkit-scrollbar {
    display: none;
  }

  .layer-nav a {
    flex: 1 0 48px;
    min-width: 48px;
    gap: 0;
    font-size: 11px;
  }

  .layer-nav a small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .layer-nav a span {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .layer-nav a + a::before {
    display: none;
  }

  .layer-scroll-hint {
    display: none;
  }

  .layer-scroll-hint span {
    width: 18px;
    height: 30px;
  }

  .layer-content h1,
  .layer-content h2 {
    font-size: 32px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .layer-content p:not(.layer-kicker) {
    font-size: 17px;
  }

  .layer-content .hero-actions {
    width: 100%;
    max-width: 100%;
  }

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

  .hero p {
    max-width: 100%;
    font-size: 16px;
  }

  .hero-actions,
  .site-footer,
  .footer-bottom {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .choice-grid,
  .field-pair,
  .extras-grid,
  .included-list,
  .advantages-grid,
  .foundation-cards,
  .steps,
  .feature-grid,
  .foundation-profile,
  .decision-grid,
  .key-strip,
  .pros-cons,
  .stage-photo-grid,
  .review-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .with-actions {
    display: grid;
  }

  .carousel-actions {
    justify-content: start;
  }

  .work-carousel {
    --work-card-height: 400px;
    grid-auto-columns: minmax(260px, 86%);
  }

  .stage-photo-grid li {
    min-height: 280px;
  }

  .service-stage-grid li {
    grid-template-rows: 250px 1fr;
    min-height: 0;
  }

  .stage-photo-grid span {
    margin-bottom: 0;
  }

  .work-card,
  .work-card img {
    min-height: 280px;
  }

  .site-footer {
    padding-bottom: 28px;
  }

  .section {
    padding: 42px 18px;
  }

  .calculator-section {
    padding-top: 18px;
  }

  .calculator-fields,
  .estimate-panel {
    padding: 20px;
  }

  .estimate-value {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .layer-kicker,
  .layer-content h1,
  .layer-content h2,
  .layer-content p:not(.layer-kicker),
  .layer-content .hero-actions {
    opacity: 1;
    transform: none;
  }
}

/* Home directions layer */
.directions-layer {
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 180, 26, 0.2), transparent 28%),
    linear-gradient(135deg, #11191c 0%, #1d292c 58%, #101618 100%);
}

.directions-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 12%, #000 70%);
}

.directions-content {
  width: min(100%, 920px);
}

.directions-content > p {
  margin-bottom: 28px;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 780px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 920ms cubic-bezier(0.16, 1, 0.3, 1) 380ms, transform 920ms cubic-bezier(0.16, 1, 0.3, 1) 380ms;
}

.directions-layer.is-visible .directions-grid {
  opacity: 1;
  transform: translateY(0);
}

.direction-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 4px 16px;
  align-items: center;
  min-height: 100px;
  padding: 18px;
  color: #ffffff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.direction-card:hover,
.direction-card:focus-visible {
  border-color: rgba(244, 180, 26, 0.74);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.direction-card-icon {
  grid-row: 1 / span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #1d1705;
  border-radius: 50%;
  background: var(--accent);
}

.direction-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.direction-card strong {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.16;
}

.direction-card small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.directions-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  border: 0;
  background: rgba(5, 9, 10, 0.64);
  backdrop-filter: blur(5px);
  cursor: default;
  animation: directions-backdrop-in 260ms ease both;
}

.directions-panel {
  --directions-panel-drag: 0px;
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(620px, calc(100% - 32px));
  height: clamp(460px, 58dvh, 600px);
  max-height: calc(100dvh - 16px);
  padding: 12px 22px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -26px 70px rgba(4, 9, 10, 0.34);
  transform: translate(-50%, calc(104% + var(--directions-panel-drag)));
  visibility: hidden;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 420ms;
  will-change: transform;
}

.directions-panel.is-open {
  visibility: visible;
  transform: translate(-50%, var(--directions-panel-drag));
}

.directions-panel.is-dragging {
  transition: none;
}

.directions-panel-open .home-scroll {
  overflow-y: hidden;
}

.directions-panel-handle {
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #d8ddda;
  cursor: grab;
  touch-action: none;
}

.directions-panel-handle:active {
  cursor: grabbing;
}

.directions-panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.directions-panel-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef1ef;
  color: var(--text);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.directions-panel-close:hover,
.directions-panel-close:focus-visible {
  color: #1d1705;
  background: var(--accent);
  outline: none;
  transform: scale(1.04);
}

.directions-panel-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.directions-panel-label {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directions-panel h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.12;
}

.directions-panel nav {
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.directions-panel nav .directions-panel-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(31, 39, 43, 0.09);
  border-radius: 18px;
  background: #f5f7f6;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.directions-panel nav .directions-panel-item:hover,
.directions-panel nav .directions-panel-item:focus-visible {
  border-color: rgba(244, 180, 26, 0.7);
  background: #fff8e6;
  outline: none;
  transform: translateY(-1px);
}

.directions-panel-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  background: #e9ecea;
}

.directions-panel-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.directions-panel-item-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.directions-panel-item-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.directions-panel-item-arrow {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.directions-panel > .button {
  min-height: 52px;
  margin-top: 10px;
  border-radius: 18px;
  font-size: 15px;
}

@keyframes directions-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Gallery states and project map */
.works-empty-message {
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
}

.objects-map-section {
  background: var(--surface-strong);
}

.objects-map-shell {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e7ebe7;
  box-shadow: var(--shadow);
}

.objects-map-canvas {
  width: 100%;
  height: 500px;
}

.objects-map-canvas[hidden],
.objects-map-popup[hidden] {
  display: none;
}

.objects-map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 34px;
  place-content: center;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 241, 238, 0.94)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(28, 124, 84, 0.08) 22px 23px);
}

.objects-map-placeholder[hidden] {
  display: none;
}

.objects-map-placeholder-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #1d1705;
  background: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.objects-map-placeholder strong {
  max-width: 620px;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
}

.objects-map-placeholder p {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
}

.objects-map-marker {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 12%;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(23, 27, 31, 0.34);
  cursor: pointer;
  transform: translate(-50%, -100%) rotate(-45deg);
  transition: background 180ms ease, transform 180ms ease;
}

.objects-map-marker span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #1d1705;
}

.objects-map-marker:hover,
.objects-map-marker:focus-visible,
.objects-map-marker.is-active {
  background: #ffffff;
  outline: none;
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.15);
}

.objects-map-popup {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 8;
  width: min(320px, calc(100% - 44px));
  overflow: hidden;
  border: 1px solid rgba(23, 27, 31, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.objects-map-popup > img {
  width: 100%;
  height: 152px;
  object-fit: cover;
}

.objects-map-popup > div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.objects-map-popup strong {
  padding-right: 34px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.objects-map-popup span,
.objects-map-popup p {
  color: var(--muted);
  font-size: 13px;
}

.objects-map-popup p {
  margin: 0 0 8px;
}

.objects-map-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.preliminary-note {
  margin: 0;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  background: rgba(244, 180, 26, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.calculator-back-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.calculator-back-link:hover,
.calculator-back-link:focus-visible {
  color: var(--text);
}

#foundation-top {
  scroll-margin-top: 72px;
}

@media (max-width: 980px) {
  .directions-grid {
    width: 100%;
  }

  .direction-card {
    grid-template-columns: 42px 1fr;
  }

  .direction-card-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 700px) {
  .directions-layer {
    padding-top: 104px;
  }

  .directions-content > p {
    margin-bottom: 18px;
    font-size: 15px !important;
  }

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

  .direction-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: start;
    min-height: 118px;
    padding: 12px 10px;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  .direction-card strong {
    font-size: 13px;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .direction-card small {
    grid-column: 1;
    font-size: 9px;
  }

  .direction-card-icon {
    grid-row: auto;
    width: 38px;
    height: 38px;
  }

  .direction-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .directions-panel {
    width: calc(100% - 12px);
    height: clamp(430px, 58dvh, 560px);
    padding: 10px 12px max(14px, env(safe-area-inset-bottom));
    border-radius: 30px 30px 0 0;
  }

  .directions-panel-heading {
    margin-bottom: 10px;
  }

  .directions-panel h3 {
    font-size: 23px;
  }

  .directions-panel nav .directions-panel-item {
    grid-template-columns: 64px minmax(0, 1fr) 20px;
    min-height: 62px;
    padding: 5px 10px 5px 5px;
  }

  .directions-panel-item img {
    width: 64px;
    height: 48px;
    border-radius: 13px;
  }

  .directions-panel-item-copy strong {
    font-size: 14px;
  }

  .directions-panel > .button {
    min-height: 50px;
    margin-top: 8px;
  }

  .objects-map-shell,
  .objects-map-canvas {
    min-height: 430px;
    height: 430px;
  }

  .objects-map-placeholder {
    padding: 22px;
  }

  .objects-map-popup {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .objects-map-popup > img {
    height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directions-grid {
    opacity: 1;
    transform: none;
  }
}

/* TECHNOPLIT extension: realized projects, shared calculators and stone houses */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.realized-layer {
  display: block;
  padding: 104px clamp(18px, 3vw, 42px) 28px clamp(168px, 13vw, 204px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #12191b;
  color: #ffffff;
}

.realized-layer::after {
  display: none;
}

.realized-layer-inner {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(360px, 45fr);
  gap: clamp(18px, 2.5vw, 32px);
  width: 100%;
  min-height: calc(100svh - 132px);
  align-items: stretch;
}

.realized-gallery,
.realized-map {
  min-width: 0;
}

.realized-left-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.realized-gallery {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.realized-gallery .section-heading {
  margin-bottom: 20px;
}

.realized-gallery .section-heading h2,
.realized-map h2 {
  color: #ffffff;
  font-size: clamp(28px, 3.1vw, 48px);
}

.realized-gallery .work-carousel {
  --work-card-height: clamp(260px, 42vh, 390px);
  grid-auto-columns: minmax(240px, 72%);
}

.realized-gallery .work-drawer {
  margin-top: 12px;
}

.realized-map {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
}

.realized-map h2 {
  margin: 0;
}

.realized-map .objects-map-shell,
.realized-map .objects-map-canvas {
  min-height: 0;
  height: 100%;
}

.foundation-calculator-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.foundation-calculator-tabs button {
  min-height: 54px;
  padding: 10px 12px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.foundation-calculator-tabs button:hover,
.foundation-calculator-tabs button.is-active,
.foundation-calculator-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(24, 32, 35, 0.1);
}

.foundation-calculator-panel[hidden] {
  display: none;
}

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

.compact-heading h3 {
  font-size: clamp(24px, 3vw, 36px);
}

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

.stone-house-card {
  grid-template-rows: auto 64px minmax(100px, 1fr) auto !important;
}

.stone-house-card img,
.stone-type-hero {
  background-position: center;
}

.objects-consultation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 54px);
  width: min(var(--container), calc(100% - 36px));
  margin: clamp(32px, 6vw, 76px) auto 24px;
  padding: clamp(24px, 4vw, 44px);
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(24, 32, 35, 0.14);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}

.objects-consultation h2 {
  margin: 4px 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.04;
}

.objects-consultation-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.objects-consultation .button {
  min-width: 260px;
}

.objects-consultation-compact {
  grid-template-columns: 1fr;
  width: 100%;
  margin: auto 0 0;
  padding: 22px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.objects-consultation-compact h2 {
  font-size: clamp(24px, 2.2vw, 34px);
}

.objects-consultation-compact .eyebrow,
.objects-consultation-compact .objects-consultation-copy > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.objects-consultation-compact .button {
  width: 100%;
  min-width: 0;
}

.consultation-scroll-lock {
  overflow: hidden;
}

.consultation-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.consultation-modal.is-open {
  opacity: 1;
}

.consultation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 19, 21, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.consultation-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(250, 251, 249, 0.9);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.consultation-modal.is-open .consultation-dialog {
  transform: translateY(0) scale(1);
}

.consultation-dialog h2 {
  margin: 6px 36px 10px 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.06;
}

.consultation-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.consultation-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.consultation-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.consultation-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.consultation-success {
  padding: 24px 0 6px;
  text-align: center;
}

.consultation-success > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.consultation-success .button {
  margin-top: 14px;
}

.basement-warning {
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  background: #fff7d9;
  color: #5f4a0b;
  font-size: 13px;
  font-weight: 700;
}

.foundation-result-details {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.foundation-result-details details {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.foundation-result-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.foundation-breakdown-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.foundation-breakdown-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.foundation-breakdown-list strong {
  text-align: right;
}

.stone-house-hero .hero-content,
.stone-type-hero .hero-content {
  max-width: 780px;
}

.house-calculator-section {
  background: var(--surface-strong);
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 64px);
  scroll-margin-top: 72px;
}

.house-calculator-section .section-heading {
  margin-bottom: 16px;
}

.house-calculator {
  display: grid;
  gap: 10px;
}

.house-calculator-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.house-calculator-progress button {
  display: grid;
  min-width: 0;
  min-height: 52px;
  place-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.house-calculator-progress button span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--muted);
}

.house-calculator-progress button.is-active,
.house-calculator-progress button.is-complete {
  border-color: #d6a120;
  color: var(--text);
}

.house-calculator-progress button.is-active span,
.house-calculator-progress button.is-complete span {
  background: var(--accent);
  color: #1d1705;
}

.house-calculator-step {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.house-calculator-step[hidden] {
  display: none;
}

.house-calculator-step :is(input, select) {
  min-height: 46px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.house-calculator-step > legend {
  float: left;
  width: 100%;
  margin: 0 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.house-calculator-step > legend span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-step-actions {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.house-calculator .button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.house-calculator .button-secondary:hover,
.house-calculator .button-secondary:focus-visible {
  border-color: #d6a120;
  background: #fff8df;
}

.house-step-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: #fff8df;
  color: var(--muted);
}

.house-calculator-result {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.house-calculator-result[hidden] {
  display: none;
}

.house-result-summary {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.house-result-summary > p:first-child {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-result-summary h3 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
}

.house-result-summary output {
  color: var(--green);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 950;
  line-height: 1.1;
}

.house-result-summary > p:last-child {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--muted);
}

.house-result-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.house-result-details > summary {
  position: relative;
  padding: 15px 48px 15px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.house-result-details > summary::-webkit-details-marker {
  display: none;
}

.house-result-details > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--accent-dark);
  font-size: 24px;
  transform: translateY(-50%);
}

.house-result-details[open] > summary::after {
  content: "−";
}

.house-result-details > :not(summary) {
  margin: 0 16px 16px;
}

.house-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.house-cost-breakdown {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.house-cost-breakdown h4 {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface-strong);
}

.house-cost-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.house-cost-breakdown span {
  color: var(--muted);
}

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

.house-scope-grid > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.house-scope-grid h4 {
  margin: 0 0 12px;
  font-size: 20px;
}

.house-scope-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.house-calculator-result .contact-fields {
  max-width: 680px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.house-result-back {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
}

.house-calculator-status {
  margin: 0;
}

.stone-type-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stone-type-steps li {
  min-height: 190px;
}

.stone-type-steps span {
  margin-bottom: 28px;
}

@media (max-width: 1180px) {
  .realized-layer {
    padding-left: 154px;
  }

  .realized-layer-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  }

  .stone-house-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .realized-layer {
    padding: 100px 24px 42px;
  }

  .realized-layer-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .realized-map .objects-map-shell,
  .realized-map .objects-map-canvas {
    min-height: 430px;
    height: 430px;
  }

  .foundation-calculator-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .realized-layer {
    padding: 92px 16px 34px;
  }

  .realized-gallery .work-carousel {
    --work-card-height: 280px;
    grid-auto-columns: minmax(250px, 88%);
  }

  .realized-map .objects-map-shell,
  .realized-map .objects-map-canvas {
    min-height: 360px;
    height: 360px;
  }

  .foundation-calculator-tabs,
  .stone-house-cards,
  .house-calculator-progress,
  .house-scope-grid,
  .stone-type-steps {
    grid-template-columns: 1fr;
  }

  .objects-consultation {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--container));
    padding: 22px 18px;
    border-radius: 22px;
  }

  .objects-consultation-compact {
    width: 100%;
  }

  .objects-consultation .button {
    width: 100%;
    min-width: 0;
  }

  .consultation-modal {
    padding: 0;
    place-items: end center;
  }

  .consultation-dialog {
    width: 100%;
    max-height: 92svh;
    padding: 26px 18px max(22px, env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    transform: translateY(36px);
  }

  .foundation-breakdown-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .foundation-breakdown-list strong {
    text-align: left;
  }

  .foundation-calculator-tabs button {
    min-height: 48px;
  }

  .house-calculator-progress {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .house-calculator-progress button {
    min-width: 116px;
    min-height: 58px;
    grid-template-columns: 26px 1fr;
    justify-items: start;
    scroll-snap-align: start;
  }

  .house-calculator-step {
    min-height: 0;
    padding: 20px 16px;
  }

  .house-step-actions,
  .house-result-actions,
  .house-cost-breakdown > div {
    align-items: stretch;
    flex-direction: column;
  }

  .house-step-actions .button,
  .house-result-actions .button {
    width: 100%;
  }

  .house-cost-breakdown > div {
    display: grid;
    gap: 4px;
  }

  .house-calculator-result {
    padding: 20px 16px;
  }
}

/* ── TECHNOPLIT: правки по просьбе заказчика ───────────────────────────── */

/* Виды фундаментов: пять карточек. В сетке по четыре последняя оставалась
   одна во втором ряду — раскладываем 3 сверху и 2 по центру снизу. */
@media (min-width: 1121px) {
  #foundation-choice .foundation-cards-media {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #foundation-choice .foundation-cards-media > .service-card {
    grid-column: span 2;
  }

  #foundation-choice .foundation-cards-media > .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* Средние экраны: по две карточки, нечётная последняя — по центру. */
@media (max-width: 1120px) and (min-width: 981px) {
  #foundation-choice .foundation-cards-media {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #foundation-choice .foundation-cards-media > .service-card {
    grid-column: span 2;
  }

  #foundation-choice .foundation-cards-media > .service-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}

/* Калькулятор коробки дома: заголовок шага («Шаг 1 Дом») вылезал над карточкой.
   Шаг — это <fieldset> с display: grid, а внутри сетки float у <legend> не работает,
   и браузер рисует legend на верхней рамке. Обычный поток возвращает float,
   а отступы между блоками задаём margin вместо gap. */
.house-calculator-step {
  display: block;
}

.house-calculator-step[hidden] {
  display: none;
}

.house-calculator-step > legend + * {
  clear: both;
}

.house-calculator-step > * + * {
  margin-top: 14px;
}

/* Описание технологии на страницах видов домов теперь идёт отдельным разделом
   в одну колонку: ограничиваем ширину абзаца, чтобы строки не тянулись во весь экран. */
.stone-technology .section-inner > div > p {
  max-width: 860px;
}
