.construction {
  --ink: #0b1834;
  --muted: #526078;
  --paper: #f8f5ef;
  --white: #ffffff;
  --accent: #c8613a;
  --line: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 50px rgba(10, 24, 52, 0.18);
  width: min(100%, 1920px);
  margin-inline: auto;
  padding: clamp(56px, 6vw, 110px) clamp(16px, 3vw, 56px);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font-family);
}

.construction,
.construction * {
  box-sizing: border-box;
}

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

.construction__heading {
  position: relative;
  z-index: 4;
  max-width: 1100px;
  margin: 0 auto clamp(32px, 4vw, 62px);
  text-align: center;
}

.construction__eyebrow {
  margin: 0 0 12px !important;
  color: var(--accent) !important;
  font-family: var(--body-font-family) !important;
  font-size: clamp(17px, 1.25vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.construction__heading h1 {
  margin: 0;
  font-family: var(--h1-font-family);
  font-weight: var(--h1-font-weight);
  font-size: clamp(40px, 5.2vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.construction__heading > p:last-child {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1.45;
}

.construction__stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1720px;
  aspect-ratio: 12 / 7.2;
  margin-inline: auto;
  border-radius: clamp(24px, 2.5vw, 44px);
  background: #d7d3c9;
  box-shadow: 0 28px 80px rgba(55, 44, 28, 0.16);
}

.construction__picture,
.construction__picture img,
.construction__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.construction__picture {
  overflow: hidden;
}

.construction__picture img {
  display: block;
  object-fit: cover;
}

.construction__shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 18, 37, 0.04) 0%, transparent 30%),
    linear-gradient(90deg, rgba(6, 18, 37, 0.13), transparent 22%, transparent 78%, rgba(6, 18, 37, 0.13));
}

.construction__connections {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.construction__connections path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: stroke 220ms ease, stroke-width 220ms ease;
}

.construction__connections circle {
  fill: var(--white);
  stroke: rgba(11, 24, 52, 0.55);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill 220ms ease, stroke 220ms ease, transform 220ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.construction__connections [data-line].is-active {
  stroke: #eda07e;
  stroke-width: 3;
}

.construction__connections [data-dot].is-active {
  fill: var(--accent);
  stroke: var(--white);
  transform: scale(1.45);
}

.construction__features {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.feature {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  width: clamp(178px, 16vw, 254px);
  min-height: clamp(72px, 6.5vw, 102px);
  padding: 15px 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 38px rgba(8, 19, 41, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: feature-drift var(--float-duration, 10s) ease-in-out var(--float-delay, 0s) infinite;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 240ms ease,
    background 220ms ease;
}

.feature:hover,
.feature:focus-visible,
.feature.is-active {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(8, 19, 41, 0.24);
  transform: translateY(-5px) scale(1.025);
  animation-play-state: paused;
}

.feature:focus-visible {
  outline: 3px solid rgba(11, 24, 52, 0.38);
  outline-offset: 4px;
}

.feature--finance {
  top: 18%;
  left: 2.5%;
}

.feature--camera {
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
}

.feature--camera:hover,
.feature--camera:focus-visible,
.feature--camera.is-active {
  transform: translateX(-50%) translateY(-5px) scale(1.025);
}

.feature--payment {
  top: 18%;
  right: 2.5%;
}

.feature--chat {
  bottom: 13%;
  left: 2%;
}

.feature--management {
  right: 2%;
  bottom: 13%;
  width: clamp(280px, 18vw, 310px);
  gap: 10px;
}

.feature__icon {
  display: grid;
  flex: 0 0 auto;
  width: clamp(58px, 4.4vw, 76px);
  height: clamp(58px, 4.4vw, 76px);
  place-items: center;
  border-radius: 0;
  background: transparent;
}

.feature__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.18);
  filter: drop-shadow(0 5px 7px rgba(16, 18, 21, 0.13));
}

.feature--finance .feature__icon img,
.feature--management .feature__icon img {
  transform: scale(1.24);
}

.feature--management .feature__icon {
  width: clamp(52px, 3.8vw, 64px);
  height: clamp(52px, 3.8vw, 64px);
}

.feature--management .feature__icon img {
  transform: scale(1.16);
}

.feature__copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.feature__copy strong {
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.18;
}

.feature__copy > span {
  color: var(--muted);
  font-size: clamp(11px, 0.88vw, 14px);
  line-height: 1.2;
}

.feature__status {
  position: absolute;
  top: 10px;
  right: 10px;
  isolation: isolate;
  width: 10px;
  height: 10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 97, 58, 0.13);
  animation: recording-dot 1.8s ease-in-out infinite;
}

.feature__status::before {
  position: absolute;
  inset: -5px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background: rgba(200, 97, 58, 0.42);
  animation: recording-wave 1.8s ease-out infinite;
}

.feature-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  width: min(38vw, 540px);
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(5, 17, 39, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.94);
  transform-origin: center;
  transition: opacity 190ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.feature-panel__media {
  position: relative;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: #dfe5df;
}

.feature-panel__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 -50px 60px rgba(7, 17, 37, 0.12);
}

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

.feature-panel[data-active-feature="camera"] .feature-panel__media img {
  transform: scaleX(1.045);
}

.feature-panel__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 24px 24px;
}

.feature-panel__number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--accent);
}

.feature-panel h2 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.1;
}

.feature-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
}

.feature-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  place-items: center;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(8, 19, 41, 0.14);
}

.feature-panel__close:focus-visible {
  outline: 3px solid rgba(200, 97, 58, 0.65);
  outline-offset: 2px;
}

.construction__hint {
  position: absolute;
  bottom: 3.3%;
  left: 50%;
  z-index: 3;
  margin: 0;
  padding: 12px 20px 13px;
  color: var(--white);
  font-size: clamp(13px, 0.85vw, 15px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(7, 18, 37, 0.72);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.16) 42%,
      rgba(7, 18, 37, 0.18) 100%
    );
  box-shadow:
    0 14px 36px rgba(7, 18, 37, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(7, 18, 37, 0.1);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  transform: translateX(-50%);
  animation: hint-enter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.construction__hint::before {
  position: absolute;
  inset: 2px;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.09) 34%,
    transparent 56%
  );
}

.construction__hint::after {
  position: absolute;
  inset: -4px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(200, 97, 58, 0.72);
  border-radius: inherit;
  opacity: 0;
  animation: hint-pulse 2.8s ease-out 1.65s infinite;
}

@keyframes feature-drift {
  0%,
  100% {
    translate: 0 0;
  }

  24% {
    translate: var(--drift-x-1, 5px) var(--drift-y-1, -3px);
  }

  51% {
    translate: var(--drift-x-2, -4px) var(--drift-y-2, -5px);
  }

  77% {
    translate: var(--drift-x-3, 3px) var(--drift-y-3, 2px);
  }
}

@keyframes recording-dot {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.9);
  }

  45% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes recording-wave {
  0% {
    opacity: 0.65;
    transform: scale(0.55);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.85);
  }
}

@keyframes hint-enter {
  0% {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-50%) translateY(18px) scale(0.9);
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes hint-pulse {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  18% {
    opacity: 0.68;
  }

  76%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@media (max-width: 1100px) {
  .construction {
    padding-inline: 18px;
  }

  .feature {
    width: 190px;
    min-height: 76px;
    padding: 12px 14px;
  }

  .feature--management {
    width: 230px;
  }

  .feature__copy > span {
    display: none;
  }

  .feature-panel {
    width: min(46vw, 470px);
  }
}

@media (max-width: 720px) {
  .construction {
    padding: 46px 12px 64px;
  }

  .construction__heading {
    margin-bottom: 28px;
  }

  .construction__heading h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .construction__heading > p:last-child {
    margin-top: 16px;
    font-size: 16px;
  }

  .construction__stage {
    display: grid;
    aspect-ratio: auto;
    padding: 14px;
    border-radius: 28px;
    background: #efeae0;
    box-shadow: none;
  }

  .construction__picture {
    position: relative;
    aspect-ratio: 4 / 5.3;
    border-radius: 20px;
  }

  .construction__picture img {
    object-position: center 68%;
    transform-origin: 50% 58%;
    animation: mobile-house-zoom 9s linear 0.2s both;
    will-change: transform;
  }

  .construction__shade {
    display: none;
  }

  .construction__connections,
  .construction__hint {
    display: none;
  }

  .construction__features {
    position: relative;
    z-index: 4;
    isolation: isolate;
    display: grid;
    gap: 9px;
    padding-top: 12px;
  }

  .construction__features::before {
    position: absolute;
    inset: 8px -10px -18px;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: radial-gradient(
      ellipse 72% 50% at 50% 48%,
      rgba(55, 44, 28, 0.14) 0%,
      rgba(55, 44, 28, 0.085) 45%,
      rgba(55, 44, 28, 0.035) 66%,
      transparent 86%
    );
    filter: blur(18px);
  }

  .feature,
  .feature--camera,
  .feature--finance,
  .feature--payment,
  .feature--chat,
  .feature--management {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 88px;
    padding-block: 8px;
    transform: none;
    animation: none;
    box-shadow: 0 8px 18px rgba(8, 19, 41, 0.055);
  }

  .feature:hover,
  .feature:focus-visible,
  .feature.is-active,
  .feature--camera:hover,
  .feature--camera:focus-visible,
  .feature--camera.is-active {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(8, 19, 41, 0.07);
  }

  .feature__copy strong {
    font-size: 16px;
  }

  .feature__icon {
    width: 70px;
    height: 70px;
  }

  .feature--management {
    gap: 14px;
  }

  .feature--management .feature__icon {
    width: 70px;
    height: 70px;
  }

  .feature--management .feature__icon img {
    transform: scale(1.24);
  }

  .feature__copy > span {
    display: block;
    font-size: 13px;
  }

  .feature-panel {
    position: relative;
    top: auto;
    left: auto;
    z-index: 5;
    display: none;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    border-radius: 18px;
    opacity: 0;
    transform: none;
    transition: max-height 360ms ease, opacity 180ms ease, margin 240ms ease;
  }

  .feature-panel.is-visible {
    display: grid;
    max-height: 520px;
    margin-top: 12px;
    opacity: 1;
    transform: none;
  }

  .feature-panel__media {
    aspect-ratio: 16 / 10;
  }

  .feature-panel__close {
    display: grid;
  }

  .feature-panel__body {
    gap: 12px;
    padding: 17px;
  }

  .feature-panel__number {
    width: 34px;
    height: 34px;
  }

  .feature-panel h2 {
    font-size: 21px;
  }
}

@keyframes mobile-house-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction,
  .construction *,
  .construction *::before,
  .construction *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
