body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
}

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  width: 1150px;
  padding: 0 20px;
  margin: 0 auto;
}

/* !================= HEADER ================= */
.main-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navigation {
  display: flex;
  gap: 236px;
  align-items: center;
}

.main-header-logo {
  font-weight: 700;
  font-size: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  /* line-height: 28px; */
  line-height: 0.93;
  color: #173a56;
}

.main-header-list {
  display: flex;
  column-gap: 30px;
  align-items: center;
}

.main-header-link {
  font-weight: 400;
  font-size: 16px;
  padding-bottom: 26px;
  padding-top: 26px;
  display: block;
  line-height: 1.75;
  color: #22343d;

  transition-property: background-color, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
  }
}

.current {
  font-weight: 600;
}

.main-header-list-btn {
  display: flex;
  align-items: center;
  gap: 21px;
}

.theme-btn {
  background: #f3f3f3;
  border-radius: 100px;
  max-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  transition-property: box-shadow, transform;
  transition-duration: 300ms;
  transition-delay: 0;
  transition-timing-function: ease;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

.theme-btn-svg {
  fill: #02897a;
}

.main-header-btn {
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  height: 42px;
  border-radius: 4px;
}

/* .main-header-btn:hover,.main-header-btn:focus{
    background-color: #008080;
} */
.sign-in {
  color: #173a56;
  width: 105px;
  border: 1px solid #bcd0e5;
  background: #fff;

  transition-property: box-shadow, background-color, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    background-color: #e0dfdf;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

.sign-up {
  color: #fff;
  width: 113px;
  background: #02897a;

  transition-property: color, box-shadow, background-color, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    background-color: #5cbab4;
    color: white;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

/* !=============== SECTION CLIENT  */
.client .container {
  display: flex;
  justify-content: center;
  padding-bottom: 117px;
}

.client-title {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 50px;

  font-weight: 700;
  font-size: 40px;
  color: #22343d;
}

.client-list {
  display: flex;
  gap: 64px;
}

.client-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-img {
  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.5);
  }
}

/* !=============== SECTION Product  */
.product {
  background-color: #f5f5f5;
  width: 100%;
}

.product .container {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 68px;
}

.product-title {
  font-weight: 700;
  font-size: 34px;
  text-align: center;
  color: #22343d;
  margin-bottom: 50px;
  margin-top: 24px;
}

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

.product-item {
  border: 1px solid #dedede;
  border-radius: 10px;
  padding-top: 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.box-img {
  border-radius: 19px;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);

  display: flex;
  justify-content: center;
  align-items: center;

  transition-property: box-shadow, transform;
  transition-duration: 200ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.3);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

.green {
  background: #02897a;
}

.blue {
  background: #4d8dff;
}

.red {
  background: #f03e3d;
}

.product-use {
  fill: white;
}

.product-item-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.375;
  letter-spacing: 0em;
  text-align: center;
  color: #22343d;
  margin-bottom: 16px;
  margin-top: 32px;
  padding-right: 28px;
  padding-left: 28px;
}

.product-item-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6875;
  letter-spacing: 0.01em;
  text-align: center;
  color: #22343d;
  padding-bottom: 34px;
  padding-right: 37px;
  padding-left: 37px;
}

/* !=============== SECTION Work  */
.work .container {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
}

.work-title {
  font-weight: 700;
  font-size: 34px;
  text-align: center;
  color: #22343d;
  margin-bottom: 73px;
}

.work-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 438px;
}

.work-item {
  display: flex;
  gap: 89px;
  margin-bottom: 100px;
}

.work-img {
  width: 1021px;
  height: 279px;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(0.9);
  }
}

.work-item-text {
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  color: #22343d;
}

.work-item-title {
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: #22343d;
  margin: 16px 0;
}

.work-item-dsc {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: #22343d;
}

.button-work {
  font-weight: 600;
  font-size: 18px;
  color: #fff;

  border-radius: 8px;
  width: 224px;
  height: 44px;
  background: #02897a;

  margin: 0 auto;

  transition-property: color, box-shadow, background-color, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover {
    transform: scale(1.1);
    background-color: #5cbab4;
    color: white;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

/* !=============== SECTION Offer  */
.offer {
  background: linear-gradient(180deg, #f5f5f5 0%, rgba(245, 245, 245, 0) 100%);
  margin-top: 115px;
}

.offer .container {
  display: flex;
  flex-direction: column;
}

.offer-title {
  font-weight: 700;
  font-size: 32px;
  color: #22343d;
  margin-top: 35px;
  margin-bottom: 93px;
  text-align: center;
}

.offer-list {
  display: flex;
  justify-content: space-between;
  justify-content: center;
  gap: 227px;
}

.offer-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  justify-content: center;
  align-items: center;
}

.offer-img {
  max-width: 150px;
  margin-bottom: 27px;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(0.9);
  }
}

.offer-item-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.16667;
  color: #000;
  margin-bottom: 16px;
}

.offer-dsc-item {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.77778;
  text-align: center;
  color: #22343d;
}

.offer-link {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
  color: #000;
}

/* !=============== SECTION Join  */
.join-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  gap: 10px;

  background-color: #02897a;
  border-radius: 32px;
  width: 968px;
  height: 345px;

  margin-top: 100px;
}

.join-text {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.51;
  color: #fff;
  max-width: 510px;
  margin-bottom: 46px;
  margin-left: 51px;
}

.join-btn {
  border-radius: 8px;
  width: 150px;
  height: 50px;
  background: #fff;

  font-weight: 600;
  font-size: 20px;
  color: #02897a;

  margin-left: 51px;

  transition-property: color, box-shadow, background-color, transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    background-color: #5cbab4;
    color: white;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  }
}

/* !=============== FOOTER =============== */
/* !================= FOOTER ================= */
.footer > .container {
  display: flex;
  margin-top: 100px;
  justify-content: center;
}

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

.footer-img-logo {
  width: 39px;
  height: 36px;
}

.footer-social-item {
  background-color: #edfffc;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(2);
  }
}

.footer-social-list {
  display: flex;
  margin-top: 18px;
  gap: 16px;
}

.footer-social-use {
  stroke: #02897a;
  fill: transparent;
}

.footer-resource-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #22343d;
  margin-bottom: 8px;
  margin-left: 146px;
  margin-right: 156px;
}

.footer-resource-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 2.18;
  color: #22343d;
  margin-left: 146px;
  margin-right: 156px;

  &:hover,
  &:focus,
  &:active {
    color: #02897a;
  }
}

.footer-legal-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #22343d;
  margin-bottom: 8px;
}

.footer-legal-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 2.18;
  color: #22343d;

  &:hover,
  &:focus,
  &:active {
    color: #02897a;
  }
}

.footer-newsletter-container {
  display: flex;
  flex-direction: column;
  margin-left: 83px;
}

.footer-newsletter-text {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #22343d;
  max-width: 280px;
}

.footer-last-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.87;
  color: #22343d;
  margin-top: 10px;
  margin-bottom: 40px;

  display: flex;
  justify-content: center;
}

.fotter-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-input-box {
  position: relative;
}

.footer-form-svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 13px;
}

.footer-form-use {
  fill: #02897a;
}

.footer-input {
  border: 1px solid #bcd0e5;
  border-radius: 4px;
  width: 325px;
  height: 48px;
  outline: none;

  padding: 10px 42px;
  border: 1px solid #bcd0e5;

  &:hover,
  &:focus {
    border: 2px solid #5cbab4;
  }

  &::placeholder {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #02897a;
  }

  &:hover::placeholder {
    color: #5cbab4;
  }
}

.footer-newsletter-btn {
  width: 131px;
  height: 39px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #fff;
  background: #02897a;
  border-radius: 4px;
  border: none;

  transition-property: box-shadow, transform, color;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.25);
    background-color: #5cbab4;
  }
}

/* !================= MODAL - HEADER - SIGN-IN =================*/
.backdrop-sign-in {
  position: fixed;
  background-color: rgba(46, 47, 66, 0.4);
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  justify-content: center;
  align-items: center;
}

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

.modal-sign-in {
  width: 500px;
  min-height: 450px;
  border-radius: 40px;
  background-color: #fcfcfc;

  position: relative;

  padding: 72px 16px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  justify-content: center;
}

.modal-sign-in-close-svg {
  fill: #02897a;

  &:hover {
    fill: #5cbab4;
  }
}

.modal-sign-in-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 250ms ease;

  position: absolute;
  top: 40px;
  right: 40px;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.5);
  }
}

.modal-sign-in-mail-box,
.modal-sign-in-password-box {
  position: relative;
}

.modal-sign-in-mail-svg,
.modal-sign-in-password-svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  top: 40%;
  transform: translateY(-40%);
  fill: #02897a;
}

.modal-sign-in-form {
  display: flex;
  flex-direction: column;
}

.modal-sign-in-title {
  text-align: center;
  margin-bottom: 20px;

  font-weight: 600;
  font-size: 32px;
  line-height: 1.51;
  color: #02897a;
}

.modal-sign-in-input {
  border: 1px solid #bcd0e5;
  border-radius: 30px;
  width: 325px;
  height: 48px;
  padding: 10px 42px;
  margin-bottom: 10px;
  outline: none;

  &::placeholder {
    color: #02897a;
  }
}

.modal-sign-in-input:focus {
  border-color: #02897a; /* зелений при фокусі */
  outline: none; /* забирає стандартну синю обводку */
}

.modal-sign-in-label-checkbox {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 20px;
}
.modal-sign-in-input-checkbox {
  margin-right: 10px;
}

.modal-sign-in-text {
  color: #22343d;
}

.modal-sign-in-btn {
  font-size: 18px;
  font-weight: 500;
  border: 1px solid #bcd0e5;
  border-radius: 30px;
  width: 325px;
  height: 48px;

  padding: 10px 42px;
  background-color: #02897a;
  color: white;

  transition-property: transform, background-color;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
    background-color: #5cbab4;
  }
}

/* !================= MODAL - HEADER - SIGN-UP =================*/
.backdrop-sign-up {
  position: fixed;
  background-color: rgba(46, 47, 66, 0.4);
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  justify-content: center;
  align-items: center;
}

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

.modal-sign-up {
  width: 500px;
  min-height: 450px;
  border-radius: 40px;
  background-color: #fcfcfc;

  position: relative;

  padding: 72px 16px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  justify-content: center;
}

.modal-sign-up-close-svg {
  fill: #02897a;

  &:hover {
    fill: #5cbab4;
  }
}

.modal-sign-up-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 250ms ease;

  position: absolute;
  top: 40px;
  right: 40px;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.5);
  }
}

.modal-sign-up-mail-box,
.modal-sign-up-password-box {
  position: relative;
}

.modal-sign-up-mail-svg,
.modal-sign-up-password-svg {
  position: absolute;
  left: 13px;
  z-index: 1;
  top: 40%;
  transform: translateY(-40%);
  fill: #02897a;
}

.modal-sign-up-form {
  display: flex;
  flex-direction: column;
}

.modal-sign-up-title {
  text-align: center;
  margin-bottom: 20px;

  font-weight: 600;
  font-size: 32px;
  line-height: 1.51;
  color: #02897a;
}

.modal-sign-up-input {
  border: 1px solid #bcd0e5;
  border-radius: 30px;
  width: 325px;
  height: 48px;
  padding: 10px 42px;
  margin-bottom: 10px;
  outline: none;

  &::placeholder {
    color: #02897a;
  }
}

.modal-sign-up-input:focus {
  border-color: #02897a; /* зелений при фокусі */
  outline: none; /* забирає стандартну синю обводку */
}

.modal-sign-up-text {
  color: #22343d;
}

.modal-sign-up-btn {
  font-size: 18px;
  font-weight: 500;
  border: 1px solid #bcd0e5;
  border-radius: 30px;
  width: 325px;
  height: 48px;

  padding: 10px 42px;
  background-color: #02897a;
  color: white;

  transition-property: transform;
  transition-duration: 300ms;
  transition-timing-function: ease;
  transition-delay: 0;

  &:hover,
  &:focus,
  &:active {
    transform: scale(1.1);
  }
}

.modal-sign-up-text {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-sign-up-link {
  color: 5cbab4;
  text-decoration: underline;
}
