/* ===================================================================
   СК «КАРКАСБРУС» — Pixel-Perfect Stylesheet matching Figma
   Palette: Matte Black #141414, Terracotta #BC3B22, White #FFFFFF
   Typography: Bebas Neue, Oswald, Inter, JetBrains Mono
   =================================================================== */

:root {
  --c-terra: #BC3B22;
  --c-terra-hover: #A0311C;
  --c-black: #141414;
  --c-black-pure: #000000;
  --c-white: #FFFFFF;
  --c-gray-100: #F7F7F6;
  --c-gray-200: #ECECEC;
  --c-gray-400: #A0A0A0;
  --c-gray-600: #666666;
  --c-border: #141414;
  --c-border-light: rgba(20, 20, 20, 0.12);
  --c-border-dark: rgba(255, 255, 255, 0.16);

  --font-display: 'Oswald', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --site-width: 1320px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--c-black);
  color: var(--c-black);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--c-white);
  min-width: 1440px; /* Locked desktop viewport matching Figma */
  overflow-x: hidden;
  line-height: 1.45;
}

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

button {
  font-family: inherit;
}

/* Shared Containers */
.site-container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-black);
  text-transform: lowercase;
  margin: 0;
  line-height: 1.1;
}

.red-star {
  color: var(--c-terra);
  font-weight: 700;
}

.section-divider-line {
  height: 1px;
  width: 100%;
  background-color: var(--c-border);
  margin: 14px 0 26px;
}

/* ===================================================================
   01. HEADER
   =================================================================== */
.figma-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background-color: var(--c-black);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
  will-change: transform;
}

.figma-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.figma-header.is-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.figma-header .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  margin-left: -1px;
  transition: opacity 0.2s ease;
}

.header-logo-img {
  display: block;
  height: 26px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.header-logo:hover {
  opacity: 0.88;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--c-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--c-terra);
}

.nav-link:focus-visible,
.header-logo:focus-visible,
.header-phone:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 4px;
  border-radius: 3px;
}

.header-phone {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--c-terra);
}

/* Native hash fallback offsets */
#hero { scroll-margin-top: calc(48px + env(safe-area-inset-top, 0px)); }
#about { scroll-margin-top: 102px; }
#trust { scroll-margin-top: 24px; }
#catalog,
#stages,
#built,
#lead,
#contacts { scroll-margin-top: 64px; }

/* ===================================================================
   02. HERO SECTION
   =================================================================== */
.hero-section {
  margin-top: calc(48px + env(safe-area-inset-top, 0px));
  position: relative;
  background-color: var(--c-black);
  overflow: visible;
}

.hero-banner {
  background-color: var(--c-terra);
  height: 350px;
  padding-top: 60px;
  position: relative;
  z-index: 1;
}

.hero-banner-inner {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-title-group {
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transform: translateY(-40px);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  line-height: 15px;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 13px;
  transform: translateY(20px);
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 210px;
  font-weight: 700;
  line-height: 0.85;
  color: var(--c-white);
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Floating 3D House on Island */
.hero-island-wrap {
  position: relative;
  width: 100%;
  height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hero-island-inner {
  position: absolute;
  top: -172px;
  width: 920px;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.hero-orbitals-svg {
  position: absolute;
  max-width: none;
  width: 1350px;
  height: auto;
  top: calc(50% - 60px);
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.45;
  z-index: 1;
}

.hero-house-img {
  position: relative;
  width: 860px;
  max-width: 860px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

/* Dark Stats Block */
.hero-stats-block {
  background-color: var(--c-black);
  padding-top: 475px;
  padding-bottom: 75px;
  position: relative;
  z-index: 5;
}

.stats-container {
  max-width: 980px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 20px 28px;
}

/* Row 1 cells: continuous horizontal border across all 3 columns */
.stat-cell-left,
.stat-cell-top,
.stat-cell-right {
  border-bottom: 1px solid var(--c-white);
}

/* Center column: continuous vertical borders flanking 15 & 400 */
.stat-cell-center {
  border-left: 1px solid var(--c-white);
  border-right: 1px solid var(--c-white);
}

.stat-cell-bottom {
  padding: 28px 20px 24px;
}

.stat-cell-empty {
  padding: 0;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 116px;
  font-weight: 700;
  color: var(--c-terra);
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 10px;
  text-transform: none;
}

/* ===================================================================
   03. SECTION: ДОВЕРИЕ (geometry from Figma frame 5963:2032, 1440px)
   =================================================================== */
.section-trust {
  background-color: var(--c-white);
  padding: 60px 0 40px;
}

/* Figma content area: x 60 → 1380 (1320px) */
.section-trust .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.section-trust .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  margin-left: -3px;
}

.section-trust .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.section-trust .section-divider-line {
  height: 2px;
  background-color: var(--c-black);
  margin: 19px 0 13px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 613px;
  gap: 0;
  align-items: stretch;
}

.trust-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.trust-lead-text {
  max-width: 572px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: -0.03em;
  color: #222222;
  margin: 0;
}

.cta-link-arrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 22px;
  color: var(--c-terra);
  text-decoration: none;
  border-bottom: 2px solid var(--c-terra);
  padding-bottom: 5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta-link-arrow:hover {
  opacity: 0.85;
}

.cta-arrow-icon {
  width: 14px;
  height: 10px;
  margin-top: 10px;
  overflow: visible;
}

@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
  .cta-link-arrow {
    position: relative;
    isolation: isolate;
    border-bottom: none;
    padding-bottom: 7px;
    transition: color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cta-link-arrow::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: calc(100% - 2px);
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--c-terra);
    border-radius: 0;
    transition:
      top 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      right 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      bottom 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      left 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.2s ease;
  }

  .cta-arrow-icon path {
    transition: stroke 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .cta-link-arrow:hover,
  .cta-link-arrow:focus-visible {
    opacity: 1;
    color: var(--c-white);
  }

  .cta-link-arrow:focus-visible {
    outline: none;
  }

  .cta-link-arrow:hover::before,
  .cta-link-arrow:focus-visible::before {
    top: -3px;
    right: -24px;
    bottom: -3px;
    left: -23px;
    border-radius: 5px;
  }

  .cta-link-arrow:focus-visible::before {
    box-shadow: 0 0 0 2px var(--c-white), 0 0 0 4px var(--c-black);
  }

  .cta-link-arrow:active::before {
    background-color: var(--c-terra-hover);
  }

  .cta-link-arrow:hover .cta-arrow-icon path,
  .cta-link-arrow:focus-visible .cta-arrow-icon path {
    stroke: var(--c-white);
  }
}

.accordion-list {
  border-top: none;
}

.acc-item {
  border-bottom: 1px solid var(--c-black);
}

.acc-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: padding 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.acc-item:first-child .acc-btn {
  padding-top: 0;
}

.acc-item.is-open .acc-btn {
  padding-bottom: 5px;
}

.acc-btn-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
}

.acc-btn-icon {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  line-height: 20px;
  color: #222222;
  margin-right: 9px;
  position: relative;
  top: 1px;
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.acc-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.acc-content-inner {
  overflow: hidden;
  min-height: 0;
}

.acc-content p {
  padding: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: -0.03em;
  color: #222222;
  margin: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.22s ease;
}

.acc-item.is-open .acc-content {
  grid-template-rows: 1fr;
}

.acc-item.is-open .acc-content p {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.acc-item.is-open .acc-btn-icon {
  transform: rotate(90deg);
}

/* ===================================================================
   04. SECTION: КАТАЛОГ ПРОЕКТОВ (Figma frame 5963:2032 + #trust system)
   =================================================================== */
.section-catalog {
  background-color: var(--c-white);
  padding: 20px 0 40px;
}

.section-catalog .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.section-catalog .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  margin-left: -3px;
}

.section-catalog .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.section-catalog .section-divider-line {
  height: 2px;
  background-color: var(--c-black);
  margin: 19px 0 13px;
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.filter-row {
  display: inline-flex;
  align-items: center;
  gap: 12px 20px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-black);
}

.filter-row:first-child {
  padding-top: 0;
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label-caption {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
}

.filter-tab-link,
.filter-sort-link,
.filter-area-link,
.filter-floor-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-tab-link::after,
.filter-sort-link::after,
.filter-area-link::after,
.filter-floor-link::after {
  content: attr(data-label);
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-weight: 600;
}

.filter-tab-link:hover,
.filter-sort-link:hover,
.filter-area-link:hover,
.filter-floor-link:hover {
  color: var(--c-terra);
}

.filter-tab-link:focus-visible,
.filter-sort-link:focus-visible,
.filter-area-link:focus-visible,
.filter-floor-link:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 3px;
  border-radius: 2px;
}

.filter-tab-link.is-active,
.filter-sort-link.is-active,
.filter-area-link.is-active,
.filter-floor-link.is-active {
  color: var(--c-terra);
  font-weight: 600;
}

/* 6 Cards Grid (3 cols × 2 rows) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px 11px;
  margin-top: 18px;
}

.cards-grid:empty {
  display: none;
}

.project-card {
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.25s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 433 / 300;
  overflow: hidden;
  background-color: var(--c-gray-100);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .card-img {
  transform: scale(1.035);
}

.card-info {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 15px 9px;
  border-bottom: 1px solid #222222;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #222222;
  margin: 0;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: #222222;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-specs {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #222222;
  padding: 11px 15px 13px;
  margin: 0;
}

/* ===================================================================
   05. SECTION: ЭТАПЫ СТРОИТЕЛЬСТВА
   =================================================================== */
.section-stages {
  background-color: var(--c-white);
  padding: 20px 0 40px;
}

.section-stages .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.stages-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-stages .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  margin-left: -3px;
}

.section-stages .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.pipeline-track {
  position: relative;
  width: 100%;
  height: 264px;
  margin-top: 28px;
}

.pipeline-svg-vector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.pipeline-accent-path {
  animation: pipeLineGlow 2.8s ease-in-out infinite;
}

.pipeline-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.pipe-step-1 {
  left: 0;
  top: 0;
  width: min(285px, calc(24.6% - 14px));
}

.pipe-step-2 {
  left: calc(24.6% + 9px);
  top: 76px;
  width: min(268px, calc(24.27% - 18px));
}

.pipe-step-3 {
  left: calc(48.87% + 9px);
  top: 156px;
  width: min(268px, calc(24.36% - 18px));
}

.pipe-step-4 {
  left: calc(73.23% + 9px);
  top: 76px;
  width: min(310px, calc(26.77% - 9px));
}

.pipe-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
  letter-spacing: 0;
  margin: 0;
}

.pipe-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: -0.03em;
  color: #6C6C6C;
  margin: 0;
}

.pipe-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--c-black);
  z-index: 3;
  pointer-events: none;
}

.pipe-dot-1 {
  left: 0;
  top: 84px;
  transform: translateY(-50%);
}

.pipe-dot-2 {
  left: 24.6%;
  top: 164px;
  transform: translate(-50%, -50%);
}

.pipe-dot-3 {
  left: 48.87%;
  top: 244px;
  width: 20px;
  height: 20px;
  background-color: var(--c-terra);
  border: 2.5px solid #A24634;
  transform: translate(-50%, -50%);
  animation: pipeDotGlow 2.8s ease-in-out infinite;
}

.pipe-dot-3::after {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(188, 59, 34, 0.55);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
  animation: pipeDotHalo 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pipeDotGlow {
  0%, 100% {
    box-shadow: 0 0 8px 1px rgba(188, 59, 34, 0.22), 0 0 0 0 rgba(188, 59, 34, 0.24);
  }
  50% {
    box-shadow: 0 0 18px 4px rgba(188, 59, 34, 0.42), 0 0 0 4px rgba(188, 59, 34, 0.08);
  }
}

@keyframes pipeDotHalo {
  0% {
    opacity: 0.62;
    transform: scale(1);
  }
  72%, 100% {
    opacity: 0;
    transform: scale(2.15);
  }
}

@keyframes pipeLineGlow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(188, 59, 34, 0.16));
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(188, 59, 34, 0.32));
  }
}

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

  .figma-header {
    transition-duration: 0.01ms;
  }

  .pipe-dot-3,
  .pipe-dot-3::after,
  .pipeline-accent-path {
    animation: none;
  }
}

.pipe-dot-4 {
  left: 73.23%;
  top: 164px;
  transform: translate(-50%, -50%);
}

.pipe-num {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
  z-index: 3;
}

.pipe-num-1 {
  left: 0;
  top: 96px;
}

.pipe-num-2 {
  left: 24.6%;
  top: 176px;
  transform: translateX(-50%);
}

.pipe-num-3 {
  left: calc(48.87% - 15px);
  top: 244px;
  transform: translate(-100%, -50%);
  color: var(--c-terra);
}

.pipe-num-4 {
  left: calc(73.23% + 9px);
  top: 171px;
}

/* ===================================================================
   06. SECTION: ПОСТРОЕННЫЕ ДОМА
   =================================================================== */
.section-built {
  background-color: var(--c-white);
  padding: 30px 0 40px;
}

.section-built .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.built-grid {
  display: grid;
  grid-template-columns: minmax(420px, 494px) minmax(480px, 610px);
  justify-content: space-between;
  gap: clamp(40px, 8vw, 136px);
  align-items: start;
}

.built-left-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-built .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  margin: 0 0 26px -3px;
}

.section-built .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.built-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 440px;
  min-height: 440px;
}

.built-item {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 40px;
  min-width: 0;
  padding: 0 15px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.built-item:hover,
.built-item:focus-visible {
  background-color: rgba(188, 59, 34, 0.08);
}

.built-item.is-active {
  background-color: var(--c-terra);
  color: var(--c-white);
}

.built-idx {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-terra);
  width: 22px;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.built-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s ease;
}

.built-item.is-active .built-idx,
.built-item.is-active .built-title {
  color: var(--c-white);
}

.built-item[hidden] {
  display: none;
}

.built-list-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.built-list-pager[hidden] {
  display: none;
}

.built-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #222222;
  border-radius: 5px;
  background-color: var(--c-white);
  color: #222222;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.built-more-btn:hover,
.built-more-btn:focus-visible {
  background-color: var(--c-terra);
  border-color: var(--c-terra);
  color: var(--c-white);
}

.built-more-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.72;
}

.built-pager-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666666;
}

.built-frame {
  width: 100%;
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
}

.built-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 581 / 331;
  overflow: hidden;
  background-color: #222222;
  cursor: pointer;
}

.built-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.012);
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.built-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.48) 100%);
  opacity: 0.92;
  transition: background-color 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.built-photo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 5px;
  background-color: rgba(20, 20, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, border-color 0.2s ease;
}

.built-img-wrap:hover .built-img,
.built-img-wrap:focus-visible .built-img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.built-img-wrap:hover .built-photo-pill,
.built-img-wrap:focus-visible .built-photo-pill {
  background-color: var(--c-terra);
  border-color: var(--c-terra);
  transform: translateY(-2px);
}

.built-img-wrap:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: -2px;
}

.built-badge-tag {
  padding: 12px 15px 13px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #222222;
  background-color: var(--c-white);
}

@media (min-width: 901px) {
  .built-photo-col {
    /* Fixed outer slot height keeps the section and left list steady while card borders hug text */
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .built-frame {
    width: 100%;
  }

  .built-badge-tag {
    min-height: 0;
  }
}

.built-card-head {
  display: inline;
}

.built-card-author {
  display: none;
}

/* ===================================================================
   07. SECTION: ОТПРАВЬТЕ ЗАЯВКУ
   =================================================================== */
.section-lead {
  background-color: var(--c-white);
  padding: 20px 0 65px;
}

.section-lead .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.section-lead .section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 0;
  margin-left: -3px;
}

.section-lead .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 10px;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(360px, 432px) minmax(460px, 590px);
  justify-content: space-between;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  margin-top: 22px;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.underline-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #6C6C6C;
  padding: 6px 0 8px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: var(--c-black);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

.underline-input::placeholder {
  color: #6C6C6C;
  opacity: 1;
}

.underline-input:focus {
  border-bottom-color: var(--c-terra);
}

.underline-input.has-error {
  border-bottom-color: #D32F2F;
}

.input-error-msg {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #D32F2F;
  margin-top: 4px;
  display: none;
}

.underline-input.has-error + .input-error-msg {
  display: block;
}

.form-checkbox-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
}

.custom-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  cursor: pointer;
}

.checkmark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1.5px solid #6C6C6C;
  background-color: var(--c-white);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #6C6C6C;
  border-color: #6C6C6C;
}

.custom-checkbox input:focus-visible ~ .checkmark {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
}

.checkmark::after {
  content: "✔";
  font-size: 9px;
  line-height: 1;
  color: var(--c-white);
  display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.consent-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.03em;
  color: #6C6C6C;
  transition: color 0.2s ease;
}

.consent-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.consent-link:hover,
.consent-link:focus-visible {
  color: var(--c-terra);
}

.form-checkbox-wrap.has-error .checkmark {
  border-color: #D32F2F;
  background-color: rgba(211, 47, 47, 0.06);
}

.form-checkbox-wrap.has-error .consent-label {
  color: #D32F2F;
}

.form-checkbox-wrap.has-error .consent-error-msg {
  display: block;
  margin-top: 6px;
}

.btn-terracotta-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-terra);
  color: var(--c-white);
  border: none;
  border-radius: 5px;
  padding: 4px 16px 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: 6px;
}

.btn-terracotta-submit:hover {
  background-color: var(--c-terra-hover);
}

.btn-terracotta-submit:active {
  transform: translateY(1px);
}

/* Andrei's Quote */
.lead-quote-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-quote-box {
  position: relative;
}

.quote-star {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 800;
  color: var(--c-terra);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quote-star-tl {
  left: -24px;
  top: -18px;
}

.quote-star-br {
  right: 8px;
  bottom: -14px;
}

.lead-quote-body {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: -0.03em;
  color: var(--c-black);
  margin: 0;
}

.lead-quote-author {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.03em;
  color: var(--c-black);
  font-style: normal;
}

/* ===================================================================
   08. FOOTER
   =================================================================== */
.figma-footer {
  background-color: var(--c-black);
  padding: 42px 0 26px;
  color: var(--c-white);
}

.figma-footer .site-container {
  max-width: 1440px;
  padding: 0 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 40px;
  align-items: start;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #A6A6A6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--c-white);
}

.footer-address {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #A6A6A6;
  margin: 0;
}

.footer-col-email {
  justify-self: end;
}

.footer-big-email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: var(--c-white);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: -6px;
  transition: color 0.2s ease;
}

.footer-big-email:hover {
  color: var(--c-terra);
}

.footer-divider-line {
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 34px 0 18px;
}

.footer-bottom-row {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #A6A6A6;
}

.footer-bottom-row p {
  margin: 0;
}

.footer-legal-link {
  color: #A6A6A6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-offer-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 17px;
  color: #7C7C7C;
}

/* ===================================================================
   09. MODAL POP-UP (Desktop - 8 #5952-1918)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px 32px;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal-box {
  background-color: var(--c-white);
  width: 100%;
  max-width: 1240px;
  max-height: calc(100vh - 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #222222;
  border-radius: 5px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.modal-backdrop.is-active .modal-project-box {
  animation: modalSuccessPop 0.28s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #6C6C6C;
  z-index: 10;
  transition: color 0.18s ease;
}

.modal-close-icon svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.modal-close-icon:hover {
  color: var(--c-terra);
}

.modal-close-icon:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
  border-radius: 3px;
}

.modal-scroll-area {
  overflow-y: auto;
  padding: 38px 44px 42px;
}

.modal-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 556px) minmax(0, 1fr);
  gap: 20px 40px;
  align-items: start;
}

.modal-top-grid.is-no-gifts .modal-gallery {
  grid-row: 1 / 3;
}

.modal-top-grid.is-no-gifts .modal-details-top,
.modal-top-grid.is-no-gifts .modal-lead-form {
  grid-column: 2;
}

/* Gallery */
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
  cursor: zoom-in;
}

.modal-main-img-wrap:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.modal-main-img-wrap:hover .modal-main-img {
  transform: scale(1.015);
}

.modal-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--c-white);
  pointer-events: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-main-img-wrap:hover .modal-zoom-hint {
  background-color: var(--c-terra);
  border-color: var(--c-terra);
  transform: scale(1.05);
}

.modal-main-img-wrap.is-plan .modal-main-img {
  object-fit: contain;
  padding: 12px;
}

.modal-thumbs-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

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

.thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--c-white);
  border: 1px solid rgba(34, 34, 34, 0.28);
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-btn:hover {
  border-color: var(--c-terra);
}

.thumb-btn:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
}

.thumb-btn.is-active {
  border: 2px solid var(--c-terra);
}

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

.thumb-btn.is-plan-thumb img {
  object-fit: contain;
  padding: 4px;
}

/* Right Column: Title, Price, Specs Table & Inline Lead Form */
.modal-details-top {
  display: flex;
  flex-direction: column;
}

.modal-header-block {
  padding-right: 40px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.02em;
  color: var(--c-black);
  margin: 0;
}

.modal-price {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.02em;
  color: var(--c-terra);
  margin-top: 6px;
}

.modal-specs-table {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #D9D9D9;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.02em;
}

.spec-label {
  color: #6C6C6C;
  font-weight: 400;
  flex-shrink: 0;
}

.spec-val {
  color: #222222;
  font-weight: 400;
  text-align: right;
}

.modal-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.modal-submit-btn {
  margin-top: 2px;
}

/* Bottom Half: Конструктив и комплектация дома */
.modal-tech-wrap {
  margin-top: 32px;
}

.modal-tech-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--c-black);
  margin: 0 0 12px;
}

.modal-inline-star {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  vertical-align: top;
  position: relative;
  top: 6px;
}

.modal-tech-accordion .acc-item {
  border-bottom: 1px solid #D9D9D9;
}

.modal-tech-accordion .acc-btn {
  padding: 12px 0;
}

.modal-tech-accordion .acc-item:first-child .acc-btn {
  padding-top: 4px;
}

.modal-tech-accordion .acc-item.is-open .acc-btn {
  padding-bottom: 6px;
}

.modal-tech-accordion .acc-content p {
  padding: 0 32px 14px 0;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: #222222;
}

/* ===================================================================
   10. SUCCESS CONFIRMATION MODAL
   =================================================================== */
@keyframes modalSuccessPop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-success-box {
  max-width: 460px;
  padding: 28px 32px 30px;
  text-align: left;
  align-items: stretch;
  border: 1px solid #222222;
  border-radius: 5px;
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.24);
}

.modal-backdrop.is-active .modal-success-box {
  animation: modalSuccessPop 0.28s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.success-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.success-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  margin-right: -6px;
  flex-shrink: 0;
  color: #6C6C6C;
  cursor: pointer;
  transition: color 0.18s ease;
}

.success-close-x svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.success-close-x:hover {
  color: var(--c-terra);
}

.success-title {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--c-black);
  margin: 0 0 0 -2px;
}

.success-title .red-star {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  line-height: 26px;
  vertical-align: top;
  position: relative;
  top: 6px;
}

.success-divider {
  width: 100%;
  height: 1px;
  background-color: #E5E5E5;
  margin-bottom: 18px;
}

.success-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.03em;
  color: #6C6C6C;
  margin: 0 0 24px;
}

.success-highlight {
  font-weight: 500;
  color: var(--c-black);
}

.success-phone {
  white-space: nowrap;
}

.btn-success-close {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-terra);
  color: var(--c-white);
  border: none;
  border-radius: 5px;
  padding: 4px 16px 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-success-close:hover {
  background-color: var(--c-terra-hover);
}

.btn-success-close:active {
  transform: translateY(1px);
}

/* ===================================================================
   10b. FULLSCREEN IMAGE LIGHTBOX
   =================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(68px, calc(env(safe-area-inset-top) + 20px)) 20px max(68px, calc(env(safe-area-inset-bottom) + 20px));
  background-color: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-backdrop.is-active {
  display: flex;
}

.lightbox-close-btn {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 2210;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  color: var(--c-white);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lightbox-close-btn svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.lightbox-close-btn:hover {
  background-color: var(--c-terra);
  border-color: var(--c-terra);
}

.lightbox-close-btn:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1360px;
  max-height: 100%;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.lightbox-backdrop.is-plan .lightbox-img {
  background-color: var(--c-white);
  padding: 14px;
}

/* ===================================================================
   11. MOBILE NAVIGATION, SWITCHER & RESPONSIVE BREAKPOINTS
   =================================================================== */
.header-burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -9px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.header-burger:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
  border-radius: 4px;
}

.burger-line {
  width: 22px;
  height: 1px;
  background-color: var(--c-white);
  border-radius: 1px;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
  transform-origin: center;
}

.header-burger.is-open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.is-open .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header-burger.is-open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.built-mobile-nav {
  display: none;
}

/* Tablet & Small Desktop fluid container alignment */
@media (max-width: 1439px) {
  html,
  body {
    min-width: 0;
    overflow-x: clip;
  }

  .hero-section {
    overflow-x: clip;
  }

  .figma-header .site-container,
  .section-trust .site-container,
  .section-catalog .site-container,
  .section-stages .site-container,
  .section-built .site-container,
  .section-lead .site-container,
  .figma-footer .site-container {
    padding-left: clamp(20px, 6.9vw, 100px);
    padding-right: clamp(20px, 6.9vw, 100px);
  }

  .hero-title {
    font-size: clamp(56px, 14.5vw, 204px);
  }
}

@media (max-width: 1200px) {
  .hero-banner {
    height: 300px;
    padding-top: 44px;
  }

  .hero-island-inner {
    top: -135px;
    width: 760px;
    height: 530px;
  }

  .hero-orbitals-svg {
    width: 1120px;
  }

  .hero-house-img {
    width: 700px;
    max-width: 700px;
  }

  .hero-stats-block {
    padding-top: 400px;
  }

  .stat-number {
    font-size: 96px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
  }

  .built-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 40px;
  }

  .lead-grid {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 48px;
  }

  .modal-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 30px;
  }
}

/* Tablet Portrait & Landscape */
@media (max-width: 1024px) {
  .site-container,
  .figma-header .site-container,
  .section-trust .site-container,
  .section-catalog .site-container,
  .section-stages .site-container,
  .section-built .site-container,
  .section-lead .site-container,
  .figma-footer .site-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .header-logo-img {
    height: 24px;
  }

  .header-nav {
    gap: 20px;
  }

  .hero-banner {
    height: 270px;
    padding-top: 42px;
  }

  .hero-title-group {
    transform: translateY(-20px);
  }

  .hero-tagline {
    font-size: 14px;
    line-height: 16px;
    transform: translateY(14px);
  }

  .hero-island-inner {
    top: -115px;
    width: 640px;
    height: 450px;
  }

  .hero-orbitals-svg {
    width: 920px;
    top: calc(50% - 40px);
  }

  .hero-house-img {
    width: 590px;
    max-width: 590px;
  }

  .hero-stats-block {
    padding-top: 340px;
    padding-bottom: 60px;
  }

  .stat-number {
    font-size: 84px;
  }

  .section-trust .section-heading,
  .section-catalog .section-heading,
  .section-stages .section-heading,
  .section-built .section-heading,
  .section-lead .section-heading {
    font-size: 46px;
    line-height: 44px;
    margin-left: 0;
  }

  .section-trust .red-star,
  .section-catalog .red-star,
  .section-stages .red-star,
  .section-built .red-star,
  .section-lead .red-star {
    font-size: 0.5em;
    line-height: 1.2;
    top: 0.44em;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .trust-left-col {
    gap: 18px;
  }

  .trust-lead-text {
    max-width: 100%;
    line-height: 22px;
  }

  .trust-lead-text br {
    display: none;
  }

  .acc-content p {
    line-height: 21px;
  }

  .filter-row {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

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

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

  .footer-col-email {
    justify-self: start;
  }

  .modal-close-icon {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(34, 34, 34, 0.22);
    border-radius: 5px;
    color: var(--c-black);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  }

  .modal-close-icon svg {
    width: 16px;
    height: 16px;
  }

  .modal-scroll-area {
    padding: 28px 28px 32px;
  }

  .modal-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .modal-top-grid.is-no-gifts .modal-gallery {
    grid-row: auto;
  }

  .modal-top-grid.is-no-gifts .modal-details-top,
  .modal-top-grid.is-no-gifts .modal-lead-form {
    grid-column: auto;
  }

  .modal-gallery {
    order: 1;
  }

  .modal-details-top {
    order: 2;
  }

  .modal-gifts-card {
    order: 3;
  }

  .modal-lead-form {
    order: 4;
  }
}

/* Switch stepped pipeline to clean vertical timeline before cards overlap */
@media (max-width: 960px) {
  .section-stages .section-heading {
    margin-left: 0;
  }

  .pipeline-svg-vector,
  .pipe-dot,
  .pipe-num {
    display: none;
  }

  .pipeline-track {
    height: auto;
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
    padding-left: 34px;
    counter-reset: stage-step;
  }

  .pipeline-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    gap: 6px;
    padding-bottom: 0;
    counter-increment: stage-step;
  }

  .pipeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--c-black);
    z-index: 2;
  }

  .pipeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -27px;
    top: 11px;
    height: calc(100% + 20px);
    width: 2px;
    background-color: var(--c-black);
    z-index: 1;
  }

  .pipe-step-3::before {
    background-color: var(--c-terra);
    border: 2px solid #A24634;
    animation: pipeDotGlow 2.8s ease-in-out infinite;
  }

  .pipe-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
  }

  .pipe-name::before {
    content: "0" counter(stage-step);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--c-black);
    flex-shrink: 0;
  }

  .pipe-step-3 .pipe-name::before {
    color: var(--c-terra);
  }

  .pipe-text {
    font-size: 15px;
    line-height: 21px;
    letter-spacing: -0.02em;
  }
}

/* Showcase Variant A + Lead Stack */
@media (max-width: 900px) {
  .built-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .built-photo-col,
  .built-mobile-nav,
  .trust-left-col,
  .trust-right-col,
  .lead-form-col,
  .lead-quote-col {
    min-width: 0;
  }

  .built-left-col {
    display: contents;
  }

  .section-built .section-heading {
    order: 1;
    margin-left: 0;
    margin-bottom: 0;
  }

  .built-list,
  .built-list-pager {
    display: none;
  }

  .built-photo-col {
    order: 2;
  }

  .built-img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .built-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .built-badge-tag {
    padding: 0;
  }

  .built-card-head {
    display: block;
    min-height: 84px;
    padding: 13px 16px 12px;
    border-bottom: 1px solid #222222;
  }

  .built-card-author {
    display: block;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
    letter-spacing: -0.02em;
    color: var(--c-black);
    margin-bottom: 3px;
  }

  .built-badge-title {
    display: block;
    font-size: 14px;
    line-height: 19px;
    color: #6C6C6C;
    margin-bottom: 0;
  }

  .built-badge-review {
    display: block;
    padding: 12px 16px 14px;
    font-size: 15px;
    line-height: 21px;
    letter-spacing: -0.02em;
    color: #222222;
  }

  .built-badge-review[hidden] {
    display: none;
  }

  .built-mobile-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid #222222;
    background-color: var(--c-white);
  }

  .built-badge-tag.is-no-review .built-mobile-nav {
    border-bottom: none;
  }

  .built-frame.is-built-switching .built-img {
    animation: builtMediaFadeIn 2.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .built-frame.is-built-switching .built-card-author,
  .built-frame.is-built-switching .built-badge-title {
    animation: builtTextFadeIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .built-frame.is-built-switching .built-badge-review {
    animation: builtTextFadeIn 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  }

  @keyframes builtMediaFadeIn {
    from {
      opacity: 0;
      transform: scale(1.035);
    }
    to {
      opacity: 1;
      transform: scale(1.012);
    }
  }

  @keyframes builtTextFadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .built-mobile-counter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  .built-counter-current {
    color: var(--c-terra);
    font-weight: 700;
  }

  .built-counter-sep {
    color: #6C6C6C;
    font-weight: 500;
    font-size: 14px;
  }

  .built-nav-group {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    border-left: 1px solid #222222;
  }

  .built-arrow-btn {
    width: 54px;
    height: 48px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--c-white);
    border: none;
    border-radius: 0;
    color: #222222;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  .built-arrow-btn + .built-arrow-btn {
    border-left: 1px solid #222222;
  }

  .built-arrow-btn:hover,
  .built-arrow-btn:focus-visible {
    background-color: rgba(188, 59, 34, 0.08);
    color: var(--c-terra);
    outline: none;
  }

  .built-arrow-btn:active {
    background-color: rgba(188, 59, 34, 0.16);
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;
  }

  .lead-quote-box {
    padding: 0 0 0 14px;
  }

  .lead-quote-author {
    padding-left: 14px;
  }

  .quote-star-tl {
    left: 0;
    top: -5px;
    font-size: 24px;
  }

  .quote-end-nowrap {
    white-space: nowrap;
  }

  .quote-star-br {
    position: relative;
    right: auto;
    bottom: auto;
    display: inline-block;
    margin-left: 4px;
    font-size: 24px;
    line-height: 1;
    vertical-align: baseline;
    top: 0.58em;
  }
}

/* Compact Tablet & Mobile Navigation (<= 900px): Burger Menu */
@media (max-width: 900px) {
  .header-logo-img {
    height: 22px;
  }

  .header-nav,
  .header-phone-wrap {
    display: none;
  }

  .header-burger {
    display: inline-flex;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 990;
    display: flex;
    flex-direction: column;
    background-color: var(--c-black);
    padding: calc(58px + env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.24s;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
  }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 auto;
    gap: 24px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 2px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.02em;
    color: var(--c-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease;
  }

  .mobile-nav-link::after {
    content: '↗';
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.is-active {
    color: var(--c-terra);
  }

  .mobile-nav-link:hover::after,
  .mobile-nav-link.is-active::after {
    color: var(--c-terra);
  }

  .mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu-phone {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0.01em;
    color: var(--c-white);
    text-decoration: none;
  }

  .mobile-menu-phone:hover {
    color: var(--c-terra);
  }

  .mobile-menu-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 16px;
    color: #A6A6A6;
  }

  .mobile-menu-email,
  .mobile-menu-socials a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
  }

  .mobile-menu-socials {
    display: flex;
    gap: 20px;
  }

  .mobile-menu-address {
    margin: 2px 0 0;
    color: #8A8A8A;
  }

  .mobile-menu-cta {
    text-decoration: none;
    margin-top: 4px;
  }
}

/* Mobile Layout (<= 768px): Stacked Hero, Touch Filters & Modal */
@media (max-width: 768px) {
  /* Keep top status area and mobile header seamlessly unified in #141414 */
  .figma-header.is-hidden {
    transform: translateY(0);
  }

  .site-container,
  .figma-header .site-container,
  .section-trust .site-container,
  .section-catalog .site-container,
  .section-stages .site-container,
  .section-built .site-container,
  .section-lead .site-container,
  .figma-footer .site-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero flowing cleanly without overlap collisions */
  .hero-banner {
    height: auto;
    padding: 40px 0 134px;
  }

  .hero-title-group {
    width: 100%;
    transform: none;
  }

  .hero-tagline {
    transform: none;
    padding-left: 2px;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 13px;
    letter-spacing: -0.02em;
  }

  .hero-title {
    font-size: clamp(54px, 16.5vw, 128px);
    line-height: 0.88;
  }

  .hero-island-wrap {
    height: auto;
    margin-top: -110px;
  }

  .hero-island-inner {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 0 10px;
  }

  .hero-orbitals-svg {
    width: 132%;
    top: calc(50% - 5px);
    opacity: 0.36;
  }

  .hero-house-img {
    width: 100%;
    max-width: 440px;
  }

  .hero-stats-block {
    padding-top: 24px;
    padding-bottom: 32px;
  }

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

  .stat-cell-empty {
    display: none;
  }

  .stat-cell {
    border: none;
    justify-content: flex-start;
    padding: 20px 10px 22px;
  }

  .stat-cell-left {
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }

  .stat-cell-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }

  .stat-cell-right {
    border-right: 1px solid rgba(255, 255, 255, 0.8);
  }

  .stat-number {
    font-size: clamp(64px, 17vw, 92px);
  }

  .stat-label {
    font-size: 14px;
    line-height: 16px;
    margin-top: 8px;
  }

  /* Sections & Headings */
  .section-trust {
    padding: 40px 0 32px;
  }

  .section-catalog,
  .section-stages,
  .section-built {
    padding: 32px 0;
  }

  .section-lead {
    padding: 32px 0 40px;
  }

  .section-trust .section-heading,
  .section-catalog .section-heading,
  .section-stages .section-heading,
  .section-built .section-heading,
  .section-lead .section-heading {
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.04;
  }

  .section-trust .red-star,
  .section-catalog .red-star,
  .section-stages .red-star,
  .section-built .red-star,
  .section-lead .red-star {
    font-size: 0.5em;
    line-height: 1.2;
    top: 0.52em;
  }

  .section-trust .section-divider-line,
  .section-catalog .section-divider-line {
    margin: 12px 0 16px;
  }

  .built-grid {
    gap: 24px;
  }

  .lead-grid {
    margin-top: 18px;
    gap: 32px;
  }

  /* Trust Accordion */
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .trust-left-col {
    display: contents;
  }

  .trust-lead-text {
    order: 1;
    min-width: 0;
    line-height: 18px;
  }

  .trust-right-col {
    order: 2;
    margin-top: 24px;
  }

  .acc-btn,
  .modal-tech-accordion .acc-btn {
    min-height: 0;
    padding: 9px 0;
    align-items: center;
    gap: 12px;
  }

  .acc-item.is-open .acc-btn,
  .modal-tech-accordion .acc-item.is-open .acc-btn {
    padding-bottom: 6px;
  }

  .acc-btn-title {
    font-size: 15px;
    line-height: 17px;
  }

  .acc-btn-icon {
    flex-shrink: 0;
    margin-right: 2px;
  }

  .acc-content p,
  .modal-tech-accordion .acc-content p {
    padding: 0 0 12px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.02em;
  }

  /* Horizontal Swipe Catalog Filters */
  .filter-row {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-row-categories {
    padding-top: 0;
    padding-bottom: 12px;
  }

  .filter-tab-link {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 38px;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid rgba(34, 34, 34, 0.22);
    border-radius: 5px;
    font-size: 14px;
    line-height: 18px;
    background-color: var(--c-white);
  }

  .filter-tab-link.is-active {
    background-color: var(--c-terra);
    border-color: var(--c-terra);
    color: var(--c-white);
    font-weight: 500;
  }

  .filter-label-caption {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 16px;
    color: #6C6C6C;
    margin-right: 4px;
  }

  .filter-sort-link,
  .filter-area-link,
  .filter-floor-link {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 36px;
    justify-content: center;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 18px;
    border-radius: 4px;
  }

  .filter-sort-link.is-active,
  .filter-area-link.is-active,
  .filter-floor-link.is-active {
    background-color: rgba(188, 59, 34, 0.1);
  }

  .section-stages .site-container {
    display: flex;
    flex-direction: column;
  }

  .stages-header-row {
    display: contents;
  }

  .section-stages .section-heading {
    order: 1;
  }

  .pipeline-track {
    order: 2;
  }

  .cta-link-arrow,
  .btn-terracotta-submit,
  .btn-success-close {
    padding: 10px 16px 14px;
    font-size: 20px;
    line-height: 24px;
  }

  .cta-link-arrow {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    background-color: var(--c-terra);
    color: var(--c-white);
    border-bottom: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: lowercase;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .cta-link-arrow .cta-arrow-icon {
    margin-top: 6px;
  }

  .cta-link-arrow .cta-arrow-icon path {
    stroke: var(--c-white);
  }

  .cta-link-arrow:hover,
  .cta-link-arrow:focus-visible {
    opacity: 1;
    background-color: var(--c-terra-hover);
    outline: none;
  }

  .cta-link-arrow:active {
    transform: translateY(1px);
  }

  .built-card-author,
  .lead-quote-author,
  .success-desc,
  .card-specs {
    line-height: 18px;
  }

  .figma-footer {
    padding: 32px 0 22px;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-col-title {
    margin-bottom: 8px;
  }

  .footer-links {
    gap: 5px;
  }

  .pipe-text,
  .built-badge-review,
  .footer-links a,
  .footer-address,
  .footer-bottom-row {
    line-height: 17px;
  }

  .built-badge-title {
    line-height: 16px;
  }

  .input-error-msg {
    line-height: 14px;
  }

  .custom-checkbox {
    min-height: auto;
    align-items: center;
    padding-top: 0;
  }

  .btn-terracotta-submit {
    margin-top: -2px;
  }

  .checkmark {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }

  .checkmark::after {
    font-size: 10px;
  }

  .consent-label {
    font-size: 13px;
    line-height: 15px;
  }

  /* Modals */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-box {
    max-height: calc(100dvh - 20px);
  }

  .modal-scroll-area {
    padding: 20px 18px 26px;
  }

  .modal-close-icon {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .lightbox-backdrop {
    padding: max(64px, calc(env(safe-area-inset-top) + 16px)) 14px max(64px, calc(env(safe-area-inset-bottom) + 16px));
  }

  .lightbox-close-btn {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
  }

  .modal-header-block {
    padding-right: 42px;
  }

  .modal-title {
    font-size: 24px;
    line-height: 28px;
  }

  .modal-price {
    font-size: 20px;
    line-height: 24px;
  }

  .modal-thumbs-row {
    gap: 8px;
  }

  .spec-row {
    font-size: 14px;
    line-height: 16px;
    padding: 9px 0;
    gap: 10px;
  }

  .spec-label {
    flex-shrink: 1;
  }

  .modal-inputs-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-tech-wrap {
    margin-top: 24px;
  }

  .modal-tech-heading {
    font-size: 26px;
    line-height: 24px;
  }

  .modal-tech-heading .modal-inline-star {
    font-size: 13px;
    line-height: 16px;
    top: 5px;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .card-title,
  .card-price {
    font-size: 18px;
    line-height: 22px;
  }

  .card-specs {
    font-size: 14px;
    line-height: 16px;
    padding: 10px 15px 12px;
  }

  .figma-footer {
    padding: 28px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-col-title {
    margin-bottom: 6px;
  }

  .footer-links {
    gap: 4px;
  }

  .footer-links a {
    display: inline-block;
    padding: 1px 0;
  }

  .footer-big-email {
    font-size: 24px;
    line-height: 28px;
    margin-top: 0;
  }

  .footer-divider-line {
    margin: 18px 0 14px;
  }

  .footer-bottom-row {
    font-size: 13px;
    line-height: 15px;
  }

  .modal-success-box {
    padding: 24px 20px;
  }

  .success-title {
    font-size: 32px;
    line-height: 32px;
  }

  .success-title .red-star {
    font-size: 0.5em;
    line-height: 1.2;
    top: 0.5em;
  }

  .success-desc {
    font-size: 15px;
    line-height: 17px;
  }
}

@media (max-width: 390px) {
  .lead-quote-body {
    font-size: 20px;
    line-height: 25px;
  }

  .card-header-line {
    gap: 8px;
    padding: 10px 12px 9px;
  }

  .card-specs {
    padding: 10px 12px 12px;
  }

  .card-title,
  .card-price {
    font-size: 17px;
  }

  .spec-row {
    font-size: 13.5px;
    line-height: 15.5px;
  }
}

/* ===================================================================
   11. PRIVACY POLICY PAGE (privacy.html)
   =================================================================== */
.privacy-main {
  padding-top: calc(48px + env(safe-area-inset-top, 0px));
  background-color: var(--c-white);
}

.privacy-section {
  padding: 56px 0 88px;
}

.privacy-doc-wrap {
  max-width: 880px;
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-gray-600);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.privacy-back-link:hover,
.privacy-back-link:focus-visible {
  color: var(--c-terra);
  transform: translateX(-2px);
}

.privacy-doc-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 700;
  line-height: 58px;
  margin-left: -3px;
  color: var(--c-black);
  text-transform: lowercase;
}

.privacy-doc-title .red-star {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  vertical-align: top;
  position: relative;
  top: 14px;
}

.privacy-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--c-gray-600);
}

.privacy-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.privacy-block h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-black);
  margin-bottom: 12px;
}

.privacy-block p,
.privacy-block li {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #2B2B2B;
}

.privacy-block p + p,
.privacy-block p + ul,
.privacy-block ul + p {
  margin-top: 10px;
}

.privacy-block ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-block a {
  color: var(--c-terra);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-block a:hover {
  color: var(--c-terra-hover);
}

.privacy-requisites-card {
  margin-top: 14px;
  padding: 20px 24px;
  background-color: var(--c-gray-100);
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 5px;
}

.privacy-req-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-req-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.privacy-req-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.privacy-req-row dt {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-gray-600);
}

.privacy-req-row dd {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--c-black);
  margin: 0;
}

@media (max-width: 1024px) {
  .privacy-doc-title {
    font-size: 46px;
    line-height: 48px;
    margin-left: 0;
  }

  .privacy-doc-title .red-star {
    font-size: 0.5em;
    line-height: 1.2;
    top: 0.48em;
  }
}

@media (max-width: 768px) {
  .privacy-section {
    padding: 32px 0 52px;
  }

  .privacy-doc-title {
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.04;
  }

  .privacy-doc-title .red-star {
    font-size: 0.5em;
    line-height: 1.2;
    top: 0.52em;
  }

  .privacy-back-link {
    margin-bottom: 16px;
  }

  .privacy-meta-bar {
    gap: 6px 16px;
    margin-bottom: 24px;
    font-size: 12px;
  }

  .privacy-article {
    gap: 24px;
  }

  .privacy-block h2 {
    font-size: 21px;
    margin-bottom: 10px;
  }

  .privacy-block p,
  .privacy-block li {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .privacy-requisites-card {
    padding: 16px;
  }

  .privacy-req-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ===================================================================
   ARCHITECTURAL SCROLL REVEAL (DESKTOP, TABLET & MOBILE)
   Progressive enhancement gated by <html class="has-scroll-reveal">
   =================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.has-scroll-reveal [data-reveal="up"],
  html.has-scroll-reveal [data-reveal="left"],
  html.has-scroll-reveal [data-reveal="right"],
  html.has-scroll-reveal [data-reveal="line"] {
    will-change: opacity, translate, transform;
  }

  html.has-scroll-reveal [data-reveal].is-revealed {
    will-change: auto;
  }

  html.has-scroll-reveal [data-reveal="up"] {
    opacity: 0;
    translate: 0 22px;
    transition:
      opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  html.has-scroll-reveal [data-reveal="left"] {
    opacity: 0;
    translate: -22px 0;
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  html.has-scroll-reveal [data-reveal="right"] {
    opacity: 0;
    translate: 24px 0;
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  html.has-scroll-reveal [data-reveal="line"] {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  /* Sequential catalog card reveal + responsive hover zoom */
  html.has-scroll-reveal .project-card[data-reveal] {
    transition:
      opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      transform 0.25s cubic-bezier(0.2, 0, 0.2, 1) 0ms,
      box-shadow 0.25s ease 0ms;
  }

  html.has-scroll-reveal .project-card[data-reveal]:not(.is-revealed) .card-img {
    transform: scale(1.035);
  }

  html.has-scroll-reveal .project-card[data-reveal].is-revealed:not(:hover):not(:focus-visible) .card-img {
    transform: scale(1);
    transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  html.has-scroll-reveal .project-card[data-reveal].is-revealed:hover .card-img,
  html.has-scroll-reveal .project-card[data-reveal].is-revealed:focus-visible .card-img {
    transform: scale(1.035);
    transition: transform 0.38s ease 0ms;
  }

  html.has-scroll-reveal .built-item[data-reveal] {
    transition:
      opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.48s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      background-color 0.2s ease 0ms,
      transform 0.18s cubic-bezier(0.32, 0.72, 0, 1) 0ms,
      color 0.18s ease 0ms;
  }

  html.has-scroll-reveal .btn-terracotta-submit[data-reveal] {
    transition:
      opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      background-color 0.2s ease 0ms,
      transform 0.15s ease 0ms;
  }

  html.has-scroll-reveal .cta-link-arrow[data-reveal] {
    transition:
      opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      translate 0.56s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      color 0.24s cubic-bezier(0.22, 1, 0.36, 1) 0ms;
  }

  /* Stepped Pipeline Blueprint Reveal (#stages SVG layout > 960px) */
  @media (min-width: 961px) {
    html.has-scroll-reveal .pipeline-path {
      stroke-dasharray: 100;
      stroke-dashoffset: 0;
    }

    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipeline-path {
      stroke-dashoffset: 100;
    }

    html.has-scroll-reveal .pipeline-track.is-revealed .pipeline-path-1 {
      transition: stroke-dashoffset 0.69s cubic-bezier(0.32, 0.05, 0.25, 1) 0.075s;
    }

    html.has-scroll-reveal .pipeline-track.is-revealed .pipeline-path-2 {
      transition: stroke-dashoffset 0.48s cubic-bezier(0.32, 0.05, 0.25, 1) 0.72s;
    }

    html.has-scroll-reveal .pipeline-track.is-revealed .pipeline-path-3 {
      transition: stroke-dashoffset 0.51s cubic-bezier(0.32, 0.05, 0.25, 1) 1.11s;
    }

    html.has-scroll-reveal .pipeline-track .pipe-dot {
      transition:
        opacity 0.51s cubic-bezier(0.22, 1, 0.36, 1) var(--pipe-delay, 0ms),
        scale 0.57s cubic-bezier(0.22, 1, 0.36, 1) var(--pipe-delay, 0ms);
    }

    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipe-dot {
      opacity: 0;
      scale: 0.25;
    }

    html.has-scroll-reveal .pipeline-track .pipe-num,
    html.has-scroll-reveal .pipeline-track .pipeline-item {
      transition:
        opacity 0.66s cubic-bezier(0.22, 1, 0.36, 1) var(--pipe-delay, 0ms),
        translate 0.66s cubic-bezier(0.22, 1, 0.36, 1) var(--pipe-delay, 0ms);
    }

    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipe-num,
    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipeline-item {
      opacity: 0;
      translate: 0 14px;
    }

    html.has-scroll-reveal .pipeline-track .pipe-dot-1 { --pipe-delay: 0ms; }
    html.has-scroll-reveal .pipeline-track .pipe-num-1 { --pipe-delay: 60ms; }
    html.has-scroll-reveal .pipeline-track .pipe-step-1 { --pipe-delay: 120ms; }

    html.has-scroll-reveal .pipeline-track .pipe-dot-2 { --pipe-delay: 330ms; }
    html.has-scroll-reveal .pipeline-track .pipe-num-2 { --pipe-delay: 390ms; }
    html.has-scroll-reveal .pipeline-track .pipe-step-2 { --pipe-delay: 450ms; }

    html.has-scroll-reveal .pipeline-track .pipe-dot-3 { --pipe-delay: 780ms; }
    html.has-scroll-reveal .pipeline-track .pipe-num-3 { --pipe-delay: 840ms; }
    html.has-scroll-reveal .pipeline-track .pipe-step-3 { --pipe-delay: 900ms; }

    html.has-scroll-reveal .pipeline-track .pipe-dot-4 { --pipe-delay: 1140ms; }
    html.has-scroll-reveal .pipeline-track .pipe-num-4 { --pipe-delay: 1200ms; }
    html.has-scroll-reveal .pipeline-track .pipe-step-4 { --pipe-delay: 1260ms; }

    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipe-dot-3,
    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipe-dot-3::after,
    html.has-scroll-reveal .pipeline-track:not(.is-revealed) .pipeline-accent-path {
      animation-play-state: paused;
    }

    html.has-scroll-reveal .pipeline-track.is-revealed .pipe-dot-3,
    html.has-scroll-reveal .pipeline-track.is-revealed .pipe-dot-3::after,
    html.has-scroll-reveal .pipeline-track.is-revealed .pipeline-accent-path {
      animation-play-state: running;
    }
  }

  /* Vertical #stages timeline reveal (<= 960px, triggered per stage) */
  @media (max-width: 960px) {
    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]::before {
      transition:
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]:not(.is-revealed)::before {
      opacity: 0;
      transform: scale(0.25);
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"].is-revealed::before {
      opacity: 1;
      transform: scale(1);
    }

    html.has-scroll-reveal .pipe-step-3[data-reveal="stage"]:not(.is-revealed)::before {
      animation-play-state: paused;
    }

    html.has-scroll-reveal .pipe-step-3[data-reveal="stage"].is-revealed::before {
      animation-play-state: running;
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]:not(:last-child)::after {
      transform-origin: top center;
      transition: transform 0.64s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]:not(.is-revealed):not(:last-child)::after {
      transform: scaleY(0);
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"].is-revealed:not(:last-child)::after {
      transform: scaleY(1);
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"] .pipe-name,
    html.has-scroll-reveal .pipeline-item[data-reveal="stage"] .pipe-text {
      transition:
        opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
        translate 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]:not(.is-revealed) .pipe-name,
    html.has-scroll-reveal .pipeline-item[data-reveal="stage"]:not(.is-revealed) .pipe-text {
      opacity: 0;
      translate: 0 20px;
    }

    html.has-scroll-reveal .pipeline-item[data-reveal="stage"].is-revealed .pipe-name,
    html.has-scroll-reveal .pipeline-item[data-reveal="stage"].is-revealed .pipe-text {
      opacity: 1;
      translate: 0 0;
    }
  }

  /* Keep single-column stacked sections strictly vertical (<= 900px) */
  @media (max-width: 900px) {
    html.has-scroll-reveal [data-reveal="left"],
    html.has-scroll-reveal [data-reveal="right"] {
      translate: 0 22px;
    }
  }

  /* Noticeable, smooth vertical scroll-reveal on mobile (<= 768px) */
  @media (max-width: 768px) {
    html.has-scroll-reveal [data-reveal="up"],
    html.has-scroll-reveal [data-reveal="left"],
    html.has-scroll-reveal [data-reveal="right"] {
      translate: 0 24px;
      transition:
        opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        translate 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    }

    html.has-scroll-reveal [data-reveal="line"] {
      transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    }

    html.has-scroll-reveal .cta-link-arrow[data-reveal],
    html.has-scroll-reveal .btn-terracotta-submit[data-reveal] {
      transition:
        opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        translate 0.62s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        background-color 0.2s ease 0ms,
        transform 0.15s ease 0ms;
    }
  }

  /* Final revealed state comes last so it overrides mobile/tablet offsets */
  html.has-scroll-reveal [data-reveal="up"].is-revealed,
  html.has-scroll-reveal [data-reveal="left"].is-revealed,
  html.has-scroll-reveal [data-reveal="right"].is-revealed {
    opacity: 1;
    translate: 0 0;
  }

  html.has-scroll-reveal [data-reveal="line"].is-revealed {
    transform: scaleX(1);
  }
}

/* ===================================================================
   CATALOG PAGINATION, EMPTY STATES & MODAL TZ PACKAGES
   =================================================================== */
.filter-tab-link.is-soon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.filter-tab-link.is-soon::after {
  display: none;
}

@media (max-width: 768px) {
  .filter-tab-link.is-active.is-soon .soon-pill {
    color: var(--c-white);
    background-color: transparent;
    border-color: var(--c-white);
  }
}

.soon-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-terra);
  background-color: transparent;
  border: 1px solid var(--c-terra);
}

.filter-tab-link.is-active .soon-pill {
  color: var(--c-white);
  background-color: var(--c-terra);
  border-color: var(--c-terra);
}

.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.catalog-count-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: #555555;
}

.catalog-reset-btn {
  appearance: none;
  background: transparent;
  border: 1px solid #222222;
  border-radius: 5px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #222222;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.catalog-reset-btn[hidden] {
  display: none;
}

.catalog-reset-btn:hover,
.catalog-reset-btn:focus-visible {
  border-color: var(--c-terra);
  color: var(--c-terra);
  background-color: transparent;
  outline: none;
}

.catalog-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.catalog-more-wrap[hidden] {
  display: none;
}

.btn-catalog-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 4px 36px 12px;
  background-color: var(--c-terra);
  color: var(--c-white);
  border: none;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-catalog-more:active {
  transform: translateY(1px);
}

.btn-catalog-more:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 3px;
}

.catalog-empty-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 36px 40px;
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
}

.catalog-empty-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-terra);
  background-color: transparent;
  border: 1px solid var(--c-terra);
}

.catalog-empty-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--c-black);
  margin: 0;
}

.catalog-empty-text {
  max-width: 660px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #3A3A3A;
  margin: 0;
}

.catalog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Modal Left Column: Included Conditions Card */
.modal-gifts-card {
  margin-top: 0;
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
  overflow: hidden;
}

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

.modal-gifts-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--c-black);
  padding: 14px 16px 11px;
  border-bottom: 1px solid #222222;
}

.modal-gifts-title .modal-inline-star,
.modal-extras-title .modal-inline-star {
  font-size: 12px;
  line-height: 14px;
  top: 4px;
}

.modal-gifts-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px;
}

.modal-gift-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #D9D9D9;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: -0.01em;
  color: #222222;
}

.modal-gift-item:last-child {
  border-bottom: none;
}

.modal-lead-context {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: #555555;
  padding-top: 0;
  margin: 0;
}

/* Modal Bottom Half: Catalog-Style Package Tabs */
.modal-pkg-header-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0;
}

.modal-pkg-header-row .modal-tech-heading {
  margin: 0 0 12px;
}

.modal-pkg-tabs-divider {
  width: 100%;
  height: 2px;
  background-color: var(--c-black);
}

.modal-pkg-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 26px;
  width: 100%;
  border-bottom: 1px solid #222222;
}

.modal-pkg-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  border-radius: 0;
  padding: 11px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #222222;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal-pkg-tab::after {
  content: attr(data-label);
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-weight: 600;
}

.modal-pkg-tab:hover {
  color: var(--c-terra);
}

.modal-pkg-tab:focus-visible {
  outline: 2px solid var(--c-terra);
  outline-offset: 2px;
}

.modal-pkg-tab.is-active {
  color: var(--c-terra);
  font-weight: 600;
}

.modal-pkg-tab.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--c-terra);
}

.modal-pkg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #D9D9D9;
  border-radius: 0;
  margin-bottom: 4px;
}

.modal-pkg-subtitle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: #6C6C6C;
}

.modal-pkg-price-badge {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--c-terra);
  white-space: nowrap;
}

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

.modal-pkg-spec-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #D9D9D9;
}

.modal-pkg-spec-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6C6C6C;
}

.modal-pkg-spec-val {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  color: #222222;
}

.modal-extras-box {
  margin-top: 22px;
  padding: 0;
  background-color: var(--c-white);
  border: 1px solid #222222;
  border-radius: 5px;
  overflow: hidden;
}

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

.modal-extras-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--c-black);
  padding: 13px 18px 11px;
  margin: 0;
  border-bottom: 1px solid #222222;
}

.modal-extras-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 4px 18px 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  color: #222222;
}

.modal-extras-list li {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #D9D9D9;
}

@media (max-width: 900px) {
  .modal-pkg-specs-grid,
  .modal-extras-list {
    grid-template-columns: 1fr;
  }

  .catalog-empty-card {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .catalog-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-catalog-more {
    width: 100%;
    padding: 10px 16px 14px;
    font-size: 20px;
    line-height: 24px;
  }

  .modal-tech-heading {
    font-size: 26px;
    line-height: 24px;
  }

  .modal-pkg-tabs {
    gap: 2px 18px;
  }

  .modal-pkg-tab {
    font-size: 14px;
    padding: 9px 0;
  }

  .catalog-empty-title {
    font-size: 22px;
    line-height: 28px;
  }
}

/* ===================================================================
   BUILT OBJECT GALLERY MODAL (#builtModal - unified with #projectModal)
   =================================================================== */
.built-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(20, 20, 20, 0.72);
  color: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.built-modal-nav:hover {
  background-color: var(--c-terra);
  border-color: var(--c-terra);
}

.built-modal-prev {
  left: 10px;
}

.built-modal-next {
  right: 10px;
}

.built-modal-counter {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.built-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-terra);
  margin-bottom: 6px;
}

.built-modal-subtitle {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 23px;
  color: #555555;
}

.built-modal-review-box {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 5px;
  border: 1px solid #222222;
  background-color: #F7F6F4;
}

.built-modal-review-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-terra);
  margin-bottom: 8px;
}

.built-modal-review-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: #222222;
}

.built-modal-lead-wrap {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

@media (max-width: 900px) {
  .built-modal-nav {
    width: 34px;
    height: 34px;
  }

  .built-photo-pill {
    padding: 7px 11px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-step-3::before,
  .burger-line,
  .mobile-menu,
  .modal-main-img,
  .modal-zoom-hint,
  .cta-link-arrow,
  .cta-link-arrow::before,
  .cta-arrow-icon path,
  [data-reveal],
  .pipeline-path,
  .pipeline-track .pipe-dot,
  .pipeline-track .pipe-num,
  .pipeline-track .pipeline-item,
  .pipeline-item::before,
  .pipeline-item::after,
  .pipeline-item .pipe-name,
  .pipeline-item .pipe-text {
    animation: none;
    transition-duration: 0.01ms;
  }
}
