/* Hero */
.pj-hero {
  background: radial-gradient(70% 55% at 50% 78%, rgba(47, 91, 234, .24), transparent 72%), var(--pj-night);
  color: var(--pj-soft);
  text-align: center;
  overflow: hidden;
  perspective: 1400px;
}

.pj-hero__text {
  padding: clamp(56px, 7vw, 96px) 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pj-home .pj-hero__title {
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.pj-home .pj-hero__lead {
  max-width: 30em;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.pj-home .pj-hero__img {
  width: min(1120px, 108%);
  max-width: none;
  margin-top: clamp(16px, 2vw, 32px);
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotateX(var(--pj-hero-rx, 0deg)) rotateY(var(--pj-hero-ry, 0deg)) scale(var(--pj-hero-s, 1));
  transform-origin: 50% 100%;
  will-change: transform;
}

/* Gudrā māja */
.pj-smart {
  background: var(--pj-soft);
  text-align: center;
  overflow: hidden;
}

.pj-home .pj-smart__img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: 30% 40%;
}

.pj-tiles {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  background: #FFFFFF;
}

@media (min-width: 640px) {
  .pj-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pj-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pj-home .pj-tile {
  min-width: 0;
  height: clamp(480px, 46vw, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  text-align: center;
  --pj-tile-background: var(--pj-soft);
  --pj-tile-color: var(--pj-ink);
  --pj-tile-link: var(--pj-link);
  background: var(--pj-tile-background);
  color: var(--pj-tile-color);
}

/* Šaha rakstu nosaka redzamās kolonnas, ne pakalpojuma nosaukums. */
.pj-home .pj-tile:nth-child(2n) {
  --pj-tile-background: var(--pj-night);
  --pj-tile-color: var(--pj-soft);
  --pj-tile-link: var(--pj-link-dark);
}

@media (min-width: 640px) and (max-width: 1199px) {
  .pj-home .pj-tile:nth-child(n) {
    --pj-tile-background: var(--pj-soft);
    --pj-tile-color: var(--pj-ink);
    --pj-tile-link: var(--pj-link);
  }
  .pj-home .pj-tile:is(:nth-child(4n + 2), :nth-child(4n + 3)) {
    --pj-tile-background: var(--pj-night);
    --pj-tile-color: var(--pj-soft);
    --pj-tile-link: var(--pj-link-dark);
  }
}

@media (min-width: 1200px) {
  .pj-home .pj-tile:nth-child(n) {
    --pj-tile-background: var(--pj-soft);
    --pj-tile-color: var(--pj-ink);
    --pj-tile-link: var(--pj-link);
  }
  .pj-home .pj-tile:is(:nth-child(8n + 2), :nth-child(8n + 4), :nth-child(8n + 5), :nth-child(8n + 7)) {
    --pj-tile-background: var(--pj-night);
    --pj-tile-color: var(--pj-soft);
    --pj-tile-link: var(--pj-link-dark);
  }
}

.pj-home .pj-tile:hover,
.pj-home .pj-card:hover {
  text-decoration: none;
}

.pj-tile__text {
  flex: none;
  padding: 44px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pj-home .pj-tile h3 {
  font-weight: 600;
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
}

.pj-home .pj-tile p {
  font-size: 19px;
  line-height: 1.25;
}

.pj-tile__more {
  font-size: 17px;
  color: var(--pj-tile-link);
}

.pj-tile__media {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.pj-home .pj-tile__media img,
.pj-home .pj-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Apsaimniekošana */
.pj-care {
  position: relative;
  overflow: hidden;
  background: var(--pj-night);
  color: #FFFFFF;
  text-align: center;
}

.pj-home .pj-care__img {
  width: 100%;
  height: clamp(620px, 58vw, 860px);
  object-fit: cover;
  object-position: 50% 70%;
}

.pj-care__text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: clamp(48px, 5vw, 72px) 16px 48px;
  background: linear-gradient(180deg, rgba(11, 15, 23, .88), rgba(11, 15, 23, .78) calc(100% - 32px), rgba(11, 15, 23, 0));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Mājas gads */
.pj-year {
  background: var(--pj-night);
  color: var(--pj-soft);
  padding: clamp(64px, 7vw, 104px) 12px;
}

.pj-year__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pj-year__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.pj-home .pj-year__eyebrow {
  font-size: 19px;
  color: var(--pj-glow);
}

.pj-home .pj-year .pj-title {
  font-size: clamp(38px, 5vw, 64px);
}

.pj-months {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  justify-content: safe center;
  padding-block: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--pj-muted-dark) var(--pj-panel);
}

.pj-months::-webkit-scrollbar {
  height: 6px;
}

.pj-months::-webkit-scrollbar-thumb {
  background: var(--pj-muted-dark);
  border-radius: 3px;
}

.pj-months::-webkit-scrollbar-track {
  background: var(--pj-panel);
}

.pj-home .pj-month {
  flex: none;
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  background: var(--pj-panel);
  color: var(--pj-soft);
}

.pj-home .pj-month[aria-pressed="true"] {
  background: var(--pj-soft);
  color: var(--pj-ink);
}

.pj-year__media {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 8;
  min-height: 280px;
  max-width: 100%;
  background: var(--pj-panel);
  perspective: 1200px;
}

.pj-home .pj-year__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pj-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding: 8px 4px 0;
}

.pj-home .pj-task {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pj-task strong {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pj-task span {
  color: var(--pj-muted-dark);
}

/* Apkure */
.pj-heat {
  background: var(--pj-soft);
  padding: clamp(64px, 7vw, 104px) 12px;
}

.pj-heat__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pj-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.pj-home .pj-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #FFFFFF;
}

.pj-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pj-card__text {
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pj-home .pj-card h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.018em;
}

.pj-card__text span {
  color: var(--pj-link);
}

.pj-heat__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pj-home .pj-heat__cta p {
  font-size: 14px;
  color: var(--pj-muted);
}

@keyframes pj-swap {
  from {
    opacity: 0;
    transform: rotateX(8deg) scale(.98);
  }
}

.pj-home .pj-year__media img.is-swap {
  animation: pj-swap .5s cubic-bezier(.2, .7, .2, 1);
}

/* Kontakti */
.pj-contact {
  background: #FFFFFF;
  padding: clamp(64px, 7vw, 104px) 16px;
  text-align: center;
}

.pj-contact__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.pj-contact__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pj-home .pj-contact__info {
  color: var(--pj-muted);
}

