.page-hero.kontakt::after {
  background: linear-gradient(90deg, rgba(0, 20, 60, .92), rgba(0, 24, 66, .64) 58%, rgba(0, 24, 66, .16));
}

.contact-page {
  width: min(1120px, calc(100% - 80px));
  padding: 64px 0 72px;
  color: #071944;
}

.contact-section-heading {
  max-width: 620px;
  margin-bottom: 26px;
}

.contact-kicker {
  margin: 0 0 8px;
  color: #0753ef;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-section-heading h2,
.contact-board-heading h2 {
  margin: 0 0 10px;
  color: #07145f;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.04;
}

.contact-section-heading > p:last-child,
.contact-board-heading > div > p:last-child {
  margin: 0;
  color: #4e6389;
  font-size: 16px;
  line-height: 1.6;
}

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

.contact-channel {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
  color: #07145f;
  transition: border-color .18s ease, transform .18s ease;
}

.contact-channel::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(26, 93, 245, .055);
}

.contact-channel:hover {
  border-color: #aac6ef;
  color: #07145f;
  transform: translateY(-2px);
}

.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #edf4ff;
  color: #0866ff;
}

.contact-channel-icon .icon {
  width: 38px;
  height: 38px;
}

.contact-messenger-icon {
  background: #0866ff;
}

.contact-messenger-icon img {
  display: block;
  width: 38px;
  height: 38px;
}

.contact-channel-instagram .contact-channel-icon {
  background: radial-gradient(circle at 30% 105%, #ffd76a, #ed2766 52%, #8149c8 84%);
  color: #fff;
}

.contact-channel-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-channel-copy strong {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 25px;
  line-height: 1.1;
}

.contact-channel-copy small {
  max-width: 330px;
  color: #4e6389;
  font-size: 14px;
  line-height: 1.5;
}

.contact-channel-action {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: 112px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #b8d4f5;
  border-radius: 6px;
  background: #f9fcff;
  color: #0753ef;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}

.contact-channel-instagram .contact-channel-action {
  background: #f9fcff;
  color: #0753ef;
}

.contact-channel:hover .contact-channel-action {
  border-color: #78aef0;
  background: #eef6ff;
}

.contact-box {
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background: #fff;
}

.contact-board-heading {
  margin-bottom: 22px;
}

.contact-round {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #edf4ff;
  color: #0753ef;
}

.contact-round .icon {
  width: 25px;
  height: 25px;
}

.contact-visit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #dce7f5;
}

.contact-visit > div {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  background: #f6f9fe;
}

.contact-visit .contact-round {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  background: #fff;
}

.contact-visit .contact-round .icon {
  width: 20px;
  height: 20px;
}

.contact-visit h3 {
  margin: 1px 0 5px;
  color: #07145f;
  font-size: 15px;
  line-height: 1.25;
}

.contact-visit p,
.contact-visit a {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.contact-visit p {
  color: #526889;
}

.contact-visit a {
  display: inline-block;
  margin-top: 6px;
  color: #0753ef;
  font-weight: 800;
}

.contact-board {
  margin-top: 72px;
  scroll-margin-top: 125px;
}

.contact-board-heading h2 {
  margin-bottom: 5px;
  font-size: 32px;
}

.contact-directory {
  padding: 0 24px;
}

.contact-directory > p {
  padding: 22px 0;
}

.contact-directory-head {
  display: grid;
  grid-template-columns: 42px minmax(130px, .8fr) minmax(110px, .7fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 17px 0 8px;
  color: #52617c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-person {
  display: grid;
  grid-template-columns: 42px minmax(130px, .8fr) minmax(110px, .7fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4ebf4;
}

.contact-directory.without-phone .contact-directory-head,
.contact-directory.without-phone .contact-person {
  grid-template-columns: 42px minmax(130px, .8fr) minmax(0, 1.2fr);
}

.contact-directory.without-email .contact-directory-head,
.contact-directory.without-email .contact-person {
  grid-template-columns: 42px minmax(130px, .8fr) minmax(110px, .7fr);
}

.contact-directory.without-phone.without-email .contact-directory-head,
.contact-directory.without-phone.without-email .contact-person {
  grid-template-columns: 42px minmax(0, 1fr);
}

.contact-person:last-child {
  border: 0;
}

.contact-person-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf4ff;
  color: #1760ef;
}

.contact-person-icon .icon {
  width: 21px;
  height: 21px;
}

.contact-person h3 {
  margin: 0 0 2px;
  color: #07145f;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-person p {
  margin: 0;
  color: #52617c;
  font-size: 13px;
}

.contact-person-phone,
.contact-person-email {
  min-width: 0;
}

.contact-person-phone {
  color: #52617c;
  font-size: 13px;
}

.contact-person-phone a,
.contact-person-email {
  color: #0753ef;
  font-weight: 700;
}

.contact-person-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.contact-person-email.is-empty {
  color: #52617c;
  font-weight: 400;
}

.contact-person-email > span {
  overflow-wrap: anywhere;
}

.contact-person-email .icon {
  width: 17px;
  height: 17px;
  color: #58709a;
}

.contact-trial {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 24px 28px;
  border: 1px solid #dce7f5;
  border-radius: 14px;
  background: #edf4ff;
}

.contact-trial-icon {
  flex-shrink: 0;
  color: #0753ef;
}

.contact-trial-icon .icon {
  width: 34px;
  height: 34px;
}

.contact-trial h2 {
  margin: 0 0 5px;
  color: #07145f;
  font-size: 20px;
}

.contact-trial p {
  margin: 0;
  color: #4e6389;
  font-size: 14px;
  line-height: 1.55;
}

.contact-trial .button {
  min-height: 42px;
  margin-left: auto;
  background: #0753ef;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .contact-page {
    width: calc(100% - 48px);
  }

  .contact-channel {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    padding: 22px;
  }

  .contact-channel-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .contact-channel-icon .icon {
    width: 31px;
    height: 31px;
  }

  .contact-channel-action {
    min-width: 0;
  }

  .contact-visit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-page {
    width: calc(100% - 36px);
    padding: 38px 0 48px;
  }

  .contact-section-heading {
    margin-bottom: 20px;
  }

  .contact-section-heading h2 {
    font-size: 30px;
  }

  .contact-section-heading > p:last-child,
  .contact-board-heading > div > p:last-child {
    font-size: 14px;
  }

  .contact-channel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-channel {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    border-radius: 13px;
  }

  .contact-channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .contact-channel-icon .icon {
    width: 29px;
    height: 29px;
  }

  .contact-channel-copy strong {
    font-size: 21px;
  }

  .contact-channel-copy small {
    font-size: 12px;
  }

  .contact-channel-action {
    grid-column: 3;
    width: 112px;
    min-height: 34px;
  }

  .contact-visit > div {
    padding: 18px;
  }

  .contact-board {
    margin-top: 50px;
  }

  .contact-board-heading h2 {
    font-size: 27px;
  }

  .contact-directory {
    padding: 0 16px;
  }

  .contact-directory-head {
    display: none;
  }

  .contact-person {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 5px 12px;
    padding: 15px 0;
  }

  .contact-directory.without-phone .contact-person,
  .contact-directory.without-email .contact-person,
  .contact-directory.without-phone.without-email .contact-person {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .contact-person-icon {
    grid-row: 1;
    width: 38px;
    height: 38px;
  }

  .contact-person-phone.is-empty,
  .contact-person-email.is-empty {
    display: none;
  }

  .contact-person-phone,
  .contact-person-email {
    grid-column: 2;
    font-size: 12px;
  }

  .contact-trial {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 22px 18px;
  }

  .contact-trial > div {
    flex: 1;
    min-width: 180px;
  }

  .contact-trial p br {
    display: none;
  }

  .contact-trial .button {
    width: 100%;
    margin: 0;
  }
}
