/* Страница «Контакты» — стили для HTML в материале */

.item-page:has(.contacts-page) > .page-header,
.com-content-article:has(.contacts-page) > .page-header {
  display: none;
}

.contacts-page {
  color: #fff;
}

.contacts-page__title {
  margin: 0 0 24px;
  font-family: var(--felix-font-heading), "Bebas Neue", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--felix-black);
}

@media (min-width: 640px) {
  .contacts-page__title {
    margin-bottom: 32px;
    font-size: 42px;
  }
}

@media (min-width: 1024px) {
  .contacts-page__title {
    margin-bottom: 40px;
    font-size: 52px;
  }
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.contacts-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  padding: 36px 24px 28px;
  border-radius: 28px;
  background: var(--felix-green);
  text-align: center;
}

@media (min-width: 640px) {
  .contacts-card {
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .contacts-card {
    min-height: 306px;
    padding: 47px 28px 32px;
    border-radius: var(--felix-radius-card);
  }

  .contacts-card--tall {
    min-height: 400px;
  }
}

.contacts-card__label {
  margin: 0 0 20px;
  font-family: var(--felix-font), Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
}

@media (min-width: 1024px) {
  .contacts-card__label {
    margin-bottom: 27px;
  }
}

.contacts-card__main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 323px;
  margin: 0 0 20px;
}

.contacts-card__phones {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--felix-font-heading), "Bebas Neue", sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 1024px) {
  .contacts-card__phones {
    font-size: 42px;
  }
}

.contacts-card__phones a,
.contacts-card__social a {
  color: inherit;
  text-decoration: none;
}

.contacts-card__phones a:hover,
.contacts-card__social a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contacts-card__social {
  font-family: var(--felix-font-heading), "Bebas Neue", sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 1024px) {
  .contacts-card__social {
    font-size: 42px;
  }
}

.contacts-card__address {
  margin: 0;
  font-family: var(--felix-font-heading), "Bebas Neue", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 1024px) {
  .contacts-card__address {
    font-size: 24px;
  }
}

.contacts-card__note {
  margin: 12px 0 0;
  font-family: var(--felix-font), Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  color: #fff;
}

.contacts-hours {
  margin: 0;
  font-family: var(--felix-font-heading), "Bebas Neue", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 1024px) {
  .contacts-hours {
    font-size: 24px;
  }
}

.contacts-hours p {
  margin: 0 0 10px;
}

.contacts-hours p:last-child {
  margin-bottom: 0;
}

.contacts-hours span {
  display: block;
  margin-top: 2px;
  font-family: var(--felix-font), Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
}

.contacts-card__btn {
  display: inline-flex;
  height: 53px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 50px;
  background: var(--felix-yellow);
  font-family: var(--felix-font), Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.contacts-card__btn:hover {
  filter: brightness(0.96);
}

.contacts-card--photo {
  padding: 0;
  overflow: hidden;
  min-height: 240px;
}

@media (min-width: 1024px) {
  .contacts-card--photo {
    min-height: 400px;
  }
}

.contacts-card--photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: 55% 40%;
}

@media (min-width: 1024px) {
  .contacts-card--photo img {
    min-height: 400px;
  }
}

.contacts-team {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 28px;
}

@media (min-width: 640px) {
  .contacts-team {
    margin-top: 32px;
    border-radius: 40px;
  }
}

@media (min-width: 1024px) {
  .contacts-team {
    margin-top: 45px;
    height: 546px;
    border-radius: var(--felix-radius-card);
  }
}

.contacts-team img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 22%;
}

@media (min-width: 1024px) {
  .contacts-team img {
    max-height: none;
    height: 546px;
  }
}

.contacts-form-wrap {
  margin-top: 24px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .contacts-form-wrap {
    margin-top: 32px;
    margin-bottom: 56px;
  }
}

@media (min-width: 1024px) {
  .contacts-form-wrap {
    margin-top: 45px;
    margin-bottom: 64px;
  }
}

.contacts-form-wrap .rounded-card {
  background: var(--felix-green);
  padding: 48px 24px;
}

@media (min-width: 640px) {
  .contacts-form-wrap .rounded-card {
    padding: 48px 40px;
  }
}

@media (min-width: 1024px) {
  .contacts-form-wrap .rounded-card {
    padding: 56px 64px;
  }
}

.contacts-form-wrap .heading-bebas {
  margin: 0 0 32px;
  color: #fff;
  font-size: 36px;
  text-align: center;
}

@media (min-width: 640px) {
  .contacts-form-wrap .heading-bebas {
    font-size: 52px;
  }
}

.contacts-form-wrap .felix-form {
  max-width: 635px;
  margin-left: auto;
  margin-right: auto;
}

.contacts-form-wrap form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.contacts-form-wrap form > div {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.contacts-form-wrap input[type="text"],
.contacts-form-wrap input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 10px 30px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 5px rgba(238, 234, 255, 0.25);
  outline: none;
}

.contacts-form-wrap label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #fff;
}

.contacts-form-wrap input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.contacts-map {
  width: 100vw;
  max-width: 100vw;
  height: 420px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  line-height: 0;
}

@media (min-width: 640px) {
  .contacts-map {
    height: 510px;
  }
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}

/* карта вплотную к футеру */
.is-inner main.felix-container:has(.contacts-page) {
  padding-bottom: 0;
}
