/*
Theme Name: TikTok
Theme URI: https://example.com/tiktok
Description: Mobile-first contact landing page styled after the provided reference.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tiktok
*/

:root {
  --bg: #111111;
  --text: #fafafa;
  --name: #5b5b5b;
  --number: #b4b4b4;
  --gray-btn: #818181;
  --green: #00be62;
  --blue: #00acff;
  --violet: #9e6abe;
  --radius: 8px;
  --font-main: "Inter", sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.screen-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
}

.site-main {
  min-height: 100vh;
}

.contacts-page {
  padding-bottom: 22px;
}

.theme-fallback {
  padding: 28px 18px 36px;
}

.theme-fallback__article {
  padding: 22px 18px;
  border-radius: var(--radius);
}

.theme-fallback__eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.theme-fallback__title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.1;
}

.theme-fallback__content,
.theme-fallback__article p {
  color: #d0d0d0;
  line-height: 1.55;
}

.theme-fallback__content > :first-child {
  margin-top: 0;
}

.theme-fallback__content > :last-child {
  margin-bottom: 0;
}

.hero {
  padding: 18px 8px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.logo {
  width: min(325px, calc(100% - 16px));
  margin: 0 auto;
}

.logo img {
  width: 100%;
  height: auto;
}

.charity {
  display: flex;
  align-items: center;
  position: relative;
}

.charity__avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex: 0 0 60px;
  overflow: visible;
}

.charity__avatar > img:first-child {
  transform: translateX(10px);
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

.charity__icon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
}

.charity__pill {
  flex: 1;
  min-height: 31px;
  padding: 8px 30px;
  padding-left: 18px;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  background: var(--violet);
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contacts-column {
  min-width: 0;
}

.contacts-column--left {
  position: relative;
}

.contacts-column--right {
  text-align: right;
}

.contacts-column--left::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(70, 70, 70, 0) 0%,
    #464646 21.54%,
    #464646 78%,
    rgba(70, 70, 70, 0) 100%
  );
}

.contact-card {
  min-width: 0;
  padding-bottom: 16px;
}

.contacts-column--right .contact-card__section-title,
.contacts-column--right .contact-card__title {
  padding-right: 20px;
}

.contacts-column--right .contact-card__divider {
  margin-left: auto;
}

.contacts-column--right .contact-card__toggle {
  justify-content: flex-end;
}

.contacts-column--right .contact-card__content,
.contacts-column--right .contact-list,
.contacts-column--right .contact-name,
.contacts-column--right .contact-link {
  text-align: right;
}

.contact-card__section-title {
  padding: 0px 0px 20px 20px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}

.contact-card__title {
  padding: 8px 20px 0;
  min-height: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.contact-card__divider {
  position: relative;
  height: 1px;
  max-width: 175px;
  margin-top: 8px;
  margin-bottom: 4px;
  border-radius: 999px;
  overflow: visible;
}

.contact-card__divider--green {
  background: linear-gradient(
    90deg,
    #1fee89 0%,
    #00be62 50.29%,
    rgba(0, 190, 98, 0) 100%
  );
}

.contact-card__divider--blue {
  background: linear-gradient(
    270deg,
    #35b7ff 0%,
    #139ef1 50.29%,
    rgba(19, 158, 241, 0) 100%
  );
}

.contact-card__divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 999px;
  filter: blur(5px);
  opacity: 0.95;
}

.contact-card__divider--green::before {
  background: linear-gradient(
    90deg,
    rgba(31, 238, 137, 0.95) 0%,
    rgba(0, 190, 98, 0.75) 50.29%,
    rgba(0, 190, 98, 0) 100%
  );
}

.contact-card__divider--blue::before {
  background: linear-gradient(
    270deg,
    rgba(53, 183, 255, 0.95) 0%,
    rgba(19, 158, 241, 0.75) 50.29%,
    rgba(19, 158, 241, 0) 100%
  );
}

.contact-card__title--green {
  color: var(--green);
}

.contact-card__title--blue {
  color: var(--blue);
}

.contact-card__body {
  padding: 10px 20px 0;
}

.contact-card__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-btn);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  text-transform: lowercase;
}

.contact-card__toggle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-card__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: toggle-chevron-float 1.6s ease-in-out infinite;
}

.contact-card__toggle img {
  width: 10px;
  height: 10px;
  transition: transform 420ms ease;
}

.contact-card__toggle[aria-expanded="true"] .contact-card__toggle-icon {
  animation: none;
}

.contact-card__toggle[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.contact-card__content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    height 480ms ease,
    opacity 420ms ease,
    margin-top 420ms ease;
  margin-top: 0;
}

.contact-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li + li {
  margin-top: 10px;
}

.contact-name {
  margin-top: 2px;
  color: var(--name);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.contact-link {
  display: block;
  color: var(--number);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.manager-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.manager-box {
  font-weight: 700;
}

.manager-box:last-child {
  border-right: 0;
  text-align: right;
}

.manager-box__label {
  padding: 7px 20px;
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  color: var(--bg);
}

.manager-box__label--green {
  background: var(--green);
}

.manager-box__label--blue {
  background: var(--blue);
}

.manager-box__phone {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--number);
  padding-left: 20px;
  padding-right: 20px;
}

.manager-box__name {
  margin-top: 4px;
  font-size: 14px;
  color: var(--name);
  font-weight: 400;
  padding-left: 20px;
  padding-right: 20px;
}

.parts-strip {
  padding: 24px 20px 20px;
  text-align: center;
}

.parts-strip__title {
  position: relative;
  color: var(--violet);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.parts-strip__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 138px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(158, 106, 190, 0) 0%,
    rgba(158, 106, 190, 0.3) 18%,
    rgba(158, 106, 190, 0.95) 50%,
    rgba(158, 106, 190, 0.3) 82%,
    rgba(158, 106, 190, 0) 100%
  );
}

.parts-strip__title::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 138px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(158, 106, 190, 0) 0%,
    rgba(158, 106, 190, 0.12) 16%,
    rgba(158, 106, 190, 0.6) 50%,
    rgba(158, 106, 190, 0.12) 84%,
    rgba(158, 106, 190, 0) 100%
  );
  filter: blur(5px);
}

.parts-strip__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}

.parts-strip__copy {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: right;
}

.parts-strip__phone {
  display: flex;
  align-items: center;
  gap: 8px;
}

.parts-icon {
  width: 37px;
  height: 45px;
}

.parts-strip__phone-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.parts-strip__phone-number {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.parts-strip__phone-name {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.invite-strip {
  position: relative;
  overflow: hidden;
  background: var(--violet);
  white-space: nowrap;
  height: 32px;
}

.invite-strip__track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  min-width: max-content;
  animation: invite-marquee 12s linear infinite;
}

.invite-strip__item {
  padding: 0 16px;
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.cta-card {
  position: relative;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-card--secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(70, 70, 70, 0) 0%,
    #464646 21.54%,
    #464646 78%,
    rgba(70, 70, 70, 0) 100%
  );
}

.cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
}

.cta-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.cta-card__icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cta-card__label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.cta-card--primary .cta-card__label {
}

.cta-card--secondary .cta-card__label {
  max-width: 120px;
}

.bottom-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  background: #fff;
  overflow: hidden;
  min-height: 32px;
}

.bottom-tabs__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  text-align: center;
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.bottom-tabs__item--icon {
}

.bottom-tabs__icon {
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: url("image/svg/telegram.svg") center / cover no-repeat;
}

.bottom-tabs__divider {
  flex: 0 0 1px;
  align-self: center;
  height: 22px;
  margin: 0 14px;
  background: linear-gradient(
    180deg,
    rgba(70, 70, 70, 0) 0%,
    #cbcbcb 21.54%,
    #cbcbcb 78%,
    rgba(70, 70, 70, 0) 100%
  );
}

.site-footer {
  padding: 16px 10px 28px;
  color: #707070;
  font-size: 11px;
  text-align: center;
}


@media (min-width: 460px) {
  body {
    padding: 16px;
  }
  .manager-box__label--green {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
  }
  .manager-box__label--blue {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  .invite-strip {
    border-radius: 8px;

  }
  .bottom-tabs {
    border-radius: 8px;
  }

}

@keyframes invite-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes toggle-chevron-float {
  0%,
  100% {
    transform: translateY(-1px);
  }

  50% {
    transform: translateY(2px);
  }
}
