.dh-template {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  color: #111827;
}

.dh-template-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dh-template-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.dh-template-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.dh-template-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: #4b5563;
}

.dh-template-price,
.dh-template-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.dh-template-price {
  min-width: 220px;
  padding: 18px;
}

.dh-template-price span,
.dh-template-price small {
  display: block;
  color: #6b7280;
}

.dh-template-price strong {
  display: block;
  margin: 6px 0;
  font-size: 24px;
}

.dh-template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dh-template-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 14px;
  font-weight: 600;
}

.dh-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.dh-template-main,
.dh-template-side {
  display: grid;
  gap: 18px;
}

.dh-template-card {
  padding: 22px;
}

.dh-template-gallery-card {
  padding: 0;
  overflow: hidden;
}

.dh-template-gallery-item {
  margin: 0;
}

.dh-template-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.dh-template-description p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
}

.dh-template-description ul {
  margin: 0;
  padding-left: 20px;
}

.dh-template-description li {
  margin: 8px 0;
  line-height: 1.5;
}

.dh-template-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.dh-template-tile {
  min-height: 74px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  box-sizing: border-box;
}

.dh-template-tile span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #6b7280;
}

.dh-template-tile strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dh-template-table {
  width: 100%;
  border-collapse: collapse;
}

.dh-template-table th,
.dh-template-table td {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.dh-template-table th {
  color: #6b7280;
  font-weight: 500;
}

.dh-template-table td {
  font-weight: 700;
}

.dh-template-units {
  display: grid;
  gap: 14px;
}

.dh-template-unit-card {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.dh-template-price-history-list {
  display: grid;
  gap: 10px;
}

.dh-template-price-history-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 14px;
  align-items: baseline;
}

.dh-template-price-history-row small {
  grid-column: 1 / -1;
  color: #6b7280;
}

@media (max-width: 900px) {
  .dh-template-hero {
    display: grid;
  }

  .dh-template-layout {
    grid-template-columns: 1fr;
  }

  .dh-template-side {
    order: -1;
  }
}

/* STAGE34CO_GLOBAL_DENSITY_SCALE_START */
/*
  Globalny density scale:
  - zmniejsza całą stronę desktopowo o 10%,
  - działa na stronie głównej i detailach,
  - nie zmienia danych inwestycji, zdjęć ani szablonu DOM_JEDNORODZINNY_DIRECT.
*/
:root {
  --dh-global-density-scale: 0.90;
}

@media (min-width: 900px) {
  body {
    zoom: var(--dh-global-density-scale);
  }
}

@media (max-width: 899px) {
  body {
    zoom: 1;
  }
}
/* STAGE34CO_GLOBAL_DENSITY_SCALE_END */


/* STAGE34DF_GLOBAL_TEMPLATE_DENSITY_80_START */
/*
  Globalna skala szablonów DudekHome.

  Problem:
  - przy 100% UI jest za duży,
  - na pierwszym ekranie widać głównie baner,
  - użytkownik ma widzieć więcej strony od razu po wejściu.

  Zasada:
  - nie skalujemy przez przeglądarkę,
  - nie zmieniamy danych ani treści,
  - nie ruszamy pojedynczo każdego komponentu,
  - jedna wartość steruje ogólną gęstością widoku.

  Jak zmienić w przyszłości:
  - 0.80 = 80% obecnego rozmiaru,
  - 0.85 = trochę większe,
  - 0.75 = jeszcze mniejsze.
*/

:root {
  --dh-global-template-scale: 0.80;
}

@supports (zoom: 1) {
  body > .dh-home-premium,
  body > #dh-site-footer-slot,
  body > [data-template],
  body > main,
  body > #app,
  body > #root,
  body > #stage34ay-dom-direct-shell,
  body > #dh-dom-direct-shell,
  body > .dh-dom-direct,
  body > .dh-direct-house,
  body > .dh-template-root {
    zoom: var(--dh-global-template-scale);
    transform-origin: top center;
  }
}

body {
  overflow-x: hidden;
}
/* STAGE34DF_GLOBAL_TEMPLATE_DENSITY_80_END */

/* STAGE35AM_SHARED_LOGO_AND_MICRO_STAT_TILES_START */
/*
  Wspólny kontrakt szablonów:
  - logo Dudek Home ma mieć jeden ciemny, neutralny wariant, bez zielonej wersji w mieszkaniu/homepage,
  - małe kafelki metryk na kartach inwestycji nie mogą ucinać liter z ogonkami ani dolnych elementów typu g/j/y,
  - zmiana siedzi w bazowym CSS szablonów, nie w nowej warstwie patch/override.
*/
:root {
  --dh-brand-ink: #06130d;
  --dh-brand-muted: rgba(6, 19, 13, 0.68);
  --dh-brand-border: rgba(6, 19, 13, 0.78);
}

.dh-home-premium-logo,
.stage34ay-site-logo,
.dh-home-premium-footer__logo {
  color: var(--dh-brand-ink) !important;
}

.dh-home-premium-logo::before {
  border-color: var(--dh-brand-border) !important;
  color: var(--dh-brand-ink) !important;
  background: #ffffff !important;
}

.dh-home-premium-footer__logo-mark {
  background: var(--dh-brand-ink) !important;
  color: #ffffff !important;
}

.dh-home-premium-card__metrics {
  grid-template-columns: repeat(3, minmax(98px, 1fr)) !important;
  gap: 10px !important;
}

.dh-home-premium-card__metrics .dh-home-premium-stat {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  min-height: 52px !important;
  padding: 9px 10px !important;
  gap: 1px 8px !important;
  overflow: visible !important;
}

.dh-home-premium-card__metrics .dh-home-premium-stat strong,
.dh-home-premium-card__metrics .dh-home-premium-stat small {
  min-height: 0 !important;
  line-height: 1.24 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  -webkit-font-smoothing: antialiased;
}

.dh-home-premium-card__metrics .dh-home-premium-stat strong {
  font-size: 0.74rem !important;
}

.dh-home-premium-card__metrics .dh-home-premium-stat small {
  font-size: 0.61rem !important;
  color: var(--dh-brand-muted) !important;
}

@media (max-width: 1180px) {
  .dh-home-premium-card__metrics {
    grid-template-columns: repeat(3, minmax(92px, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .dh-home-premium-card__metrics {
    grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)) !important;
  }
}
/* STAGE35AM_SHARED_LOGO_AND_MICRO_STAT_TILES_END */

/* STAGE35AN_MICRO_STAT_LABEL_TWO_LINES_START */
/*
  HOME_PAGE_PREMIUM micro stat cards:
  dłuższy nagłówek typu "pow. użytkowa" ma przejść na dwa wiersze zamiast ucinać się w jednej linii.
*/
.dh-home-premium-card__metrics .dh-home-premium-stat {
  min-height: 58px !important;
  align-items: center !important;
}

.dh-home-premium-card__metrics .dh-home-premium-stat strong {
  display: block !important;
  white-space: normal !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.12 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.dh-home-premium-card__metrics .dh-home-premium-stat small {
  white-space: nowrap !important;
  line-height: 1.18 !important;
}
/* STAGE35AN_MICRO_STAT_LABEL_TWO_LINES_END */
