/* БлагоГрад — страница проектов 2026 */

.bg-projects-page .bg-body {
  padding-top: 0;
}

/* Hero */
.bg-prj-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(380px, 42vw, 520px);
  overflow: hidden;
  color: #fff;
}

.bg-prj-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.bg-prj-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.14) 100%);
}

.bg-prj-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: min(100% - 32px, var(--bg-wrap));
  min-height: inherit;
  padding-top: calc(var(--bg-header-h) + clamp(40px, 8vh, 88px));
  padding-bottom: clamp(40px, 6vw, 64px);
}

.bg-prj-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: center;
}

.bg-prj-hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bg-prj-hero__text {
  margin: 0 0 28px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.bg-prj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bg-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.bg-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bg-prj-hero__card {
  background: #fff;
  color: var(--bg-text);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.bg-prj-hero__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.bg-prj-hero__card li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.bg-prj-hero__card-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-prj-hero__card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(54%) sepia(18%) saturate(839%) hue-rotate(354deg) brightness(93%) contrast(89%);
}

.bg-prj-hero__card-text {
  display: block;
  min-width: 0;
}

.bg-prj-hero__card-title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
  color: var(--bg-text);
}

.bg-prj-hero__card-label {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #8a8a8a;
}

/* Toolbar */
.bg-prj-toolbar {
  padding: clamp(40px, 5vw, 56px) 0 8px;
  background: #fff;
}

.bg-projects-page .bg-prj-toolbar .bg-breadcrumbs {
  margin-top: 20px;
  margin-bottom: 20px;
}

.bg-prj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.bg-prj-filters button {
  border: 0;
  background: var(--bg-beige-light);
  color: var(--bg-muted);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.bg-prj-filters button:hover {
  background: var(--bg-border);
}

.bg-prj-filters button.is-active {
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
}

.bg-prj-selects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.bg-prj-selects label {
  display: block;
}

.bg-prj-selects select {
  width: 100%;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--bg-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.bg-prj-selects__reset {
  border: 0;
  background: transparent;
  color: var(--bg-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bg-prj-selects__reset:hover {
  color: var(--bg-beige-hover);
}

.bg-prj-selects__find {
  min-width: 120px;
}

/* Grid */
.bg-prj-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.bg-prj-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-border);
  transition: box-shadow 0.25s;
}

.bg-prj-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.bg-prj-card.is-hidden,
.bg-prj-card.is-filtered-out {
  display: none;
}

.bg-prj-card__media {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f5f4f1;
}

.bg-prj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.bg-prj-card:hover .bg-prj-card__media img {
  transform: scale(1.03);
}

.bg-prj-card__body {
  position: relative;
  padding: 18px 56px 20px 18px;
  flex: 1;
}

.bg-prj-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.bg-prj-card__title a {
  color: inherit;
  text-decoration: none;
}

.bg-prj-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--bg-muted);
}

.bg-prj-card__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}

.bg-prj-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bg-muted);
}

.bg-prj-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.bg-prj-card__arrow:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
  transform: translateX(2px);
  color: #fff;
}

.bg-prj-more {
  text-align: center;
  padding-bottom: 56px;
}

.bg-prj-more .bg-btn {
  min-width: 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bg-prj-more .bg-btn.is-done {
  opacity: 0.5;
  pointer-events: none;
}

/* Featured */
.bg-prj-featured {
  background: var(--bg-section);
  padding: 64px 0;
}

.bg-prj-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.bg-prj-featured__label {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-production-btn, var(--bg-accent));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bg-prj-featured h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.bg-prj-featured__meta {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--bg-muted);
}

.bg-prj-featured__meta span + span::before {
  content: "•";
  margin: 0 8px;
  opacity: 0.5;
}

.bg-prj-featured__text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bg-muted);
  max-width: 520px;
}

.bg-prj-featured__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.bg-prj-featured__cols h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.bg-prj-featured__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.bg-prj-featured__cols li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bg-muted);
}

.bg-prj-featured__cols li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: center/8px 6px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath fill='none' stroke='%23B99272' stroke-width='1.6' d='M1 4.5 4.2 7.5 11 1.5'/%3E%3C/svg%3E") var(--bg-beige-light);
}

.bg-prj-featured__gallery-main {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-border);
  margin-bottom: 12px;
}

.bg-prj-featured__gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-prj-featured__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.bg-prj-featured__thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-border);
}

.bg-prj-featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-prj-featured__thumb.is-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Geography */
.bg-prj-geo {
  padding: 48px 0;
  background: #f3f2ef;
}

.bg-prj-geo__card {
  position: relative;
  min-height: clamp(200px, 16vw, 280px);
  padding: clamp(32px, 4vw, 48px);
  border-radius: 20px;
  background-color: #f7f5f2;
  background-image: var(--bg-prj-geo-map);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.bg-prj-geo__content {
  position: relative;
  z-index: 1;
  max-width: min(480px, 42%);
}

.bg-prj-geo h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.bg-prj-geo p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bg-muted);
}

.bg-prj-geo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease;
}

.bg-prj-geo__btn:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
  color: #fff;
}

/* Videos */
.bg-prj-videos {
  padding: 64px 0;
  background: var(--bg-section);
}

.bg-prj-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.bg-prj-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
}

.bg-prj-section-head a {
  font-size: 15px;
  font-weight: 500;
  color: var(--bg-text);
  text-decoration: none;
}

.bg-prj-section-head a:hover {
  color: var(--bg-beige-hover);
}

.bg-prj-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bg-prj-video {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-text);
}

.bg-prj-video__thumb {
  display: block;
  aspect-ratio: 16/10;
  background: center/cover no-repeat var(--bg-thumb);
}

.bg-prj-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s;
}

.bg-prj-video:hover .bg-prj-video__play {
  background: rgba(0, 0, 0, 0.35);
}

.bg-prj-video__play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-prj-video__play span::after {
  content: "";
  margin-left: 3px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--bg-production-btn, var(--bg-accent));
}

.bg-prj-video__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.bg-prj-video__info strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.bg-prj-video__info span {
  font-size: 12px;
  opacity: 0.9;
}

.bg-prj-video__duration {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}

/* Before / After */
.bg-prj-ba-section {
  padding: 64px 0;
  background: #fff;
}

.bg-prj-ba-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bg-prj-ba__slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f4f1;
  user-select: none;
}

.bg-prj-ba__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-prj-ba__img--before {
  position: relative;
  z-index: 1;
}

.bg-prj-ba__after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  width: 50%;
  border-right: 2px solid #fff;
}

.bg-prj-ba__after img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--bg-ba-w, 100%);
  max-width: none;
  object-fit: cover;
}

.bg-prj-ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.bg-prj-ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.bg-prj-ba__handle::before,
.bg-prj-ba__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -5px;
  border: 5px solid transparent;
}

.bg-prj-ba__handle::before {
  left: 10px;
  border-right-color: #888;
}

.bg-prj-ba__handle::after {
  right: 10px;
  border-left-color: #888;
}

.bg-prj-ba__caption {
  padding: 12px 4px 0;
}

.bg-prj-ba__caption strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.bg-prj-ba__caption span {
  font-size: 13px;
  color: var(--bg-muted);
}

/* Contact CTA */
.bg-prj-contact {
  padding: 48px 0 72px;
  background: #f3f2ef;
}

.bg-prj-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: clamp(280px, 24vw, 380px);
  padding: clamp(32px, 4vw, 48px);
  border-radius: 20px;
  background-color: var(--bg-beige-light);
  background-image: var(--bg-prj-form-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.bg-prj-contact__intro h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.bg-prj-contact__intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bg-muted);
  max-width: 360px;
}

.bg-prj-contact__form {
  position: relative;
  z-index: 1;
}

.bg-prj-contact__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bg-prj-contact__fields label {
  display: block;
}

.bg-prj-contact__fields input {
  width: 100%;
  border: 1px solid #e0ddd6;
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--bg-text);
  box-sizing: border-box;
}

.bg-prj-contact__fields input::placeholder {
  color: #9a9a9a;
}

.bg-prj-contact__fields input:focus {
  outline: none;
  border-color: var(--bg-accent);
}

.bg-prj-contact__agree {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bg-muted);
}

.bg-prj-contact__agree a {
  color: var(--bg-text);
}

.bg-prj-contact__submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 32px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-production-btn, var(--bg-accent));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.bg-prj-contact__submit:hover {
  background: var(--bg-production-btn-hover, var(--bg-accent-hover));
}

@media (max-width: 1200px) {
  .bg-prj-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bg-prj-hero__card {
    max-width: 480px;
  }

  .bg-prj-grid,
  .bg-prj-videos__grid,
  .bg-prj-ba-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .bg-prj-selects__reset,
  .bg-prj-selects__find {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .bg-prj-featured__grid,
  .bg-prj-contact__card {
    grid-template-columns: 1fr;
  }

  .bg-prj-geo__content {
    max-width: min(420px, 72%);
  }

  .bg-prj-contact__intro p {
    max-width: none;
  }

  .bg-prj-grid,
  .bg-prj-videos__grid,
  .bg-prj-ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bg-prj-featured__cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .bg-prj-hero__inner {
    padding-top: calc(var(--bg-header-h) + 24px);
    padding-bottom: 32px;
  }

  .bg-prj-toolbar {
    padding-top: 32px;
  }

  .bg-prj-geo__card,
  .bg-prj-contact__card {
    min-height: 0;
    padding: 24px 20px;
  }

  .bg-prj-geo__content {
    max-width: 100%;
  }

  .bg-prj-contact__fields {
    grid-template-columns: 1fr;
  }

  .bg-prj-grid,
  .bg-prj-videos__grid,
  .bg-prj-ba-grid {
    grid-template-columns: 1fr;
  }

  .bg-prj-selects {
    grid-template-columns: 1fr;
  }
}
