/* TextElit footer */
.te-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--color-primary) 3%, var(--color-surface)), var(--color-surface) 170px);
  border-top: 0;
  color: var(--color-text);
  font-family: Inter-Regular, Inter, Arial, sans-serif;
  font-style: normal;
}

.te-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 3px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 62%, transparent) 18%, var(--color-primary) 50%, color-mix(in srgb, var(--color-primary) 62%, transparent) 82%, transparent);
  transform: translateX(-50%);
}

.te-footer *,
.te-footer *::before,
.te-footer *::after {
  box-sizing: border-box;
}

.te-footer p {
  margin: 0;
}

.te-footer__container {
  position: relative;
  z-index: 1;
  width: min(var(--max-width, 90rem), calc(100% - clamp(80px, 9vw, 140px))) !important;
  max-width: var(--max-width, 90rem) !important;
  margin-inline: auto !important;
  padding: clamp(44px, 5vw, 62px) 0 34px !important;
  display: grid !important;
  gap: 50px !important;
}

.te-footer__line {
  width: 100% !important;
  height: 1px !important;
  background: color-mix(in srgb, var(--color-text) 14%, transparent) !important;
}

.te-footer__main {
  display: grid !important;
  grid-template-columns: minmax(290px, .9fr) 1px minmax(390px, 1.08fr) minmax(270px, .78fr) !important;
  gap: clamp(48px, 4.8vw, 76px) !important;
  align-items: start !important;
}

.te-footer__divider {
  width: 1px !important;
  min-height: 292px !important;
  background: color-mix(in srgb, var(--color-text) 10%, transparent) !important;
}

.te-footer__brand {
  min-height: 292px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.te-footer__brand-title {
  max-width: 370px !important;
  margin: 0 !important;
  color: var(--color-text) !important;
  font-size: clamp(26px, 2.1vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  font-family: Inter-Bold, Inter, Arial, sans-serif !important;
  font-style: normal !important;
}

.te-footer__brand-title span {
  display: block;
  color: var(--color-primary);
}

.te-footer__brand-text {
  margin-top: 10px !important;
}

.te-footer__brand-text p {
  max-width: 390px;
  color: color-mix(in srgb, var(--color-text) 88%, transparent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.58;
  font-family: Inter-Regular, Inter, Arial, sans-serif;
  font-style: normal;
}

.te-footer__accent {
  display: block !important;
  width: 42px !important;
  height: 3px !important;
  border-radius: 99px !important;
  background: var(--color-primary) !important;
}

.te-footer__brand-accent {
  margin-top: 22px !important;
}

.te-footer__heading-accent {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}

.te-footer__task-link {
  min-height: 40px !important;
  margin-top: 18px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 38%, transparent) !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)) !important;
  color: var(--color-primary) !important;
  font-family: Inter-Bold, Inter, Arial, sans-serif !important;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary) 10%, transparent) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: transform var(--transition-fast, 150ms ease), background-color var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease);
}

.te-footer__task-link:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary) !important;
  background: var(--color-primary) !important;
  color: #fff !important;
}

.te-footer__socials {
  margin-top: 24px !important;
  display: flex !important;
  flex-flow: row wrap !important;
  gap: 14px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.te-footer__social-link {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 999px !important;
  background: var(--color-surface) !important;
  color: var(--color-secondary) !important;
  box-shadow: 0 16px 30px rgba(26, 38, 51, .06) !important;
  font-size: 0 !important;
  text-decoration: none !important;
  transition: transform var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease), background-color var(--transition-fast, 150ms ease);
}

.te-footer__social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 46%, transparent) !important;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface)) !important;
  color: var(--color-primary) !important;
}

.te-footer__social-label,
.te-footer__social-label p {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
}

.te-footer__social-label svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.te-footer__columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, max-content)) !important;
  gap: 80px !important;
  align-items: start !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

.te-footer__column-title {
  margin: 0 !important;
  color: var(--color-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: Inter-Bold, Inter, Arial, sans-serif !important;
  font-style: normal !important;
}

.te-footer__links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  justify-items: start !important;
}

.te-footer__link,
.te-footer__bottom-link,
.te-footer__contact-link {
  width: fit-content !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  background-image: none !important;
  color: var(--color-text) !important;
  font-family: var(--font-main), Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: color var(--transition-fast, 150ms ease);
  font-family: Inter-Bold, Inter, Arial, sans-serif !important;
  font-style: normal !important;
}

.te-footer__link::after,
.te-footer__bottom-link::after,
.te-footer__contact-link::after,
.te-footer__task-link::after {
  content: none !important;
}

.te-footer__link:hover,
.te-footer__bottom-link:hover,
.te-footer__contact-link:hover {
  color: var(--color-primary) !important;
}

.te-footer__contacts {
  position: relative;
  width: 100% !important;
  max-width: 340px !important;
  padding: 28px 24px 24px !important;
  border: 1px solid color-mix(in srgb, var(--color-text) 11%, transparent) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--color-primary) 11%, transparent), transparent 42%),
    var(--color-surface) !important;
  box-shadow: 0 28px 60px rgba(26, 38, 51, .06) !important;
}

.te-footer__contact-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.te-footer__contact-item {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  justify-items: start !important;
}

.te-footer__contact-icon,
.te-footer__schedule-icon {
  position: relative;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)) !important;
  color: var(--color-primary) !important;
}

.te-footer__contact-icon[data-tooltip]::before,
.te-footer__schedule-icon[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  z-index: 5;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: 0 14px 32px rgba(26, 38, 51, .12);
  color: var(--color-text);
  font-family: Inter-Regular, Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity var(--transition-fast, 150ms ease), transform var(--transition-fast, 150ms ease);
}

.te-footer__contact-icon[data-tooltip]::after,
.te-footer__schedule-icon[data-tooltip]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 5px);
  z-index: 6;
  width: 8px;
  height: 8px;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  background: var(--color-surface);
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%) rotate(45deg);
  transition: opacity var(--transition-fast, 150ms ease), transform var(--transition-fast, 150ms ease);
}

.te-footer__contact-icon[data-tooltip]:hover::before,
.te-footer__schedule-icon[data-tooltip]:hover::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.te-footer__contact-icon[data-tooltip]:hover::after,
.te-footer__schedule-icon[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.te-footer__contact-icon p,
.te-footer__schedule-icon p {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
}

.te-footer__contact-icon svg,
.te-footer__schedule-icon svg {
  width: 17px !important;
  height: 17px !important;
  display: block !important;
}

.te-footer__contact-link {
  overflow-wrap: anywhere !important;
}

.te-footer__schedule {
  width: 100% !important;
  margin-top: 20px !important;
  padding: 10px 12px !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, auto) !important;
  gap: 12px !important;
  align-items: center !important;
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, transparent) !important;
  border-radius: 6px !important;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)) !important;
}

.te-footer__schedule-text,
.te-footer__schedule-text p {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  align-items: baseline !important;
  color: var(--color-text) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

.te-footer__schedule-text strong {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

.te-footer__note {
  position: relative;
  margin-top: 15px !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: center !important;
  padding: 26px 30px !important;
  border: 1px solid color-mix(in srgb, var(--color-text) 11%, transparent) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 26%),
    var(--color-surface) !important;
}

.te-footer__note::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  left: 0;
  height: 1px;
  background: color-mix(in srgb, var(--color-text) 14%, transparent);
}

.te-footer__note-mark {
  width: 58px !important;
  max-width: 58px !important;
  height: auto !important;
}

.te-footer__note-copy,
.te-footer__note-copy p {
  color: color-mix(in srgb, var(--color-text) 84%, transparent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  font-family: Inter-Regular, Inter, Arial, sans-serif;
  font-style: normal;
}

.te-footer__note-copy strong {
  color: var(--color-text);
  font-weight: 700;
  font-family: Inter-Bold, Inter, Arial, sans-serif;
}

.te-footer__bottom {
  padding-top: 34px !important;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.te-footer__copyright,
.te-footer__copyright p {
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  font-family: Inter-Regular, Inter, Arial, sans-serif;
  font-style: normal;
}

.te-footer__copyright strong {
  color: var(--color-text);
  font-weight: 700;
  font-family: Inter-Bold, Inter, Arial, sans-serif;
}

.te-footer__bottom-links {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px 26px !important;
}

.te-footer__bottom-link {
  font-size: 14px !important;
  font-weight: 650 !important;
}

.te-footer__brand-mark,
.te-footer__brand-mark--dark,
.te-footer__note-mark--dark {
  display: none !important;
}

.te-footer__note-mark--light {
  display: block !important;
}

html[data-theme="dark"] .te-footer {
  background:
    linear-gradient(180deg, rgba(255, 127, 80, .08), #111827 180px) !important;
  border-top-color: rgba(255, 255, 255, .1) !important;
  color: #f7fafc !important;
}

html[data-theme="dark"] .te-footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 127, 80, .46) 18%, var(--color-primary) 50%, rgba(255, 127, 80, .46) 82%, transparent);
}

html[data-theme="dark"] .te-footer__line,
html[data-theme="dark"] .te-footer__divider,
html[data-theme="dark"] .te-footer__note::before,
html[data-theme="dark"] .te-footer__bottom {
  border-color: rgba(255, 255, 255, .13) !important;
  background-color: rgba(255, 255, 255, .13) !important;
}

html[data-theme="dark"] .te-footer__bottom {
  background-color: transparent !important;
}

html[data-theme="dark"] .te-footer__note-mark--light {
  display: none !important;
}

html[data-theme="dark"] .te-footer__note-mark--dark {
  display: block !important;
}

html[data-theme="dark"] .te-footer__brand-title,
html[data-theme="dark"] .te-footer__column-title,
html[data-theme="dark"] .te-footer__link,
html[data-theme="dark"] .te-footer__contact-link,
html[data-theme="dark"] .te-footer__bottom-link,
html[data-theme="dark"] .te-footer__note-copy strong,
html[data-theme="dark"] .te-footer__copyright strong,
html[data-theme="dark"] .te-footer__schedule-text {
  color: #f7fafc !important;
}

html[data-theme="dark"] .te-footer__brand-text p,
html[data-theme="dark"] .te-footer__note-copy,
html[data-theme="dark"] .te-footer__note-copy p,
html[data-theme="dark"] .te-footer__copyright,
html[data-theme="dark"] .te-footer__copyright p {
  color: rgba(226, 232, 240, .78) !important;
}

html[data-theme="dark"] .te-footer__contacts,
html[data-theme="dark"] .te-footer__note,
html[data-theme="dark"] .te-footer__social-link {
  border-color: rgba(255, 255, 255, .13) !important;
  background:
    radial-gradient(circle at 0 0, rgba(255, 127, 80, .12), transparent 42%),
    rgba(255, 255, 255, .045) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .te-footer__contact-icon,
html[data-theme="dark"] .te-footer__schedule-icon,
html[data-theme="dark"] .te-footer__schedule,
html[data-theme="dark"] .te-footer__task-link {
  border-color: rgba(255, 127, 80, .28) !important;
  background: rgba(255, 127, 80, .11) !important;
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .te-footer__contact-icon[data-tooltip]::before,
html[data-theme="dark"] .te-footer__schedule-icon[data-tooltip]::before,
html[data-theme="dark"] .te-footer__contact-icon[data-tooltip]::after,
html[data-theme="dark"] .te-footer__schedule-icon[data-tooltip]::after {
  border-color: rgba(255, 255, 255, .13);
  background: #182231;
  color: #f7fafc;
}

html[data-theme="dark"] .te-footer__link:hover,
html[data-theme="dark"] .te-footer__contact-link:hover,
html[data-theme="dark"] .te-footer__bottom-link:hover,
html[data-theme="dark"] .te-footer__social-link:hover {
  color: var(--color-primary) !important;
}

html[data-theme="dark"] .te-footer__task-link:hover {
  background: var(--color-primary) !important;
  color: #111827 !important;
}

@media (max-width: 1180px) {
  .te-footer__container {
    width: min(var(--max-width, 90rem), calc(100% - 80px)) !important;
    padding-top: 54px !important;
  }

  .te-footer__main {
    grid-template-columns: minmax(280px, .9fr) minmax(320px, .9fr) !important;
    grid-template-areas:
      "brand contacts"
      "columns columns" !important;
    gap: 64px 72px !important;
  }

  .te-footer__brand {
    grid-area: brand !important;
    min-height: auto !important;
  }

  .te-footer__divider {
    display: none !important;
  }

  .te-footer__columns {
    grid-area: columns !important;
    grid-template-columns: repeat(2, minmax(220px, max-content)) !important;
    gap: 58px !important;
    padding-top: 6px !important;
  }

  .te-footer__contacts {
    grid-area: contacts !important;
    justify-self: end !important;
    max-width: 340px !important;
  }
}

@media (max-width: 900px) {
  .te-footer__container {
    width: min(var(--max-width, 90rem), calc(100% - 64px)) !important;
    padding-top: 48px !important;
    gap: 44px !important;
  }

  .te-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr) !important;
    gap: 54px 54px !important;
  }

  .te-footer__contacts {
    justify-self: stretch !important;
    max-width: 100% !important;
  }

  .te-footer__columns {
    gap: 46px !important;
  }
}

@media (max-width: 720px) {
  .te-footer__container {
    width: min(var(--max-width, 90rem), calc(100% - 44px)) !important;
    padding-top: 34px !important;
    padding-bottom: 30px !important;
    gap: 38px !important;
  }

  .te-footer__main {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "contacts" !important;
    gap: 28px !important;
  }

  .te-footer__brand {
    width: 100% !important;
  }

  .te-footer__brand-mark {
    order: 0;
    width: 56px !important;
    max-width: 56px !important;
    height: auto !important;
    margin-bottom: 16px !important;
  }

  .te-footer__brand-mark--light {
    display: block !important;
  }

  html[data-theme="dark"] .te-footer__brand-mark--light {
    display: none !important;
  }

  html[data-theme="dark"] .te-footer__brand-mark--dark {
    display: block !important;
  }

  .te-footer__brand-title {
    order: 1;
    max-width: 330px !important;
    font-size: 25px !important;
    line-height: 1.14 !important;
  }

  .te-footer__brand-text {
    order: 2;
    margin-top: 12px !important;
  }

  .te-footer__brand-text p {
    max-width: 36rem !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .te-footer__brand-accent {
    order: 3;
    margin-top: 18px !important;
  }

  .te-footer__task-link {
    order: 4;
    margin-top: 16px !important;
  }

  .te-footer__socials {
    order: 5;
    margin-top: 20px !important;
  }

  .te-footer__social-link {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
  }

  .te-footer__columns,
  .te-footer__note {
    display: none !important;
  }

  .te-footer__contacts {
    max-width: 100% !important;
    padding: 24px 20px !important;
  }

  .te-footer__bottom {
    padding-top: 30px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .te-footer__bottom-links {
    justify-content: flex-start !important;
    gap: 12px 22px !important;
  }
}

@media (max-width: 380px) {
  .te-footer__container {
    width: min(var(--max-width, 90rem), calc(100% - 32px)) !important;
  }

  .te-footer__brand-title {
    font-size: 24px !important;
  }

  .te-footer__socials {
    gap: 12px !important;
  }

  .te-footer__social-link {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .te-footer__contact-item,
  .te-footer__schedule {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .te-footer__contact-icon,
  .te-footer__schedule-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }

  .te-footer__contact-link,
  .te-footer__schedule-text,
  .te-footer__schedule-text p {
    font-size: 14.5px !important;
  }

  .te-footer__bottom-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}

/* TextElit founder profile language links */
html[lang^="uk"] .te-founder-link--ru,
html[lang^="ru"] .te-founder-link--ua {
  display: none !important;
}

/* RU footer service column width */
@media (min-width: 1181px) {
  html[lang^="ru"] .te-footer__main {
    grid-template-columns: minmax(290px, .86fr) 1px minmax(460px, 1.2fr) minmax(270px, .78fr) !important;
    gap: clamp(24px, 2.4vw, 38px) !important;
  }
}

@media (min-width: 721px) {
  html[lang^="ru"] .te-footer__columns {
    grid-template-columns: minmax(260px, max-content) minmax(150px, max-content) !important;
    gap: 32px !important;
  }

  html[lang^="ru"] .te-footer__column--services {
    width: 260px !important;
    min-width: 260px !important;
  }

  html[lang^="ru"] .te-footer__column--services .te-footer__link {
    max-width: none !important;
    white-space: nowrap !important;
  }
}
