/* АнгарСервис — премиум-макет (тёмная тема + золото), отдельно от PHP */

:root {
  --bg-deep: #0a0b0d;
  --bg-panel: #111318;
  --bg-elevated: #161a22;
  --ink: #e8e6e3;
  --ink-muted: #9a9690;
  --ink-dim: #5c5954;
  --gold: #c5a070;
  --gold-bright: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.15);
  --gold-glow: rgba(201, 169, 98, 0.45);
  --line: rgba(255, 255, 255, 0.06);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
  /* ~8/12 колонок от типовой сетки: удобочитаемая ширина для «текстовых блоков» */
  --text-8: min(52rem, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(17, 19, 24, 0.95);
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: rgba(17, 19, 24, 0.95);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d4b87a 0%, var(--gold) 100%);
  border-radius: 999px;
  border: 1px solid rgba(10, 11, 13, 0.35);
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-muted);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* не перекрывать контент (раньше 9999 давало «пустой» экран в части браузеров) */
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main.premium-home,
.premium-home {
  position: relative;
  z-index: 1;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.u-container {
  width: min(112rem, calc(100vw - 2 * clamp(1.25rem, 5vw, 3.25rem)));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .u-container {
    width: min(112rem, calc(100vw - 2 * clamp(1.5rem, 5.5vw, 3.75rem)));
  }
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease-out), border-color 0.35s;
}

/* Плавный «въезд» в фото героя вместо резкой стыковки с картинкой */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 5.5rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 13, 0.78) 0%,
    rgba(10, 11, 13, 0.38) 52%,
    transparent 100%
  );
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.site-header.is-scrolled::after {
  opacity: 0.35;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  /* ширину задаёт .u-container — не перебивать width:100% */
  max-width: 100%;
}

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

  .site-header .nav {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(11rem, 42vw);
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.05;
}

.brand__lockup span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.5rem, 1.55vw, 0.625rem);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.12;
}

.brand__icon {
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .brand {
    max-width: 12.5rem;
    gap: 0.55rem;
  }

  .brand__icon {
    width: 1.875rem;
    height: 1.875rem;
  }

  .brand__lockup span {
    font-size: 0.625rem;
    letter-spacing: 0.12em;
  }
}

.brand__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8d4a4, var(--gold) 55%, #7a5c2e);
  box-shadow: 0 0 24px var(--gold-glow);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav {
  display: none;
  align-items: center;
  justify-self: center;
  gap: clamp(0.65rem, 1.5vw, 1.5rem);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 1rem;
}

.header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
  }
}

.site-header .btn-hero--compact {
  display: none;
}

@media (min-width: 1024px) {
  .site-header .btn-hero--compact {
    display: inline-flex;
  }
}

.header-phone span {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.header-phone a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.header-phone a:hover {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn--gold {
  background: linear-gradient(145deg, #d4b56e 0%, var(--gold) 45%, #9a7a3d 100%);
  color: #0a0b0d;
  box-shadow: 0 4px 24px rgba(201, 169, 98, 0.35);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 98, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--dark {
  background: var(--bg-deep);
  color: var(--ink);
  border: 1px solid rgba(10, 11, 13, 0.2);
}

.btn--dark:hover {
  background: #151820;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* Hero (первый экран по макету) */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 1.75rem) 0 clamp(2rem, 5vw, 3.75rem);
  overflow: clip;
}

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

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Стык с блоком доверия: мягкий спуск к фону секции */
    linear-gradient(
      to bottom,
      transparent 52%,
      rgba(17, 19, 24, 0.45) 82%,
      var(--bg-panel) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 11, 13, 0.92) 0%,
      rgba(10, 11, 13, 0.48) 12%,
      rgba(10, 11, 13, 0.14) 26%,
      transparent 40%
    ),
    linear-gradient(
      95deg,
      rgba(10, 11, 13, 0.88) 0%,
      rgba(10, 11, 13, 0.42) 38%,
      rgba(10, 11, 13, 0.14) 62%,
      rgba(10, 11, 13, 0.32) 100%
    ),
    linear-gradient(to top, rgba(10, 11, 13, 0.72) 0%, transparent 48%);
}

.hero__plate {
  position: relative;
  z-index: 2;
  /* ширину задаёт .u-container */
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.35rem, 3vw, 2rem);
  align-items: end;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
  }
}

.hero__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.15rem;
  pointer-events: none;
  text-shadow: 0 2px 28px rgba(10, 11, 13, 0.65);
}

.hero__badge-kicker,
.hero__badge-foot {
  font-family: var(--font-display);
  font-size: clamp(0.5625rem, 1.1vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 230, 227, 0.72);
  line-height: 1.2;
}

.hero__badge-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 3.85rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 899px) {
  .hero__badge {
    align-self: flex-end;
    margin-top: 0.35rem;
  }
}

.hero__copy {
  min-width: 0;
  max-width: var(--text-8);
}

.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: var(--text-8);
}

.hero__title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero__title-sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: var(--text-8);
  font-size: clamp(0.875rem, 1.25vw, 0.96875rem);
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-muted);
}

.hero__points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--text-8);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  font-size: clamp(0.8125rem, 1.15vw, 0.9375rem);
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.88);
  font-weight: 500;
}

.hero__check {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.hero__check svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__point-body {
  min-width: 0;
}

.hero__point-body strong {
  color: var(--ink);
  font-weight: 700;
}

.hero__point-body strong.hero__accent-num {
  color: var(--gold);
}

.hero__accent-num {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.hero__note {
  color: var(--ink-dim);
  font-weight: 500;
}

.hero__micro {
  margin: 1.15rem 0 0;
  max-width: min(38rem, var(--text-8));
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(232, 230, 227, 0.58);
}

.hero__actions {
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.55rem 0.55rem 0.55rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-hero__circle {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(10, 11, 13, 0.12);
}

.btn-hero--primary {
  background: linear-gradient(145deg, #d4b87a 0%, var(--gold) 45%, #9a7842 100%);
  color: #0a0b0d;
  box-shadow: 0 4px 22px rgba(197, 160, 112, 0.35);
}

.btn-hero--primary .btn-hero__circle {
  background: rgba(10, 11, 13, 0.08);
  color: #0a0b0d;
}

.btn-hero--primary:hover {
  transform: translateY(-2px);
}

.btn-hero--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding-right: 0.65rem;
}

.btn-hero--ghost .btn-hero__circle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
}

.btn-hero--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-hero--compact {
  min-height: 2.5rem;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  font-size: 0.625rem;
  gap: 0.5rem;
}

.btn-hero--compact .btn-hero__circle {
  width: 2rem;
  height: 2rem;
}

.btn-hero--invert {
  background: #0c0e12;
  color: #f4f4f5;
  border: 1px solid rgba(12, 14, 18, 0.45);
  box-shadow: 0 6px 22px rgba(10, 11, 13, 0.35);
  border-radius: 9999px;
}

.btn-hero--invert .btn-hero__circle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f4f5;
}

.btn-hero--invert:hover {
  transform: translateY(-2px);
  background: #141820;
}

@media (prefers-reduced-motion: reduce) {
  .btn-hero:hover {
    transform: none;
  }
}

/* Section common */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
}

.section__head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.section__subtitle {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
}

.section__subtitle a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section__subtitle a:hover {
  color: var(--ink);
}

/* Trust — плашка доверия */
.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-panel);
}

.trust__inner {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0;
}

.trust__heading {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

@media (min-width: 768px) {
  .trust__heading {
    text-align: left;
  }
}

.trust__grid {
  display: grid;
  gap: 1.75rem 1.25rem;
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
}

@media (min-width: 1100px) {
  .trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
  }
}

.trust-col {
  margin: 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
}

.trust-col__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(10, 11, 13, 0.65);
  border: 1px solid rgba(197, 160, 112, 0.42);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trust-col__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.trust-col p {
  margin: 0;
  font-size: clamp(0.8125rem, 1.1vw, 0.875rem);
  line-height: 1.55;
  color: var(--ink-muted);
}

.trust-col strong {
  color: var(--ink);
  font-weight: 600;
}

.trust__accent {
  color: var(--gold);
  font-weight: 600;
}

.trust__dim {
  color: var(--ink-dim);
  font-weight: 500;
}

/* Projects */
.projects__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.projects__nav {
  display: flex;
  gap: 0.5rem;
}

.projects__nav button {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.projects__nav button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.section--projects {
  overflow-x: hidden;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.projects__track-wrap {
  margin-top: 2rem;
  overflow: hidden;
  width: 100%;
}

.projects__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
}

.projects__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.projects__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.project-card {
  flex: 0 0 min(22rem, calc(100vw - 3.5rem));
  max-width: 22rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  cursor: grab;
}

@media (min-width: 640px) {
  .project-card {
    flex-basis: 24rem;
  }
}

.projects__track.is-dragging .project-card {
  cursor: grabbing;
}

.project-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Единый «премиум» вид фото: приглушённость, контраст, стыковка с тёмным UI */
.project-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(14, 18, 26, 0.42) 0%,
    rgba(10, 11, 13, 0.12) 38%,
    rgba(17, 19, 24, 0.72) 100%
  );
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.5s var(--ease-out);
  pointer-events: none;
  filter: saturate(0.78) contrast(1.07) brightness(0.9) sepia(0.07);
}

.project-card:hover .project-card__img img {
  transform: scale(1.06);
  filter: saturate(0.85) contrast(1.05) brightness(0.94) sepia(0.05);
}

.project-card__body {
  position: relative;
  padding: 1rem 1.2rem 1rem;
  padding-bottom: 1.05rem;
}

.project-card__body h3 {
  margin: 0;
  min-height: calc(1.05rem * 1.22 * 2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.project-card__meta {
  margin: 0.45rem 0 0;
  padding: 0 2.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(0.8125rem * 1.45 * 2);
}

.project-card__more {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background 0.2s, border-color 0.2s;
}

.project-card:hover .project-card__more {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* Преимущества: герой на bg3 (коллауты на арте) */
.advantages-hero {
  position: relative;
  overflow: hidden;
  min-height: min(46rem, 92vh);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(1.1rem, 2.8vw, 2.1rem)) 0 clamp(5rem, 14vw, 9.5rem);
}

.advantages-hero::before,
.advantages-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

.advantages-hero::before {
  top: 0;
  height: clamp(4rem, 14vw, 7.5rem);
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    rgba(10, 11, 13, 0.55) 45%,
    transparent 100%
  );
}

.advantages-hero::after {
  bottom: 0;
  height: clamp(7rem, 22vw, 14rem);
  background: linear-gradient(
    to top,
    var(--bg-deep) 0%,
    rgba(10, 11, 13, 0.72) 35%,
    rgba(10, 11, 13, 0.2) 78%,
    transparent 100%
  );
}

.advantages-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/bg3.png");
  background-size: cover;
  background-position: 42% 18%;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.05) brightness(0.92);
}

.advantages-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(10, 11, 13, 0.94) 0%,
    rgba(10, 11, 13, 0.68) 34%,
    rgba(10, 11, 13, 0.18) 56%,
    transparent 68%
  );
}

.advantages-hero__inner {
  position: relative;
  z-index: 3;
  /* не задавать width: 100% — ломает ширину .u-container и прибивает текст к краю */
  max-width: 100%;
}

.advantages-hero__copy {
  max-width: min(34rem, 100%);
}

.advantages-hero__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.advantages-hero__title {
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.advantages-hero__title-line {
  display: block;
  color: var(--ink);
}

.advantages-hero__title-accent {
  display: block;
  margin-top: 0.2em;
  color: var(--gold);
}

.advantages-hero__lead {
  margin: 1.15rem 0 0;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
  line-height: 1.65;
  font-weight: 500;
  color: rgba(232, 230, 227, 0.78);
  max-width: 32rem;
}

@media (max-width: 767px) {
  .advantages-hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: clamp(4.5rem, 16vw, 7rem);
  }

  .advantages-hero__bg {
    background-position: 62% 55%;
    background-size: 220% auto;
    background-color: var(--bg-deep);
  }

  .advantages-hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.93) 0%,
      rgba(10, 11, 13, 0.52) 38%,
      rgba(10, 11, 13, 0.28) 72%,
      rgba(10, 11, 13, 0.55) 100%
    );
  }
}

/* Преимущества: сетка карточек + CTA-панель */
.advantages-features {
  position: relative;
  background: var(--bg-deep);
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3.5rem, 9vw, 6rem);
  border-top: none;
}

.advantages-features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 13, 0.65) 0%,
    transparent 100%
  );
}

.advantages-features__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.advantages-features__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .advantages-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.why-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 18.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.35s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}

.why-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transform-origin: center bottom;
  transition: transform 0.65s var(--ease-out);
  filter: saturate(0.72) contrast(1.12) brightness(0.78);
}

.why-card:hover .why-card__media {
  transform: scale(1.08);
  filter: saturate(0.78) contrast(1.08) brightness(0.84);
}

.why-card--b1 .why-card__media {
  background-image: url("../img/b1.png");
}

.why-card--b2 .why-card__media {
  background-image: url("../img/b2.png");
}

.why-card--b3 .why-card__media {
  background-image: url("../img/b3.png");
}

.why-card--b4 .why-card__media {
  background-image: url("../img/b4.png");
}

.why-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 13, 0.94) 0%,
    rgba(10, 11, 13, 0.55) 28%,
    rgba(10, 11, 13, 0.22) 52%,
    rgba(10, 11, 13, 0.72) 100%
  );
}

.why-card__num {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(232, 230, 227, 0.08);
  pointer-events: none;
  z-index: 1;
}

.why-card__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(1.35rem, 3.2vw, 1.85rem) clamp(1.2rem, 2.8vw, 1.65rem) clamp(1.35rem, 3vw, 1.75rem) clamp(1.2rem, 2.8vw, 1.65rem);
  min-height: 18.75rem;
}

.why-card__body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .why-card__body {
    gap: 1.15rem;
  }
}

.why-card__text {
  flex: 1;
  min-width: 0;
  padding-right: 4rem;
}

.why-card__icon {
  flex-shrink: 0;
  width: 5.25rem;
  height: 5.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 0;
}

.why-card__icon img {
  width: 100%;
  height: auto;
  max-height: 5.25rem;
  object-fit: contain;
  display: block;
}

.why-card__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.why-card__heading {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.45vw, 1.08rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.why-card__desc {
  margin: 0.6rem 0 0;
  font-size: clamp(0.78rem, 1.1vw, 0.875rem);
  line-height: 1.62;
  color: rgba(232, 230, 227, 0.78);
}

@media (max-width: 479px) {
  .why-card__text {
    padding-right: 3.25rem;
  }

  .why-card__icon {
    width: 4.5rem;
    height: 4.5rem;
  }

  .why-card__icon img {
    max-height: 4.5rem;
  }
}

.advantages-features__cta {
  margin-top: 0;
}

.advantages-features__cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  padding: clamp(1.5rem, 3.5vw, 2rem) clamp(1.75rem, 4vw, 2.75rem);
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.45);
}

.advantages-features__cta-badge {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.advantages-features__cta-badge img {
  width: 100%;
  height: auto;
  max-height: 4.5rem;
  object-fit: contain;
  display: block;
}

.advantages-features__cta-copy {
  margin: 0;
  flex: 1;
  min-width: min(100%, 18rem);
}

.advantages-features__cta-lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.74rem, 1.15vw, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.35;
}

.advantages-features__cta-sub {
  margin: 0.45rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.15vw, 0.92rem);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.76);
}

.advantages-features__cta-btn {
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .advantages-features__cta-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .advantages-features__cta-badge {
    margin-inline: auto;
  }

  .advantages-features__cta-copy {
    min-width: 0;
  }

  .advantages-features__cta-panel .advantages-features__cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-card,
  .why-card__media {
    transition: none;
  }

  .why-card:hover {
    transform: none;
  }

  .why-card:hover .why-card__media {
    transform: scale(1.03);
  }
}

/* Назначения: фон bg4 только под шапкой; сетка на сплошном --bg-deep */
.purposes {
  position: relative;
  background: var(--bg-deep);
  color: var(--ink-muted);
}

.purposes__intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  /* Текст начинается сразу под фиксированной шапкой (+ небольшой зазор), как «у линии» на макете */
  padding-top: calc(var(--header-h) + clamp(0.65rem, 2vw, 1.5rem));
  /* Нижний «воздух» и min-height дают баланс: блок визуально сидит в середине зоны с фоном */
  padding-bottom: clamp(4.25rem, 11vw, 8.25rem);
  min-height: clamp(24rem, 52svh, 42rem);
}

.purposes__intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(to bottom, #0a0b0d 0%, rgb(10 11 13 / 12%) 14%, rgba(10, 11, 13, 0.35) 36%, transparent 58%), 
    linear-gradient(180deg, rgba(10, 11, 13, 0.35) 0%, rgb(10 11 13 / 38%) 72%, var(--bg-deep) 100%), 
    url(../img/bg4.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.purposes__intro-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
}

.purposes__main {
  position: relative;
  z-index: 0;
  background: var(--bg-deep);
  padding: 0 0 clamp(3.5rem, 9vw, 6rem);
}

.purposes__main-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.purposes__head {
  margin: 0;
  max-width: min(46rem, 100%);
}

.purposes__title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purposes__title-line {
  display: block;
  color: var(--ink);
}

.purposes__title-accent {
  display: block;
  margin-top: 0.2em;
  color: var(--gold);
}

.purposes__lead {
  margin-top: 1rem;
}

.purposes__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .purposes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1080px) {
  .purposes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.purpose-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 19, 24, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.35s;
}

.purpose-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.purpose-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.purpose-card__visual {
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.5) 0%,
    rgba(8, 9, 11, 0.2) 100%
  );
}

.purpose-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.purpose-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.35rem;
  background: var(--bg-panel);
}

.purpose-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.purpose-card__text {
  margin: 0.55rem 0 0;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.82);
}

.purpose-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.purpose-card__more {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.purpose-card__circle {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.purpose-card:hover .purpose-card__circle {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.purposes__bottom-cta {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  text-align: center;
}

.purposes__bottom-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.05vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s;
}

.purposes__bottom-link:hover {
  color: var(--gold-bright);
}

.purposes__bottom-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

.purposes__bottom-link:hover .purposes__bottom-icon {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.purposes__bottom-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .purpose-card {
    transition: none;
  }

  .purpose-card:hover {
    transform: none;
  }
}

/* Холодный / тёплый — сравнение (фон bg5) */
.thermal {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3.5rem, 9vw, 6.5rem);
  color: var(--ink-muted);
}

.thermal__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: url("../img/bg5.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.thermal__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 11, 13, 0.72) 0%,
      rgba(10, 11, 13, 0.42) 42%,
      rgba(10, 11, 13, 0.68) 100%
    );
}

.thermal__inner {
  position: relative;
  z-index: 1;
}

.thermal__head {
  text-align: center;
  max-width: min(52rem, 100%);
  margin: 0 auto clamp(2.25rem, 5.5vw, 3.75rem);
}

.thermal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thermal__title-line {
  display: block;
  color: var(--ink);
}

.thermal__title-accent {
  display: block;
  margin-top: 0.35em;
  color: var(--gold);
}

.thermal__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .thermal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: stretch;
  }
}

.thermal-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  min-height: clamp(14rem, 28vw, 19rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.thermal-card--cold {
  border-color: rgba(120, 178, 228, 0.55);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(80, 140, 200, 0.08),
    inset 0 0 0 1px rgba(120, 178, 228, 0.12);
}

.thermal-card--warm {
  border-color: rgba(197, 160, 112, 0.55);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(197, 160, 112, 0.08),
    inset 0 0 0 1px rgba(197, 160, 112, 0.14);
}

/* Фото на всю карточку, привязка к правому краю — без стыка «колонка / картинка» */
.thermal-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.thermal-card--cold .thermal-card__photo {
  background-color: rgb(8, 12, 20);
  background-image: url("../img/ico-d1.png");
}

.thermal-card--warm .thermal-card__photo {
  background-color: rgb(16, 12, 9);
  background-image: url("../img/ico-d2.png");
}

/* Плавный переход: плотный тон слева (читаемость) → прозрачно справа (фото без резкой границы) */
.thermal-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 12, 20, 0.98) 0%,
    rgba(8, 12, 20, 0.9) 18%,
    rgba(8, 12, 20, 0.52) 36%,
    rgba(8, 12, 20, 0.14) 56%,
    transparent 82%
  );
}

.thermal-card--warm .thermal-card__scrim {
  background: linear-gradient(
    90deg,
    rgba(16, 12, 9, 0.98) 0%,
    rgba(16, 12, 9, 0.9) 18%,
    rgba(16, 12, 9, 0.5) 36%,
    rgba(16, 12, 9, 0.12) 56%,
    transparent 82%
  );
}

.thermal-card__copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.2rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: min(24rem, 100%);
}

@media (min-width: 640px) {
  .thermal-card__copy {
    max-width: min(26rem, 58%);
  }
}

.thermal-card__name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.thermal-card__icon {
  flex-shrink: 0;
  width: clamp(2.75rem, 6vw, 3.35rem);
  height: clamp(2.75rem, 6vw, 3.35rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thermal-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.thermal-card--cold .thermal-card__icon img {
  filter: drop-shadow(0 0 12px rgba(120, 190, 255, 0.35));
}

.thermal-card--warm .thermal-card__icon img {
  filter: drop-shadow(0 0 12px rgba(201, 169, 98, 0.35));
}

.thermal-card__name-text {
  min-width: 0;
}

.thermal-card__lead {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(232, 230, 227, 0.86);
  flex: 1;
}

.thermal-card__price {
  margin: 1.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-display);
  line-height: 1;
}

.thermal-card__price-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 230, 227, 0.75);
}

.thermal-card__price-num {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.thermal-card__price-unit {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(232, 230, 227, 0.8);
}

.thermal-card__note {
  margin: 0.65rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: rgba(154, 150, 144, 0.92);
}

@media (max-width: 639px) {
  .thermal-card__scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 12, 20, 0.98) 0%,
      rgba(8, 12, 20, 0.75) 34%,
      rgba(8, 12, 20, 0.22) 58%,
      transparent 90%
    );
  }

  .thermal-card--warm .thermal-card__scrim {
    background: linear-gradient(
      180deg,
      rgba(16, 12, 9, 0.98) 0%,
      rgba(16, 12, 9, 0.74) 34%,
      rgba(16, 12, 9, 0.22) 58%,
      transparent 90%
    );
  }

  .thermal-card__copy {
    max-width: none;
  }
}

.thermal__cta-wrap {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  justify-content: center;
}

.thermal__cta {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  gap: 0.55rem;
  max-width: min(40rem, 100%);
  text-align: center;
}

.thermal__cta .thermal__cta-icon {
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .thermal__cta {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }
}

/* Смета: из чего складывается цена (bg6) */
.estimate {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3.25rem, 8vw, 5.75rem);
  color: var(--ink-muted);
}

.estimate__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: url("../img/bg6.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

/* Лёгкий холодный оттенок поверх фото (закат чуть менее «тёплый») */
.estimate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(48, 88, 130, 0.2) 0%,
    rgba(42, 78, 118, 0.11) 42%,
    rgba(38, 72, 112, 0.08) 100%
  );
}

.estimate__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 9, 11, 0.97) 0%,
    rgba(8, 9, 11, 0.9) 26%,
    rgba(8, 9, 11, 0.48) 46%,
    rgba(8, 9, 11, 0.12) 64%,
    transparent 82%
  );
}

.estimate__inner {
  position: relative;
  z-index: 1;
}

.estimate__content {
  max-width: min(40rem, 100%);
}

@media (min-width: 900px) {
  .estimate__content {
    max-width: min(42rem, 58%);
  }
}

.estimate__label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.estimate__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.estimate__label-line {
  flex: 1;
  min-width: 4rem;
  max-width: 12rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.55;
}

.estimate__head {
  margin-bottom: 1.25rem;
}

.estimate__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.estimate__title-line {
  display: block;
  color: var(--ink);
}

.estimate__title-accent {
  display: block;
  margin-top: 0.3em;
  color: var(--gold);
}

.estimate__lead {
  margin: 0;
  font-size: clamp(0.8125rem, 1.1vw, 0.9rem);
  line-height: 1.65;
  color: rgba(232, 230, 227, 0.88);
  max-width: 38rem;
}

.estimate__list {
  margin: clamp(1.35rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.estimate__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem 1.1rem;
  margin-top: 1rem;
}

.estimate__item:first-child {
  margin-top: 0;
}

.estimate__ico {
  flex-shrink: 0;
  width: clamp(2.75rem, 6vw, 3.15rem);
  height: clamp(2.75rem, 6vw, 3.15rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimate__ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.estimate__item-text {
  padding-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.9);
}

.estimate__panel {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem 1.35rem;
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(17, 19, 24, 0.75);
  border: 1px solid rgba(197, 160, 112, 0.22);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.estimate__panel-icon {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estimate__panel-icon img {
  width: 100%;
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
  display: block;
}

.estimate__panel-text {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.6;
  font-weight: 500;
  color: rgba(232, 230, 227, 0.9);
  min-width: 0;
}

@media (max-width: 639px) {
  .estimate__scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 9, 11, 0.96) 0%,
      rgba(8, 9, 11, 0.78) 38%,
      rgba(8, 9, 11, 0.28) 62%,
      transparent 88%
    );
  }

  .estimate__content {
    max-width: none;
  }

  .estimate__bg {
    background-position: 65% center;
  }
}

/* Tech → заменён блоком «Письма благодарности» (.thanks) */

/* Письма благодарности */
.thanks {
  position: relative;
  padding: clamp(3.25rem, 8vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  background-color: #0d0d0d;
  background-image:
    linear-gradient(
      90deg,
      #0d0d0d 0%,
      rgba(13, 13, 13, 0.94) 32%,
      rgba(13, 13, 13, 0.55) 52%,
      rgba(13, 13, 13, 0.12) 72%,
      transparent 92%
    ),
    url("../img/bg12.png");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  background-position: 0 0, center right;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.thanks__head {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .thanks__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.thanks__intro {
  max-width: 40rem;
}

.thanks__label-row {
  display: block;
}

.thanks__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.thanks__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.thanks__lead {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 36rem;
}

.thanks__btn-download {
  margin-top: 1.35rem;
}

.thanks__badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 17rem;
  padding: 0.35rem 0;
}

.thanks__badge-ico {
  flex-shrink: 0;
  color: #c5a37e;
}

.thanks__badge-svg {
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35))
    drop-shadow(0 1px 3px rgba(197, 160, 112, 0.22));
}

.thanks__badge-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.thanks__badge-text strong {
  color: #c5a37e;
  font-weight: 600;
}

.thanks__slider {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 640px) {
  .thanks__slider {
    gap: 0.75rem;
  }
}

.thanks__nav {
  flex-shrink: 0;
  align-self: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.thanks__nav:hover {
  border-color: #c5a37e;
  color: #c5a37e;
  background: rgba(197, 163, 126, 0.08);
}

.thanks__track-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.thanks__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
}

.thanks__track::-webkit-scrollbar {
  display: none;
}

.thanks__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.thanks__track.is-dragging .thanks-card {
  cursor: grabbing;
}

.thanks-card {
  flex: 0 0 min(100%, 20rem);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .thanks-card {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}

@media (min-width: 960px) {
  .thanks-card {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}

.thanks-card__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.thanks-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thanks-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 1rem;
}

.thanks-card__meta {
  min-width: 0;
}

.thanks-card__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.thanks-card__kind {
  margin: 0.2rem 0 0;
  font-size: 0.7rem;
  color: var(--ink-dim);
}

.thanks-card__dl {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 11, 13, 0.12);
  background: linear-gradient(145deg, #d4b87a 0%, var(--gold) 45%, #9a7842 100%);
  color: #0a0b0d;
  box-shadow: 0 2px 14px rgba(197, 160, 112, 0.32);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  text-decoration: none;
}

.thanks-card__dl:hover {
  transform: translateY(-2px);
  color: #0a0b0d;
}

.thanks__bar {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .thanks__bar {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.thanks__bar-ico {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 163, 126, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a37e;
  background: rgba(197, 163, 126, 0.08);
}

.thanks__bar-copy {
  flex: 1;
  min-width: 0;
}

.thanks__bar-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.2vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.35;
}

.thanks__bar-text {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42rem;
}

.thanks__bar-action {
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .thanks__bar-action {
    align-self: center;
  }
}

/* Этапы строительства: фон bg7, карточки с золотой рамкой, визуал во всю ширину */
.build-steps {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.75rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: none;
  background: var(--bg-deep);
}

.build-steps__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-deep);
}

/* Фото только в правой верхней зоне, без растягивания на всю секцию */
.build-steps__bg::before {
  content: "";
  position: absolute;
  top: -112px;
  right: 0;
  width: min(76vw, 75rem);
  height: min(185vh, 50rem);
  max-width: 100%;
  background: url("../img/bg7.png") no-repeat top right / contain;
  opacity: 0.94;
  -webkit-mask-image: radial-gradient(
    ellipse 100% 125% at 79% 52%,
    #000 12%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 68%
  );
  mask-image: radial-gradient(ellipse 100% 125% at 79% 52%, #000 12%, rgba(0, 0, 0, 0.45) 42%, transparent 68%);
};
}

@media (max-width: 639px) {
  .build-steps__bg::before {
    width: min(100%, 22rem);
    height: min(32vh, 14rem);
    background-size: cover;
    opacity: 0.88;
  }
}

.build-steps__inner {
  position: relative;
  z-index: 1;
}

.build-steps__head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 900px) {
  .build-steps__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  }
}

.build-steps__intro {
  max-width: min(40rem, 100%);
}

.build-steps__label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.build-steps__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.build-steps__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-steps__title-line {
  display: block;
  color: var(--ink);
}

.build-steps__title-accent {
  display: block;
  margin-top: 0.3em;
  color: var(--gold);
}

.build-steps__lead {
  margin: 1rem 0 0;
  font-size: clamp(0.8125rem, 1.15vw, 0.92rem);
  line-height: 1.65;
  color: rgba(232, 230, 227, 0.82);
  max-width: 38rem;
}

.build-steps__quality {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 20rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(197, 160, 112, 0.35);
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.build-steps__quality-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.45);
  color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

.build-steps__quality-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.build-steps__quality-sub {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: rgba(154, 150, 144, 0.95);
}

.build-steps__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .build-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .build-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .build-steps__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.build-card {
  --build-card-fill: 17, 19, 24;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 1rem;
  border: 1px solid rgba(197, 160, 112, 0.42);
  background: rgba(var(--build-card-fill), 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  min-height: 100%;
  overflow: visible;
}

.build-card__num {
  position: absolute;
  right: 0.35rem;
  top: 0.25rem;
  left: auto;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 4.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.09);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.build-card__visual {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: clamp(7.25rem, 14vw, 9.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
}

.build-card__visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--build-card-fill), 0.35) 28%,
    rgba(var(--build-card-fill), 0.82) 68%,
    rgb(var(--build-card-fill)) 100%
  );
}

.build-card__visual img {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 6.5rem;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 98%);
}

.build-card__body {
  position: relative;
  z-index: 2;
  padding: 0.2rem 0.85rem 1.05rem;
  margin-top: -0.35rem;
  border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
  background: linear-gradient(180deg, rgba(var(--build-card-fill), 0.88) 0%, rgba(var(--build-card-fill), 0.96) 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.build-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.05vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #c5a070;
}

.build-card__text {
  margin: 0.45rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: rgba(232, 230, 227, 0.78);
  flex: 1;
}

/* Стрелка к следующему этапу (ряд из 5 на xl) */
@media (min-width: 1200px) {
  .build-card:not(:nth-child(5n)):not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42%;
    right: calc(-0.75rem - 6px);
    z-index: 4;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 112, 0.5);
    background: rgba(12, 14, 18, 0.92);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c5a070' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% 50%;
    pointer-events: none;
  }
}

.build-steps__bar {
  margin-top: clamp(2rem, 4.5vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.35rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: clamp(1.15rem, 2vw, 1.65rem);
  border: 1px solid rgba(197, 163, 125, 0.22);
  background: linear-gradient(
    100deg,
    rgb(108, 90, 72) 0%,
    rgb(88, 76, 64) 28%,
    rgb(58, 52, 46) 72%,
    rgb(36, 34, 32) 100%
  );
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

@media (min-width: 900px) {
  .build-steps__bar {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  }
}

.build-steps__bar-promise {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.build-steps__bar-seal {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.5);
  color: var(--gold);
  background: rgba(10, 11, 13, 0.28);
}

.build-steps__bar-promise-text {
  min-width: 0;
}

.build-steps__bar-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5a37d;
}

.build-steps__bar-sub {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(232, 230, 227, 0.75);
}

.build-steps__bar-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

@media (min-width: 640px) {
  .build-steps__bar-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    column-gap: 0;
  }
}

.build-steps__bar-feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.55rem;
}

@media (max-width: 639px) {
  .build-steps__bar-feature {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 640px) {
  .build-steps__bar-feature {
    padding: 0 0.65rem 0 0.85rem;
    gap: 0.65rem;
    border-left: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04);
  }

  .build-steps__bar-feature:first-child {
    padding-left: 0;
    border-left: none;
    box-shadow: none;
  }
}

.build-steps__bar-feature-ico {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.build-steps__bar-feature-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.build-steps__bar-feature-text {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 230, 227, 0.88);
}

/* Материалы: фон bg9 слева, текст в .materials__intro справа */
.materials {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background-color: var(--bg-deep);
  border: none;
  outline: none;
  box-shadow: none;
}

.materials__photo {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: min(72vw, 52rem);
  max-width: 100%;
  background-color: transparent;
  background-image: url("../img/bg9.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 66%,
    rgba(0, 0, 0, 0.28) 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 48%,
    rgba(0, 0, 0, 0.75) 66%,
    rgba(0, 0, 0, 0.28) 84%,
    transparent 100%
  );
}

@media (max-width: 639px) {
  .materials__photo {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: min(44vh, 21rem);
    max-width: none;
    background-position: left center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 62%,
      rgba(0, 0, 0, 0.4) 82%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 62%,
      rgba(0, 0, 0, 0.4) 82%,
      transparent 100%
    );
  }

  .materials__inner {
    padding-top: min(38vh, 18rem);
  }
}

.materials__inner {
  position: relative;
  z-index: 2;
}

.materials__intro {
  max-width: min(34rem, 100%);
  margin-left: auto;
}

@media (min-width: 900px) {
  .materials__intro {
    max-width: min(38rem, 48%);
    margin-left: auto;
  }
}

.materials__label-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.materials__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.materials__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.materials__title-line {
  display: block;
  color: var(--ink);
}

.materials__title-line--lead .materials__title-accent {
  display: inline;
  margin: 0;
  margin-left: 0.12em;
  color: #b89b72;
}

.materials__list {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.materials__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.15rem;
  padding: clamp(1rem, 2.5vw, 1.25rem) 0;
  border-bottom: 1px solid rgba(80, 76, 72, 0.55);
}

.materials__item:first-child {
  border-top: 1px solid rgba(80, 76, 72, 0.55);
}

.materials__ico {
  flex-shrink: 0;
  width: clamp(2.85rem, 6vw, 3.35rem);
  height: clamp(2.85rem, 6vw, 3.35rem);
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.08);
  line-height: 0;
}

.materials__ico img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  display: block;
}

.materials__item-text {
  min-width: 0;
  padding-top: 0.15rem;
}

.materials__item-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.05vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink);
}

.materials__item-desc {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(154, 150, 144, 0.95);
}

.materials__cta {
  margin-top: clamp(1.75rem, 3.5vw, 2.25rem);
}

/* Мини-FAQ (после этапов) — верх совпадает с --bg-deep секции «Как мы строим», без резкой границы */
.mini-faq {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 10vw, 6.5rem);
  margin-top: -1px;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(
      180deg,
      var(--bg-deep) 0%,
      var(--bg-deep) 10%,
      rgba(10, 11, 13, 0.96) 18%,
      rgba(10, 11, 13, 0.82) 28%,
      rgba(10, 11, 13, 0.52) 42%,
      rgba(10, 11, 13, 0.22) 56%,
      rgba(10, 11, 13, 0.06) 72%,
      transparent 88%
    ),
    url("../img/bg10.png");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, cover;
  background-position: 0 0, center 42%;
  border-top: none;
}

.mini-faq__inner {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.mini-faq__label-row {
  display: block;
}

.mini-faq__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a68a64;
}

.mini-faq__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-faq__title-line {
  color: var(--ink);
}

.mini-faq__title-accent {
  display: block;
  margin-top: 0.12em;
  color: var(--gold);
}

@media (min-width: 640px) {
  .mini-faq__title-accent {
    display: inline;
    margin-top: 0;
    margin-left: 0.2em;
  }
}

.mini-faq__accordion {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mini-faq__item {
  border: 1px solid rgba(197, 160, 112, 0.28);
  border-radius: 1rem;
  background: rgba(10, 11, 13, 0.55);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.mini-faq__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: clamp(1rem, 2vw, 1.3rem) clamp(1rem, 2vw, 1.35rem);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
}

.mini-faq__summary::-webkit-details-marker {
  display: none;
}

.mini-faq__summary:focus {
  outline: none;
}

.mini-faq__summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.mini-faq__num {
  flex-shrink: 0;
  width: 2.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #b89b72;
  line-height: 1;
}

.mini-faq__divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  min-height: 2.6rem;
  background: rgba(255, 255, 255, 0.1);
}

.mini-faq__q {
  flex: 1;
  min-width: 0;
  font-size: clamp(0.82rem, 1.12vw, 0.94rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.mini-faq__toggle {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(197, 160, 112, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5a070;
  background: rgba(10, 11, 13, 0.4);
  transition:
    transform 0.4s var(--ease-out),
    background 0.28s ease,
    border-color 0.28s ease;
}

.mini-faq__item[open] .mini-faq__toggle {
  transform: rotate(45deg);
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(197, 160, 112, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .mini-faq__toggle {
    transition: none;
  }

  .mini-faq__item[open] .mini-faq__toggle {
    transform: rotate(45deg);
  }

  /* Нативное поведение <details>, без ломания display у панели */
  .mini-faq__panel {
    display: revert !important;
    height: auto !important;
    overflow: visible !important;
    transition: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 clamp(1rem, 2vw, 1.35rem);
    padding: 0 0 clamp(1rem, 2vw, 1.2rem);
  }

  .mini-faq__panel-inner {
    min-height: 0;
    overflow: visible;
    padding: 0;
  }

  .mini-faq__item:not([open]) > .mini-faq__panel {
    display: none !important;
  }
}

/* Панель ответа: высота анимируется в scroll-anim.js; перебиваем display:none у закрытого <details> */
.mini-faq__panel {
  margin: 0 clamp(1rem, 2vw, 1.35rem);
  padding: 0;
  display: block !important;
  box-sizing: border-box;
  height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: height 0.48s cubic-bezier(0.33, 1, 0.68, 1), border-top-color 0.34s ease;
}

.mini-faq__item[open] > .mini-faq__panel {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Если JS отключён — класс .js обычно снят вместе со скриптом */
html:not(.js) .mini-faq__item[open] > .mini-faq__panel {
  height: auto;
}

.mini-faq__panel-inner {
  overflow: hidden;
  padding: 0 0 clamp(1rem, 2vw, 1.2rem);
}

.mini-faq__a {
  margin: 0;
  padding: 0.85rem 0 0.1rem;
  max-width: 52rem;
  font-size: 0.8125rem;
  line-height: 1.62;
  color: rgba(232, 230, 227, 0.72);
}

/* Контакты + карта (вместо прежнего блока «О компании», якорь #about) */
.contact-map {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--line);
}

.contact-map__panel {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: stretch;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 1.15rem;
  background: rgba(12, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 900px) {
  .contact-map__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.75rem, 3.5vw, 2.75rem);
    padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  }
}

.contact-map__info {
  min-width: 0;
}

.contact-map__eyebrow {
  display: inline-block;
}

.contact-map__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c5a070;
}

.contact-map__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-map__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-map__ico {
  flex-shrink: 0;
  margin-top: 0.05rem;
  display: flex;
  color: #c5a070;
  opacity: 0.95;
}

.contact-map__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.contact-map__text a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-map__text a:hover {
  color: #c5a070;
}

.contact-map__map {
  position: relative;
  min-height: clamp(16rem, 42vw, 22rem);
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0b0d;
}

.contact-map__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA strip */
.cta-strip {
  padding: 2.5rem 0;
  background: linear-gradient(120deg, #a8894a 0%, var(--gold) 40%, #8f7340 100%);
  color: #0a0b0d;
}

.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-strip__text {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
}

.cta-strip__text svg {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.85;
}

.cta-strip__text p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: #060708;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr minmax(16rem, 1.6fr);
    gap: 2rem;
  }
}

.footer__brand p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 22rem;
}

.footer__col h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col li {
  margin-bottom: 0.65rem;
}

.footer__col--contacts .footer__contacts {
  margin: 0;
}

.footer__contact-row {
  margin-bottom: 0.85rem;
}

.footer__contact-row:last-child {
  margin-bottom: 0;
}

.footer__contact-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.footer__contact-text {
  display: block;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer__pitch {
  margin: 1.15rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 26rem;
}

.footer__col--contacts .footer__social {
  margin-top: 1.25rem;
}

.footer__social--messengers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social--messengers li {
  margin: 0;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--ink-dim);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Герой: модальное окно с видео (data-video-embed на #hero-video-btn — ссылка embed YouTube / Rutube / VK) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.video-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(10, 11, 13, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.video-modal__close:hover {
  color: var(--gold);
  border-color: rgba(197, 160, 112, 0.45);
  background: rgba(10, 11, 13, 0.85);
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0b0d;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  .video-modal__backdrop {
    backdrop-filter: none;
  }
}

/* GSAP сам выставляет начальные opacity/transform в твинах. Не прячем контент через html.js —
   иначе при любой задержке/особенности ScrollTrigger страница выглядит «пустой», хотя разметка на месте. */
[data-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-stagger-group] > *,
  .project-card,
  .thanks-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* CMS: премиум-главная — доп. пункты в шапке */
.premium-cms-home .header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.5rem;
}

.premium-cms-home .header-actions__cart.btn-hero {
  padding: 0.4rem 0.85rem;
  min-height: 2.5rem;
  font-size: 0.58rem;
}

/* Перебить светлый body/header из Tailwind app.css на хосте */
body.premium-cms-home {
  background: var(--bg-deep) !important;
  color: var(--ink-muted) !important;
}

.premium-cms-home .site-header {
  background: rgba(10, 11, 13, 0.78) !important;
  border-bottom-color: var(--line) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.premium-cms-home .site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.92) !important;
}

.premium-cms-home .site-header a[href^="tel:"] {
  color: var(--ink) !important;
}

.project-card[data-project-lightbox] {
  cursor: pointer;
}

.project-card[data-project-lightbox]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.works-mosaic {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 0.25rem;
}

.works-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .works-mosaic__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .works-mosaic__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.works-mosaic__cell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
}

.works-mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.works-mosaic__cell:hover img {
  transform: scale(1.04);
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.project-lightbox[hidden] {
  display: none !important;
}

.project-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.project-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(56rem, 100%);
  max-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.project-lightbox__viewport {
  position: relative;
  width: 100%;
}

.project-lightbox__stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060708;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.project-lightbox__stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 48rem);
  object-fit: contain;
  margin: 0 auto;
}

.project-lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.75);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.project-lightbox__close:hover {
  background: rgba(201, 169, 98, 0.2);
  color: var(--gold);
}

.project-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.72);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  transform: translateY(-50%);
}

.project-lightbox__nav:hover {
  background: rgba(201, 169, 98, 0.18);
  color: var(--gold);
}

.project-lightbox__nav--prev {
  left: 0.35rem;
}

.project-lightbox__nav--next {
  right: 0.35rem;
}

@media (max-width: 639px) {
  .project-lightbox__nav--prev {
    left: 0.2rem;
  }

  .project-lightbox__nav--next {
    right: 0.2rem;
  }

  .project-lightbox__nav {
    width: 2.35rem;
    height: 2.35rem;
  }
}

.project-lightbox__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.project-lightbox__counter {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.thanks-card__img--placeholder {
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px dashed var(--line);
  padding: 1.25rem;
}

.thanks-card__placeholder-text {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}