.icon {
  display: inline-block;
  width: var(--iconSize, 1.5rem);
  height: var(--iconSize, 1.5rem);
  flex-shrink: 0;
  background-color: currentColor;
  mask: var(--iconUrl) center / contain no-repeat;
  -webkit-mask: var(--iconUrl) center / contain no-repeat;
}

.project-cases {
  display: block;
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
  color: #ffffff;
}

.project-cases__header {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.project-cases__title {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.project-cases__list {
  display: grid;
  gap: 0;
}

button.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
  align-items: center;
  width: 100%;
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(28px, 4vw, 42px) 0;
  color: #ffffff;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  cursor: pointer;
}

button.project-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.project-card__content {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: clamp(210px, 15vw, 280px);
  min-width: 0;
}

.project-card__title {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.project-card__description {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.35;
}

.project-card__meta {
  align-self: end;
  width: max-content;
  margin-top: 32px;
  color: #c78700;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.project-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.6;
  overflow: hidden;
  background: #211915;
  border-radius: 8px;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transition: filter 180ms ease, transform 180ms ease;
}

button.project-card:hover .project-card__image,
button.project-card:focus-visible .project-card__image {
  filter: brightness(0.92);
  transform: scale(1.02);
}

button.project-card:focus-visible {
  outline: 2px solid #c78700;
  outline-offset: 8px;
}

.project-gallery {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: auto;
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.project-gallery:not([open]) {
  display: none;
}

.project-gallery::backdrop {
  background: rgba(9, 5, 4, 0.82);
  backdrop-filter: blur(14px);
}

.project-gallery__body {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 16px;
  padding: clamp(24px, 4vw, 56px);
  box-sizing: border-box;
}

.project-gallery__figure {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.project-gallery__image {
  width: auto;
  max-width: min(100%, 1280px);
  height: auto;
  max-height: min(72dvh, 780px);
  object-fit: contain;
  background: #211915;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.project-gallery__arrow,
.project-gallery__close,
.project-gallery__dot {
  border: 0;
  cursor: pointer;
}

.project-gallery__arrow {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  color: inherit;
  font-size: 0;
  line-height: 0;
  background: transparent;
}

.project-gallery__arrow-icon {
  display: block;
  width: 100%;
  height: 100%;
  background: url("/assets/source/images/Gallery/line.svg") center / contain no-repeat;
}

.project-gallery__arrow--prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.project-gallery__arrow--prev .project-gallery__arrow-icon {
  transform: rotate(180deg);
}

.project-gallery__arrow--next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.project-gallery__close {
  position: absolute;
  top: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.project-gallery__dots {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  gap: 7px;
}

.project-gallery__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  background: #ffffff;
  border-radius: 50%;
}

.project-gallery__dot.is-active {
  background: #c78700;
}

.service-benefits-card__items,
.service-request__benefits {
  padding-left: 0;
  list-style: none;
}

.service-includes,
.service-materials,
.service-request {
  position: relative;
  isolation: isolate;
}

.service-includes::before,
.service-materials::before,
.service-request::before {
  position: absolute;
  inset: 0 50%;
  z-index: -1;
  width: 100vw;
  background: var(--color-brown);
  transform: translateX(-50%);
  content: "";
}

.service-benefits-card__item,
.service-request__benefits li {
  padding-left: 0;
  list-style: none;
}

.service-benefits-card[data-info-popup-open],
.service-options-card[data-info-popup-open],
.interior-advantages-card[data-info-popup-open] {
  cursor: pointer;
}

@media (any-hover: hover) {
  .service-benefits-card[data-info-popup-open]:hover .service-benefits-card__link,
  .service-options-card[data-info-popup-open]:hover .service-options-card__link,
  .interior-advantages-card[data-info-popup-open]:hover .interior-advantages-card__link {
    color: var(--color-white);
  }
}

.project-gallery__arrow:focus-visible,
.project-gallery__close:focus-visible,
.project-gallery__dot:focus-visible {
  outline: 2px solid #c78700;
  outline-offset: 4px;
}

.service-gallery {
  position: relative;
  width: min(100%, 1840px);
  height: clamp(280px, 44vw, 700px);
  margin: 0 auto;
  overflow: hidden;
  background: #170f0b;
}

.service-gallery__title {
  display: none;
}

.service-gallery__slides,
.service-gallery__slide {
  width: 100%;
  height: 100%;
}

.service-gallery__slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
}

.service-gallery__slide.is-active {
  opacity: 1;
}

.service-gallery__arrow,
.service-gallery__dot {
  border: 0;
  cursor: pointer;
}

.service-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  background: rgba(23, 15, 11, 0.64);
  border-radius: 50%;
  transform: translateY(-50%);
}

.service-gallery__arrow--prev { left: 20px; }
.service-gallery__arrow--next { right: 20px; }

.service-gallery__dots {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.service-gallery__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.service-gallery__dot.is-active { background: #b57900; }

.service-gallery__arrow:focus-visible,
.service-gallery__dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .service-gallery {
    width: min(1200px, calc(100% - 80px));
    height: min(680px, calc(100vh - 180px));
    margin-top: 48px;
    margin-bottom: 48px;
    border-radius: 12px;
  }

  .service-gallery__title {
    display: block;
    margin: 0 0 24px;
    font-family: "Russo One", sans-serif;
    line-height: 1.2;
  }

  .service-gallery {
    height: auto;
    padding: 36px;
  }

  .service-gallery__slides {
    position: relative;
    height: min(600px, calc(100vh - 300px));
  }

  .service-gallery__slide {
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .service-gallery__arrow { width: 40px; height: 40px; font-size: 34px; }
  .service-gallery__arrow--prev { left: 12px; }
  .service-gallery__arrow--next { right: 12px; }
  .service-gallery__dots { bottom: 12px; }
}

@media (min-width: 768px) {
  .service-gallery {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 0 22px;
    overflow: hidden;
    background: #211b17;
    border-radius: 0;
  }

  .service-gallery__title,
  .service-gallery__dots {
    display: none;
  }

  .service-gallery__slides {
    position: relative;
    height: clamp(360px, 32vw, 620px);
    overflow: visible;
  }

  .service-gallery__slide {
    top: 0;
    bottom: auto;
    left: 50%;
    z-index: 0;
    display: block;
    width: min(48vw, 920px);
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: brightness(0.28);
    border-radius: 28px;
    transform: translateX(-50%) scale(0.94);
    transition: opacity 280ms ease, filter 280ms ease, transform 280ms ease;
    pointer-events: none;
  }

  .service-gallery__slide.is-active {
    z-index: 2;
    opacity: 1;
    filter: none;
    transform: translateX(-50%) scale(1);
  }

  .service-gallery__slide.is-prev {
    left: 0;
    opacity: 1;
    transform: translateX(-52%) scale(0.94);
  }

  .service-gallery__slide.is-next {
    right: 0;
    left: auto;
    opacity: 1;
    transform: translateX(52%) scale(0.94);
  }

  .service-gallery__arrow {
    position: relative;
    top: auto;
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 26px;
    background: #170f0b;
    border-radius: 4px;
    transform: none;
  }

  .service-gallery__arrow--prev {
    left: calc(50% - 44px);
  }

  .service-gallery__arrow--next {
    right: auto;
    left: calc(50% - 40px);
  }
}

@media (max-width: 1023px) {
  button.project-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card__content {
    min-height: auto;
  }

  .project-card__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .project-cases {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  button.project-card {
    padding: 24px 0;
  }

  .project-card__title {
    font-size: 26px;
  }

  .project-card__description {
    font-size: 17px;
  }

  .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .project-gallery__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 72px 16px 24px;
  }

  .project-gallery__figure,
  .project-gallery__dots {
    grid-column: 1;
  }

  .project-gallery__image {
    max-height: 62dvh;
  }

  .project-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
  }

  .project-gallery__arrow--prev {
    left: 12px;
  }

  .project-gallery__arrow--next {
    right: 12px;
  }

  .project-gallery__close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 47.9375rem) {
  .service-hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .service-hero__inner {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto !important;
    padding-top: 0 !important;
  }

  .service-hero__content {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
  }

  .service-hero__subtitle {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .service-hero__title {
    margin-bottom: 28px;
    font-size: clamp(32px, 10.2vw, 40px);
    line-height: 1.08;
  }

  .service-hero__image {
    order: -1;
    align-self: center;
    width: min(78vw, 300px) !important;
    height: min(78vw, 300px) !important;
    max-height: none !important;
    margin: 0 auto 24px !important;
    object-fit: contain;
    object-position: center;
  }
}

/* Shared consultation form */
.callback-popup {
  width: min(37.5rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  border: 0;
  overflow: visible;
}

.callback-popup::backdrop {
  background: rgba(9, 5, 4, 0.7);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}

.callback-popup:not([open]) {
  display: none;
}

.callback-popup__body {
  position: relative;
  display: grid;
  gap: 1rem;
  max-height: inherit;
  padding: 2rem 1.75rem 1.625rem;
  background: #211c18;
  border-radius: var(--border-radius-5);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.callback-popup__header {
  display: grid;
  gap: 0.5rem;
  padding-right: 1.5rem;
}

.callback-popup__title {
  font-family: "Russo One", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.callback-popup__description {
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.35;
}

.callback-popup__close {
  position: absolute;
  top: 0.625rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  border: 0;
  font-size: 0;
  line-height: 1;
}

.callback-popup__close::before,
.callback-popup__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 0.125rem;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.callback-popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.callback-popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.callback-popup__form {
  display: grid;
  gap: 0.5rem;
}

.callback-popup__control,
.callback-popup__button {
  width: 100%;
  min-width: 0;
  min-height: 2.125rem;
  border-radius: var(--border-radius-5);
  font-size: 1rem;
  line-height: 1.2;
}

.callback-popup__control {
  padding: 0.375rem 0.625rem;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.3);
  border: var(--border-width-1) solid rgba(255, 255, 255, 0.1);
}

.callback-popup__control::placeholder,
.callback-popup__select-wrapper select:invalid {
  color: rgba(255, 255, 255, 0.62);
}

.callback-popup__control:focus-visible {
  border-color: var(--color-accent);
  outline: 0.125rem solid rgba(181, 121, 0, 0.35);
  outline-offset: 0;
}

.callback-popup__control option {
  color: var(--color-black);
  background: var(--color-white);
}

.callback-popup__select-wrapper {
  position: relative;
  display: block;
}

.callback-popup__select-wrapper::after {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 0.0625rem solid rgba(255, 255, 255, 0.8);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.8);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.callback-popup__select-wrapper select {
  padding-right: 2.25rem;
  appearance: none;
}

.callback-popup__button {
  justify-content: center;
  border: 0;
}

.callback-popup__privacy {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  line-height: 1.35;
}

.callback-popup__privacy a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 47.9375rem) {
  .callback-popup {
    width: min(100% - 1rem, 31rem);
    max-height: calc(100dvh - 1rem);
  }

  .callback-popup__body {
    gap: 0.875rem;
    padding: 1.75rem 1rem 1.25rem;
  }

  .callback-popup__title {
    font-size: 1.625rem;
  }

  .callback-popup__description,
  .callback-popup__control,
  .callback-popup__button {
    font-size: 0.9375rem;
  }

  .callback-popup__control,
  .callback-popup__button {
    min-height: 2.75rem;
  }

  .callback-popup__privacy {
    font-size: 0.6875rem;
  }
}

@media (max-width: 63.9375rem) {
  .header__overlay-logo:focus-visible {
    outline: none;
  }
}

.info-popup__trigger {
  padding: 0;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.info-popup__content {
  display: grid;
  gap: 0.625rem;
  color: var(--color-gray);
  font-size: 1rem;
  line-height: 1.35;
}

.info-popup .callback-popup__body {
  max-width: 37.5rem;
  margin: auto;
}

@media (max-width: 47.9375rem) {
  .info-popup__content {
    font-size: 0.9375rem;
  }
}

.icon[data-fill] {
  background-color: currentColor;
}

.social-media-icon {
  display: block;
  width: var(--iconSize, 2.25rem);
  height: var(--iconSize, 2.25rem);
  object-fit: contain;
}

.social-media-icon--avito,
.social-media-icon--email {
  width: calc(var(--iconSize, 2.25rem) + 0.25rem);
  height: calc(var(--iconSize, 2.25rem) + 0.25rem);
}

/* The ruler artwork has generous transparent margins, so its visible shape
   needs a little more scale than the other card icons. */
.service-includes-card__image[src$="/triangle.webp"],
.service-benefits-card__decor[src$="/triangle.webp"],
.service-colors-card__decor[src$="/triangle.webp"],
.interior-includes-card__decor[src$="/triangle.webp"],
.interior-advantages-card__decor[src$="/triangle.webp"] {
  transform: scale(1.45);
  transform-origin: right bottom;
}

.interior-includes-card__decor {
  object-fit: contain;
}

.interior-advantages-card__content {
  max-width: calc(100% - 7rem);
}

.interior-advantages-card__decor {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: clamp(5.5rem, 7vw, 7rem);
  height: clamp(5.5rem, 7vw, 7rem);
  object-fit: contain;
  pointer-events: none;
}

.modular-house-promo {
  padding-block: clamp(2rem, 4vw, 3.25rem);
  background-color: var(--color-brown-900);
}

.modular-house-promo__inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(22rem, 39vw, 30.25rem);
  overflow: hidden;
  border-radius: var(--border-radius-10);
  isolation: isolate;
}

.modular-house-promo__inner::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
  content: "";
}

.modular-house-promo__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modular-house-promo__content {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
  width: min(45rem, calc(100% - 2rem));
  color: var(--color-white);
  text-align: center;
}

.modular-house-promo__title {
  font-family: "Russo One", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.18;
  text-shadow: 0 0.125rem 0.875rem rgba(0, 0, 0, 0.42);
}

.modular-house-promo__description {
  max-width: 43rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.35;
  text-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.42);
}

.modular-house-promo__button {
  min-height: 2rem;
  padding-inline: 0.75rem;
  font-size: 1rem;
}

.interior-solutions-card__media {
  overflow: hidden;
}

.about-values {
  background-image: none;
}

.about-values::before {
  display: none;
}

.about-values::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: var(--about-values-image-height);
  background: rgba(23, 15, 11, 0.18);
  pointer-events: none;
  content: "";
}

.about-values__slides {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  width: 100%;
  height: var(--about-values-image-height);
  overflow: hidden;
}

.about-values__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.about-values__slide.is-active {
  opacity: 1;
}

@media (min-width: 63.9385rem) {
  .about-values {
    --about-values-height: clamp(32rem, calc(100svh - 4rem), 46rem);
    min-height: var(--about-values-height);
  }
}

@media (max-width: 47.9375rem) {
  .about-values {
    background-color: var(--color-brown-900);
    background-image: none;
  }
}

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

.interior-solutions-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-page .admin-tabs__button {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.admin-page .panel {
  scroll-margin-top: 1.25rem;
}

.admin-page .admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.admin-page .admin-grid label,
.admin-page .panel > form > label {
  display: grid;
  gap: 0.5rem;
  color: #62564e;
  font-weight: 600;
}

.admin-page .admin-grid .wide,
.admin-page .admin-grid button,
.admin-page .panel > form > textarea,
.admin-page .panel > form > button {
  grid-column: 1 / -1;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  width: 100%;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  color: #111827;
  background-color: #fff;
  border: 0.0625rem solid #d8d1ca;
  border-radius: var(--border-radius-5);
}

.admin-page textarea {
  resize: vertical;
}

.admin-page .code {
  min-height: 18rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.45;
}

.admin-page button {
  min-height: 2.625rem;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--color-white);
  background-color: var(--color-accent);
  border: 0.0625rem solid transparent;
  border-radius: var(--border-radius-5);
}

.admin-page .admin-button--ghost {
  color: #2b3546;
  background-color: #fff;
  border-color: #d8d1ca;
}

.admin-page button.danger,
.admin-page .delete-form button {
  color: #b42318;
  background-color: #fff7f6;
  border-color: #f1b8b2;
}

.admin-pages {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.admin-edit-page {
  padding: 1.125rem;
  background-color: #f8f5f2;
  border: 0.0625rem solid #ece3dc;
  border-radius: var(--border-radius-10);
}

.admin-edit-page summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #111827;
  cursor: pointer;
}

.admin-edit-page summary span {
  color: #62564e;
  font-size: 0.875rem;
}

.admin-edit-page[open] summary {
  margin-bottom: 1rem;
}

.delete-form {
  margin-top: 0.75rem;
}

.lead-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f5f2;
  border: 0.0625rem solid #ece3dc;
  border-radius: var(--border-radius-10);
}

.lead form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-section__head {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.admin-section__head p {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.admin-review-list {
  display: grid;
  gap: 0.875rem;
}

.admin-review-card {
  color: var(--color-white);
  background-color: #17110e;
  border: 0.0625rem solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-8);
  overflow: clip;
}

.admin-review-card[open] {
  border-color: rgba(209, 146, 38, 0.42);
}

.admin-review-card__summary {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) auto minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.125rem;
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
}

.admin-review-card__summary::-webkit-details-marker {
  display: none;
}

.admin-review-card__summary::after {
  content: "+";
  justify-self: end;
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
}

.admin-review-card[open] .admin-review-card__summary::after {
  content: "-";
}

.admin-review-card__title {
  font-size: 1.125rem;
  font-weight: 800;
}

.admin-review-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.875rem;
  padding: 0.25rem 0.625rem;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-5);
  font-size: 0.875rem;
  font-weight: 700;
}

.admin-review-card__status--published {
  background-color: rgba(39, 134, 82, 0.34);
}

.admin-review-card__status--draft {
  background-color: rgba(209, 146, 38, 0.28);
}

.admin-review-card__excerpt {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-review-card__form {
  display: grid;
  gap: 1rem;
  padding: 0 1.125rem 1.125rem;
}

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

.admin-review-card__grid label {
  display: grid;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.admin-review-card__grid .wide {
  grid-column: 1 / -1;
}

.admin-review-card__avatar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
}

.admin-review-card__avatar img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.admin-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-page .admin-button--secondary {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-page {
  width: 100%;
  min-height: 100dvh;
  color: var(--color-white);
  background-color: var(--color-brown-900);
}

.admin-page .admin-header {
  color: var(--color-white);
  background-color: var(--color-brown-dark);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.12);
}

.admin-page .admin-header__eyebrow,
.admin-page .admin-header__title {
  color: var(--color-white);
}

.admin-page .admin-tabs {
  background-color: #100f1a;
}

.admin-page .admin-tabs__button {
  color: rgba(255, 255, 255, 0.78);
}

.admin-page .admin-tabs__button:hover,
.admin-page .admin-tabs__button:focus-visible {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-page .admin-tabs__button.is-active {
  color: var(--color-white);
  background-color: rgba(209, 146, 38, 0.18);
  box-shadow: inset 0.1875rem 0 0 var(--color-accent);
}

.admin-page .admin-section {
  width: calc(100% - 3rem);
  max-width: none;
  margin: 1.5rem auto;
  color: var(--color-white);
  background-color: var(--color-brown);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-page .admin-section__title,
.admin-page .admin-subtitle {
  color: var(--color-white);
}

.admin-page .admin-grid label,
.admin-page .panel > form > label {
  color: rgba(255, 255, 255, 0.86);
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  color: var(--color-white);
  background-color: var(--color-brown-900);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-page input::placeholder,
.admin-page textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.admin-page select option {
  color: var(--color-white);
  background-color: var(--color-brown-900);
}

.admin-edit-page,
.lead {
  color: var(--color-white);
  background-color: rgba(9, 5, 4, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-edit-page summary {
  color: var(--color-white);
}

.admin-edit-page summary span,
.lead small,
.lead p {
  color: rgba(255, 255, 255, 0.68);
}

.admin-page .admin-product-block {
  grid-column: 1 / -1;
  color: var(--color-white);
  background-color: rgba(9, 5, 4, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-page .admin-content-card,
.admin-page .admin-material-card,
.admin-page .admin-faq-card {
  color: var(--color-white);
  background-color: var(--color-brown-900);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-page .admin-product-block .admin-field {
  color: rgba(255, 255, 255, 0.86);
}

.section {
  padding: clamp(3.75rem, 3.4137931034rem + 1.3793103448vw, 5rem) var(--container-padding-x);
  background-color: var(--color-brown-900);
}

.section > * {
  width: min(100%, var(--container-width));
  margin-inline: auto;
}

.section h2 {
  margin-bottom: 2.5rem;
  font-family: "Russo One", sans-serif;
  line-height: 1.2;
}

.section-lead {
  max-width: 52rem;
  margin-bottom: 2rem;
  color: var(--color-gray);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  min-width: 0;
  padding: clamp(1.25rem, 0.9137931034rem + 1.3793103448vw, 2.5rem);
  background-color: var(--color-brown);
  border-radius: var(--border-radius-20);
}

.feature h3 {
  margin-bottom: 0.75rem;
  font-family: "Arial Black", sans-serif;
  line-height: 1.25;
}

.feature p,
.feature li {
  color: var(--color-gray);
}

.feature ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.2em;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 1.25rem;
  background-color: var(--color-brown);
  border-radius: var(--border-radius-10);
}

.faq summary {
  cursor: pointer;
  font-family: "Arial Black", sans-serif;
}

.document-hero {
  min-height: 500px;
  padding-top: 129px;
  padding-bottom: 80px;
  background-color: var(--color-brown-900);
}

.document-hero__subtitle {
  margin-bottom: 14px;
  font-family: "Arial Black", sans-serif;
  font-size: 32px;
  line-height: 1.3;
  color: var(--color-gray);
}

.document-hero__title {
  max-width: 95.875rem;
  font-family: "Russo One", sans-serif;
  line-height: 1;
  overflow-wrap: anywhere;
}

.document-content {
  background-color: var(--color-brown);
}

.document-content__inner {
  display: grid;
  row-gap: clamp(3.75rem, 3.4137931034rem + 1.3793103448vw, 5rem);
  padding-top: clamp(3.75rem, 3.4137931034rem + 1.3793103448vw, 5rem);
  padding-bottom: clamp(3.75rem, 3.4137931034rem + 1.3793103448vw, 5rem);
}

.document-content__section {
  display: grid;
  row-gap: clamp(1.75rem, 1.4137931034rem + 1.3793103448vw, 2.5rem);
}

.document-content__text {
  display: grid;
  row-gap: 0;
  color: var(--color-gray);
  font-size: clamp(1.25rem, 1.1827586207rem + 0.275862069vw, 1.5rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.document-content__text p {
  margin: 0;
}

.not-found-page {
  background: #130a07;
}

.not-found-page .content {
  min-height: 0;
}

.not-found-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(32rem, calc(100dvh - 5rem), 52rem);
  padding: clamp(2rem, 5vw, 4rem) 1.25rem;
  overflow: hidden;
  background: #130a07;
}

.not-found-hero::before,
.not-found-hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.not-found-hero::before {
  inset: 0 0 auto;
  height: min(62vw, 35rem);
  background: url("/assets/static/hero-bg.7a8b7829bd3483fb.png") top center / 100% 100% no-repeat;
}

.not-found-hero::after {
  right: -4%;
  bottom: -2%;
  width: min(76rem, 90vw);
  height: min(24rem, 38vw);
  background: url("/assets/static/form-bg.6a1fb98af6fbd51a.png") bottom right / contain no-repeat;
  opacity: 0.9;
}

.not-found-hero__content {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(100%, 52rem);
  margin-top: -2vh;
  text-align: center;
}

.not-found-hero__code {
  color: #5f3b00;
  font-family: "Russo One", sans-serif;
  font-size: clamp(9rem, 23vw, 17.5rem);
  font-weight: 400;
  line-height: 0.8;
}

.not-found-hero__title {
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.35;
}

.not-found-hero__button {
  justify-content: center;
  min-height: 2rem;
  padding-inline: 0.75rem;
  font-size: 1rem;
}

@media (max-width: 47.9375rem) {
  .not-found-hero::before {
    left: -36%;
    width: 172%;
    height: 45vh;
    background-size: cover;
  }

  .not-found-hero::after {
    right: -36%;
    bottom: -1rem;
    width: 150vw;
    height: 42vh;
  }

  .not-found-hero__content {
    gap: 1.125rem;
    margin-top: -5vh;
  }

  .not-found-hero__code {
    font-size: clamp(8rem, 42vw, 12rem);
  }
}

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 1.5rem;
}

.reviews__header {
  grid-column: 1;
  margin-bottom: 2rem;
}

.reviews__slider {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
}

.reviews__button {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.reviews__viewport,
.reviews__track {
  width: 100%;
  min-width: 0;
}

.reviews__viewport {
  overflow: hidden;
  scroll-behavior: smooth;
}

.reviews__track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--reviews-gap, 1.25rem);
  transform: none !important;
}

.reviews-card {
  flex: 0 0 calc((100% - (var(--reviews-gap, 1.25rem) * 3)) / 4);
  min-width: 0;
  min-height: 15.1875rem;
}

.reviews-card__text {
  overflow-wrap: anywhere;
}

.reviews-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.reviews-card__avatar,
.reviews-popup__avatar {
  display: block;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

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

.reviews-card__name,
.reviews-card__date {
  overflow-wrap: anywhere;
}

span.reviews-card__avatar:empty,
span.reviews-popup__avatar:empty {
  display: none;
}

@media (max-width: 63.9375rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-card {
    flex-basis: calc((100% - var(--reviews-gap, 1.25rem)) / 2);
  }
}

@media (max-width: 47.9375rem) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .modular-house-promo {
    padding-block: 2rem;
  }

  .modular-house-promo__inner {
    min-height: 22rem;
    border-radius: var(--border-radius-10);
  }

  .modular-house-promo__image {
    object-position: 58% center;
  }

  .modular-house-promo__content {
    gap: 0.75rem;
    width: min(100% - 2rem, 24rem);
  }

  .modular-house-promo__title {
    font-size: 1.75rem;
  }

  .modular-house-promo__title br,
  .modular-house-promo__description br {
    display: none;
  }

  .modular-house-promo__description {
    font-size: 0.9375rem;
  }

  .home-request__inner {
    align-items: stretch;
    width: 100%;
  }

  .home-request__form {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    box-sizing: border-box;
  }

  .home-request__control,
  .home-request__button {
    width: 100%;
    max-width: none;
  }

  .admin-page .admin-grid,
  .admin-review-card__grid,
  .lead {
    grid-template-columns: 1fr;
  }

  .admin-review-card__summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .admin-review-card__avatar {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviews {
    grid-template-columns: 1fr;
  }

  .reviews__header {
    margin-bottom: 2.5rem;
  }

  .reviews__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

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

  .reviews-card {
    flex-basis: 100%;
    scroll-snap-align: start;
  }

  .reviews__button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 2.5rem;
  }

  .document-hero {
    min-height: 360px;
    padding-top: 96px;
    padding-bottom: 56px;
  }

  .document-hero__subtitle {
    font-size: 20px;
  }

  .document-content__inner {
    row-gap: 60px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .document-content__section {
    row-gap: 20px;
  }

  .document-content__text {
    font-size: 20px;
    line-height: 1.3;
  }
}
