@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.custom-texts div,
.custom-texts h2,
.custom-texts h3,
.custom-texts h4,
.custom-texts h5,
.custom-texts h6 {
  letter-spacing: -0.04em;
  color: var(--black-800);
  font-weight: 600;
  line-height: 1.3;
}

.custom-texts b,
.custom-texts strong {
  color: var(--black-800);
  font-weight: 600;
}

.custom-texts div:not(:first-child),
.custom-texts h2:not(:first-child),
.custom-texts h3:not(:first-child),
.custom-texts h4:not(:first-child),
.custom-texts h5:not(:first-child),
.custom-texts h6:not(:first-child) {
  margin-top: 32px;
}

.custom-texts div:not(:last-child),
.custom-texts h2:not(:last-child),
.custom-texts h3:not(:last-child),
.custom-texts h4:not(:last-child),
.custom-texts h5:not(:last-child),
.custom-texts h6:not(:last-child),
.custom-texts ol:not(:last-child),
.custom-texts p:not(:last-child),
.custom-texts ul:not(:last-child) {
  margin-bottom: 12px;
}

.custom-texts h2 {
  font-size: 38px;
}

.custom-texts h3 {
  font-size: 32px;
}

.custom-texts h4 {
  font-size: 24px;
}

.custom-texts div:not(.extra-block) {
  font-size: 24px;
}

.custom-texts h5 {
  font-size: 20px;
}

.custom-texts h6 {
  font-size: 16px;
}

.custom-texts a {
  color: var(--blue-300);
}

@media (any-hover: hover) {
  .custom-texts a {
    transition: color 0.3s ease 0s;
  }

  .custom-texts a:hover {
    color: var(--orange-300);
  }
}

.custom-texts ol li,
.custom-texts ul li {
  position: relative;
  list-style: none;
  font-weight: 400;
}

.custom-texts ol li:not(:last-child),
.custom-texts ul li:not(:last-child) {
  margin-bottom: 6px;
}

.custom-texts ul li::before {
  content: "•";
  color: var(--orange-300);
  position: absolute;
  left: 0;
}

.custom-texts ol {
  counter-reset: list-counter;
  padding-left: 4px;
}

.custom-texts ol li {
  counter-increment: list-counter;
}

.custom-texts ol li::before {
  content: counter(list-counter) ".";
  font-weight: 600;
  color: var(--black-800);
  position: absolute;
  left: 0;
}

.custom-texts ol li span,
.custom-texts ul li span {
  font-weight: 500;
  color: var(--black-800);
}

.custom-texts ul {
  padding-left: 8px;
}

.custom-texts ul li {
  padding-left: 16px;
}

.custom-texts ol li {
  padding-left: 20px;
}

@media (max-width: 1023.98px) {

  .custom-texts div:not(:first-child),
  .custom-texts h2:not(:first-child),
  .custom-texts h3:not(:first-child),
  .custom-texts h4:not(:first-child),
  .custom-texts h5:not(:first-child),
  .custom-texts h6:not(:first-child) {
    margin-bottom: 20px;
  }

  .custom-texts div:not(.extra-block) {
    font-size: 20px;
  }

  .custom-texts h2 {
    font-size: 30px;
  }

  .custom-texts h3 {
    font-size: 26px;
  }

  .header-language-switch img[src*="polylang/flags/ru.png"] {
    display: none !important;
  }

  .header-language-switch a[aria-label="Language RU"] i {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url(/wp-content/themes/Permit/assets/img/flags/ru.svg);
    background-size: cover;
    background-position: center;
  }
}

.step-text {
  color: var(--grey-500);
}

.step-text b,
.step-text div,
.step-text p {
  color: var(--black-800);
}

.XTranslate,
.extra-block {
  margin: 0 !important;
}

.step-text div:first-child {
  padding-right: 40px;
}

.iti {
  --iti-border-color: transparent;
  --iti-hover-color: transparent;
  position: relative !important;
  width: 100% !important;
}

.iti__country-container {
  padding: 8px !important;
  height: 100% !important;
}

.iti__selected-country,
.iti__selected-country-primary {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.iti__selected-country {
  padding: 0 14px 0 0 !important;
  height: 100% !important;
  background-color: transparent !important;
  border: 0 !important;
  gap: 0 !important;
}

.iti__selected-country::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 68px !important;
  height: 100% !important;
  border-radius: 100px !important;
  border: 2px solid transparent !important;
  background-color: rgba(var(--grey-100-rgb), 0.04) !important;
  transition: border-color 0.3s ease !important;
  pointer-events: none !important;
}

.iti__selected-country[aria-expanded="true"]::before {
  border-color: var(--orange-300) !important;
}

.iti__selected-country-primary {
  z-index: 1 !important;
  width: 68px;
  justify-content: center;
  gap: 8px !important;
}

.iti__selected-country-primary .iti__flag {
  border-radius: 3px !important;
}

.iti__arrow {
  margin: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: url(../assets/img/icons/arrow-dropdown.svg) center/contain no-repeat !important;
  transition: transform 0.3s ease !important;
  transform-origin: center center !important;
}

.iti__arrow--up {
  transform: rotate(180deg) !important;
  border: 0 !important;
}

.iti__selected-dial-code {
  position: relative !important;
  margin-left: 12px !important;
  padding-left: 0 !important;
  padding-right: 16px !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  color: var(--white) !important;
}

.iti--inline-dropdown .iti__dropdown-content {
  margin-left: 0 !important;
  left: 0;
}

.iti__selected-dial-code::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1px !important;
  height: 16px !important;
  background-color: rgba(var(--white-rgb), 0.24) !important;
}

.iti__selected-dial-code::before {
  display: none !important;
}

.iti__dropdown-content {
  margin-top: 12px !important;
  padding: 0 !important;
  background-color: #041957 !important;
  border-radius: 28px !important;
  border: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.iti__search-input {
  display: block !important;
  width: calc(100% - 16px) !important;
  min-height: 56px !important;
  margin: 8px !important;
  padding: 0 14px !important;
  border: 4px solid transparent !important;
  border-radius: 100px !important;
  background-color: rgba(var(--white-rgb), 0.04) !important;
  font-size: 18px !important;
  color: #fff !important;
  outline: 0 !important;
  box-sizing: border-box !important;
}

.iti__search-input::placeholder {
  color: rgba(var(--white-rgb), 0.64) !important;
}

@media (any-hover: hover) {
  .iti__search-input:focus {
    border-color: var(--orange-300) !important;
  }
}

.iti__country-list {
  margin: 0 !important;
  padding: 0 8px 8px !important;
  max-height: 260px !important;
  background-color: #041957 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.iti__country-list::-webkit-scrollbar {
  width: 10px !important;
}

.iti__country-list::-webkit-scrollbar-track {
  border-radius: 0 14px 14px 0 !important;
  background: #041957 !important;
}

.iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(var(--white-rgb), 0.3) !important;
  border-radius: 5px !important;
}

.iti__divider,
button[type="submit"].loading::after,
button[type="submit"].loading::before {
  display: none !important;
}

.iti__country {
  display: flex !important;
  padding: 12px 16px !important;
  min-height: auto !important;
  border: 2px solid transparent !important;
  border-radius: 100px !important;
  cursor: pointer !important;
  transition:
    background-color 0.3s,
    border-color 0.3s !important;
  align-items: center !important;
  background-color: transparent !important;
}

.iti__country.iti__highlight,
.iti__country.iti__selected,
.iti__country:hover {
  background-color: rgba(var(--white-rgb), 0.04) !important;
}

.iti__country.iti__selected {
  border-color: var(--orange-300) !important;
}

.iti__country .iti__flag-box {
  overflow: hidden !important;
  border-radius: 3px !important;
}

.iti__country-name {
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--white) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.iti__dial-code {
  font-weight: 500 !important;
  font-size: 18px !important;
  color: rgba(var(--white-rgb), 0.64) !important;
}

.form-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
}

button[type="submit"].loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.post-texts {
  color: var(--black-800);
}

.post-texts a {
  color: var(--blue-300);
  text-decoration: underline;
}

@media (any-hover: hover) {
  .post-texts a {
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .post-texts a:hover {
    color: var(--orange-300);
    text-decoration: none;
  }
}

.post-texts p:not([class]),
.post-texts li:not([class]) {
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  letter-spacing: -0.02em;
}

.post-texts p:not([class]) {
  margin-bottom: 24px;
}

.post-texts h1:not([class]),
.post-texts h2:not([class]),
.post-texts h3:not([class]),
.post-texts h4:not([class]),
.post-texts h5:not([class]),
.post-texts h6:not([class]) {
  margin-bottom: 12px;
}

.post-texts h1:not([class]) {
  font-weight: 600;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.04em;
}

.post-texts h2:not([class]) {
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: -0.04em;
}

.post-texts h3:not([class]) {
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.03em;
}

.post-texts h4:not([class]) {
  font-weight: 600;
  font-size: 18px;
  line-height: 133%;
  letter-spacing: -0.04em;
}

.post-texts h5:not([class]) {
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.02em;
}

.post-texts h6:not([class]) {
  font-weight: 600;
  font-size: 14px;
  line-height: 155%;
  letter-spacing: -0.01em;
}

.post-texts ol:not([class]),
.post-texts ul:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  margin-bottom: 24px;
}

.post-texts ul li:not([class]) {
  list-style: disc;
}

.post-texts ul li:not([class])::marker {
  color: var(--orange-300);
}

.post-texts ol li:not([class]) {
  list-style: decimal;
}

.post-texts img:not([class]),
.post-texts img[class*="wp-image"] {
  max-height: 500px;
  object-fit: cover;
  border-radius: 40px;
  width: 100%;
}

.post-texts .black-block,
.post-texts .blue-block,
.post-texts .blue-light-block,
.post-texts .grey-block,
.post-texts .orange-block,
.post-texts .orange-light-block,
.post-texts .red-block,
.post-texts .red-light-block {
  border-left: 3px solid transparent;
  border-radius: 0 16px 16px 0;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.post-texts .black-block *,
.post-texts .blue-block *,
.post-texts .blue-light-block *,
.post-texts .grey-block *,
.post-texts .orange-block *,
.post-texts .orange-light-block *,
.post-texts .red-block *,
.post-texts .red-light-block * {
  margin: 0 !important;
}

.post-texts .black-block *:not(:last-child),
.post-texts .blue-block *:not(:last-child),
.post-texts .blue-light-block *:not(:last-child),
.post-texts .grey-block *:not(:last-child),
.post-texts .orange-block *:not(:last-child),
.post-texts .orange-light-block *:not(:last-child),
.post-texts .red-block *:not(:last-child),
.post-texts .red-light-block *:not(:last-child) {
  margin-bottom: 16px !important;
}

.post-texts .black-block .title,
.post-texts .blue-block .title,
.post-texts .blue-light-block .title,
.post-texts .grey-block .title,
.post-texts .orange-block .title,
.post-texts .orange-light-block .title,
.post-texts .red-block .title,
.post-texts .red-light-block .title {
  font-weight: 600;
  font-size: 18px;
  line-height: 133%;
  letter-spacing: -0.04em;
}

.post-texts .black-block .description,
.post-texts .blue-block .description,
.post-texts .blue-light-block .description,
.post-texts .grey-block .description,
.post-texts .orange-block .description,
.post-texts .orange-light-block .description,
.post-texts .red-block .description,
.post-texts .red-light-block .description {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.04em;
}

.post-texts .grey-block {
  border-color: var(--orange-300);
  background: var(--grey-100);
}

.post-texts .grey-block {
  color: var(--black-800);
}

.post-texts .grey-block .description {
  color: var(--grey-500);
}

.post-texts .black-block {
  border-color: var(--orange-300);
  background: var(--black-800);
}

.post-texts .black-block {
  color: var(--white);
}

.post-texts .black-block .description {
  color: rgba(var(--white-rgb), 0.64);
}

.post-texts .red-light-block {
  border-color: var(--red-300);
  background: rgba(var(--red-300-rgb), 0.12);
}

.post-texts .red-light-block {
  color: var(--red-300);
}

.post-texts .red-light-block .description {
  color: rgba(var(--red-300-rgb), 0.64);
}

.post-texts .red-block {
  border-color: rgba(var(--white-rgb), 0.64);
  background: var(--red-300);
}

.post-texts .red-block {
  color: var(--white);
}

.post-texts .orange-block .description,
.post-texts .red-block .description {
  color: rgba(var(--white-rgb), 0.64);
}

.post-texts .orange-block {
  border-color: rgba(var(--white-rgb), 0.64);
  background: var(--orange-300);
}

.post-texts .orange-block {
  color: var(--white);
}

.post-texts .orange-light-block {
  border-color: var(--orange-300);
  background: rgba(var(--orange-300-rgb), 0.12);
}

.post-texts .orange-light-block {
  color: var(--orange-300);
}

.post-texts .orange-light-block .description {
  color: rgba(var(--orange-300-rgb), 0.64);
}

.post-texts .blue-block {
  border-color: rgba(var(--white-rgb), 0.64);
  background: var(--blue-300);
}

.post-texts .blue-block * {
  color: var(--white);
}

.post-texts .blue-block .description {
  color: rgba(var(--white-rgb), 0.64);
}

.post-texts .blue-light-block {
  border-color: var(--blue-300);
  background: rgba(var(--blue-300-rgb), 0.12);
}

.post-texts .blue-light-block * {
  color: var(--blue-300);
}

.post-texts .blue-light-block .description {
  color: rgba(var(--blue-300-rgb), 0.64);
}