:root {
  --primary-color: #ee4d2d;
  --white-color: #fff;
  --black-color: #000;
  --text-color: #333;
  --border-color: #dbdbdb;

  --header-height: 120px;
  --navbar-height: 34px;
  --header-with-search: calc(var(--header-height) - var(--navbar-height));
}

* {
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  line-height: 1.6rem;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

.grid {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.grid__full-width {
  width: 100%;
}

.grid__row {
  display: flex;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  animation: fadeIn linear 0.2s;
}

.modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal__body {
  --growth-from: 0;
  --growth-to: 1;
  position: relative;
  margin: auto;
  z-index: 1;
  animation: growth linear 0.2s;
}

/* Button style */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1.6rem;
  min-width: 124px;
  height: 34px;
  border: none;
  border-radius: 2px;
  font-size: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  padding: 0 12px;
  color: var(--text-color);
  background: none;
}

.btn.btn--size-s {
  height: 32px;
  font-size: 1.2rem;
  padding: 0 10px;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn--normal {
  color: var(--text-color);
}

.btn--primary:hover {
  background-color: #f05d41;
}

.btn--normal:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn:disabled {
  cursor: default;
  color: #eee;
  background-color: #888;
}

.btn + .btn {
  margin-left: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes growth {
  from {
    transform: scale(var(--growth-from));
  }
  to {
    transform: scale(var(--growth-to));
  }
}
