/* =========================================================
   REALIZÁCIE HERO
========================================================= */

.projects-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6,15,21,.97) 0%, rgba(6,15,21,.90) 42%, rgba(6,15,21,.24) 72%, rgba(6,15,21,.05) 100%),
    url("../assets/realizacie-hero.jpg") center right / cover no-repeat;
}

.projects-hero-inner {
  min-height: 325px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 42px;
}

.projects-hero-copy {
  max-width: 590px;
}

.projects-kicker {
  display: block;
  margin-bottom: 9px;
  color: #c99a46;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
}

.projects-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 48px;
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.035em;
}

.projects-hero-copy p {
  max-width: 550px;
  margin: 0;
  color: rgba(255,255,255,.83);
  font-size: 11px;
  line-height: 1.55;
}


/* =========================================================
   HERO BENEFITS
========================================================= */

.projects-hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  min-height: 78px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.projects-hero-benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-right: 1px solid rgba(255,255,255,.14);
}

.projects-hero-benefit:first-child {
  padding-left: 0;
}

.projects-hero-benefit:last-child {
  border-right: 0;
}

.projects-hero-benefit i {
  width: 30px;
  flex-shrink: 0;
  color: #c99b48;
  font-size: 20px;
  text-align: center;
}

.projects-hero-benefit span {
  color: rgba(255,255,255,.82);
  font-size: 9px;
  line-height: 1.35;
}


/* =========================================================
   SECTION
========================================================= */

.projects-section {
  padding: 30px 0 32px;
  background: #fff;
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 19px;
}

.projects-heading h2 {
  margin: 0;
  color: #12181c;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
}

.projects-heading p {
  max-width: 520px;
  margin: 0 0 2px auto;
  color: #696e72;
  font-size: 9px;
  line-height: 1.5;
}


/* =========================================================
   FILTERS
========================================================= */

.projects-filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.project-filter {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #dededb;
  border-radius: 20px;
  background: #fff;
  color: #43494e;
  font-family: inherit;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.project-filter:hover {
  border-color: #c6953e;
  color: #a77525;
}

.project-filter.active {
  border-color: #c99843;
  background: linear-gradient(135deg, #d5ad5d, #bb8732);
  color: #fff;
}


/* =========================================================
   GRID
========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.project-card {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid #dededb;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card-large {
  grid-column: span 3;
}


/* =========================================================
   IMAGES
========================================================= */

.project-image {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #eee;
}

.project-card-large .project-image {
  height: 260px;
}

.project-image > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-category {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(12,21,27,.85);
  color: #fff;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .04em;
}


/* VIDEO */

.project-video {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(5,17,24,.68);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: background .2s ease, transform .2s ease;
}

.project-video i {
  margin-left: 2px;
  font-size: 12px;
}

.project-video:hover {
  background: #b88936;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}


/* =========================================================
   CONTENT
========================================================= */

.project-content {
  padding: 14px 14px 12px;
}

.project-content h3 {
  margin: 0 0 5px;
  color: #151a1e;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.015em;
}

.project-content strong {
  display: block;
  margin-bottom: 7px;
  color: #343a3f;
  font-size: 9px;
  line-height: 1.35;
  font-weight: 600;
}

.project-content p {
  min-height: 48px;
  margin: 0 0 11px;
  color: #73787c;
  font-size: 8px;
  line-height: 1.45;
}


/* =========================================================
   META
========================================================= */

.project-meta {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 9px;
  border-top: 1px solid #e4e4e1;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #676d71;
  font-size: 8px;
}

.project-meta span i {
  color: #c69338;
}

.project-meta > a {
  color: #272d31;
  font-size: 11px;
  transition: color .2s ease, transform .2s ease;
}

.project-meta > a:hover {
  color: #b88936;
  transform: translateX(3px);
}


/* HOVER */

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(0,0,0,.08);
}

.project-card:hover .project-image > img {
  transform: scale(1.035);
}


/* =========================================================
   CTA
========================================================= */

.projects-cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,17,25,.99) 0%, rgba(5,17,25,.92) 45%, rgba(5,17,25,.55) 72%, rgba(5,17,25,.28) 100%),
    url("../assets/realizacie-cta.jpg") center / cover no-repeat;
}

.projects-cta-inner {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1.35fr 1.25fr auto;
  align-items: center;
  gap: 40px;
}

.projects-cta-copy h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}

.projects-cta-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255,255,255,.73);
  font-size: 9px;
  line-height: 1.45;
}


/* CTA BENEFITS */

.projects-cta-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.projects-cta-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.14);
}

.projects-cta-benefit:last-child {
  border-right: 0;
}

.projects-cta-benefit i {
  color: #c99a47;
  font-size: 18px;
}

.projects-cta-benefit span {
  color: rgba(255,255,255,.77);
  font-size: 7px;
  line-height: 1.4;
}


/* CTA BUTTON */

.projects-cta-button {
  min-width: 160px;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #d3aa5a, #b8842f);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.projects-cta-button:hover {
  color: #fff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card,
  .project-card-large {
    grid-column: auto;
  }

  .project-card-large .project-image,
  .project-image {
    height: 220px;
  }

  .projects-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-cta-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .projects-hero {
    background:
      linear-gradient(90deg, rgba(6,15,21,.98) 0%, rgba(6,15,21,.83) 72%, rgba(6,15,21,.44) 100%),
      url("../assets/realizacie-hero.jpg") 68% center / cover no-repeat;
  }

  .projects-hero-inner {
    min-height: 430px;
  }

  .projects-hero h1 {
    font-size: 39px;
  }

  .projects-hero-benefits {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .projects-hero-benefit,
  .projects-hero-benefit:first-child {
    min-height: 68px;
    padding: 10px;
  }

  .projects-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .projects-heading p {
    margin-left: 0;
  }

  .projects-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-large .project-image,
  .project-image {
    height: 240px;
  }

  .project-content p {
    min-height: 0;
  }

  .projects-cta-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-cta-benefit {
    padding: 0;
    border-right: 0;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .projects-filters {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-large .project-image,
  .project-image {
    height: 200px;
  }

  .projects-heading h2 {
    font-size: 28px;
  }

}