/* =========================================================
   FACILITY MANAGEMENT HERO
========================================================= */

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

.fm-hero-inner {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 44px;
}

.fm-hero-copy {
  max-width: 570px;
}

.fm-kicker {
  display: block;
  margin-bottom: 10px;
  color: #c89a47;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .08em;
}

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

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

.fm-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 19px;
}

.fm-btn-gold,
.fm-btn-outline {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.fm-btn-gold {
  background: linear-gradient(135deg, #d3aa5a, #b8842f);
  color: #fff;
}

.fm-btn-gold:hover {
  color: #fff;
}

.fm-btn-outline {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}

.fm-btn-outline:hover {
  border-color: #fff;
  background: #fff;
  color: #11171b;
}


/* HERO BENEFITS */

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

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

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

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

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

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


/* =========================================================
   SHARED HEADINGS
========================================================= */

.fm-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 18px;
}

.fm-section-heading h2 {
  margin: 0;
  color: #12181c;
  font-size: 27px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.025em;
}

.fm-small-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555d62;
  font-size: 9px;
}

.fm-small-link i {
  color: #b88936;
  font-size: 8px;
}


/* =========================================================
   WHY FACILITY
========================================================= */

.fm-why {
  padding: 28px 0 30px;
  background: #fff;
}

.fm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.fm-benefit-card {
  min-height: 145px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: start;
  padding: 22px 20px;
  border: 1px solid #dfdfdc;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.025);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fm-benefit-icon {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.fm-benefit-icon i {
  color: #cc983e;
  font-size: 32px;
}

.fm-benefit-copy h3 {
  margin: 0 0 7px;
  color: #171c20;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.fm-benefit-copy p {
  max-width: 235px;
  margin: 0;
  color: #74797d;
  font-size: 9px;
  line-height: 1.45;
}

.fm-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
}


/* =========================================================
   SEGMENTS
========================================================= */

.fm-segments {
  padding: 25px 0 29px;
  background: #f7f6f3;
}

.fm-segments-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 11px;
}

.fm-segment-card {
  overflow: hidden;
  border: 1px solid #dfdedb;
  background: #fff;
  color: #171c20;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fm-segment-image {
  height: 118px;
  overflow: hidden;
}

.fm-segment-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.fm-segment-bottom {
  min-height: 52px;
  display: grid;
  grid-template-columns: 20px 1fr 10px;
  gap: 7px;
  align-items: center;
  padding: 7px 8px;
}

.fm-segment-bottom > i:first-child {
  color: #5f676d;
  font-size: 13px;
  text-align: center;
}

.fm-segment-bottom span {
  color: #1c2125;
  font-size: 8px;
  line-height: 1.25;
  font-weight: 700;
}

.fm-segment-bottom > i:last-child {
  color: #252b2f;
  font-size: 7px;
}

.fm-segment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(0,0,0,.07);
}

.fm-segment-card:hover img {
  transform: scale(1.04);
}


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

@media (max-width: 991px) {

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

  .fm-segments-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}


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

@media (max-width: 767px) {

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

  .fm-hero-inner {
    min-height: 420px;
  }

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

  .fm-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .fm-hero-benefit,
  .fm-hero-benefit:first-child {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .fm-section-heading {
    align-items: flex-start;
  }

  .fm-benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fm-benefit-card {
    min-height: 125px;
  }

  .fm-segments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

}


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

@media (max-width: 430px) {

  .fm-segment-image {
    height: 105px;
  }

  .fm-benefit-card {
    grid-template-columns: 42px 1fr;
    padding: 18px 15px;
  }

  .fm-benefit-icon i {
    font-size: 28px;
  }

}

/* =========================================================
   SERVISNÉ MODELY
========================================================= */

.fm-models {
  padding: 28px 0 30px;
  background: #fff;
}

.fm-models-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.fm-model-card {
  overflow: hidden;
  border: 1px solid #dfdfdc;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.025);
  transition: transform .2s ease, box-shadow .2s ease;
}

.fm-model-title {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
}

.fm-model-title i {
  flex-shrink: 0;
  color: #536069;
  font-size: 16px;
}

.fm-model-title h3 {
  margin: 0;
  color: #171c20;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.fm-model-image {
  height: 105px;
  overflow: hidden;
}

.fm-model-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.fm-model-card > p {
  min-height: 64px;
  margin: 0;
  padding: 11px 11px 13px;
  color: #73787c;
  font-size: 8px;
  line-height: 1.45;
}

.fm-model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
}

.fm-model-card:hover .fm-model-image img {
  transform: scale(1.04);
}


/* =========================================================
   AKO FUNGUJE SPOLUPRÁCA
========================================================= */

.fm-cooperation {
  padding: 10px 0 34px;
  background: #fff;
}

.fm-cooperation-heading {
  margin-bottom: 18px;
}

.fm-cooperation-flow {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr 72px 1fr 72px 1fr;
  align-items: start;
}

.fm-step {
  position: relative;
  text-align: center;
}

.fm-step-number {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbb45e, #c79234);
  color: #222;
  font-size: 10px;
  font-weight: 700;
}

.fm-step h3 {
  margin: 0 0 6px;
  color: #171c20;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}

.fm-step p {
  max-width: 165px;
  margin: 0 auto;
  color: #707579;
  font-size: 8px;
  line-height: 1.45;
}

.fm-step-line {
  height: 1px;
  margin-top: 17px;
  background: #d6a64f;
}


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

.fm-main-cta {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,17,25,.99) 0%, rgba(5,17,25,.94) 45%, rgba(5,17,25,.25) 75%, rgba(5,17,25,.06) 100%),
    url("../assets/fm-main-cta.jpg") center right / cover no-repeat;
}

.fm-main-cta-inner {
  min-height: 175px;
  display: flex;
  align-items: center;
}

.fm-main-cta-copy {
  max-width: 570px;
}

.fm-main-cta-copy h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.025em;
}

.fm-main-cta-copy p {
  max-width: 510px;
  margin: 0 0 15px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  line-height: 1.5;
}


/* =========================================================
   CONTACT STRIP
========================================================= */

.fm-contact-strip {
  border-top: 1px solid rgba(255,255,255,.12);
  background: #07151e;
  color: #fff;
}

.fm-contact-strip-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.fm-contact-question h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
}

.fm-contact-question p {
  margin: 0;
  color: rgba(255,255,255,.67);
  font-size: 8px;
  line-height: 1.4;
}

.fm-contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fm-contact-btn {
  min-width: 150px;
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
}

.fm-contact-btn-dark {
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
}

.fm-contact-btn-dark:hover {
  border-color: #fff;
  background: #fff;
  color: #11171b;
}

.fm-contact-btn-gold {
  background: linear-gradient(135deg, #d4ac5b, #b8842f);
  color: #fff;
}

.fm-contact-btn-gold:hover {
  color: #fff;
}


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

@media (max-width: 991px) {

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

  .fm-cooperation-flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .fm-step-line {
    display: none;
  }

}


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

@media (max-width: 767px) {

  .fm-models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .fm-model-image {
    height: 120px;
  }

  .fm-cooperation-flow {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }

  .fm-step p {
    max-width: 150px;
  }

  .fm-main-cta {
    background:
      linear-gradient(90deg, rgba(5,17,25,.98), rgba(5,17,25,.72)),
      url("../assets/fm-main-cta.jpg") 68% center / cover no-repeat;
  }

  .fm-main-cta-inner {
    min-height: 230px;
  }

  .fm-main-cta-copy h2 {
    font-size: 27px;
  }

  .fm-contact-strip-inner {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .fm-contact-actions {
    width: 100%;
  }

  .fm-contact-btn {
    flex: 1;
  }

}


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

@media (max-width: 430px) {

  .fm-models-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fm-model-image {
    height: 100px;
  }

  .fm-model-title h3 {
    font-size: 9px;
  }

  .fm-model-card > p {
    font-size: 7.5px;
  }

  .fm-cooperation-flow {
    grid-template-columns: 1fr;
  }

  .fm-contact-actions {
    flex-direction: column;
  }

  .fm-contact-btn {
    width: 100%;
  }

}