.pf-font-tester {
  background: transparent !important;
  color: #fff;
  padding: 84px 20px 96px;
}

.pf-font-tester *,
.pf-font-tester *::before,
.pf-font-tester *::after {
  box-sizing: border-box;
}

.pf-font-tester__hero {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.pf-font-tester__hero h1 {
  margin: 0;
  color: #f7f7f7;
  font-family: inherit;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.pf-font-tester__hero p {
  margin: 22px 0 0;
  color: #8d8d8d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.pf-font-tester__input {
  margin-top: 34px;
  min-height: 68px;
  width: min(100%, 680px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #141414;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  outline: none;
  padding: 16px 22px;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pf-font-tester__input::placeholder {
  color: #6f6f6f;
}

.pf-font-tester__input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
}

.pf-font-tester__grid {
  display: grid;
  gap: 64px 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 72px auto 0;
  max-width: 1480px;
}

.pf-font-tester__item {
  min-width: 0;
  text-align: center;
}

.pf-font-tester__link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.pf-font-tester__preview {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: clamp(32px, 3.2vw, 54px);
  justify-content: center;
  line-height: 1.08;
  min-height: 132px;
  overflow-wrap: normal;
  padding: 10px 4px;
  text-align: center;
  transition: color 180ms ease, transform 180ms ease;
  word-break: normal;
}

.pf-font-tester__link:hover .pf-font-tester__preview {
  color: #ffae02;
  transform: translateY(-2px);
}

.pf-font-tester__meta {
  color: #777;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 14px;
}

.pf-font-tester__name {
  color: #d5d5d5;
  font-weight: 900;
}

.pf-font-tester__meta span:not(.pf-font-tester__name) {
  display: none !important;
}

.pf-font-tester__pagination {
  display: flex;
  justify-content: center;
  margin-top: 76px;
}

.pf-font-tester__cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  text-align: center;
}

.pf-font-tester__button {
  align-items: center;
  background: #ff7a00;
  border-radius: 8px !important;
  color: #080808;
  display: inline-flex;
  font-size: 17px;
  font-weight: 900;
  justify-content: center;
  min-height: 58px;
  min-width: min(100%, 340px);
  padding: 0 30px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.pf-font-tester__button:hover {
  background: #fff;
  color: #080808;
  transform: translateY(-2px);
}

.pf-font-tester__pager-inner {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 14px;
  padding: 0;
}

.pf-font-tester__page,
.pf-font-tester__page-edge {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  min-height: 56px;
  min-width: 56px;
  padding: 0 18px;
}

.pf-font-tester__page {
  background: #101010;
  color: #f4f4f4;
}

.pf-font-tester__page.is-active {
  background: #ffae02;
  color: #111;
}

.pf-font-tester__page-edge {
  background: transparent;
  color: #f4f4f4;
  font-size: 40px;
  font-weight: 400;
  min-width: 36px;
  padding: 0;
}

.pf-font-tester__page-edge:disabled {
  cursor: not-allowed;
  opacity: 0.25;
}

.pf-font-tester__ellipsis {
  align-items: center;
  color: #8c8c8c;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  min-height: 56px;
  padding: 0 10px;
}

.pf-font-tester-notice {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  margin: 40px auto;
  max-width: 760px;
  padding: 20px;
  text-align: center;
}

@media (min-width: 1201px) {
  .pf-font-tester {
    left: 50%;
    margin: 0;
    max-width: 1520px;
    position: relative;
    transform: translateX(-50%);
    width: calc(100vw - 48px);
  }

  .pf-font-tester__grid {
    max-width: 1480px;
  }
}

@media (max-width: 1100px) {
  .pf-font-tester__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pf-font-tester {
    padding: 56px 16px 72px;
  }

  .pf-font-tester__grid {
    gap: 48px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 52px;
  }

  .pf-font-tester__preview {
    font-size: clamp(30px, 9vw, 46px);
    min-height: 116px;
  }

  .pf-font-tester__pager-inner {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .pf-font-tester__grid {
    grid-template-columns: 1fr;
  }
}
