/*============================== COMMON STYLES ==============================*/
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #f6f6f6 0%, rgba(246, 246, 246, 0) 100%);
  color: #22343d;
}

input {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style-type: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

input,
textarea {
  outline: none;
}

.container {
  max-width: 411px;
  padding: 0 25px;
  margin: 0 auto;
}

.section-paddings {
  padding-top: 75px;
  padding-bottom: 75px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.section-title {
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 104px;
}

@media screen and (min-width: 1150px) {
  .container {
    max-width: 1150px;
    padding: 0 20px;
  }
}
/*============================== /COMMON STYLES ==============================*/

/*============================== HEADER STYLES ==============================*/
/*============================== MOBILE STYLES ==============================*/
.page-header {
  background-color: #ffffff;
}

.menu-list,
.header-login-btns {
  display: none;
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.header-logo-icon {
  margin-right: 8px;
}

.header-logo {
  font-weight: 700;
  font-size: 30px;
  line-height: 0.93;
  color: #173a56;
  display: inline-flex;
  align-items: center;
}

@media screen and (max-width: 1149px) {
  .header-logo {
    padding: 21px 0;
  }
}

.mobile-menu-btn {
  padding: 0;
  width: 28px;
  height: 31px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: inherit;
  transition: fill 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  fill: #02897a;
}
/*============================== /MOBILE STYLES ==============================*/

/*============================== DESKTOP STYLES ==============================*/
@media screen and (min-width: 1150px) {
  .mobile-menu-btn {
    display: none;
  }

  .menu {
    display: flex;
    align-items: center;
  }

  .header-logo {
    margin-right: 237px;
  }

  .menu-list {
    display: flex;
    gap: 30px;
  }

  .menu-link {
    display: block;
    line-height: 1.75;
    padding-top: 26px;
    padding-bottom: 26px;
    transition: color 1200ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .menu-link:hover,
  .menu-link:focus {
    color: #02897a;
  }

  .current {
    font-weight: 600;
  }

  .header-login-btns {
    display: flex;
    gap: 24px;
    align-items: center;
  }

  .sign-btn {
    background-color: transparent;
    padding: 0;
    border: 1px solid #bcd0e5;
    border-radius: 4px;
    width: 102px;
    height: 42px;
    font-weight: 600;
    text-align: center;
    color: #173a56;
    transition: color 1200ms cubic-bezier(0.19, 1, 0.22, 1),
      background-color 1200ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .sign-btn:hover,
  .sign-btn:focus {
    background-color: #02897a;
    color: #ffffff;
  }

  .black-mode-btn {
    border: none;
    background-color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 1200ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .black-mode-btn:hover,
  .black-mode-btn:focus {
    background-color: #02897a;
  }
}
/*============================== /DESKTOP STYLES ==============================*/
/*============================== /HEADER STYLES ==============================*/

/*========================== FOOTER STYLES ==========================*/
/*============================== MOBILE ==============================*/
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.footer-logo-icon {
  margin-right: 16px;
}

.footer-sm-list {
  display: flex;
  justify-content: center;
  column-gap: 16px;
  margin-bottom: 32px;
}

.footer-sm-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #edfffc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-sm-icons {
  fill: none;
  stroke: #111111;
  transition: stroke 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-sm-link:hover .footer-sm-icons,
.footer-sm-link:focus .footer-sm-icons {
  stroke: #02897a;
}

.footer-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-menu-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer-menu-link {
  font-size: 16px;
  line-height: 2.2;
  text-align: center;
  transition: color 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-menu-link:hover,
.footer-menu-link:focus {
  color: #02897a;
}

.footer-label {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  display: block;
  margin-bottom: 34px;
}

.pnone-input-wrap {
  position: relative;
  width: 325px;
  margin: 0 auto 21px;
}

.footer-input {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #02897a;
  outline: none;
  border: 1px solid #bcd0e5;
  border-radius: 4px;
  width: 100%;
  height: 48px;
  display: block;
  background-color: transparent;
  padding-left: 42px;
  transition: border 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-input::placeholder {
  line-height: 1.75;
  color: #02897a;
}

.footer-input:focus {
  border: 1px solid #02897a;
}

.phone-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  fill: #bcd0e5;
  transition: fill 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-input:focus + .phone-input-icon {
  fill: #02897a;
}

.footer-submit-btn {
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #02897a;
  border: 1px solid #bcd0e5;
  border-radius: 4px;
  min-width: 131px;
  height: 39px;
  background-color: #ffffff;
  display: block;
  margin: 0 auto 44px;
  transition: background-color 1200ms cubic-bezier(0.19, 1, 0.22, 1),
    color 1200ms cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-submit-btn:hover,
.footer-submit-btn:focus {
  background-color: #02897a;
  color: #ffffff;
}

.footer-text {
  font-size: 16px;
  line-height: 1.88;
  text-align: center;
}
/*============================== /MOBILE ==============================*/

/*============================== DESKTOP ==============================*/
@media screen and (min-width: 1150px) {
  .footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .footer-logo {
    margin-bottom: 18px;
  }

  .footer-sm-list {
    max-width: 152px;
    justify-content: space-between;
    margin: 0;
  }

  .footer-menu-list {
    flex-direction: row;
    align-items: start;
    column-gap: 129px;
    margin: 0;
  }

  .footer-form {
    max-width: 325px;
  }

  .pnone-input-wrap {
    margin-bottom: 25px;
  }

  .footer-label {
    text-align: start;
    margin-bottom: 30px;
  }

  .footer-submit-btn {
    margin: 0;
  }
}
/*============================== /DESKTOP ==============================*/
/*========================== /FOOTER STYLES ==========================*/

/*========================== MOBILE MENU =====================*/
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);

  opacity: 0;
  pointer-events: none;
  visibility: hidden;

  transition: opacity 250ms linear, visibility 250ms linear;
}

.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
  background-color: #ffffff;
  padding: 100px 30px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: transparent;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: fill 250ms linear;
}

.mobile-close-btn:hover,
.mobile-close-btn:focus {
  fill: #028910;
}

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

.mobile-nav-link {
  font-weight: 400;
  font-size: 26px;
  line-height: 1.75;
  transition: color 250ms linear;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: #02897a;
}

.current {
  font-weight: 600;
}

.mobile-sm-list {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.mobile-sm-link {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: #02897a;
  fill: none;
  stroke: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 250ms linear, stroke 250ms linear,
    border 250ms linear;
}

.mobile-sm-link:hover,
.mobile-sm-link:focus {
  stroke: #02897a;
  background-color: #ffffff;
  border: 3px solid #02897a;
}

@media screen and (min-width: 1158px) {
  .menu-backdrop {
    display: none;
  }
}
/*========================== /MOBILE MENU =====================*/
