/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 17px 0;
  background: #fffdfa;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 170px;
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  stroke: #ffbc11;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #5a3f2c;
  border-radius: 12px;
  padding: 8px 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation-item:hover,
.navigation-item:focus {
  background: #ffbc12;
  color: #000;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 104px;
  padding-bottom: 64px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(
    180deg,
    #fffdfa 48.82%,
    rgba(255, 253, 250, 0.8) 55.89%,
    rgba(255, 255, 255, 0.8) 98.67%
  );
  transform: translateY(-100%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
}

.modal-click {
  transform: translateY(0);
}

@media screen and (min-width: 1437px) {
  .header {
    padding: 26px 0;
  }

  .navigation-item {
    padding: 8px 10px;
  }

  .navigation-list {
    gap: 14px;
  }

  .navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 120px;
  padding-bottom: 0;
}

.home-title {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  line-height: 120%;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 26px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  color: #000;
  margin-bottom: 26px;

  span {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #ffa100;
  }
}

.hero-image {
  width: 269px;
  margin-left: auto;
}

@media screen and (min-width: 768px) {
  .hero-image {
    width: 369px;
  }
}

@media screen and (min-width: 1437px) {
  .home-container {
    display: flex;
    align-items: center;
    gap: 174px;
    padding-right: 0;
  }
  .home-title {
    font-size: 42px;
    margin-bottom: 53px;
  }

  .home-text {
    font-size: 26px;
    margin-bottom: 34px;
  }

  .hero-image {
    margin: 0;
    width: auto;
    flex-shrink: 0;
  }
}

/* fresh */

.fresh-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;

  li {
    cursor: pointer;
    width: 306px;
    max-width: 100%;
    border: 2px solid #ffbb12;
    border-radius: 20px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    transition: background-color 0.4s ease;
  }

  p {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 133%;
    text-align: center;
    color: #000;
    padding: 16px;
  }

  li:hover {
    background-color: #ffbb12;
  }
}

@media screen and (min-width: 768px) {
  .fresh-list {
    gap: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* frameworks */

#frameworks {
  background-image: url(../images/line.png),
    linear-gradient(180deg, #fffaed 53.35%, #fff 100%);
  background-position: top left;
  background-repeat: no-repeat;
}

.frameworks-text {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 133%;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  margin-bottom: 34px;
}

.frameworks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 630px;
  max-width: 100%;
  margin: 0 auto;

  li {
    border: 2px solid #ffbb12;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #fff;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 162%;
    text-transform: uppercase;
    text-align: center;
    color: #000;
  }
}

@media screen and (min-width: 1437px) {
  .frameworks-list {
    gap: 24px;

    li {
      font-size: 20px;
      text-align: start;
    }
  }
}

/* how */

.line-wrapper {
  background: url(../images/line2.png),
    linear-gradient(180deg, #fffaed 53.35%, #fff 100%);
  background-position: right top;
  background-repeat: no-repeat;
}

.how-slide {
  border: 2px solid #ffbc12;
  border-radius: 20px;
  padding: 16px;
  background: #ffbb12;

  .how-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  img {
    width: 60px;
    flex-shrink: 0;
  }

  h5 {
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 20px;
    line-height: 120%;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 6px;
  }

  span {
    display: block;
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 16px;
    line-height: 120%;
    text-transform: uppercase;
    color: #000;
    opacity: 0.6;
  }

  p {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #000;
  }
}

.how-pagination {
  text-align: center;
  margin-top: 32px;
}

.swiper-pagination-bullet {
  background: #ffbb12;
}

.how-list {
  display: none;
}

@media screen and (min-width: 768px) {
  .how-slide {
    padding: 32px 16px;
  }
}

@media screen and (min-width: 1437px) {
  .how-pagination {
    display: none;
  }

  .how-swiper {
    display: none;
  }

  .how-list {
    display: flex;
    justify-content: center;
    gap: 24px;

    li {
      border: 2px solid #ffbc12;
      border-radius: 20px;
      padding: 16px;
      width: 302px;
      background: rgba(255, 187, 18, 0.1);
    }
  }
}

/* insights */

.insights-text {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 133%;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  margin-bottom: 45px;
}

.insights-content {
  p {
    padding: 8px 16px;
    background: #ffbb12;
    font-family: var(--second-family);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    margin-bottom: 24px;
  }

  span {
    display: block;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #000;
    text-align: end;
  }
}

@media screen and (min-width: 1437px) {
  .insights-text {
    font-size: 20px;
    margin-bottom: 48px;
  }

  .insights-content {
    width: 714px;
    margin: 0 auto;

    p {
      font-size: 22px;
    }
  }
}

/* resources */

#resources {
  background: linear-gradient(180deg, #fff 0%, #fffaed 53.35%);
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    display: flex;
    align-items: center;
    gap: 22px;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    text-transform: uppercase;
    color: #000;
  }

  img {
    width: 40px;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 768px) {
  .resources-list {
    width: 440px;
    margin: 0 auto;
    margin-top: 64px;
  }
}

@media screen and (min-width: 1437px) {
  .resources-list {
    gap: 24px;

    li {
      gap: 26px;
      font-size: 20px;
    }

    img {
      width: 42px;
    }
  }
}

/* join */

#join {
  background-color: #fff;
  background-image: url(../images/line.png);
  background-position: left;
  background-repeat: no-repeat;
}

.modal-form {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222221;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-form.show {
  opacity: 1;
}

.hidden {
  display: none;
}

.join-text {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  margin-bottom: 31px;
}

.mail {
  margin: 0 auto;
  margin-bottom: 24px;
}

#contact-form {
  width: 495px;
  max-width: 100%;
  margin: 0 auto;

  input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 12px 24px;
    margin-bottom: 24px;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    color: #000;
  }

  input::placeholder {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    color: #999494;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #000;
    text-align: center;
    margin-bottom: 48px;
  }

  button {
    display: block;
    width: 100%;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    text-transform: uppercase;
    color: #000;
    border-radius: 12px;
    padding: 16px 32px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #ffbb12;
    transition: background-color 0.3s ease;
  }

  button:hover {
    background: #e6aa10;
  }
}

@media screen and (min-width: 1437px) {
  .join-text {
    font-size: 20px;
    margin-bottom: 36px;
  }

  .mail {
    margin-bottom: 16px;
  }

  #contact-form {
    input {
      font-size: 20px;
      margin-bottom: 16px;
    }

    input::placeholder {
      font-size: 20px;
    }

    p {
      font-size: 16px;
      margin-bottom: 32px;
    }
  }
}

/* contact  */

#contact {
  background: linear-gradient(180deg, #fff 0%, #ffbb12 100%);
  padding-bottom: 120px;
}

.contact-mail {
  display: block;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  color: #000;
  text-align: center;
  margin-bottom: 46px;
}

.contact-mail:hover {
  text-decoration: underline;
}

.contact-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  text-align: center;
  color: #000;
  margin-bottom: 59px;
}

.contact-rescription {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1437px) {
  #contact {
    padding: 120px 0;
  }
  .contact-mail {
    margin-bottom: 24px;
  }

  .contact-text {
    margin-bottom: 24px;
  }

  .contact-rescription {
    max-width: 646px;
    margin: 0 auto;
  }
}

/* footer */

.footer {
  background: #ffbb12;
}

.footer-mail {
  font-size: 16px;
}

.footer-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;

  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  text-decoration-skip-ink: none;
  text-align: center;
  color: #000;

  a:hover {
    text-decoration: underline;
  }
}

.footer-description {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1437px) {
  .footer {
    padding: 41px 0;
  }

  .footer-mail {
    font-size: 16px;
    margin: 0;
  }

  .footer-list {
    flex-direction: row;
    font-size: 16px;
    margin: 0;
  }

  .footer-description {
    font-size: 16px;
  }

  .footer-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 38px 16px;
  background: #fffdfa;
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #000;
  margin-bottom: 27px;
}

.popup-btn {
  border: 3px solid #ffbb12;
  border-radius: 12px;
  padding: 16px 32px;
  width: 343px;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  color: #000;
  text-transform: uppercase;

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #ffbb12;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 40px;
  }

  .popup-text {
    font-size: 20px;
    margin-bottom: 36px;
  }

  .popup-btn {
    font-size: 16px;
    margin: 0;
  }

  .popup-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    flex-shrink: 0;
  }
}
