/* ================ COMMON STYLES ================ */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
}

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

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

.accent-color {
  color: #fd9222;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
}

.container {
  max-width: 1168px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

.section-paddings {
  padding-top: 50px;
  padding-bottom: 50px;
}
/* ================ /COMMON STYLES ================ */

/* ================ PAGE HEADER STYLES ================ */
.page-header-container {
  display: flex;
  align-items: center;
  column-gap: 90px;
}

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

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

.menu-link {
  display: block;
  padding-top: 30px;
  padding-bottom: 30px;
}

.site-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.11;
  letter-spacing: -0.03em;
}

.site-logo-icon {
  margin-left: 4px;
}

.menu-link {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  transition: color 250ms linear;
}

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

.social-list {
  display: flex;
  column-gap: 18px;
}

.social-list-link {
  display: block;
  fill: none;
  stroke: #111111;
  line-height: 0;
  transition: stroke 250ms linear;
}

.social-list-link:hover,
.social-list-link:focus {
  stroke: #fd9222;
}

/* ================ /PAGE HEADER STYLES ================ */

/* ================ HERO STYLES ================ */
.hero-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 381px;
  padding-bottom: 40px;
  color: #ffffff;
  background-color: #1e1823;
  background-image: linear-gradient(#1e182366, #1e182366), url('../images/hero/bg.jpg');
  background-size: cover;
  border-radius: 30px;
  margin-bottom: 72px;
}

.hero-container {
  padding-left: 56px;
  padding-right: 56px;
}

.main-title {
  max-width: 484px;
  margin-bottom: 32px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.buy-now-btn {
  min-width: 144px;
  padding: 14px 40px;
  margin-right: 14px;
  font-size: 14px;
  font-weight: 600;
  background-color: #fd9222;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  transition: color 250ms linear, background-color 250ms linear;
}

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

.how-made-link {
  display: block;
  min-width: 183px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #ffffff;
  border-radius: 100px;
  transition: color 250ms linear, border-color 250ms linear;
}

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

.scroll-down-link {
  display: flex;
  align-items: center;
  column-gap: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-left: auto;

  transition: color 250ms linear;
}

.scroll-down-link:hover,
.scroll-down-link:focus {
  color: #fd9222;
}

.scroll-down-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  fill: #fd9222;

  transition: background-color 250ms linear, fill 250ms linear;
}

.scroll-down-link:hover .scroll-down-icon-wrapper,
.scroll-down-link:focus .scroll-down-icon-wrapper {
  background-color: #fd9222;
  fill: #ffffff;
}
/* ================ /HERO STYLES ================ */

/* ================ BENEFITS STYLES ================ */
.benefits-section {
  color: #ffffff;
  background-color: #1e1823;
  margin-bottom: 50px;
}

.benefits-list {
  display: flex;
  column-gap: 88px;
  padding-left: 18px;
  padding-right: 18px;
}

.benefits-list-item {
  position: relative;
  width: calc((100% - 2 * 88px) / 3);
}

.benefits-list-item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  width: 1px;
  height: 124px;
  transform: translateY(-50%);
  background-color: #ffffff80;
  content: '';
}

.benefits-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin-bottom: 22px;
}

.benefits-list-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.benefits-list-text {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
}
/* ================ /BENEFITS STYLES ================ */

/* ================ INGREDIENTS STYLES ================ */
.ingredients-title {
  max-width: 411px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.ingredients-description {
  max-width: 486px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 54px;
}

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

.ingredients-list-item {
  position: relative;
  width: calc((100% - 3 * 24px) / 4);
  padding: 28px 32px;
  border: 1px solid #fd9222;
  border-radius: 15px;
  background-color: #ffffff;
  overflow: hidden;
}

.ingredients-list-item:nth-child(4n + 1) {
  background-color: #fd9222;
  color: #ffffff;
}

.ingredients-list-item:nth-child(4n + 3) {
  background-color: #1e1823;
  border-color: #1e1823;
  color: #ffffff;
}

.ingredients-list-img {
  margin-bottom: 36px;
}

.ingredients-list-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ingredient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: #ffffff;
  color: #111111;
  border-radius: 15px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 250ms linear;
}

.ingredients-list-item:hover .ingredient-overlay {
  transform: translateY(0%);
}

.ingredient-overlay-title {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ingredient-overlay-categories {
  display: flex;
  margin-bottom: 14px;
  column-gap: 6px;
}

.ingredient-overlay-categories-item {
  font-size: 10px;
  line-height: 1.2;
  border: 1px solid #fd9222;
  border-radius: 35px;
  padding: 5px 16px;
  background-color: #fafafa;
}

.ingredient-overlay-categories-item:first-child {
  background-color: #fd9222;
  color: #ffffff;
}

.ingredient-overlay-description {
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.02em;
}

/* ================ /INGREDIENTS STYLES ================ */

/* ================ HOW MADE STYLES ================ */
.how-made-section-title {
  margin-bottom: 50px;
}

.how-made-content-wrapper {
  display: flex;
  column-gap: 20px;
}

.how-made-text-content {
  flex-grow: 1;
  padding: 32px;
  border-radius: 15px;
  background-color: #ffffff;
}

.how-made-list-title {
  max-width: 350px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 32px;
}

.how-made-list {
  padding-right: 26px;
}

.how-made-list-item {
  position: relative;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-left: 16px;
}

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

.how-made-list-item:not(:last-child) {
  margin-bottom: 24px;
}
/* ================ /HOW MADE STYLES ================ */

/* ================ REVIEWS STYLES ================ */
.reviews-section {
  padding-bottom: 100px;
}

.reviews-title {
  margin-bottom: 91px;
}

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

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

.reviews-list-avatar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reviews-list-fullname {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 24px;
}

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

.leave-review-btn {
  display: block;
  min-width: 222px;
  font-size: 18px;
  font-weight: 600;
  background-color: transparent;
  border: 1px solid #fd9222;
  border-radius: 100px;
  padding: 14px 40px;
  margin-left: auto;
  margin-right: auto;
  transition: color 250ms linear, background-color 250ms linear;
}

.leave-review-btn:hover,
.leave-review-btn:focus {
  color: #ffffff;
  background-color: #fd9222;
}
/* ================ /REVIEWS STYLES ================ */

/* ================ FOOTER STYLES ================ */
.page-footer {
  background-color: #1e1823;
  color: #ffffff;
}

.page-footer-top-block {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 50px;
  padding-bottom: 50px;
}

.page-footer-title {
  max-width: 300px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-footer-contact {
  font-style: normal;
}

.contact-slogan {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
}

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

.contact-list-link {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 250ms linear;
}

.contact-list-link:hover,
.contact-list-link:focus {
  color: #fd9222;
}

.page-footer-bottom-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 80px;
}

.subscribe-form {
  display: flex;
  column-gap: 8px;
}

.subscribe-form-input {
  width: 313px;
  height: 52px;
  padding-left: 24px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  background-color: transparent;
  outline: none;
  transition: border-color 250ms linear;
}

.subscribe-form-input:focus {
  border-color: #fd9222;
}

.subscribe-form-submit-btn {
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  background-color: #fd9222;
  padding: 18px 32px;
  transition: color 250ms linear, background-color 250ms linear;
}

.subscribe-form-submit-btn:hover,
.subscribe-form-submit-btn:focus {
  color: #fd9222;
  background-color: #fcf1e0;
}

/* ================ /FOOTER STYLES ================ */

/* ================ BACKDROP WITH MODAL STYLES ================ */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);

  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms linear;
}

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

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

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background-color: transparent;
  padding: 0;
  line-height: 0;
  stroke: #111111;
  transition: stroke 250ms linear;
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  stroke: #fd9222;
}

.review-form-slogan {
  max-width: 298px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.review-form-field-wrapper {
  margin-bottom: 18px;
}

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

.review-form-input-wrapper {
  position: relative;
}

.review-form-input {
  width: 100%;
  height: 68px;
  font-size: 18px;
  letter-spacing: -0.02em;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  background-color: transparent;
  padding-left: 62px;
  outline: none;
  transition: border-color 250ms linear;
}

.review-form-input:focus,
.review-form-message:focus {
  border-color: #fd9222;
}

.review-form-field-icon {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: #404040;
  transition: stroke 250ms linear;
}

.review-form-input:focus + .review-form-field-icon {
  stroke: #fd9222;
}

.review-form-message {
  width: 100%;
  height: 137px;
  font-size: 18px;
  letter-spacing: -0.02em;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  background-color: transparent;
  resize: none;
  padding: 22px 24px;
  outline: none;
  transition: border-color 250ms linear;
}

.review-form-message::placeholder {
  color: rgba(64, 64, 64, 0.3);
}

.review-form-checkbox-wrapper {
  margin-bottom: 40px;
}

.review-form-policy-label {
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.6);
}

.review-form-policy-own-checkbox {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  cursor: pointer;
  fill: transparent;
  margin-right: 12px;
}

.review-form-policy-checkbox:checked + .review-form-policy-label .review-form-policy-own-checkbox {
  background-color: #fd9222;
  border-color: #fd9222;
  fill: #ffffff;
}

.review-form-policy-checkbox:focus + .review-form-policy-label .review-form-policy-own-checkbox {
  outline: 2px solid rgba(0, 0, 255, 0.5);
}

.privacy-policy-link {
  color: #fd9222;
  text-decoration: underline;
}

.review-form-submit-btn {
  min-width: 117px;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 100px;
  background-color: #fd9222;
  padding: 14px 40px;
  transition: background-color 250ms linear, color 250ms linear, border-color 250ms linear;
}

.review-form-submit-btn:hover,
.review-form-submit-btn:focus {
  background-color: transparent;
  color: #111111;
  border-color: #fd9222;
}
/* ================ /BACKDROP WITH MODAL STYLES ================ */
