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

body {
  font-family: "Montserrat", sans-serif;
  color: #434455;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

ul {
  list-style-type: none;
}

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

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

.header {
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

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

.logo {
  font-style: normal;
  font-weight: 700;
  font-size: 18px;

  /* line-height: 20px; */
  line-height: 111%;
  letter-spacing: -0.03em;
  color: #111;
  text-decoration: none;
  margin: 0;
  padding: 28px 0;
}

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

.header-svg-icon {
  margin: 0;
  padding-left: 4px;
  vertical-align: middle;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 0 auto;
  list-style: none;
}

.list-item a {
  font-weight: 500;
  font-size: 14px;

  /* line-height: 16px; */
  line-height: 114%;
  letter-spacing: -0.02em;
  color: #111;
  text-decoration: none;
  padding: 28px 0;
  align-items: center;
  justify-content: center;
}

.list-item a:hover,
.list-item a:focus {
  color: #fd9222;
}

.social-networks {
  display: flex;
  margin-left: 90px;
  gap: 18px;
}

.link-networks {
  padding: 28px 0;
  align-items: center;
  text-decoration: none;
}

.networks-svg-icon {
  vertical-align: middle;

  fill: none;
  stroke: #111;
  stroke-width: 2;
}

.link-networks:hover .networks-svg-icon,
.link-networks:focus .networks-svg-icon {
  stroke: #fd9222;
}

/* section hero */

.hero {
  background-color: #1e1823;
  border-radius: 30px;
  max-width: 1200px;
  min-height: 600px;
  margin: 0 auto;
  background-image: linear-gradient(
      rgba(30, 24, 35, 0.4),
      rgba(30, 24, 35, 0.4)
    ),
    url("../images/chocolate-hero.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-content {
  display: block;
  height: 100%;
  padding-top: 381px;
  padding-bottom: 40px;
}

.hero-title {
  font-weight: 500;
  font-size: 28px;

  /* line-height: 34px; */
  line-height: 121%;
  letter-spacing: -0.03em;
  color: #fff;
  width: 484px;
  margin-top: 0;
  margin-left: 72px;
  padding-bottom: 32px;
  padding-top: 0;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 72px 39px 72px;
}

.left-buttons {
  display: flex;
  gap: 14px;
}

.butn {
  display: inline-block;
  text-decoration: none;
  border-radius: 100px;
  padding: 14px 40px;
  width: 146px;
  height: 46px;
  background: #fd9222;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.butn:hover,
.butn:focus {
  background: #fcf1e0;
  color: #fd9222;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 100px;
  padding: 14px 40px;
  width: 183px;
  height: 45px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: transparent;
  white-space: nowrap;
}

.btn:hover,
.btn:focus {
  border: 1px solid #fd9222;
  color: #fd9222;
}

.link-scrol {
  font-weight: 500;
  font-size: 14px;
  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-svg-icon {
  width: 38px;
  height: 38px;
  margin-left: 14px;
  border-radius: 50%;
  background: #fff;
  stroke: #fd9222;
  stroke-width: 2;
  padding: 8px;
}

.hero-svg-icon:hover,
.hero-svg-icon:focus {
  background: #fd9222;
  stroke: #fff;
}

/* section Benefits */

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

.benefits {
  max-width: 1200px;
  margin: 72px auto;
  background: #1e1823;
  padding: 50px 50px 50px 50px;
}

.benefits-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  gap: 15px;
}

.benefits-list .benefit-item {
  flex-basis: calc((100% - 140px) / 3);
}

.benefit-item {
  position: relative;
  padding-right: 18px;
}

.benefit-item:last-child {
  padding-right: 0;
}

.benefits-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 124px;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.benefit-icon {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 365px;
  width: 62px;
  height: 62px;
  justify-content: center;
  margin-bottom: 22px;
}

.benefit-svg-icon {
  margin: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  margin: 15px;
}

.benefits-title {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
}

.benefit-text {
  margin-top: 18px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
}

/* taste section */

.taste {
  margin: 100px auto;
}

.taste-content {
  width: 486px;
  margin: 0 auto;
  padding: 0;
}

.taste-title {
  font-weight: 600;
  font-size: 24px;

  /* line-height: 28px; */
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 28px;
  width: 411px;
  margin-left: 38px;
}

.taste-color {
  color: #fd9222;
}

.taste-text {
  font-weight: 400;
  font-size: 14px;

  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  text-align: center;
  color: #111;
  margin: 0 auto;
  padding: 0;
}

.taste-images-content {
  margin-top: 50px;
}

.taste-images-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  gap: 19px;
}

.taste-images-list,
.taste-item {
  flex-basis: calc((100% - 57px) / 4);
}

.taste-item {
  border-radius: 15px;
}

.item-1 {
  background-color: #fd9222;
  color: #fff;
}

.item-2 {
  border: 1px solid #fd9222;
  background-color: #fff;
  color: #111;
}

.item-3 {
  border: 1px solid #fd9222;
  background-color: #fff;
  color: #111;
}

.item-4 {
  background-color: #1e1823;
  color: #fff;
}

.taste-img {
  margin-top: 28px;
  margin-bottom: 36px;
  padding: 0;
}

.taste-item-text {
  font-weight: 600;
  font-size: 14px;

  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 auto;
  padding-bottom: 28px;
}

.card-container {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.taste-item-box {
  position: relative;
  width: 100%;
  height: 100%;
  padding-left: 32px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 20px 20px 20px; /* більше простору для контенту */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  border: 1px solid #ffffff;
}

.taste-item:hover .overlay,
.taste-item:focus .overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-header {
  padding: 0;
  margin-bottom: 14px;
}

.overlay-title {
  text-align: left;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: #111;
  margin: 0 0 8px 0;
  padding: 0;
  text-transform: uppercase;
}

.overlay-subtitle {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.block1 {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  font-weight: 400;
  font-size: 10px;

  /* line-height: 12px; */
  line-height: 120%;
  color: #fff;
  border-radius: 35px;
  padding: 6px 16px;
  max-width: 114px;
  height: 24px;
  background: #fd9222;
  text-align: center;
}

.block2 {
  white-space: nowrap;
  display: block;
  font-weight: 400;
  font-size: 10px;

  /* line-height: 12px; */
  line-height: 120%;
  color: #111;
  border: 1px solid #fd9222;
  border-radius: 35px;
  padding: 6px 16px;
  width: 93px;
  height: 24px;
  background: #fafafa;
  text-align: center;
}

.overlay-text {
  width: 230px;
  font-weight: 400;
  font-size: 14px;

  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  color: #111;
  text-align: left;
  padding: 0;
  max-height: 140px; /* фіксована висота для скролу */
  overflow-y: auto;
}

/* section how it`s made */

.how-made {
  margin: 100px auto;
}

.made-title {
  font-weight: 600;
  font-size: 24px;

  /* line-height: 28px; */
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 50px;
  padding: 0;
}

.made-color {
  color: #fd9222;
}

.made-content-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
}

.made-img {
  border-radius: 15px;
}

.made-content {
  max-width: 516px;
  padding: 32px;
  margin-left: 20px;
  align-items: center;
}

.made-subtitle {
  font-weight: 600;
  font-size: 18px;

  /* line-height: 24px; */
  line-height: 133%;
  color: #111;
  margin-bottom: 28px;
  padding: 0;
  max-width: 350px;
}

.made-list {
  max-width: 452px;
}

.made-item {
  display: block;
  position: relative;
  padding-left: 18px;
  margin-bottom: 24px;
}

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

.last-item {
  margin-bottom: 0;
  padding-bottom: 0;
}

.made-text {
  font-weight: 400;
  font-size: 14px;
  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  color: #111;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* section reviews */

.reviews {
  margin: 100px auto;
  padding: 0;
}

.review-title {
  font-weight: 600;
  font-size: 24px;

  /* line-height: 28px; */
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 90px;
}

.choco {
  color: #fd9222;
}

.review-content {
  margin-bottom: 50px;
}

.review-list {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}

.review-item {
  flex: 0 0 auto;
  flex-basis: calc((100% - 56px) / 3);
  max-width: 360px;
  min-width: 260px;
  position: relative;
}

.container-box {
  margin: 0 auto;
  padding: 0;
}

.review-img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  z-index: 10;
}

.review-hero {
  font-weight: 600;
  font-size: 18px;

  /* line-height: 24px; */
  line-height: 133%;
  color: #111;
  margin-bottom: 24px;
  margin-top: 0;
}

.review-text {
  font-weight: 400;
  font-size: 14px;

  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  color: rgba(17, 17, 17, 0.7);
  width: 312px;
  flex-grow: 1;
}

.review-content-box {
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 15px;
  padding: 56px 24px 24px;
  box-shadow: 0 9px 100px 0 rgba(17, 17, 17, 0.03);
  background: #fff;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reviews button {
  font-weight: 600;
  font-size: 18px;
  color: #111;
  border: 1px solid #fd9222;
  border-radius: 100px;
  padding: 14px 40px;
  width: 222px;
  height: 50px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  background: transparent;
}

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

/* footer section */
.footer {
  max-width: 1200px;
  min-height: 298px;
  background: #1e1823;
  margin: 0 auto;
  padding-top: 50px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 54px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.address {
  text-align: left;
}

.footer-title {
  font-weight: 500;
  font-size: 28px;

  /* line-height: 34px; */
  line-height: 121%;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 300px;
  padding: 0;
  margin: 0;
}

.footer-cont {
  font-weight: 400;
  font-size: 14px;

  /* line-height: 18px; */
  line-height: 129%;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
  padding: 0;
}

.address-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-item {
  text-decoration: none;
}

.item-address {
  text-decoration: none;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 114%;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.list-item-footer a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;

  /* line-height: 16px; */
  line-height: 114%;
  letter-spacing: -0.02em;
  color: #fff;
  padding: 18px 0;
}

.list-item-footer a:hover,
.list-item-footer a:focus {
  color: #fd9222;
}

/* footer-form */

input {
  font-family: inherit;
}

.footer-form {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}

.footer-input {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 13px 24px;
  max-width: 313px;
  height: 52px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
  border-radius: 100px;
  padding: 17px 32px;
  background: #fd9222;
  min-width: 137px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: none;
  cursor: pointer;
}

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

/* modal styles */

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0; /* Повна видимість */
  pointer-events: none; /* Вимікаємо взаємодію з елементом */

  visibility: hidden; /* Видимий елемент */
  transition: opacity 250ms ease-in-out, visibility 250ms ease-in-out;
}

.backdrop.is-open {
  opacity: 1; /* Повна видимість */
  pointer-events: auto; /* Вмикаємо взаємодію з елементом */
  visibility: visible; /* Видимий елемент */
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fafafa;
  border-radius: 15px;
  width: 517px;
  min-height: 623px;
  padding: 40px;
  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);
}

/* Анімація появи модального вікна */
.backdrop:not(.is-open) .modal-window {
  transform: translate(-50%, -50%) scale(1.5);
}

.modal-close-btn {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 28px;
  height: 28px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex; /* Flexbox для центрування іконки */
  align-items: center; /* Центрування по вертикалі */
  justify-content: center; /* Центрування по горизонталі */
}

.modal-svg-icon {
  fill: none;
  stroke: #111;
  stroke-width: 2;
}

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

.modal-title {
  max-width: 300px;
  font-weight: 600;
  font-size: 24px;
  line-height: 117%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: start;
  color: #111;
  margin-bottom: 40px;
  padding-top: 0;
}

.modal-form {
  display: flex; /* Flexbox для вертикального розташування */
  flex-direction: column; /* Вертикальне розташування елементів */
}

.modal-input-box {
  margin-bottom: 18px; /* Відступ знизу між лейблом і полем вводу */
}

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

.input-box {
  margin-top: 8px;
  position: relative;
}

.modal-input {
  position: relative;
  width: 100%;
  height: 68px;
  background-color: transparent;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  padding: 22px 24px;
  padding-left: 62px;
  margin: 0;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.03);
  outline: transparent; /* Убираємо стандартну обводку */
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1); /* Плавна зміна кольору рамки */
}

/* Ефекти при фокусі на полі вводу */
.modal-input:focus,
.modal-input:hover {
  outline: none; /* Убираємо стандартну обводку */
  border: 1.5px solid #fd9222;
}

.input-svg {
  pointer-events: none; /* Вимікаємо взаємодію з іконкою */

  stroke: #111;
  stroke-width: 2;
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  transition: stroke 250ms cubic-bezier(0.4, 0, 0.2, 1); /* Плавна зміна кольору */
}

.modal-input:focus + .input-svg,
.modal-input:hover + .input-svg {
  stroke: #fd9222;
}

.textarea-box {
  margin-bottom: 22px; /* Відступ знизу між лейблом і текстовим полем */
}

.modal-textarea {
  position: relative;
  width: 100%;
  height: 136px;
  background-color: transparent;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  padding: 22px 24px;
  margin: 0;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.03);
  outline: transparent; /* Убираємо стандартну обводку */
  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1); /* Плавна зміна кольору рамки */
  resize: none; /* Вимикаємо зміну розміру */
}

.modal-textarea:focus,
.modal-textarea:hover {
  outline: none; /* Убираємо стандартну обводку */
  border: 1px solid #fd9222;
}

.checkbox-container {
  margin-bottom: 42px;
}

.checkbox {
  align-items: center;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.6);
  cursor: pointer;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  vertical-align: middle;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Коли чекбокс відмічений */
input[type="checkbox"]:checked + label .checkbox-custom {
  background-color: #fd9222; /* колір заливки */
  border: none; /* прибираємо рамку */
  fill: #fff; /* колір галочки */
}

.checkbox-svg {
  fill: #fff;
}

.modal-policy-link {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #fd9222;
}

.modal-submit-btn {
  border-radius: 100px;
  padding: 14px 40px;
  min-width: 117px;
  height: 45px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: #fd9222;
  border: none;
  cursor: pointer;
  align-self: flex-start; /* Вирівнюємо кнопку по лівому краю */
}
