:root {
  --header-footer-text-color: #ffffff;
  --hover-color: #2196f3;
  --main-text-color: #2f303a;
}

html {
  box-sizing: border-box;
}

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

ul {
  list-style: none;
}

/* body {
  padding-top: 94.699px;
} */

body,
h2,
h3,
a {
  color: var(--main-text-color);
  font-family: "Roboto", sans-serif;
  /* font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 1.14; */
}

a {
  text-decoration: none;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.16;
}

.container {
  width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-weight: bold;
  font-size: 36px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 25px;
}

.main-text {
  font-weight: normal;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-family: "Roboto", sans-serif;
  color: var(--main-text-color);
}

/* Header */

/* .page-header {
  position: fixed;
  top: 0;
  background-color: var(--main-text-color);
  width: 100%;
} */

.page-header-cont {
  display: flex;
  justify-content: space-between;
}

.header-nav {
  display: flex;
}

.header-nav > .header-logo-link {
  margin-right: 92.5px;
  color: var(--main-text-color);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav > a:hover {
  color: var(--hover-color);
}

.header-logo {
  width: 115px;
  height: 90px;
  fill: currentColor;
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-list > li:not(:last-child) {
  margin-right: 55.3px;
}

.nav-list-item > a {
  color: var(--main-text-color);
  text-transform: uppercase;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list-item > a:hover {
  color: var(--hover-color);
}

.contacts-list {
  display: flex;
  align-items: center;
}

.contacts-list > li:not(:last-child) {
  margin-right: 51.25px;
}

.contacts-list-item > a {
  color: #757575;
  display: flex;
  align-items: center;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contacts-list-item > a:hover {
  color: var(--hover-color);
}

.contacts-list-item svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

/* Modal */

.hero button {
  background-color: var(--hover-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.875;
  width: 200px;
  padding: 10px 32px;
  border-radius: 4px;
  border: none;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero button:hover {
  cursor: pointer;
  background-color: #1c84d4;
}

.fixed-button {
  background-color: var(--hover-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.875;
  height: 100px;
  width: 100px;
  padding: 0;
  border-radius: 50%;
  border: none;

  position: fixed;
  bottom: 20px;
  right: 20px;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-button:hover {
  cursor: pointer;
  background-color: #1c84d4;
}

.backdrop {
  background-color: rgba(0, 0, 0, 0.2);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 999;

  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;

  width: 1200px;
  background-color: #ffffff;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14),
    0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 20px 46.5px;
}

.close-modal {
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: block;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);

  position: absolute;
  top: 8px;
  right: 8px;
}

.close-icon {
  width: 18px;
  height: 18px;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
}
/*
.close-icon > path {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
} */

.close-modal:hover .close-icon {
  fill: var(--hover-color);
  cursor: pointer;
}

.modal form {
  display: flex;
  justify-content: space-between;
}

.modal li:not(:last-child) {
  margin-bottom: 25px;
}

.modal h2 {
  text-align: center;
  margin-bottom: 25px;
}

.modal p {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.appointment-input input {
  margin-right: 5px;
}

.appointment-input label {
  text-transform: capitalize;
  display: block;
  display: flex;
  align-items: center;
}

.services-input label {
  text-transform: capitalize;
  margin-bottom: 20px;
  display: block;
  display: flex;
  align-items: center;
}

.services-input input {
  margin-right: 5px;
}

.modal input[type="submit"] {
  background-color: var(--hover-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.875;
  width: 200px;
  padding: 10px 32px;
  border-radius: 4px;
  border: none;

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal input[type="submit"]:hover {
  cursor: pointer;
  background-color: #1c84d4;
}

/* Footer */

.page-footer {
  /* margin: 0 auto;
  max-width: 1600px; */
  background-color: #2f303a;
}

.page-footer > .container {
  display: flex;
  justify-content: space-between;
  padding: 50px 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-left > a {
  color: #ffffff;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-left > a:hover {
  color: var(--hover-color);
}

.footer-logo {
  width: 115px;
  height: 90px;
  fill: currentColor;
}

.footer-logo .logo-text {
  stroke: #ffffff;
}

.footer-contacts-item:not(:last-child) {
  margin-bottom: 20px;
}

.footer-contacts-item:first-child > a {
  color: #ffffff;
  text-align: center;
}

.footer-contacts-item > a {
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contacts-item > a:hover {
  color: var(--hover-color);
}

.footer-contacts-item svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.social-links-title {
  text-align: center;
  margin-bottom: 25px;
}

.social-links > h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.16;
  color: #ffffff;
  text-transform: uppercase;
}

.social-links-list {
  display: flex;
}

.social-links-item {
  margin-right: 10px;
}

.social-links-item a {
  color: #ffffff;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links-item a:hover {
  color: var(--hover-color);
}

.social-links-item svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
