.page-kontakty-template {
  background: #f5f6f7;
  color: #292d32;
}

.page-kontakty-template .page-kontakty-hero {
  margin-bottom: 0;
}

.contact-page__section {
  padding: 76px 0;
}

.contact-page__section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.contact-page__section-header h2,
.contact-page__menu-card h2 {
  margin: 0;
  color: #292d32;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.contact-page__details {
  background: #f5f6f7;
}

.contact-page__details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-page__detail-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  min-height: 170px;
  padding: 28px;
  border: 1px solid #e0e2e4;
  border-radius: 8px;
  background: #ffffff;
}

.contact-page__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0f1f2;
}

.contact-page__detail-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-page__detail-card h3 {
  margin: 1px 0 16px;
  color: #85898e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-page__detail-card p,
.contact-page__detail-card a {
  display: block;
  margin: 0;
  color: #292d32;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.contact-page__detail-card a + a {
  margin-top: 6px;
}

.contact-page__detail-card a {
  transition: color 0.2s ease;
}

.contact-page__detail-card a:hover,
.contact-page__detail-card a:focus-visible {
  color: var(--accent);
}

.contact-page__detail-card--socials {
  grid-template-columns: 1fr;
}

.contact-page__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-page__social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #dcdee0;
  border-radius: 999px;
  background: #f7f7f7;
  font-size: 13px !important;
  line-height: 1 !important;
}

.contact-page__social-link.is-icon-only {
  width: 40px;
  padding: 9px;
}

.contact-page__social-link img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-page__location {
  padding-top: 0;
  background: #f5f6f7;
}

.contact-page__section-header--location p {
  max-width: 420px;
  margin: 0 0 4px;
  color: #696d72;
  font-size: 15px;
  line-height: 1.45;
  text-align: right;
}

.contact-page__map {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border: 1px solid #e0e2e4;
  border-radius: 8px;
  background: #eceeef;
}

.contact-page__menu-sections {
  padding-top: 0;
}

.contact-page__menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-page__menu-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid #e0e2e4;
  border-radius: 8px;
  background: #ffffff;
  color: #292d32;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.contact-page__menu-card h2 {
  max-width: 80%;
  font-size: clamp(25px, 2.7vw, 38px);
}

.contact-page__menu-card:hover,
.contact-page__menu-card:focus-visible {
  border-color: #c9cccf;
  box-shadow: 0 18px 45px rgba(24, 30, 38, 0.08);
  color: #292d32;
  transform: translateY(-2px);
}

.contact-page__menu-card:focus-visible {
  outline: 2px solid rgba(41, 45, 50, 0.32);
  outline-offset: 3px;
}

.contact-page__menu-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("../img/icons/arrow-grow.svg") center / contain no-repeat;
  mask: url("../img/icons/arrow-grow.svg") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.contact-page__menu-card:hover .contact-page__menu-arrow,
.contact-page__menu-card:focus-visible .contact-page__menu-arrow {
  transform: translate(3px, -3px);
}

.contact-page__editor {
  border-top: 1px solid #e0e2e4;
  background: #ffffff;
}

.contact-page__editor-article {
  max-width: 900px;
  margin: 0 auto;
}

.contact-page__editor-article .entry-content > :first-child {
  margin-top: 0;
}

.contact-page__editor-article .entry-content > :last-child {
  margin-bottom: 0;
}

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

@media (max-width: 767px) {
  .contact-page__section {
    padding: 52px 0;
  }

  .contact-page__section-header {
    display: block;
    margin-bottom: 22px;
  }

  .contact-page__section-header--location p {
    margin-top: 12px;
    text-align: left;
  }

  .contact-page__details-grid,
  .contact-page__menu-grid {
    grid-template-columns: 1fr;
  }

  .contact-page__detail-card {
    min-height: 0;
    padding: 22px;
  }

  .contact-page__location,
  .contact-page__menu-sections {
    padding-top: 0;
  }

  .contact-page__map {
    height: 400px;
    border-radius: 6px;
  }

  .contact-page__menu-card {
    min-height: 140px;
    padding: 24px;
  }

  .contact-page__menu-card h2 {
    font-size: 28px;
  }
}
