﻿.contact-cards {
  width: 100%;
  padding: 44px 24px 54px;
  background: #fff;
  font-family: "Barlow", "Barlow Fallback", Arial, sans-serif;
}

.contact-cards__inner {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.contact-cards__title {
  margin: 0 0 34px;
  color: #000;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  text-align: center;
}

.contact-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.contact-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 15px rgba(0, 0, 0, .28);
  color: #fff;
}

.contact-card--call {
  background-image: url("../images/phone-contact-background.jpg");
}

.contact-card--chat {
  background-image: url("../images/reviews-background.jpg");
}

.contact-card--book {
  background-image: url("../images/booking-background.jpg");
}

.contact-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
}

.contact-card__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px 26px 28px;
}

.contact-card__icon {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .42);
}

.contact-card__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__content h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.contact-card__content p {
  min-height: 54px;
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.contact-card__button {
  width: min(308px, 100%);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #6b0000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  font: 800 16px/1 "Barlow", "Barlow Fallback", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.contact-card__button:hover,
.contact-card__button:focus-visible {
  background: #8e0000;
  color: #fff;
}

.contact-card,
.contact-card h3,
.contact-card p,
.contact-card a,
.contact-card button,
.contact-card__button,
.contact-card__button:visited {
  color: #fff !important;
  font-family: "Barlow", "Barlow Fallback", Arial, sans-serif !important;
}

@media (max-width: 1024px) {
  .contact-cards {
    padding: 36px 22px 46px;
  }

  .contact-cards__title {
    font-size: 32px;
  }

  .contact-cards__grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .contact-cards {
    padding: 30px 16px 38px;
  }

  .contact-cards__title {
    margin-bottom: 24px;
    font-size: 28px;
  }

  .contact-card {
    min-height: 330px;
  }

  .contact-card__content {
    padding: 24px 22px;
  }

  .contact-card__content h3 {
    font-size: 27px;
  }

  .contact-card__content p {
    font-size: 17px;
  }
}

@media (min-width: 1201px) and (max-width: 1740px) {
  .contact-cards {
    padding: 2.53vw 1.38vw 3.1vw;
  }

  .contact-cards__inner {
    width: min(1320px, 76vw);
  }

  .contact-cards__title {
    margin-bottom: 1.95vw;
    font-size: clamp(30px, 2.18vw, 38px);
  }

  .contact-cards__grid {
    gap: 1.5vw;
  }

  .contact-card {
    min-height: 19vw;
  }

  .contact-card__content {
    padding: 1.6vw 1.5vw;
  }

  .contact-card__icon {
    width: 4.37vw;
    height: 4.37vw;
    margin-bottom: .69vw;
  }

  .contact-card__icon svg {
    width: 2.76vw;
    height: 2.76vw;
  }

  .contact-card__content h3 {
    margin-bottom: .8vw;
    font-size: clamp(24px, 1.72vw, 30px);
  }

  .contact-card__content p {
    min-height: 3.1vw;
    margin-bottom: .92vw;
    font-size: clamp(15px, 1.03vw, 18px);
  }

  .contact-card__button {
    width: min(17.7vw, 308px);
    min-height: 2.4vw;
    font-size: 13px;
  }
}

