/* Шрифт задаёт body, начертание — font-weight: поля и кнопки наследуют семейство. */

button, input, select, textarea {
  font-family: inherit;
}

/* кнопки и поля */

input:focus, textarea:focus {
  outline: none;
}

.zakaz, .zakaz2 {
  cursor: pointer;
}

.button, .btn {
  display: inline-block;
  color: var(--color-white);
  cursor: pointer;
  font-size: 16px;
  border: none;
  text-decoration: none;
  background: var(--color-accent);
  text-align: center;
  transition: all .15s ease-in-out;
  line-height: 1;
  padding: 17px 30px;
  border-radius: 0;
  text-shadow: none;
  font-weight: 400;
  box-shadow: none;
  margin: 0;
  box-sizing: border-box;
}

.button:hover, .btn:hover {
  background: #a00000;
  box-shadow: inset 1px 1px 6px 0px rgba(0, 0, 0, 0.3);
  color: var(--color-white);
}

input {
  height: auto;
  font-size: 16px;
  padding: 14px 20px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-weight: 400;
}

::placeholder {
  color: var(--color-grey);
  opacity: 1;
  transition: opacity 0.3s ease;
  font-weight: 300;
}

:focus::placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkbox {
  display: block;
}

.checkbox-label {
  position: relative;
  display: block;
  padding-left: 30px;
  user-select: none;
  cursor: pointer;
}

.checkbox-label:before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 2px;
  transition: background-color .1s ease;
}

.checkbox-label:after {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg);
  opacity: 0;
  transition: opacity .1s ease;
}

.checkbox-input:checked + .checkbox-label:before {
  background: var(--color-accent);
}

.checkbox-input:checked + .checkbox-label:after {
  opacity: 1;
}

.checkbox-input {
  display: none;
}

.control-group {
  margin: 0 0 15px;
}

:root .button, :root .btn {
  @media (width >= 980px) {
    padding: 17px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}

input[type=text], input[type=submit], textarea {
  @media (width < 980px) {
    -webkit-appearance: none;
  }
}
