.cg-contact {
  color: #43291f;
  padding-bottom: 72px;
}

.cg-contact.container {
  max-width: 1280px;
  padding-left: 0;
  padding-right: 0;
  width: calc(100% - 40px);
}

.cg-contact > .row {
  margin-left: 0;
  margin-right: 0;
}

.cg-contact > .row > #content {
  padding-left: 0;
  padding-right: 0;
}

.cg-contact .breadcrumb {
  margin-bottom: 28px;
}

.cg-contact #content {
  float: none;
}

.cg-contact__header {
  margin: 0 0 42px;
  text-align: left;
}

.cg-contact__header h1 {
  color: #351d14;
  font-family: Inter, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  text-align: left;
}

.cg-contact__header p {
  color: #866d60;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.cg-contact__cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cg-contact__card {
  background: #fffdf9;
  border: 1px solid rgba(225, 213, 200, .7);
  border-radius: 22px;
  box-shadow: 0 3px 8px rgba(78, 43, 25, .08);
  height: 174px;
  overflow: hidden;
  padding: 18px 24px;
}

.cg-contact__card-icon {
  color: #a64f22;
  display: block;
  height: 24px;
  margin-bottom: 10px;
  width: 24px;
}

.cg-contact__card h2 {
  color: #3b2117;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  text-align: left;
}

.cg-contact__card a,
.cg-contact__card address,
.cg-contact__schedule {
  color: #866d60;
  display: block;
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
  margin: 0;
}

.cg-contact__card a:hover,
.cg-contact__card a:focus {
  color: #a64f22;
}

.cg-contact__messengers {
  display: flex;
  gap: 12px;
  margin: 24px 0 48px;
}

.cg-contact__messenger {
  align-items: center;
  background: #f1e6d8;
  border-radius: 18px;
  color: #43291f;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  transition: background-color 180ms ease, color 180ms ease;
}

.cg-contact__messenger:hover,
.cg-contact__messenger:focus,
.cg-contact__messenger:active {
  background: #a64f22;
  color: #fff;
  text-decoration: none;
}

.cg-contact__messenger svg,
.cg-contact__submit svg {
  height: 19px;
  width: 19px;
}

.cg-contact__map {
  border-radius: 22px;
  height: 420px;
  margin-bottom: 58px;
  overflow: hidden;
}

.cg-contact__map iframe {
  display: block;
  height: 100%;
  width: 100%;
}

.cg-contact__locations {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -26px 0 58px;
}

.cg-contact__locations > h2 {
  grid-column: 1 / -1;
}

.cg-contact__location {
  background: #fffdf9;
  border: 1px solid #eadccf;
  border-radius: 18px;
  padding: 20px;
}

.cg-contact__feedback {
  align-items: stretch;
  display: grid;
  gap: 56px;
  grid-template-areas: "form artwork";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cg-contact__artwork {
  border-radius: 20px;
  grid-area: artwork;
  overflow: hidden;
}

.cg-contact__artwork img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cg-contact__form {
  grid-area: form;
  min-width: 0;
}

.cg-contact__form fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.cg-contact__form legend {
  border: 0;
  color: #3b2117;
  font-family: Inter, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  padding: 0;
}

.cg-contact__form-intro {
  color: #866d60;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.cg-contact__field {
  margin-bottom: 14px;
}

.cg-contact__field .form-control {
  background: transparent;
  border: 1px solid #dfcdbd;
  border-radius: 17px;
  box-shadow: 0 2px 5px rgba(78, 43, 25, .07);
  color: #43291f;
  font-size: 14px;
  height: 48px;
  padding: 12px 16px;
}

.cg-contact__field textarea.form-control {
  height: 154px;
  resize: vertical;
}

.cg-contact__field .form-control:focus {
  border-color: #a64f22;
  box-shadow: 0 0 0 2px rgba(166, 79, 34, .11);
}

.cg-contact__field .form-control::placeholder {
  color: #9b8377;
  opacity: 1;
}

.cg-contact__field .text-danger {
  font-size: 12px;
  margin: 5px 0 0 12px;
}

.cg-contact__submit.btn {
  align-items: center;
  background: #a64f22;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  color: #fff;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  width: 100%;
}

.cg-contact__submit.btn:hover,
.cg-contact__submit.btn:focus {
  background: #853b1a;
  color: #fff;
}

@media (max-width: 991px) {
  .cg-contact__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-contact__feedback {
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .cg-contact {
    padding-bottom: 48px;
  }

  .cg-contact.container {
    width: calc(100% - 40px);
  }

  .cg-contact .breadcrumb {
    margin-bottom: 26px;
  }

  .cg-contact__header {
    margin-bottom: 26px;
  }

  .cg-contact__header h1 {
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 12px;
  }

  .cg-contact__header p {
    font-size: 14px;
    max-width: 300px;
  }

  .cg-contact__cards {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .cg-contact__card {
    height: 174px;
    padding: 18px 24px;
  }

  .cg-contact__messengers {
    margin: 18px 0 28px;
  }

  .cg-contact__messenger {
    flex: 0 0 auto;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  .cg-contact__map {
    border-radius: 18px;
    height: 270px;
    margin-bottom: 24px;
  }

  .cg-contact__locations {
    grid-template-columns: 1fr;
    margin: 0 0 32px;
  }

  .cg-contact__feedback {
    gap: 28px;
    grid-template-areas: "artwork" "form";
    grid-template-columns: 1fr;
  }

  .cg-contact__artwork {
    border-radius: 18px;
  }

  .cg-contact__form legend {
    font-size: 23px;
  }

  .cg-contact__form-intro {
    margin-bottom: 22px;
  }
}
