.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;  
  }
}