.btn-grid {
  --gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.box-btn {
  box-sizing: border-box;
  min-width: 0;
  flex: 0 1 calc(50% - var(--gap));
  max-width: calc(50% - var(--gap));
}

@media (min-width: 900px) {
  .box-btn {
    flex-basis: calc(25% - var(--gap));
    max-width: calc(25% - var(--gap));
  }
}

.box-btn {
  --pad-y: 10px;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: var(--pad-y) 16px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
  background: #f3f3f3;
  color: #1c1c1c;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

a.box-btn,
a.box-btn:hover,
a.box-btn:focus,
a.box-btn:visited {
  text-decoration: none;
}


.box-btn:hover,
.box-btn:focus-visible {
  border-color: #111;
  background: #fff;
}


.text-btn {
  display: inline-flex;
  align-items: center;
  margin: 0 0.2em;
  padding: 0.02em 0.55em 0.04em;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  background: #cfc;
  color: #1c1c1c;
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  vertical-align: text-bottom;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.text-btn:hover,
.text-btn:focus-visible {
  border-color: #111;
  background: #fff;
}

.text-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.text-btn__arrow {
  margin-right: 0.35em;
  font-size: 0.9em;
  line-height: 1;
}
