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

body {
  font-family: "Montserrat", sans-serif;
  background-color: #fafafa;
  color: #111;
}

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

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

ul {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
  color: currentColor;
}

input {
  font-family: inherit;
}

fieldset {
  padding: 0;
  margin: 0;
  border: none;
}

.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;
}

/* ---containers--- */

.container {
  max-width: 1166px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 1094px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

/* ---header--- */

.header {
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 111%;
  letter-spacing: -0.03em;
  color: #111;
  padding: 28px 0;
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  margin-right: 474px;
}

.header-logo-icon {
  fill: transparent;
  stroke: #fd9222;
}

.header-logo span {
  font-style: italic;
}

.header-list {
  display: flex;
  gap: 24px;
}

.header-list-item {
}

.header-item-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 114%;
  letter-spacing: -0.02em;
  color: #111;
  padding: 32px 0;
  position: relative;
  transition: color 300ms ease;
}

/* .active::after {
  content: "";
  width: 100%;
  height: 4px;
  display: block;
  background-color: #fd9222;
  border-radius: 4px;
  position: absolute;
  left: 0;
  bottom: 0;
} */

.header-item-link:hover,
.header-item-link:focus,
.footer-menu-link:hover,
.footer-menuI-link:focus {
  color: #fd9222;
}

.header-soc-list {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.header-soc-item {
  padding-top: 28px;
  padding-bottom: 28px;
  /* width: 44px;
  height: 44px; */
}
/* .header-soc-link {
  width: 100%;
  height: 100%;
  width: 44px;
  height: 44px;
  background-color: #fd9222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
} */
.header-soc-icon {
  fill: transparent;
  stroke: #111;
  transition: stroke 300ms ease;
}

.header-soc-icon:hover,
.header-soc-icon:focus {
  stroke: #fd9222;
}

/* .header-soc-icon {
  fill: #111;
} */

/* ---hero--- */

.hero {
  background-color: #1e1823;
  background-image: linear-gradient(
      rgba(30, 24, 35, 0.4),
      rgba(30, 24, 35, 0.4)
    ),
    url(../images/hero-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 375px 72px 46px;
  border-radius: 30px;
  /* margin-bottom: 72px; */
  max-width: 1200px;
  margin: 0 auto 72px;
}

.hero-title {
  font-weight: 500;
  font-size: 28px;
  line-height: 121%;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 484px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  align-items: center;
}

.hero-btn {
  border-radius: 100px;
  padding: 14px 40px;
  /* width: 144px; */
  /* height: 45px; */
  background-color: #fd9222;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: none;
  margin-right: 14px;
  cursor: pointer;
  /* transition-property: background-color, color;
  transition-duration: 800ms;
  transition-delay: 800ms;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275); */
  transition: background-color 300ms ease, color 300ms ease;
}

.hero-btn:hover,
.hero-btn:focus {
  background-color: #fcf1e0;
  color: #fd9222;
}

.hero-link {
  border: 1px solid #fff;
  border-radius: 100px;
  padding: 14px 40px;
  /* width: 183px; */
  /* height: 45px; */
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: color 300ms ease, border-color 300ms ease;
}

.hero-link:hover,
.hero-link:focus {
  color: #fd9222;
  border-color: #fd9222;
}

.hero-scroll {
  font-weight: 500;
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.03em;
  color: #fff;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-scroll-btn {
  width: 38px;
  height: 38px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  fill: #fd9222;
}

/* ---benefits--- */

.benefits {
  background-color: #1e1823;
  padding-top: 50px;
  padding-bottom: 50px;
}

.benefits-title {
}

.benefits-list {
  display: flex;
  gap: 70px;
}

.benefits-list-item {
  width: calc((100% - 2 * 70px) / 3);
  padding-right: 18px;
}

.benefits-list-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.benefits-icons {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 15px; */
  margin-bottom: 32px;
}

.benefits-icon {
  /* fill: transparent; */
  /* stroke: #fd9222; */
  fill: #fd9222;
}

.benefits-item-subtitle {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  margin-bottom: 18px;
}

.benefits-item-text {
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---ingredients--- */

.ingredients {
  padding-top: 100px;
  padding-bottom: 50px;
}

.ingredients-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  max-width: 411px;
  margin: 0 auto 28px;
}

.ingredients-title span {
  color: #fd9222;
}

.ingredients-text {
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 486px;
  margin: 0 auto 50px;
}
.ingredients-list {
  display: flex;
  gap: 19px;
}
.ingredients-item {
  border: 1px solid #fd9222;
  border-radius: 15px;
  padding: 28px 32px;
  width: calc((100% - 3 * 19px) / 4);
  position: relative;
  overflow: hidden;
}

.ingredients-item:hover .ingredients-cover {
  transform: translateY(0);
}

.ingredients-cover-wrapper {
  /* position: relative;
  overflow: hidden; */
}

.ingredients-img {
  margin: 0 auto 36px;
  /* margin-bottom: 36px; */
  /* position: relative; */
  /* overflow: hidden; */
}

.ingredients-cover {
  position: absolute;
  background-color: #fff;

  /* border: none; */
  /* color: #fff; */
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
  /* color: #111; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: auto;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.ingredients-cover-subtitle {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ingredients-cover-buttons {
  display: flex;
  gap: 6px;
  padding-bottom: 16px;
}

.ingredients-cover-btn {
  border-radius: 35px;
  padding: 6px 16px;
  width: 81px;
  height: 24px;
  background-color: #fd9222;
  border: none;
  font-weight: 400;
  font-size: 10px;
  line-height: 120%;
  color: #fff;
  transition: background-color 300ms ease, color 300ms ease;
}

.ingredients-cover-btn:hover,
.ingredients-cover-btn:focus {
  background-color: #fcf1e0;
  color: #fd9222;
}

.ingredients-cover-link {
  border: 1px solid #fd9222;
  border-radius: 35px;
  padding: 6px 16px;
  width: 93px;
  height: 24px;
  background-color: #fafafa;
  font-weight: 400;
  font-size: 10px;
  line-height: 120%;
  color: #111;
  transition: background-color 300ms ease, color 300ms ease;
}

.ingredients-cover-link:hover,
.ingredients-cover-link:focus {
  background-color: #fd9222;
  color: #fff;
}

.ingredients-subtitle {
  font-weight: 600;
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111;
}

/* ---made--- */

.made {
  padding-top: 50px;
  padding-bottom: 50px;
}

.made-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  max-width: 205px;
  margin: 0 auto 50px;
}

.made-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.made-title span {
  color: #fd9222;
}

.made-img {
  /* margin-right: 20px; */
}

.made-content-text {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: #fff;
  border-radius: 15px;
}
.made-subtitle {
  font-weight: 600;
  font-size: 18px;
  line-height: 133%;
  max-width: 350px;
  margin-bottom: 28px;
}
.made-list {
}
.made-item {
  position: relative;
  padding-left: 16px;
}

.made-item:not(:last-child) {
  margin-bottom: 24px;
}

.made-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #4c4c4c;
  border: 1px solid #ecedec;
  position: absolute;
  border-radius: 50%;
  left: 0;
  top: 5px;
}

.made-text {
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
}

/*---reviews---*/

.reviews {
  padding-top: 50px;
  padding-bottom: 100px;
}

.reviews-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  max-width: 268px;
  margin: 0 auto 90px;
}

.reviews-title span {
  color: #fd9222;
}

.reviews-list {
  display: flex;
  gap: 28px;
}

.reviews-item {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 15px;
  /* width: 360px; */
  /* height: 200px; */
  box-shadow: 0 9px 100px 0 rgba(17, 17, 17, 0.03);
  background-color: #fff;
  width: calc((100% - 2 * 28px) / 3);
  padding: 56px 24px 24px 24px;
  margin-bottom: 50px;
  position: relative;
}

.reviews-wrapper {
}

.reviews-img {
  margin: 0 auto;
  /* position: absolute; */
  /* bottom: 50px; */
  /* left: 140px; */
  position: absolute;
  bottom: 140px;
  /* left: 140px; */
  left: 50%;
  transform: translate(-50%);
  border-radius: 50%;
  /* overflow: hidden; */
}

.reviews-subtitle {
  font-weight: 600;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  margin-bottom: 24px;
}

.reviews-text {
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
  text-align: center;
  color: rgba(17, 17, 17, 0.7);
}

.reviews-btn {
  border: 1px solid #fd9222;
  border-radius: 100px;
  padding: 14px 40px;
  /* width: 222px; */
  /* height: 50px; */
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}

.reviews-btn:hover,
.reviews-btn:focus {
  background-color: #fd9222;
  color: #fff;
}

/* ---footer--- */

.footer {
  background-color: #1e1823;
  padding-top: 50px;
  padding-bottom: 86px;
}

.footer-info {
  display: flex;
  padding-bottom: 50px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  font-weight: 500;
  font-size: 28px;
  line-height: 121%;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 300px;
}

.footer-text span {
  color: #fd9222;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.footer-subtitle {
  font-weight: 500;
  font-size: 14px;
  line-height: 129%;
  /* text-align: center; */
  color: #fff;
  margin-bottom: 14px;
}
.footer-contacts {
  font-style: normal;
}
.footer-contacts-list {
}
.footer-contacts-item {
}

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

.footer-contacts-link {
  font-size: 14px;
  line-height: 129%;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-navigation {
}

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

.footer-menu-item {
}

.footer-menu-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 114%;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 300ms ease;
}
.footer-form {
  display: flex;
  /* gap: 8px; */
}
.footer-input {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  /* padding: 13px 24px; */
  width: 313px;
  height: 52px;
  background-color: transparent;
  padding-left: 24px;
  padding-right: 24px;
  margin-right: 8px;
}

.footer-input::placeholder {
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.3);
}

.footer-btn {
  border-radius: 100px;
  padding: 17px 40px;
  /* width: 137px; */
  /* height: 52px; */
  background-color: #fd9222;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease;
}

.footer-btn:hover,
.footer-btn:focus {
  background-color: #fcf1e0;
  color: #fd9222;
}

/* ---modal--- */

.backdrop {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(55, 55, 55, 0.5);
  /* display: flex;
  justify-content: center;
  align-items: center; */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.modal {
  width: 517px;
  min-height: 794px;
  background-color: #fafafa;
  padding: 40px;
  border-radius: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-open-btn {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 28px;
  height: 28px;
  background-color: transparent;
  border: none;
  padding: 7px;
  cursor: pointer;
}

.modal-subtitle {
  font-weight: 600;
  font-size: 24px;
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 298px;
  margin-bottom: 40px;
}

.modal-subtitle span {
  color: #fd9222;
}

.modal-input {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.05);
  /* border: 1px solid #fd9222; */
  border-radius: 13px;
  /* padding: 22px 24px; */
  height: 68px;
  padding-left: 62px;
  background-color: transparent;
  outline: transparent;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: #fd9222;
}

.modal-input:focus + .modal-icon {
  stroke: #fd9222;
}

.modal-btn {
  border-radius: 100px;
  padding: 14px 40px;
  width: 117px;
  height: 45px;
  background-color: #fd9222;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.modal-label {
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.3);
  display: block;
  margin-bottom: 8px;
}

.modal-field {
  margin-bottom: 18px;
}

.input-wrapper {
  position: relative;
}

.modal-icon {
  fill: transparent;
  stroke: #111;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-textarea {
  width: 100%;
  height: 137px;
  background-color: transparent;
  resize: none;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  padding: 22px 24px;
  outline: transparent;
}

.modal-textarea::placeholder {
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.3);
}

.modal-privacy-text {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.6);
  display: flex;
  align-items: center;
  /* position: relative; */
}

/* Варіант чекбокса */
/* .modal-privacy-text::before {
  content: "";
  width: 40px;
  height: 22px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50px;
  margin-right: 12px;
  transition-duration: 300ms;
}

.modal-privacy-text::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: #4c4c4c;
  border-radius: 50%;
  transition-duration: 300ms;
}

.modal-privacy:checked + .modal-privacy-text::after {
  transform: translate(16px);
  background-color: #fd9222;
}

.modal-privacy:checked + .modal-privacy-text::before {
  background-color: #ffc587;
} */

.modal-privacy-text span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
}

.modal-privacy:checked + .modal-privacy-text span {
  background-color: #fd9222;
  border: none;
  fill: #fff;
}

/* input::placeholder {
  color: teal;
  font-weight: 700;
} */

/* input:hover::placeholder,
input:focus::placeholder {
  color: #fd9222;
} */

/* input:placeholder-shown {
  border-color: #fd9222;
} */

/* form:focus-within {
  color: blue;
} */
