.hidden {
  display: none;
}
body {
  font-family: "Montserrat", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111;
  background-color: #fafafa;
}
/* reset */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

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

a {
  text-decoration: none;
}

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

button {
  font-family: "Montserrat", serif;
  cursor: pointer;
}

.orange {
  color: #fd9222;
}

/* common */

.section {
  background-color: #fafafa;
}

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

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media screen and (min-width: 1168px) {
  .container {
    max-width: 1168px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* #region Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  padding: 30px 0;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111;
  margin-right: 4px;
}

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

@media screen and (max-width: 767px) {
  .social-links-list {
    display: none;
  }

  .nav-header {
    display: none;
  }

  .burger-btn {
    display: block;
    border: none;
    padding: 0;
    line-height: 0;
    fill: transparent;
    stroke: #111;
    background-color: transparent;
    margin-left: auto;
    cursor: pointer;
  }
}
/* #region menu */
.backdrop-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: #1e1823;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 100%;
  padding: 220px 40px 40px 40px;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 0);
}

.menu-close-btn {
  position: absolute;
  z-index: 3;
  top: 200px;
  right: 80px;
  margin-left: auto;
  stroke: #ffffff;
  padding: 0;
  line-height: 0;
  border: 0;
  background-color: transparent;
  transition: stroke 250ms cubic-bezier(0.23, 1, 0.4, 1);
}

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

.menu-nav-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
  margin-bottom: 180px;
}

.menu-nav-link {
  display: block;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 0);
}

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

.social-menu-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-menu-link {
  stroke: #ffff;
  fill: transparent;
  transition: stroke 250ms cubic-bezier(0.4, 0, 0.2, 0);
}

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

/* #endregion menu */

@media only screen and (min-width: 768px) {
  .logo {
    font-size: 18px;
    line-height: 1.11;
  }

  .icon-chocolate {
    margin-right: auto;
  }

  .burger-btn {
    display: none;
  }

  .header-nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: 48px;
  }

  .nav-link {
    display: block;
    padding: 30px 0;
    font-weight: 500;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #111;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 0);
    position: relative;
  }

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

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #fd9222;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 0);
  }

  .nav-link:hover::after,
  .nav-link:focus::after,
  .nav-link.current::after {
    opacity: 1;
  }

  .social-links-list {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .social-icon {
    padding: 30px 0;
    transition: stroke 250ms cubic-bezier(0.4, 0, 0.2, 0);
  }

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

  .social-icon {
    stroke: #111;
    fill: transparent;
  }
}

@media only screen and (min-width: 1168px) {
  .icon-chocolate {
    margin-right: 447px;
  }

  .header-nav-list {
    margin-right: 90px;
  }
  .social-links-list {
    gap: 20px;
  }
}

/* #endregion Header */

/* #region Hero section */
.hero {
  max-width: 767px;
  margin: 0 auto;
  background-color: #1e1823;
  padding-top: 395px;
  padding-bottom: 20px;
  margin-bottom: 80px;
  border-radius: 30px;
  background-image: linear-gradient(
      rgba(30, 24, 35, 0.4),
      rgba(30, 24, 35, 0.4)
    ),
    url(../images/bg/bg-mobile.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (max-width: 767px) and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(30, 24, 35, 0.4),
        rgba(30, 24, 35, 0.4)
      ),
      url(../images/bg/bg-mobile@2x.jpg);
  }
}

.hero-container {
  max-width: 300px;
  margin: 0 auto;
}

.hero-title {
  max-width: 295px;
  margin-bottom: 32px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.21;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-buttons-container {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
  gap: 14px;
  row-gap: 32;
}

.hero-button {
  background-color: #fd9222;
  border-radius: 100px;
  border: none;
  padding: 12px 20px;
  min-width: 120px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-align: center;
  margin-right: 14px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-link-made {
  display: block;
  padding: 12px 20px;
  max-width: 159px;
  border: 1px solid #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-align: center;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-link-made:hover,
.hero-link-made:focus {
  color: #fd9222;
  border: 1px solid #fd9222;
  background-color: #fff;
}

.hero-link-down {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.icon-vector-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #fafafa;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-vector-container:hover,
.icon-vector-container:focus {
  background-color: #fd9222;
  transform: rotate(-90deg);
}

.icon-vector {
  fill: #fd9222;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-vector:hover,
.icon-vector:focus {
  fill: #fafafa;
}
@media screen and (min-width: 768px) {
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 375px;
    padding-bottom: 46px;
    margin-bottom: 72px;
    background-image: linear-gradient(
        rgba(30, 24, 35, 0.4),
        rgba(30, 24, 35, 0.4)
      ),
      url(../images/bg/bg-tablet.jpg);
  }

  .hero-container {
    max-width: 1086px;
    padding: 0 72px;
  }

  .hero-title {
    max-width: 484px;
    font-size: 20px;
  }

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

  .hero-button {
    padding: 14px 40px;
    min-width: 144px;
  }

  .hero-link-made {
    padding: 14px 40px;
    max-width: 183px;
  }

  .hero-link-down {
    margin-left: auto;
  }
}
@media screen and (min-width: 768px) and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(30, 24, 35, 0.4),
        rgba(30, 24, 35, 0.4)
      ),
      url(../images/bg/bg-tablet@2x.jpg);
  }
}
@media screen and (min-width: 1168px) {
  .hero {
    max-width: 1200px;
    padding-top: 375px;
    padding-bottom: 46px;
    margin-bottom: 72px;
    background-image: linear-gradient(
        rgba(30, 24, 35, 0.4),
        rgba(30, 24, 35, 0.4)
      ),
      url(../images/bg/bg-desktop.jpg);
  }

  .hero-container {
    max-width: 1086px;
    padding: 0 72px;
  }

  .hero-title {
    max-width: 484px;
  }
}

@media screen and (min-width: 1168px) and (min-resolution: 192dpi) {
  .hero {
    background-image: linear-gradient(
        rgba(30, 24, 35, 0.4),
        rgba(30, 24, 35, 0.4)
      ),
      url(../images/bg/bg-desktop@2x.jpg);
  }
}

/* #endregion Hero section  */

/* #region Benefits */
.benefits-section {
  background: #1e1823;
  padding: 20px;
}

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

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 35px;
}

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

.benefits-icon {
  fill: #fd9222;
}

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

.benefits-item-text {
  color: rgba(255, 255, 255, 0.7);
  max-width: 308px;
}

@media screen and (min-width: 768px) {
  .benefits-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .benefits-container {
    width: 704px;
  }

  .benefits-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 0 18px;
    row-gap: 32px;
  }

  .benefits-list-item {
    flex-basis: calc((100% - 60px) / 2);
    position: relative;
    width: 308px;
    height: 244px;
  }
}

@media screen and (min-width: 1168px) {
  .benefits-container {
    width: 1168px;
  }

  .benefits-list {
    gap: 70px;
    padding: 0 35px;
  }

  .benefits-list-item {
    flex-basis: calc((100% - 172px) / 3);
    position: relative;
    width: 326px;
    height: 244px;
  }

  .benefits-list-item:not(:last-child)::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 124px;
    height: 0px;
    top: 50%;
    left: 85%;
    transform: rotate(-90deg);
  }
}
/* #endregion Benefits */

/* #region Ingredients */

.ingredients-section {
  padding: 60px 0;
}

.ingredients-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  max-width: 283px;
  margin: 0 auto 24px auto;
}

.ingredients-text {
  text-align: center;
  max-width: 335px;
  margin: 0 auto 32px auto;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ingredients-list-item {
  border-radius: 15px;
  padding: 28px;
}

.ingredients-list-item:nth-child(even) {
  background-color: #fff;
  border: 1px solid #fd9222;
}

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

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

.ingredients-image {
  margin-bottom: 25px;
}

.ingredients-item-desc {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
}

.black-desc {
  color: #111;
}

.ingredients-list-item {
  position: relative;
  overflow: hidden;
}

.ingredients-list-item:hover .overlay-container {
  opacity: 1;
  transform: translateX(0);
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding: 10px;
  border-radius: 15px;
  overflow: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-title {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111;
  max-width: 214px;
  margin-bottom: 8px;
}

.overlay-button-list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.overlay-button {
  display: block;
  border: none;
  border-radius: 35px;
  min-width: 81px;
  height: 24px;
  background-color: #fd9222;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.2;
  color: #fff;
}

.overlay-button-benefits {
  display: block;
  border: 1px solid #fd9222;
  border-radius: 35px;
  min-width: 93px;
  height: 24px;
  background-color: #fafafa;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.2;
  color: #111;
}

.overlay-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111;
  max-width: 260px;
}

@media screen and (min-width: 768px) {
  .ingredients-title {
    font-size: 24px;
    line-height: 1.17;
    max-width: 411px;
    margin: 0 auto 28px auto;
  }

  .ingredients-text {
    text-align: center;
    max-width: 486px;
    margin: 0 auto 50px auto;
  }

  .ingredients-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .ingredients-list-item {
    flex-basis: calc ((100% - 32px) / 2);
  }

  .ingredients-list-item:nth-child(4n + 1) {
    order: -2;
  }

  .ingredients-list-item:nth-child(4n + 4) {
    order: -1;
  }

  .overlay-description {
    max-width: 250px;
  }
}

@media screen and (min-width: 1168px) {
  .ingredients-list {
    flex-wrap: nowrap;
    gap: 19px;
  }

  .ingredients-list-item:nth-child(4n + 1) {
    order: 0;
  }

  .ingredients-list-item:nth-child(4n + 4) {
    order: 0;
  }

  .ingredients-list-item {
    flex-basis: calc((100% - 19 * 3px) / 4);
    border-radius: 15px;
    padding: 28px 32px;
  }

  .ingredients-image {
    margin-bottom: 36px;
  }
}

/* #endregion Ingredients */

/* #region How it's made? */
.made-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 32px;
}

.made-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.made-image {
  border-radius: 15px;
  max-width: 335px;
}

.made-description-container {
  max-width: 335px;
  border-radius: 15px;
  background-color: #fff;
  padding: 20px 14px;
}

.made-subtitle {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.33;
  color: #111;
  margin-bottom: 20px;
}

.made-list-item {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.made-list-item:last-child {
  margin-bottom: 0;
}

.made-icon-disk {
  flex-shrink: 0;
}

.made-item-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #111;
  max-width: 436px;
}

@media screen and (min-width: 768px) {
  .made-title {
    font-size: 24px;
    line-height: 1.16;
    margin-bottom: 50px;
  }

  .made-image {
    border-radius: 15px;
    max-width: 614px;
  }

  .made-description-container {
    max-width: 614px;
    padding: 32px;
  }

  .made-subtitle {
    margin-bottom: 28px;
    max-width: 350px;
  }
}

@media screen and (min-width: 1168px) {
  .made-container {
    flex-direction: row;
  }

  .made-image {
    max-width: 600px;
  }

  .made-description-container {
    max-width: 516px;
    /* height: 336px; */
  }
}
/* #endregion How it's made? */

/* #region Chocolate is loved */
.chocolate-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.chocolate-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  margin-bottom: 72px;
}

.chocolate-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.chocolate-list-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: #fff;
  position: relative;
}

.chocolate-list-item:nth-child(2),
.chocolate-list-item:nth-child(3) {
  display: none;
}

.chocolate-image {
  padding-left: 140px;
  padding-right: 140px;
  position: absolute;
  top: -40px;
}

.chocolate-item-title {
  margin-top: 54px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.33;
  text-align: center;
  color: #111;
}
.chocolate-item-text {
  text-align: center;
  max-width: 312px;
  color: rgba(17, 17, 17, 0.7);
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 24px;
}

.menu-chocolate-image-container {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin-bottom: 32px;
}

.menu-image-btn {
  border: none;
  background-color: transparent;
}

.icon-foto {
  fill: #fd9222;
}

.icon-nofoto {
  fill: rgba(17, 17, 17, 0.1);
}

.chocolate-button {
  display: block;
  margin: 0 auto;
  border: 1px solid #fd9222;
  border-radius: 100px;
  padding: 14px 40px;
  min-width: 222px;
  height: 50px;
  font-weight: 600;
  font-size: 18px;
  color: #111;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media screen and (min-width: 768px) {
  .chocolate-title {
    font-size: 24px;
    line-height: 1.16;
    margin-bottom: 50px;
  }

  .chocolate-list {
    align-items: center;
    justify-content: center;
    gap: 16px;
    row-gap: 68px;
    margin-bottom: 31px;
  }

  .chocolate-list-item:nth-child(2) {
    display: inline;
  }
}

@media screen and (min-width: 1168px) {
  .chocolate-title {
    margin-bottom: 90px;
  }

  .chocolate-list {
    gap: 28px;
    margin-bottom: 50px;
  }

  .chocolate-list-item:nth-child(3) {
    display: inline;
  }
}

/* #endregion Chocolate is loved */

/* #region Footer */
.footer {
  background-color: #1e1823;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-desc {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 14px;
}

.footer-address-item {
  margin-bottom: 4px;
}

.footer-address-link {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  font-style: normal;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 18px;
  margin-bottom: 32px;
}

.nav-footer-item {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav-footer .item-nav-link {
  color: #fff;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-footer .item-nav-link:hover,
.nav-footer .item-nav-link:focus {
  color: #fd9222;
}

.footer-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.footer-form-input {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 13px 24px;
  width: 200px;
  height: 45px;
  box-sizing: border-box;
  outline: none;
  background-color: transparent;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.subscribe-button {
  display: block;
  box-sizing: border-box;
  border-radius: 100px;
  padding: 14px 16px;
  width: 100px;
  height: 45px;
  border: none;
  background-color: #fd9222;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media screen and (min-width: 768px) {
  .footer {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .footer-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
  }

  .footer-bottom-container {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .footer-nav-list {
    flex-direction: row;
    gap: 16px;
  }

  .nav-footer-item:nth-child(3),
  .nav-footer-item:nth-child(4) {
    display: none;
  }

  .footer-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 0;
  }

  .footer-form-input {
    padding: 13px 24px;
    width: 232px;
    height: 52px;
  }

  .subscribe-button {
    padding: 14px 28px;
    width: 128px;
    height: 52px;
  }
}

@media screen and (min-width: 1168px) {
  .footer-form-input {
    width: 313px;
  }

  .subscribe-button {
    padding: 17px 32px;
    width: 137px;
  }
}
/* #endregion Footer */

/* #region modal */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: 0;
  pointer-events: none;
  background-color: rgba(17, 17, 17, 0.7);
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.4, 1),
    visibility 250ms cubic-bezier(0.23, 1, 0.4, 1);
}

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

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 15px;
  width: 311px;
  min-height: 619px;
  padding: 24px 32px;
  box-sizing: border-box;
  background: #fafafa;
  transform: translate(-50%, -50%);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.4, 1);
}

.backdrop:not(.is-open) {
  transform: translate(-50%, -50%) scale(1.5);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  stroke: #111;
  padding: 0;
  line-height: 0;
  border: 0;
  background-color: transparent;
  transition: stroke 250ms cubic-bezier(0.23, 1, 0.4, 1);
}

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

.modal-text {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111;
  max-width: 265px;
  margin-bottom: 32px;
}

.modal-form-field:not(:last-child) {
  margin-bottom: 14px;
}

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

.modal-form-label {
  display: block;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.3);
  margin-bottom: 4px;
}

.modal-form-input-container {
  position: relative;
}

.modal-form-input {
  box-sizing: border-box;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-right: 18px;
  padding-left: 60px;
  width: 100%;
  outline: transparent;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgb(64, 64, 64);
}

.modal-form-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  stroke: #1e1823;
  fill: transparent;
  transform: translateY(-50%);
}

.modal-form-input::placeholder {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.3);
}

.modal-form-input:focus {
  border: 1px solid #fd9222;
}

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

.modal-form-input.comment {
  height: 90px;
  resize: none;
  padding-left: 18px;
}

.modal-form-cont-checkbox {
  margin-bottom: 32px;
}

.modal-form-label-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-checkbox {
  border-radius: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
}

.checkbox:checked + .modal-form-label-checkbox > .custom-checkbox {
  background-color: #fd9222;
  border: transparent;
  fill: #ffff;
}

.modal-form-label-checkbox {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.02em;
  color: rgba(64, 64, 64, 0.6);
}

.modal-form-link {
  text-decoration: underline;
  color: #fd9222;
}

.modal-submit-button {
  border-radius: 100px;
  padding: 12px 28px;
  width: 93px;
  height: 41px;
  background-color: #fd9222;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: none;
  transition: background-color 250ms cubic-bezier(0.23, 1, 0.4, 1),
    color 250ms cubic-bezier(0.23, 1, 0.4, 1),
    border 250ms cubic-bezier(0.23, 1, 0.4, 1);
}

.modal-submit-button:focus,
.modal-submit-button:hover {
  background-color: #fcf1e0;
  color: #fd9222;
  border: 1px solid #fd9222;
}

@media screen and (min-width: 768px) {
  .modal {
    width: 517px;
    min-height: 794px;
    padding: 38px 40px;
  }

  .close-button {
    top: 24px;
    right: 24px;
  }

  .modal-text {
    font-size: 24px;
    line-height: 1.17;
    max-width: 340px;
    margin-bottom: 42px;
  }

  .modal-form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

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

  .modal-form-input {
    font-size: 18px;
    padding-top: 22px;
    padding-bottom: 22px;
    padding-right: 24px;
    padding-left: 62px;
  }

  .modal-form-input::placeholder {
    font-size: 18px;
  }

  .modal-form-icon {
    left: 24px;
  }

  .modal-form-input.comment {
    height: 137px;
    padding-left: 24px;
  }

  .modal-form-cont-checkbox {
    margin-bottom: 40px;
  }

  .modal-form-label-checkbox {
    font-weight: 400;
    font-size: 14px;
  }

  .modal-submit-button {
    padding: 14px 40px;
    width: 117px;
    height: 45px;
  }
}

/* #endregion modal */
