/* Pollio — правки поверх відновленого app.css (знімок 2024) під HTML 2026:
   нові елементи без стилів + рівні висоти карток/плиток. */

/* ---------- Картка проєкту: дві ціни (проєкт / будівництво від) ---------- */
.project-data__grid-row--first .project-data__grid-col--price {
  flex: 1 1 50%;
  max-width: none;
  width: auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 14px;
  height: auto;
  min-height: 62px;
}
.project-data__grid-row--first .project-data__grid-col--price-2 {
  border-left: 1px solid #c9c9c8;
}
.project-data__grid-row--first .project-data__grid-col--price::before {
  content: "Projekt";
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: #4b4b4b;
  margin-bottom: 2px;
}
.project-data__grid-row--first .project-data__grid-col--price-2::before {
  content: "Budowa od";
}
.project-data__grid-row--first .project-data__price {
  font-size: 20px;
  line-height: 24px;
  white-space: nowrap;
}
.project-data__grid-row--first .project-data__currency {
  font-size: 15px;
  line-height: 18px;
  margin-left: 4px;
  top: 0;
}
.project-data__grid-row--first .project-data__grid-col--price-2 .project-data__price {
  color: #197d7f;
}

/* другий рядок: площа | кімнати | обране — без обрізань */
.project-data__grid-row--second .project-data__grid-col--place {
  flex: 0 0 74px;
  max-width: 74px;
  width: 74px;
}
.project-data__grid-row--second .project-data__grid-col--size {
  min-width: 0;
  padding: 0 6px;
}
.project-data__grid-row--second .project-data__rooms {
  width: auto;
  margin: 0;
  gap: 6px;
}
.project-data__grid-row--second .project-data__rooms-col,
.project-data__grid-row--second .project-data__rooms-col:first-child {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
}
.project-data__grid-row--second .project-data__rooms-title {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  margin-right: 4px;
}
.project-data__grid-row--second .project-data__grid-col--favorites {
  padding: 0 10px;
}

/* картки проєктів в одному ряду — однієї висоти, дані притиснуті донизу */
.projects-list .project-item,
.project-item {
  height: 100%;
}
.project-item__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-item__data {
  margin-top: auto;
}
.project-item__image {
  aspect-ratio: 770 / 520;
  object-fit: cover;
}

/* ---------- Плитки «Domy jednorodzinne / Rezydencje …», «Zrealizowane domy» ---------- */
.categories-default-item__image img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Картки article-item (Usługi towarzyszące, «Dlaczego Pollio») — рівна висота ---------- */
.row > .col > .article-item {
  height: 100%;
}
.row > .col:has(> .article-item) {
  margin-bottom: 30px;
}
.article-item {
  margin-bottom: 0;
}
.article-item__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Галерея реалізацій (головна + /portfolio) ---------- */
.portfolio-list__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}
.portfolio-list__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.portfolio-list__item-image a:not([style*="display: none"]) {
  display: block;
}
.portfolio-list__item-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.portfolio-list__item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  margin-top: auto;
}
.portfolio-list__item-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
}
@media (max-width: 1199.98px) {
  .portfolio-list__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .portfolio-list__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .portfolio-list__list { grid-template-columns: minmax(0, 1fr); }
}

/* головна: той самий блок у bootstrap-row (row-cols-*) — додати гаттер як у колонок */
.portfolio-list__items > .portfolio-list__item {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 28px;
}
/* головна: при 4 в ряд показувати рівно один повний ряд (без «хвоста» з 2 карток) */
@media (min-width: 1366px) {
  .portfolio-list__items > .portfolio-list__item:nth-child(n+5) { display: none; }
}

/* ---------- Сторінка проєкту: блок «Koszty budowy» (новий у 2026) ---------- */
.price-project-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #c9c9c8;
}
.pdf-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.pdf-block__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
}
.pdf-block__link {
  font-size: 13px;
  color: #197d7f;
}
.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-buttons {
  display: inline-flex;
  border: 1px solid #c9c9c8;
  background: #fff;
}
.price-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  line-height: 16px;
  color: #4b4b4b;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.price-button + .price-button {
  border-left: 1px solid #c9c9c8;
}
.price-button:hover {
  color: #197d7f;
}
.price-button.is-active {
  background: #197d7f;
  color: #fff;
}
.price-value {
  text-align: left;
  flex: 1 0 100%;
}
.price-value__title {
  font-size: 11px;
  line-height: 14px;
  color: #4b4b4b;
}
.price-value__count {
  white-space: nowrap;
  color: #197d7f;
}
.price-amount {
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
}
.price-currency {
  font-size: 15px;
  margin-left: 2px;
}

/* ---------- Лого (відновлене з оригінального PNG, пропорція 109:57) ---------- */
.header__logo img {
  display: block;
  width: auto;
  height: 66px;
}
.footer__logo-img {
  width: auto;
  height: 66px;
}
@media (max-width: 991.98px) {
  .header__logo { margin-top: 0; }
  .header__logo img { height: 46px; }
}
