.questions-block {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 50px;
}

.questions-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.questions-header h1 {
  font-weight: 500;
  font-size: 28px;
  line-height: 100%;
  color: #1A1A18;
  margin: 0;
}

.questions-header .btn-ask {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  border: 1.4px solid #FFB401;
  border-radius: 40px;
  background: transparent;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  color: #FFB401;
  text-decoration: none;
  white-space: nowrap;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.questions-theme {
  display: flex;
  flex-direction: column;

  border: 1px solid #E8E8E8;
  border-radius: 15px;
  padding: 15px;

  gap: 20px;
}

.questions-theme-title {
    font-size: 18px;
    line-height: 120%;
    color: #1A1A18;
    margin: 0;
    display: flex;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
    justify-content: space-between;
}

.questions-theme-toggle {
  width: 16px;
  height: 14px;
  position: relative;
  flex-shrink: 0;  
}

.questions-theme-toggle::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 16px;
  right: 4px;
  top: 3px;
  border-right: 2px solid #8C8C8B;
  border-bottom: 2px solid #8C8C8B;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.questions-theme.open .questions-theme-toggle::before {
  transform: rotate(-135deg);
  border-right-color: #09A3FB;
  border-bottom-color: #09A3FB;
}

.questions-subthemes {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.questions-theme.open .questions-subthemes {
  display: flex;
}

.questions-subtheme {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.questions-subtheme-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  text-decoration: none;
}

.questions-subtheme-header span {
  font-weight: 300;
  font-size: 16px;
  line-height: 120%;
  color: #1A1A18;
  flex-grow: 1;
}

.questions-subtheme-toggle {
  width: 14px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}

.questions-subtheme-toggle::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  right: 4px;
  top: 3px;
  border-right: 2px solid #8C8C8B;
  border-bottom: 2px solid #8C8C8B;
  transform: rotate(-45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.questions-subtheme.open .questions-subtheme-toggle::before {
  transform: rotate(45deg);
  border-right-color: #09A3FB;
  border-bottom-color: #09A3FB;
}

.questions-items {
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
  display: none;
}

.questions-subtheme.open .questions-items {
  display: block;
}

.questions-item {
  border-top: 1px solid #E8E8E8;
  padding: 15px 0;
}

.questions-item-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  text-decoration: none;
}

.questions-item-header span {
  font-weight: 300;
  font-size: 16px;
  line-height: 130%;
  color: #484949;
  flex-grow: 1;
  font-style: italic;
}

.questions-item-toggle {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.questions-item-toggle::before,
.questions-item-toggle::after {
  content: '';
  position: absolute;
  background: #8C8C8B;
  transition: opacity 0.2s ease;
}

.questions-item-toggle::before {
  width: 12px;
  height: 2px;
  left: 2px;
  top: 7px;
}

.questions-item-toggle::after {
  width: 2px;
  height: 12px;
  left: 7px;
  top: 2px;
}

.questions-item.open .questions-item-toggle::after {
  opacity: 0;
}

.questions-answer {
  display: none;
  padding: 15px 0 0 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 130%;
  color: #484949;
}

.questions-item.open .questions-answer {
  display: block;
}

.questions-answer .close {
  display: inline-block;
  margin-top: 10px;
  color: #09A3FB;
  text-decoration: none;
  font-size: 12px;
}

@media (max-width: 768px) {
  .questions-block {
    padding: 20px;
    gap: 30px;
  }

  .questions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .questions-header h1 {
    font-size: 22px;
  }

  .questions-list {
    gap: 30px;
  }
}
