/* ═══════════════════════════════════════════════════════════════
   PROJECTS — Список проектов и страница отдельного проекта
   ═══════════════════════════════════════════════════════════════ */

/* ── Интро: модификатор для страницы проектов ──────────────── */
.page-intro--projects .page-intro__content {
  max-width: 630px;
  width: 100%;
}

.page-intro--projects .page-intro__content h1,
.page-intro--projects .page-intro__content p {
  text-align: left;
}

.page-intro--projects .page-intro__content h1,
.page-intro--projects .page-intro__content p,
.page-intro--projects .breadcrumb,
.page-intro--projects .breadcrumb a {
  color: var(--primary-dark);
}

/* ── Фильтр-табы ────────────────────────────────────────────── */
.projects-list__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.projects-list__tabs:has(.projects-list__tab:nth-child(4)) {
  justify-content: space-between;
}

.projects-list__tab {
  padding: 19px 0;
  width: 203px;
  border: 1px solid #2F5BFF;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--primary-dark);
  transition: background 0.2s, color 0.2s;
}

.projects-list__tab:hover {
  background: #2F5BFF;
  color: var(--background);
}

.projects-list__tab--active {
  background: #2F5BFF;
  border-color: #2F5BFF;
  color: var(--background);
}

/* ── Сетка карточек ─────────────────────────────────────────── */
.projects-list__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.object-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.object__img {
  width: 100%;
  height: 200px;
}

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

.object-card .btn {
  padding: 13.5px 0;
  margin-top: auto;
}

.object-card__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  background: #EAEFF8;
}

/* ── Featured section ───────────────────────────────────────── */
.project-featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.project-featured__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-featured__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-featured__img { height: 100%; }

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

.project-featured__section .title-4 {
  padding-bottom: 20px;
  width: 100%;
  border-bottom: 1px solid #4A4FA3;
  margin-bottom: 20px;
}

@media (max-width: 1080px) {
  .projects-list__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .project-featured__inner { grid-template-columns: 1fr; gap: 40px; }
  .projects-list__tabs { flex-direction: column; gap: 20px; }
  .projects-list__tab { white-space: nowrap; max-width: 100%; width: 100%; }
  .object-card__content { gap: 10px; padding: 10px; }
  .project-featured__img { height: 497px; width: 100%; }
  .projects-list__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Страница отдельного проекта
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.project-intro {
  position: relative;
  padding-bottom: 0;
  margin-top: var(--header-height);
  padding-top: 60px;
}

.project-intro__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-intro .container {
  position: relative;
  z-index: 2;
}

.project-intro__inner { max-width: 640px; }

.project-intro__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 24px;
}

/* Буллеты характеристик */
.project-intro__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-intro__bullets li {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-intro__bullets li::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2B2F3A;
  flex-shrink: 0;
}

/* Карточки-характеристики под hero */
.project-intro__cards {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.project-intro__cards .container { padding-bottom: 0; }

.project-intro__cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  bottom: -80px;
}

.project-info-card {
  background: #EAEFF8;
  padding: 20px;
  border-radius: 8px;
  height: 160px;
  box-shadow: 13px -14px 4px 0px #0A101C;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-info-card__label,
.project-info-card__value {
  color: var(--primary-dark);
  margin: 0;
}

/* ── Контентные секции ──────────────────────────────────────── */
.project-section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(26, 34, 56, 0.12);
}

.project-section:last-child { border-bottom: none; }

.project-section__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-section__inner .title-2 { margin: 0; }

/* Чеклисты */
.project-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 600px;
  gap: 12px 40px;
}

.project-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.project-checklist__item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Таблетки «Что было выполнено» */
.project-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-work-item {
  border-radius: 8px;
  padding: 20px;
  background: #EAEFF8;
  display: flex;
  justify-content: center;
}

.project-work-item:last-child { grid-column: span 2; }
.project-work-item:nth-child(4n) { grid-column: initial; }

/* ── Галерея (базовые стили → components.css) ───────────────── */
.project-gallery-section { padding: 56px 0; }

.project-gallery-section .title-2 { margin-bottom: 32px; }

@media (max-width: 1080px) {
  .project-intro__cards-grid { grid-template-columns: repeat(2, 1fr); }
  .project-work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-checklist { grid-template-columns: 1fr; }
  .project-work-item:last-child { grid-column: initial; }
}

@media (max-width: 768px) {
  .project-intro__cards-grid { grid-template-columns: 1fr 1fr; }
  .project-work-grid { grid-template-columns: 1fr; }

  .project-intro::after {
    background: #FFFFFF66;
    display: block;
    content: '';
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
  }
}
