/* Каталог домов — макет ai-12 (вводный блок + сетка 3×N с цветными панелями) */

.pdf-shell--doma {
  background: #f5f4ef;
}

.doma-serif {
  font-family: Arial, "Helvetica Neue", "Helvetica", sans-serif;
}

/* ----- Вводный блок ----- */
.doma-intro {
  max-width: var(--gle-content-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.doma-intro__inner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .doma-intro__inner {
    grid-template-columns: 1fr;
  }
}

.doma-intro__photo {
  margin: 0;
}

.doma-intro__img {
  width: 100%;
  height: min(480px, 65vh);
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  display: block;
}

.doma-intro__ph {
  height: min(480px, 50vh);
  background: linear-gradient(160deg, #4a3c31, #2a221c);
  border-radius: 2px;
}

.doma-intro__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.doma-intro__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #3e342e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f0;
  box-shadow: 0 4px 14px rgba(74, 60, 49, 0.35);
}

.doma-intro__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #1a1512;
  line-height: 1.1;
}

.doma-intro__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
}

@media (max-width: 640px) {
  .doma-intro__cols {
    grid-template-columns: 1fr;
  }
}

.doma-intro__cols p {
  margin: 0;
  font-size: 0.92rem;
  color: #454039;
  line-height: 1.65;
}

/* ----- Заголовок каталога ----- */
.doma-grid-head {
  max-width: var(--gle-content-width);
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  text-align: center;
}

.doma-grid-head__label {
  margin: 0;
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #5c3317;
  text-transform: uppercase;
}

/* ----- Сетка карточек 3×N ----- */
.doma-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: var(--gle-content-width);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

@media (max-width: 900px) {
  .doma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .doma-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Карточка дома ----- */
.doma-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: box-shadow 0.2s;
}

.doma-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.doma-card__photo {
  aspect-ratio: 4 / 3;
  background: #e8e6e2;
  position: relative;
  flex-shrink: 0;
}

.doma-card__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doma-card__label {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.doma-card__panel {
  flex: 1;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 9rem;
}

.doma-card--t0 .doma-card__panel { background: #3e342e; color: #fafaf9; }
.doma-card--t1 .doma-card__panel { background: #8c6239; color: #fafaf9; }
.doma-card--t2 .doma-card__panel { background: #a7a7a7; color: #1a1613; }

.doma-card__panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doma-card__panel p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.95;
}

.doma-card--t2 .doma-card__panel p { color: #2a241c; }

.doma-card__sqm {
  font-size: 0.78rem !important;
  opacity: 0.85 !important;
}

.doma-card__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.65rem;
  background: #fff;
  color: #1a1613 !important;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.doma-card:hover .doma-card__btn {
  filter: brightness(1.05);
}
