/* Кейс сайта-портфолио строительной компании */

.construction-page {
  gap: 100px;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.construction-page #construction-hero,
.construction-page #construction-screenshots,
.construction-page #construction-task,
.construction-page #construction-implemented,
.construction-page #construction-visual,
.construction-page #construction-adaptive,
.construction-page #construction-result,
.construction-results-section {
  scroll-margin-top: calc(var(--site-header-total) + 16px);
}

.page-main:has(#construction-hero) {
  padding-top: 121px;
  padding-bottom: 0;
}

#construction-hero {
  padding-top: 32px;
  margin-top: 0;
  margin-bottom: 0;
}

#construction-hero + #construction-task {
  margin-top: -68px;
}

.construction-hero .stroim-hero__title {
  max-width: 28ch;
}

.construction-hero .stroim-hero__lead {
  margin-bottom: 32px;
  max-width: min(70ch, 100%);
}

.construction-hero__banner {
  padding: 0;
  border-radius: var(--radius-card);
  background: transparent;
  overflow: hidden;
  box-shadow: none;
}

.construction-browser {
  overflow: hidden;
  border-radius: 25px;
  background: #f5f5f5;
  box-shadow: none;
}

.construction-browser__viewport {
  position: relative;
  min-height: clamp(360px, 54vw, 610px);
  overflow: hidden;
  border-radius: 25px 25px 0 0;
  background: #ffffff;
}

/* Герой: анимированное представление проекта из полного скриншота 1920×8720 */
.construction-browser__viewport.construction-hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(400px, 47vw, 560px);
  padding: clamp(24px, 4vw, 52px) clamp(18px, 4.6vw, 64px);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.72), transparent 33%),
    linear-gradient(145deg, #f4f1ea 0%, #ddd7ca 48%, #bfb7a7 100%);
  box-sizing: border-box;
}

.construction-hero-preview__device {
  width: min(100%, 1040px);
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f7f7f5;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 22px 58px rgba(40, 36, 29, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transform-origin: center bottom;
  animation: construction-preview-device-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.construction-hero-preview__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fbfbfa 0%, #ecebe8 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.construction-hero-preview__controls,
.construction-hero-preview__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.construction-hero-preview__controls span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.construction-hero-preview__controls span:nth-child(1) {
  background: #ff5f57;
}

.construction-hero-preview__controls span:nth-child(2) {
  background: #febc2e;
}

.construction-hero-preview__controls span:nth-child(3) {
  background: #28c840;
}

.construction-hero-preview__address {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.construction-hero-preview__actions span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.08);
}

.construction-hero-preview__screen {
  height: clamp(340px, 36vw, 460px);
  overflow: hidden;
  background: #ffffff;
}

.construction-hero-preview__image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  transform: translateY(0);
  animation: construction-preview-page-scroll 14s cubic-bezier(0.45, 0, 0.2, 1) 0.8s infinite;
}

@keyframes construction-preview-device-in {
  from {
    transform: translateY(22px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes construction-preview-page-scroll {
  0%,
  12% {
    transform: translateY(0);
  }

  88%,
  100% {
    transform: translateY(-42%);
  }
}

@media (max-width: 767px) {
  .construction-browser__viewport.construction-hero-preview {
    min-height: clamp(300px, 78vw, 460px);
    padding: 16px 12px;
  }

  .construction-hero-preview__device {
    border-radius: 16px;
  }

  .construction-hero-preview__bar {
    height: 38px;
    gap: 8px;
    padding: 0 10px;
  }

  .construction-hero-preview__address {
    height: 22px;
    font-size: 11px;
  }

  .construction-hero-preview__actions {
    display: none;
  }

  .construction-hero-preview__screen {
    height: clamp(290px, 70vw, 410px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-hero-preview__device,
  .construction-hero-preview__image {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.construction-task-panel {
  padding: 24px;
  text-align: left;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.construction-task-panel .stroim-essence-panel__grid {
  align-items: stretch;
}

@media (min-width: 900px) {
  .construction-task-panel .stroim-essence-panel__grid {
    column-gap: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 333px);
  }
}

.construction-task-panel .stroim-essence-panel__left {
  justify-content: flex-start;
  gap: 32px;
  height: 100%;
  min-height: 0;
}

@media (min-width: 900px) {
  .construction-task-panel .stroim-essence-panel__left {
    justify-content: flex-start;
    align-self: stretch;
    min-height: 100%;
  }
}

.construction-task-panel .stroim-essence-meta {
  gap: 14px;
}

.construction-task-panel .stroim-essence-meta-card {
  min-height: 55px;
}

.construction-task-panel .stroim-essence-meta-card:last-child {
  flex: 1 1 auto;
}

.construction-section-title {
  margin-bottom: 100px;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
}

.construction-case-grid {
  display: grid;
  gap: 32px;
}

.construction-case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "media"
    "copy";
  gap: 32px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius-card);
  background: #0c0c0c;
  border: none;
  box-shadow: none;
}

.construction-case-card--reverse {
  grid-template-areas:
    "title"
    "media"
    "copy";
}

.construction-case-card--reverse .construction-case-card__content {
  order: initial;
}

.construction-case-card--reverse .construction-case-card__media {
  order: initial;
}

.construction-case-card__content {
  display: contents;
  min-width: 0;
}

.construction-case-card__content h3 {
  grid-area: title;
  margin: 0;
  margin-bottom: 0;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.construction-case-card__columns {
  grid-area: copy;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 32px;
  min-height: 0;
}

.construction-case-card__columns > div {
  position: relative;
  padding: 12px 14px;
  border-radius: 15px;
  background: #000000;
  border: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.construction-case-card__columns p {
  margin: 0;
  color: var(--color-text-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.22;
}

.construction-case-card__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(200, 55, 48, 0.26);
  border: 1px solid rgba(255, 140, 125, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.construction-case-card__label::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.62) 50%, transparent 62%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.construction-case-card__columns > div:hover .construction-case-card__label::after {
  animation: construction-label-shimmer 0.9s var(--ease) forwards;
  opacity: 1;
}

.construction-case-card__label--solution {
  background: rgba(55, 100, 200, 0.26);
  border-color: rgba(150, 190, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}

@keyframes construction-label-shimmer {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.construction-case-card__media {
  grid-area: media;
  margin: 0;
  width: 100%;
  height: auto;
  min-height: 380px;
  border-radius: 10px;
  overflow: hidden;
  background: #343425;
}

.construction-case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.construction-case-card__device {
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #d9d9d9;
}

.construction-case-card__media .construction-case-card__desktop-preview {
  width: min(100%, 640px);
  margin: 0 auto;
  align-self: center;
}

.construction-case-card__media .construction-case-card__desktop-preview .construction-device-preview__screen {
  height: 320px;
}

.construction-case-card--reverse .construction-case-card__media {
  min-height: 480px;
}

.construction-case-card--reverse .construction-case-card__device {
  min-height: 480px;
}

.construction-case-card--reverse .construction-case-card__media .construction-case-card__desktop-preview .construction-device-preview__screen {
  height: 420px;
}

.construction-case-card:not(.construction-case-card--reverse) .construction-device-preview__screen img {
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: top center;
  animation: construction-device-page-scroll 12s cubic-bezier(0.45, 0, 0.2, 1) 0.35s infinite;
}

.construction-case-card--reverse .construction-device-preview__screen img {
  animation: none !important;
  transform: translateY(-40px);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 38%;
  background: #ffffff;
}

.construction-mockup-placeholder {
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 25%, transparent 25% 50%, rgba(255, 255, 255, 0.08) 50% 75%, transparent 75%),
    #1a1a14;
  background-size: 28px 28px;
  color: rgba(255, 255, 255, 0.78);
}

.construction-mockup-placeholder span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(186, 233, 195, 0.14);
  color: #d8f7df;
  font-size: 13px;
  font-weight: 600;
}

.construction-mockup-placeholder strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.construction-visual__head {
  display: grid;
  gap: 16px;
  margin-bottom: 100px;
}

.construction-visual__head .projects-heading {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
}

.construction-visual__head .section-block__text {
  max-width: 76ch;
}

.construction-visual__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--block-gap-inner);
}

.construction-system-card--palette {
  grid-column: 1 / -1;
}

.construction-system-card,
.construction-adaptive-card,
.construction-result__panel {
  border-radius: 10px;
  background: #0c0c0c;
  box-shadow: none;
  overflow: hidden;
}

.construction-system-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.construction-system-card h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.construction-system-card__items {
  display: grid;
  gap: 14px;
}

.construction-system-card__items span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.construction-system-card__items--palette {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.construction-system-card__items--palette span {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.construction-system-card__items--palette > span::before {
  content: "";
  width: 100%;
  aspect-ratio: 1.65 / 1;
  border-radius: 12px;
  background: var(--swatch);
  border: 1px solid transparent;
}

.construction-system-card__items--palette > span:has(.construction-palette-shades)::before {
  display: none;
}

.construction-system-card__items--palette > span:has(.construction-palette-shades) {
  position: relative;
}

.construction-system-card__items--palette > span:has(.construction-palette-shades)::after {
  content: "↔";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

.construction-palette-shades {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--shade-count, 5), minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1.65 / 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--swatch);
}

.construction-palette-shades::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--swatch);
  transition: opacity 0.32s var(--ease);
}

.construction-palette-shades i {
  position: relative;
  min-width: 0;
  background: var(--shade);
}

.construction-palette-shades i::after {
  content: attr(data-shade);
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 6px);
  opacity: 0;
  color: var(--shade-label, rgba(0, 0, 0, 0.72));
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.construction-system-card__items--palette > span:hover .construction-palette-shades::before,
.construction-system-card__items--palette > span:hover::after {
  opacity: 0;
}

.construction-system-card__items--palette > span:hover .construction-palette-shades i::after {
  transform: translate(-50%, 0);
  opacity: 1;
}

.construction-system-card__items--palette span:nth-child(3)::before,
.construction-system-card__items--palette span:nth-child(6)::before {
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .construction-system-card__items--palette span::before {
  border-color: transparent;
}

html[data-theme="light"] .construction-system-card__items--palette span:first-child::before {
  border-color: rgba(0, 0, 0, 0.14);
}

.construction-system-card strong {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.construction-system-card em {
  font-style: normal;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.construction-system-card--type .construction-system-card__items,
.construction-system-card--components .construction-components-preview {
  flex: 1;
  min-height: 0;
}

.construction-system-card--type .construction-system-card__items {
  display: grid;
  align-content: start;
  gap: 18px;
}

.construction-type-fonts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.construction-type-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.construction-type-fonts span,
.construction-type-specs span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
}

.construction-type-fonts span {
  grid-template-columns: 1fr;
}

.construction-type-specs span {
  gap: 8px;
}

.construction-type-fonts span:first-child strong,
.construction-type-specs span:nth-child(-n + 3) strong {
  font-family: var(--font-heading);
}

html[data-theme="light"] .construction-type-specs {
  border-top-color: var(--color-border);
}

.construction-components-preview {
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

.construction-components-preview > .construction-mockup-placeholder {
  width: 100%;
  min-width: 0;
}

.construction-component-pill,
.construction-component-button,
.construction-component-arrow {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
}

.construction-component-button {
  background: #bae9c3;
  color: #0c0c0c;
}

.construction-component-arrow {
  width: 52px;
  justify-self: start;
}

.construction-adaptive__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--block-gap-inner);
}

.construction-adaptive-card--active {
  grid-column: 1 / -1;
}

#construction-screenshots .construction-visual__head {
  margin-bottom: 32px;
}

.construction-screenshots-switch.gallery-shot-theme {
  display: inline-flex;
  justify-self: start;
  width: min(100%, 480px);
  max-width: 100%;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.construction-screenshots-switch .gallery-shot-theme__btn {
  flex: 1 1 0;
  margin: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 245, 245, 0.65);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.construction-screenshots-switch .gallery-shot-theme__btn:hover {
  color: #fafafa;
}

.construction-screenshots-switch .gallery-shot-theme__btn--active {
  background: #2a2a2a;
  color: #fafafa;
}

.construction-screenshots__stage {
  display: block;
}

.construction-preview-browser {
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #0c0c0c;
  box-shadow: none;
}

.construction-preview-browser__hint {
  margin: 0;
  padding: 14px 18px;
  border-radius: 25px 25px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.construction-screenshot-card {
  display: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.construction-screenshot-card--active {
  display: block;
}

.construction-screenshot-card__viewport {
  height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.construction-screenshot-card__viewport:focus-visible {
  outline: 2px solid var(--color-cta-project);
  outline-offset: -2px;
}

.construction-screenshot-card__viewport img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  background: #f5f5f5;
}

.construction-screenshot-card figcaption {
  margin: 0;
  padding: 14px 18px 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.construction-more-projects {
  padding-top: 0;
  margin-bottom: var(--layout-gap-projects-heading-grid);
}

.construction-more-projects .projects-heading {
  margin: 0 0 var(--layout-gap-projects-heading-grid);
  text-align: left;
}

.construction-more-projects__grid {
  gap: 24px;
  grid-template-columns: 1fr;
}

.construction-more-projects .project-card {
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.032);
  color: #0a0a0a;
}

.construction-more-projects .project-card:hover {
  border-color: transparent;
}

.construction-more-projects .project-card__content {
  padding: 24px 24px 0;
}

.construction-more-projects .project-card__title {
  color: #0a0a0a;
}

.construction-more-projects .project-card__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(10, 10, 10, 0.88);
}

.construction-more-projects .project-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  min-height: 230px;
  max-height: 230px;
  aspect-ratio: auto;
}

.construction-more-projects .project-card__visual-figure {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: none;
}

.construction-more-projects .project-card__visual-img {
  display: block;
  width: auto;
  height: auto;
  margin: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.construction-more-projects .project-card--alive .project-card__visual-figure,
.construction-more-projects .project-card--stroim .project-card__visual-figure {
  align-items: flex-end;
}

.construction-more-projects .project-card--alive .project-card__visual-img,
.construction-more-projects .project-card--stroim .project-card__visual-img {
  margin-top: auto;
  margin-bottom: 0;
}

.construction-more-projects .project-card--partners .project-card__visual-img {
  max-width: 88%;
  max-height: 88%;
}

.construction-more-projects .project-card__footer {
  margin: 24px 24px 16px;
  background: #f4f4f4;
  border-color: rgba(0, 0, 0, 0.08);
}

.construction-more-projects .project-card__footer:not(.project-card__footer--soon):hover {
  border-color: rgba(214, 61, 36, 0.32);
  background: rgba(214, 61, 36, 0.07);
  box-shadow: inset 0 1px 0 rgba(214, 61, 36, 0.1);
}

.construction-more-projects .project-card__footer::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(214, 61, 36, 0.12) 44%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(214, 61, 36, 0.08) 56%,
    transparent 68%,
    transparent 100%
  );
}

.construction-more-projects .tag {
  color: rgba(15, 15, 20, 0.82);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.construction-more-projects .tag--b2b {
  color: rgba(30, 64, 175, 0.92);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
}

.construction-more-projects .tag--b2c {
  color: rgba(190, 24, 93, 0.9);
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
}

.construction-more-projects .tag--mobile-app {
  color: rgba(8, 145, 178, 0.92);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.22);
}

.construction-more-projects .tag--pet-project {
  color: rgba(180, 83, 9, 0.92);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

html:not([data-theme="light"]) .construction-more-projects .project-card {
  background: rgba(8, 8, 8, 0.78);
  border-color: var(--color-border);
  box-shadow: none;
  color: var(--color-text);
}

html:not([data-theme="light"]) .construction-more-projects .project-card:hover {
  border-color: rgba(255, 255, 255, 0.07);
}

html:not([data-theme="light"]) .construction-more-projects .project-card__title {
  color: var(--color-text);
}

html:not([data-theme="light"]) .construction-more-projects .project-card__desc {
  color: var(--color-text-body);
}

html:not([data-theme="light"]) .construction-more-projects .project-card__footer {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
}

html:not([data-theme="light"]) .construction-more-projects .project-card__footer:not(.project-card__footer--soon):hover {
  border-color: rgba(255, 77, 46, 0.28);
  background: rgba(18, 10, 8, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 77, 46, 0.12);
}

html:not([data-theme="light"]) .construction-more-projects .project-card__footer::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 77, 46, 0.14) 44%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(255, 77, 46, 0.1) 56%,
    transparent 68%,
    transparent 100%
  );
}

html:not([data-theme="light"]) .construction-more-projects .tag {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

html:not([data-theme="light"]) .construction-more-projects .tag--b2b {
  color: rgba(186, 210, 245, 0.82);
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.2);
}

html:not([data-theme="light"]) .construction-more-projects .tag--b2c {
  color: rgba(252, 201, 209, 0.78);
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.18);
}

html:not([data-theme="light"]) .construction-more-projects .tag--mobile-app {
  color: rgba(165, 220, 235, 0.82);
  background: rgba(6, 182, 212, 0.09);
  border-color: rgba(6, 182, 212, 0.2);
}

html:not([data-theme="light"]) .construction-more-projects .tag--pet-project {
  color: rgba(245, 220, 160, 0.78);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

@media (min-width: 700px) {
  .construction-more-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .construction-more-projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .construction-more-projects .project-card--partners .project-card__title {
    font-size: 20px;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }
}

.construction-adaptive-card {
  padding: 24px;
}

.construction-adaptive-switch {
  display: none;
}

.construction-adaptive-switch.gallery-shot-theme {
  position: static;
  z-index: 2;
  gap: 0;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.construction-adaptive-switch .gallery-shot-theme__btn {
  margin: 0;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 245, 245, 0.65);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.construction-adaptive-switch .gallery-shot-theme__btn:hover {
  color: #fafafa;
}

.construction-adaptive-switch .gallery-shot-theme__btn--active {
  background: #2a2a2a;
  color: #fafafa;
}

.construction-adaptive-card__mockup {
  height: 320px;
  margin-bottom: 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #d9d9d9;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.construction-device-preview {
  overflow: hidden;
  background: #f7f7f5;
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    0 1px 0 rgba(255, 255, 255, 0.58) inset;
}

.construction-device-preview--desktop {
  width: min(88%, 760px);
  border-radius: 18px;
  align-self: flex-start;
  margin-top: 24px;
}

.construction-device-preview--tablet {
  width: min(88%, 360px);
  padding: 8px;
  border-radius: 24px;
  background: #111111;
  border-color: rgba(255, 255, 255, 0.22);
}

.construction-device-preview--mobile {
  position: relative;
  width: min(39%, 142px);
  border-radius: 28px;
  padding: 5px;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.construction-device-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  background: linear-gradient(180deg, #fbfbfa 0%, #ecebe8 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.construction-device-preview--tablet .construction-device-preview__bar {
  justify-content: center;
  height: 12px;
  padding: 0 0 7px;
  background: transparent;
  border-bottom: 0;
}

.construction-device-preview--tablet .construction-device-preview__bar::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.construction-device-preview--tablet .construction-device-preview__controls,
.construction-device-preview--tablet .construction-device-preview__address {
  display: none;
}

.construction-device-preview--mobile .construction-device-preview__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  z-index: 2;
  justify-content: center;
  height: 14px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
}

.construction-device-preview__controls,
.construction-device-preview__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.construction-device-preview__controls i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.construction-device-preview__controls i:nth-child(1) {
  background: #ff5f57;
}

.construction-device-preview__controls i:nth-child(2) {
  background: #febc2e;
}

.construction-device-preview__controls i:nth-child(3) {
  background: #28c840;
}

.construction-device-preview__address {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.44);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.construction-device-preview--tablet .construction-device-preview__address {
  height: 16px;
  font-size: 8px;
}

.construction-device-preview__actions i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.construction-device-preview__speaker {
  width: 44px;
  height: 13px;
  border-radius: 999px;
  background: #050506;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.08) inset;
}

.construction-device-preview__screen {
  overflow: hidden;
  background: #ffffff;
}

.construction-hero-preview__screen picture,
.construction-device-preview__screen picture,
.construction-screenshot-card__viewport picture {
  display: block;
  width: 100%;
}

.construction-device-preview--desktop .construction-device-preview__screen {
  height: 330px;
}

.construction-device-preview--tablet .construction-device-preview__screen {
  height: 214px;
  border-radius: 16px;
}

.construction-device-preview--mobile .construction-device-preview__screen {
  height: 272px;
  border-radius: 23px;
}

.construction-device-preview__screen img {
  display: block;
  width: 100%;
  height: auto;
  animation: construction-device-page-scroll 12s cubic-bezier(0.45, 0, 0.2, 1) 0.35s infinite;
}

.construction-device-preview--tablet .construction-device-preview__screen img,
.construction-device-preview--mobile .construction-device-preview__screen img {
  width: 100%;
  margin-left: 0;
}

@keyframes construction-device-page-scroll {
  0%,
  12% {
    transform: translateY(0);
  }

  88%,
  100% {
    transform: translateY(-38%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .construction-device-preview__screen img {
    animation: none !important;
  }

  .construction-case-card:not(.construction-case-card--reverse) .construction-device-preview__screen img {
    transform: none !important;
  }
}

.construction-adaptive-card > span {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(186, 233, 195, 0.14);
  color: #d8f7df;
  font-size: 13px;
  font-weight: 600;
}

.construction-adaptive-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
}

.construction-adaptive-card p,
.construction-result__panel p {
  margin: 0;
  color: var(--color-text-body);
  font-size: var(--font-size-text);
  line-height: 1.62;
}

.construction-result__panel {
  display: block;
  padding: 24px;
}

.construction-contribution {
  display: grid;
  gap: var(--block-gap-inner);
}

.construction-contribution__lead {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: #0c0c0c;
  color: var(--color-text-body);
  font-size: var(--font-size-text);
  line-height: 1.55;
}

.construction-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--block-gap-inner);
}

.construction-role-card {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  background: #0c0c0c;
  border: none;
  box-sizing: border-box;
}

.construction-role-card .alivebe-role-card__head {
  margin: 0;
}

.construction-role-card .alivebe-role-card__label {
  display: inline-flex;
  margin-bottom: 0;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: #c8d7ff;
}

.construction-role-card .alivebe-role-card__rule {
  margin: 16px 0;
  padding: 0;
  height: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.construction-role-card .alivebe-role-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.construction-role-card .alivebe-role-card__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: var(--font-size-text);
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.82);
}

.construction-role-card .alivebe-role-card__dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #737373;
}

.construction-results-section .projects-heading {
  margin: 0 0 100px;
  font-size: 28px;
  line-height: 1.2;
  text-align: left;
}

.construction-results-section .method-step__name {
  font-size: 18px;
  line-height: 1.55;
}

html[data-theme="light"] .construction-task-panel,
html[data-theme="light"] .construction-case-card,
html[data-theme="light"] .construction-system-card,
html[data-theme="light"] .construction-adaptive-card,
html[data-theme="light"] .construction-result__panel,
html[data-theme="light"] .construction-role-card,
html[data-theme="light"] .construction-contribution__lead,
html[data-theme="light"] .construction-preview-browser {
  background: #ffffff;
}

html[data-theme="light"] .construction-case-card {
  background: #ffffff;
}

html[data-theme="light"] .construction-case-card__columns > div {
  background: var(--color-accent-panel);
}

html[data-theme="light"] .construction-system-card h3,
html[data-theme="light"] .construction-system-card strong,
html[data-theme="light"] .construction-adaptive-card strong,
html[data-theme="light"] .construction-result__panel .projects-heading,
html[data-theme="light"] .construction-role-card .alivebe-role-card__item,
html[data-theme="light"] .construction-contribution__lead,
html[data-theme="light"] .construction-screenshot-card figcaption {
  color: #000000;
}

html[data-theme="light"] .construction-preview-browser__hint {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.58);
}

html[data-theme="light"] .construction-system-card em,
html[data-theme="light"] .construction-adaptive-card p,
html[data-theme="light"] .construction-result__panel p,
html[data-theme="light"] .construction-case-card__columns p {
  color: rgba(0, 0, 0, 0.68);
}

html[data-theme="light"] .construction-role-card .alivebe-role-card__rule {
  border-top-color: var(--color-border);
}

html[data-theme="light"] .construction-case-card__label {
  color: #7f1d1d;
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(185, 28, 28, 0.16);
}

html[data-theme="light"] .construction-case-card__label--solution {
  color: #1e3a8a;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(37, 99, 235, 0.16);
}

html[data-theme="light"] .construction-adaptive-card > span {
  color: #1d3b24;
  background: rgba(67, 132, 78, 0.16);
}

html[data-theme="light"] .construction-adaptive-switch.gallery-shot-theme {
  background: var(--color-accent-panel);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .construction-screenshots-switch.gallery-shot-theme {
  background: var(--color-accent-panel);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .construction-adaptive-switch .gallery-shot-theme__btn {
  color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .construction-screenshots-switch .gallery-shot-theme__btn {
  color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .construction-adaptive-switch .gallery-shot-theme__btn:hover {
  color: #111;
}

html[data-theme="light"] .construction-screenshots-switch .gallery-shot-theme__btn:hover {
  color: #111;
}

html[data-theme="light"] .construction-adaptive-switch .gallery-shot-theme__btn--active {
  background: #ffffff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .construction-screenshots-switch .gallery-shot-theme__btn--active {
  background: #ffffff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .construction-mockup-placeholder {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.04) 0 25%, transparent 25% 50%, rgba(0, 0, 0, 0.04) 50% 75%, transparent 75%),
    #f5f5f5;
  background-size: 28px 28px;
  color: rgba(0, 0, 0, 0.58);
}

@media (max-width: 899px) {
  .construction-visual__grid,
  .construction-role-grid {
    grid-template-columns: 1fr;
  }

  .construction-system-card--palette {
    grid-column: auto;
  }

  .construction-case-card,
  .construction-case-card--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "copy";
  }
}

@media (max-width: 767px) {
  .construction-page {
    gap: 44px;
  }

  .construction-hero .stroim-hero__title {
    font-size: 24px !important;
  }

  #construction-hero + #construction-task {
    margin-top: -12px;
  }

  .construction-section-title,
  .construction-visual__head .projects-heading,
  .construction-result__panel .projects-heading {
    font-size: 22px;
  }

  .construction-section-title,
  .construction-visual__head {
    margin-bottom: 44px;
  }

  .construction-results-section .method-step__name {
    font-size: 16px;
  }

  .construction-more-projects .projects-heading {
    font-size: 22px;
  }

  .construction-more-projects .project-card__title {
    font-size: 16px;
    line-height: 1.32;
  }

  #construction-adaptive .construction-visual__head {
    margin-bottom: 32px;
  }

  #construction-adaptive .construction-adaptive-switch {
    margin-top: 16px;
  }

  .construction-task-panel .stroim-essence-panel__left {
    gap: 16px;
  }

  .construction-task-panel,
  .construction-system-card,
  .construction-adaptive-card,
  .construction-contribution__lead,
  .construction-role-card {
    padding: 16px;
  }

  .construction-mockup-placeholder {
    padding: 16px;
  }

  .construction-screenshot-card {
    padding: 0;
  }

  .construction-screenshots-switch.gallery-shot-theme {
    width: 100%;
  }

  .construction-screenshots-switch .gallery-shot-theme__btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .construction-screenshot-card__viewport {
    height: 560px;
  }

  .construction-task-panel .stroim-essence-meta-card {
    padding: 16px;
  }

  .construction-system-card h3,
  .construction-adaptive-card__mockup,
  .construction-adaptive-card > span {
    margin-bottom: 16px;
  }

  .construction-hero__banner {
    padding: 12px;
  }

  .construction-browser__viewport {
    min-height: 420px;
  }

  .construction-case-card {
    padding: 16px;
    gap: 16px;
  }

  .construction-case-grid {
    gap: 16px;
  }

  .construction-case-card__media {
    height: 360px;
    min-height: 360px;
  }

  .construction-case-card--reverse .construction-case-card__media,
  .construction-case-card--reverse .construction-case-card__device {
    height: auto;
    min-height: 400px;
  }

  .construction-case-card--reverse .construction-case-card__media .construction-case-card__desktop-preview .construction-device-preview__screen {
    height: 360px;
  }

  .construction-case-card__columns {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .construction-visual__head {
    margin-bottom: 44px;
  }

  .construction-adaptive-switch {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    height: 41px;
    min-height: 41px;
    padding: 4px;
    gap: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #141414;
    box-sizing: border-box;
  }

  html[data-theme="light"] .construction-adaptive-switch {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--color-accent-panel);
  }

  .construction-adaptive-switch .gallery-shot-theme__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 33px;
    min-height: 33px;
    padding: 0 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
  }

  .construction-adaptive__grid {
    display: block;
    margin-top: 0;
  }

  .construction-adaptive-card {
    display: none;
  }

  .construction-adaptive-card.construction-adaptive-card--active {
    display: block;
  }

  .construction-adaptive-card__mockup {
    height: 320px;
    min-height: 320px;
  }

  .construction-device-preview--mobile {
    width: min(64%, 156px);
  }

  .construction-components-preview {
    height: 214px;
    min-height: 214px;
    flex: none;
  }

  .construction-results-section .projects-heading {
    margin-bottom: 44px;
  }

  .container.stroim-page:has(#construction-hero) .stroim-case-nav__pill--prev,
  .container.stroim-page:has(#construction-hero) .stroim-case-nav__pill--next {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .container.stroim-page:has(#construction-hero) .stroim-case-nav__home {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-basis: 56px;
  }
}

@media (max-width: 640px) {
  .construction-hero .stroim-hero__title {
    font-size: 17px !important;
  }

  .construction-screenshot-card__viewport {
    height: 460px;
  }

  .construction-system-card__items--palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .construction-system-card__items--palette span {
    gap: 8px;
  }

  .construction-system-card__items--palette span::before {
    aspect-ratio: 3.2 / 1;
  }

  .construction-palette-shades {
    aspect-ratio: 3.2 / 1;
  }

  .construction-system-card__items--palette > span:has(.construction-palette-shades)::after {
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

