.faq {
  background: linear-gradient(180deg, #F4F9FF 0%, #F1F7FF 100%);
  padding: 70px 60px;
}

.faq .container {
  max-width: 1200px;
  margin: 0 auto;
}

.faq h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 50px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
}

.faq-item details:first-child summary {
  border-radius: 15px 15px 0 0;
}

.faq-item details:last-child summary {
  border-radius: 0 0 15px 15px;
}

.faq-item details {
  background-color: #fff;
}

.faq-item details summary {
  padding: 33px 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  background-color: #fff;
  transition: background-color 0.3s ease;
  border-bottom: none;
}

.faq-item details summary span {
  font-size: 20px;
  color: #5F5E5E;
}

.faq-item details summary img {
  width: 24px; /* Фиксированная ширина иконки */
  height: 24px; /* Фиксированная высота иконки */
  margin: 0;
  object-fit: contain; /* Удержание пропорций иконки */
}

.faq-item details summary:hover {
  background-color: #f4f9ff;
}

.faq-item details[open] summary {
  background-color: #f4f9ff;
}

.faq-item details[open]:last-child summary {
  border-radius: 0;
}

.faq-item details:last-child summary {
  border-bottom: none;
}

.faq-item details p {
  font-size: 20px;
}

.faq-item details summary::-webkit-details-marker {
  display: none; /* Убираем стандартный значок раскрытия */
}

.faq-item details summary img:first-child {
  flex-shrink: 0; /* Запрещаем масштабирование иконки */
}

.faq-item details summary span {
  flex-grow: 1; /* Растягиваем текст, чтобы занять все доступное пространство */
}

.arrow-icon {
  width: 25px;
  height: 22.92px;
  margin-left: auto; /* Отодвигаем стрелку вправо */
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.faq-instructions {
  width: 100%;
  padding: 12px 50px 50px 50px;
  background: #F4F9FF;
}

.faq-instructions p {
  margin-bottom: 30px;
  font-weight: 600;
}

.faq-instructions img {
  width: 80%;
  height: auto;
  display: block;
  margin: auto;
  margin-bottom: 50px;
}

.faq-instructions img:last-child {
  margin-bottom: 0;
}

.browser-selection {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.browser-label {
  font-size: 20px;
  font-weight: 600;
}

.browser-dropdown {
  display: flex;
  align-items: center;
  background: #559bed;
  padding: 13px 30px;
  border-radius: 25px;
  gap: 10px;
  font-weight: bold;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}

.browser-arrow {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.browser-arrow:hover svg path {
  fill: #fff;
}

.arrow:hover {
  transform: scale(1.2);
}

.browser-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.browser-image {
  width: 80%;
  display: block;
  margin: 40px auto;
  transition: opacity 0.3s ease-in-out;
}

.browser-list {
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.browser-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.browser-item {
  list-style: none;
  margin-left: 30px;
  font-weight: 400;
  font-size: 20px;
}

.browser-background {
  background-color: white;
  width: 100%;
  padding: 50px;
}

details[open] .arrow-icon {
  transform: rotate(0deg); /* Поворачиваем стрелку при открытии */
}

@media screen and (max-width: 750px) {
  .faq {
    padding: 60px 16px 40px;
  }

  .faq h2 {
    font-size: 28px;
    line-height: 1;
  }

  .faq-item span {
    font-size: 16px;
  }

  .faq-item details p {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .faq-item details summary {
    padding: 33px 24px;
  }

  .faq-item details summary span {
    font-size: 16px;
  }

  .faq-item details summary img {
    width: 20px;
    height: 20px;
  }

  .faq-instructions {
    padding: 12px 24px 24px 24px;
  }

  .browser-label {
    font-size: 14px;
    white-space: nowrap;
  }

  .browser-selection {
    justify-content: space-between;
  }

  .browser-dropdown {
    padding: 7px 10px;
    text-align: center;
    gap: 0;
  }

  .browser-name {
    font-size: 12px !important;
  }

  .browser-image {
    width: 100%;
  }

  .browser-item {
    font-size: 16px;
  }
  
  .browser-background {
    padding: 24px;
  }
}
