.modal {
  position: fixed;
  inset: 0;
  z-index: 11;

  opacity: 0;

  pointer-events: none;

  &.opened {
    opacity: 1;
    pointer-events: all;
  }
}

.modal__overlay {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100dvh;

  background-color: rgba(0 0 0 / 0);

  transition: background-color 0.15s ease-in-out;

  .modal:not([aria-hidden]) & {
    background-color: rgba(0 0 0 / 0.5);
  }
}

.modal__body {
  position: relative;

  min-height: 200px;
  max-height: 70dvh;
  margin: auto 10px;
  padding: 20px 30px;

  background-color: #f8f7f3;
  border-radius: 10px;
  opacity: 0;

  transform: translateY(-20%);
  transition-property: opacity, transform;
  transition-duration: 0.15s;
  transition-timing-function: ease-in-out;
  // overflow-y: auto;

  .modal:not([aria-hidden]) & {
    opacity: 1;
    transform: translateY(-10%);
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-track {
    background-color: #f1f1f1;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #888888;
    border-radius: 10px;

    &:hover {
      background-color: #555555;
    }
  }

  &::-webkit-scrollbar-button {
    display: block;
  }
}

.modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__close {
  position: absolute;
  top: -50px;
  right: -10px;

  width: 50px;
  height: 50px;

  background-color: transparent;
  border: none;

  cursor: pointer;

  &::before,
  &::after {
    content: '';

    position: absolute;
    top: 50%;
    left: 50%;

    width: 80%;
    height: 4px;

    background-color: $light;
    border-radius: 10px;

    transform-origin: center;
    transform: translate(-50%, -50%) rotate(45deg);

    transition: background-color 0.15s ease-in-out;
  }

  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  @include hover {
    &::before,
    &::after {
      background-color: #e6e6e6;
    }
  }
}

.mobile-menu__link[data-d7p-modal-open] {
  background-color: transparent;
}

@media (min-width: 769px) {
  .header__info {
	column-gap: 10px;
	row-gap: 4px;
	
	margin-left: 0;
  }
}

@media (min-width: 577px) {
  .header__info {
	display: grid;
	grid-template-columns: 1fr 1fr;
  }

  .header__phone {
	display: flex;
	align-items: center;
  }
}

@media (min-width: 577px) and (max-width: 1100px) {
  .socials__item:not(:last-child) {
    margin-right: 8px;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
  .header__phone {
	font-size: 18px
  }
}

@media (min-width: 993px) and (max-width: 1439px) {
  .header__links {
    display: flex;
    flex-direction: column;
	align-items: center;
  }
	
  .header__link {
	padding: 8px 12px;
  }
}

.cb-modal {
  z-index: 100;
}

.cb-modal__body {
  max-width: 600px;
  background-color: #ffffff;
}

.cb-modal__title {
  font-size: 22px;
  text-align: center;
}

.cb-modal .form-input-text {
  box-shadow: 0 0 0 3px rgba(0, 140, 253, 0.25);
}

.cb-modal .callbox__privacybox {
  max-width: 100%;
}

.cb-modal .callbox__privacybox a {
  color: #111111;
}

.cb-modal .callbox__submitbox {
  position: relative;
}
.cb-modal .callbox__submitbox p {
  margin: 0;
}

.cb-modal .callbox__submitbox .wpcf7-spinner {
  position: absolute;
  top: 22px;
  left: 4px;
	
  margin: 0;
}

@media(min-width: 769px) {
  .cb-modal__body {  
	padding: 30px
  }

  .cb-modal__title {
    font-size: 34px;
  }
}

.footer__logobox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
	
  width: auto;
  text-align: inherit;
}

.footer__logo-wrapper {
  width: 110px;
}

.footer__address {
  text-align: center;
}

.footer__address span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.footer__copyright {
  margin-top: 50px;
	
  font-size: 14px;
  text-align: center;
	
  opacity: 0.8;
}

@media (min-width: 577px) {
  .footer__logobox {
	flex-direction: row;
	justify-content: space-evenly;
	align-items: flex-start;
  }
	
  .footer__address {
    text-align: left;
  }
}

@media (min-width: 993px) {
  .footer__logobox {
	flex-direction: column;  
  }
}

.contacts-section-addresses {
	padding-top: 3rem;
}

.tchm-contacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem;
  gap: 1.25rem;
	margin-top: 2rem;

  background-image: 
    radial-gradient(circle at 95% 50%, rgba(185, 240, 255, 0.95) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(0, 180, 255, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 25% 20%, rgba(0, 60, 215, 0.95) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(0, 110, 240, 0.9) 0%, transparent 50%),
    linear-gradient(110deg, #0045d8 0%, #0099ff 60%, #52cbff 100%);
  border-radius: 1.25rem;
}

@media (max-width: 1200px) {
  .tchm-contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 565px) {
  .tchm-contacts {
    grid-template-columns: 1fr;
  }
}

.tchm-contacts__item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;

  background-color: #fff;
  border-radius: 1rem;
}

.tchm-contacts__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tchm-contacts__iconbox {
	display: flex;
	align-items: center;
	justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  background-color: rgba(0, 143, 255, 1);
  border-radius: 50%;
}
.tchm-contacts__icon {
}
.tchm-contacts__heading {
}
.tchm-contacts__text {
  margin-bottom: 1rem;

  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
}
.tchm-contacts__text a {
  color: #111111;
}
.tchm-contacts__copy {
  margin-top: auto;
  width: 9.125rem;
  padding: 0.625rem 1rem;

  font-size: 0.875rem;
  color: rgba(17, 17, 17, 0.6);

  background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.3333 9.13749V12.1125C11.3333 14.5917 10.3416 15.5833 7.86246 15.5833H4.88746C2.40829 15.5833 1.41663 14.5917 1.41663 12.1125V9.13749C1.41663 6.65832 2.40829 5.66666 4.88746 5.66666H7.86246C10.3416 5.66666 11.3333 6.65832 11.3333 9.13749Z' fill='%23008FFF'/%3E%3Cpath d='M12.1125 1.41666H9.13746C7.07054 1.41666 6.0424 2.11087 5.75732 3.77359C5.66321 4.32249 6.1287 4.78124 6.68561 4.78124H7.86246C10.8375 4.78124 12.2187 6.16249 12.2187 9.13749V10.3143C12.2187 10.8712 12.6775 11.3367 13.2264 11.2426C14.8891 10.9575 15.5833 9.92941 15.5833 7.86249V4.88749C15.5833 2.40832 14.5916 1.41666 12.1125 1.41666Z' fill='%23008FFF'/%3E%3C/svg%3E%0A");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.625rem;
}

.contacts-section-info {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

.tchm-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .tchm-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 565px) {
  .tchm-info {
    grid-template-columns: 1fr;
  }
}
.tchm-info__item {
  padding: 1.5rem;

  border: 1px solid rgba(0, 143, 255, 0.3);
  border-radius: 1rem;
}
.tchm-info__icon {
  margin-bottom: 1rem;
}
.tchm-info__title {
  margin: 0;

  font-size: 0.875rem;
  text-transform: uppercase;
}
.tchm-info__text {
  margin: 0;
  margin-top: 0.5rem;

  font-size: 1.25rem;
  font-weight: 600;
}
.tchm-info__text a {
  color: #111111;
}
.tchm-info-footer {
  margin-top: 1.25rem;

  text-align: center;
}

.contacts-mapbox {
	margin-top: 2rem;
}
